nextjs-demo

next.js demo using react 19 rc

git clone https://9o.is/git/nextjs-demo.git

layout.tsx

(673B)


      1 import type { Metadata } from "next";
      2 import localFont from "next/font/local";
      3 import "./globals.css";
      4 
      5 const geistSans = localFont({
      6   src: "./fonts/GeistVF.woff",
      7   variable: "--font-geist-sans",
      8 });
      9 const geistMono = localFont({
     10   src: "./fonts/GeistMonoVF.woff",
     11   variable: "--font-geist-mono",
     12 });
     13 
     14 export const metadata: Metadata = {
     15   title: "Create Next App",
     16   description: "Generated by create next app",
     17 };
     18 
     19 export default function RootLayout({
     20   children,
     21 }: Readonly<{
     22   children: React.ReactNode;
     23 }>) {
     24   return (
     25     <html lang="en">
     26       <body className={`${geistSans.variable} ${geistMono.variable}`}>
     27         {children}
     28       </body>
     29     </html>
     30   );
     31 }