37 lines
799 B
TypeScript
37 lines
799 B
TypeScript
|
import "@/styles/globals.css";
|
||
|
import { Metadata, Viewport } from "next";
|
||
|
|
||
|
|
||
|
|
||
|
import { Providers } from "./providers";
|
||
|
import { Navbar } from "@/components/navbar";
|
||
|
|
||
|
|
||
|
export const viewport: Viewport = {
|
||
|
themeColor: [
|
||
|
{ media: "(prefers-color-scheme: light)", color: "white" },
|
||
|
{ media: "(prefers-color-scheme: dark)", color: "black" },
|
||
|
],
|
||
|
};
|
||
|
|
||
|
export default function RootLayout({
|
||
|
children,
|
||
|
}: {
|
||
|
children: React.ReactNode;
|
||
|
}) {
|
||
|
return (
|
||
|
<html suppressHydrationWarning lang="en">
|
||
|
<head/>
|
||
|
<body>
|
||
|
<Providers themeProps={{ attribute: "class", defaultTheme: "dark" }}>
|
||
|
<Navbar />
|
||
|
<main className="container mx-auto max-w-7xl pt-16 px-6 flex-grow">
|
||
|
|
||
|
{children}
|
||
|
</main>
|
||
|
</Providers>
|
||
|
</body>
|
||
|
</html>
|
||
|
);
|
||
|
}
|