-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathlayout.tsx
49 lines (47 loc) Β· 1.49 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
46
47
48
49
import { Poppins } from "next/font/google";
import { ThemeProvider } from "@/components/theme-provider";
import Navbar from "@/components/Navbar";
import Footer from "@/components/Footer";
import { Toaster } from "@/components/ui/toaster";
import "./globals.css";
import { Analytics } from "@vercel/analytics/react";
import { ClerkProvider } from "@clerk/nextjs";
import { dark } from "@clerk/themes";
import { LanguageProvider } from "@/contexts/LanguageContext";
const font = Poppins({
subsets: ["latin"],
weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
});
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<ClerkProvider
appearance={{
baseTheme: dark,
}}
>
<html lang="en">
<head>
<link rel="icon" href="./icon.svg" />
</head>
<body className={`${font.className}`} suppressHydrationWarning>
<LanguageProvider>
<ThemeProvider
attribute="class"
defaultTheme="dark"
enableSystem
disableTransitionOnChange
>
<div className="min-h-screen bg-background flex flex-col">
<Navbar />
<main className="flex-1">{children}</main>
<Footer />
<Analytics />
<Toaster />
</div>
</ThemeProvider>
</LanguageProvider>
</body>
</html>
</ClerkProvider>
);
}