906ec3b805
Footer is fixed bottom-0 with h-footer (5rem mobile) / md:h-footer-wide (4rem desktop). Body gets matching pb-footer/md:pb-footer-wide to reserve space. Tokens registered in @theme inline as --spacing-footer*.
24 lines
603 B
TypeScript
24 lines
603 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: 'Portfolio',
|
|
description: 'Portfolio',
|
|
};
|
|
|
|
/**
|
|
* Root layout — injects font CSS variables used by theme.css
|
|
*/
|
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html lang="en">
|
|
<body className={`${fraunces.variable} ${publicSans.variable} pb-footer md:pb-footer-wide`}>
|
|
{children}
|
|
<Footer />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|