layout.js 647 B

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