layout.tsx 673 B

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