-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlayout.tsx
45 lines (39 loc) · 1.14 KB
/
layout.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import "./globals.css";
import type { Metadata, Viewport } from "next";
import { Poppins } from "next/font/google";
import { ModalProvider } from "@/components/providers/modal-provider";
import { Toaster } from "@/components/ui/toaster";
import { Header } from "@/components/header";
import { metadataConfig } from "@/lib/config/metadata";
const font = Poppins({
subsets: ["latin"],
weight: ["300", "400", "500", "600", "700", "800", "900"],
});
export const metadata: Metadata = metadataConfig;
export const viewport: Viewport = {
width: "device-width",
initialScale: 1.0,
userScalable: false,
colorScheme: "dark",
};
export default async function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<body className={font.className}>
<div className="background" />
<div className="fixed z-10 inset-0 overflow-y-scroll overflow-x-hidden">
<div className="min-h-full relative">
<Header />
{children}
<ModalProvider />
<Toaster />
</div>
</div>
</body>
</html>
);
}