layout.tsx 857 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import type { Metadata } from "next";
  2. import { Geist, Geist_Mono } from "next/font/google";
  3. import "./globals.css";
  4. import { Providers } from "./providers";
  5. import Header from "./components/header";
  6. const geistSans = Geist({
  7. variable: "--font-geist-sans",
  8. subsets: ["latin"],
  9. });
  10. const geistMono = Geist_Mono({
  11. variable: "--font-geist-mono",
  12. subsets: ["latin"],
  13. });
  14. export const metadata: Metadata = {
  15. title: "vtor.io",
  16. description: "Bespoke solutions for your business",
  17. };
  18. export default function RootLayout({
  19. children,
  20. }: Readonly<{
  21. children: React.ReactNode;
  22. }>) {
  23. return (
  24. <html lang="en">
  25. <body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
  26. <Providers>
  27. <Header />
  28. <main>
  29. {children}
  30. </main>
  31. </Providers>
  32. </body>
  33. </html>
  34. );
  35. }