a31cf4deec
Adds data-scroll-behavior="smooth" to <html> so Next disables the global scroll-behavior during programmatic route-change scrolls while keeping smooth behavior for user-driven anchor jumps. Silences the Next 15 warning.
25 lines
732 B
TypeScript
25 lines
732 B
TypeScript
import type { Metadata } from 'next';
|
|
import { fraunces, publicSans } from '$shared/lib';
|
|
import { Footer } from '$widgets/Footer';
|
|
import './globals.css';
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'Ilia Mashkov — Portfolio',
|
|
description: 'Portfolio of Ilia Mashkov, a frontend software engineer.',
|
|
icons: { icon: '/favicon.svg' },
|
|
};
|
|
|
|
/**
|
|
* Root layout — injects font CSS variables used by theme.css
|
|
*/
|
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html lang="en" data-scroll-behavior="smooth">
|
|
<body className={`${fraunces.variable} ${publicSans.variable} pb-footer md:pb-footer-wide`}>
|
|
{children}
|
|
<Footer />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|