File size: 1,328 Bytes
67ea2ab |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
import type { Metadata } from "next";
import localFont from "next/font/local";
import "@/assets/globals.css";
import { Navigation } from "@/components/_navigation";
const nohemiRegular = localFont({
src: [
{
path: "./_fonts/nohemi/light.woff",
weight: "300",
},
{
path: "./_fonts/nohemi/regular.woff",
weight: "400",
},
{
path: "./_fonts/nohemi/semibold.woff",
weight: "600",
},
{
path: "./_fonts/nohemi/bold.woff",
weight: "700",
},
{
path: "./_fonts/nohemi/extrabold.woff",
weight: "900",
},
],
variable: "--font-nohemi-sans",
});
const geistMono = localFont({
src: "./_fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
});
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body
className={`${nohemiRegular.variable} ${geistMono.variable} antialiased`}
>
<div className="min-h-screen w-full overflow-auto font-[family-name:var(--font-nohemi-sans)] p-6 scroll-smooth">
<Navigation />
{children}
</div>
</body>
</html>
);
}
|