-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
layout.tsx
82 lines (78 loc) · 2.34 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import type { Metadata, Viewport } from "next";
import localFont from "next/font/local";
import "./globals.css";
import { ThemeProvider } from "next-themes";
import { Analytics } from "@vercel/analytics/react";
import { Header } from "@/components/landing/header";
import { cn } from "@/lib/utils";
import { Footer } from "@/components/layout/footer";
import { META_THEME_COLORS, siteConfig } from "@/config/site";
const geistSans = localFont({
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
});
export const metadata: Metadata = {
title: `${siteConfig.name} - ${siteConfig.description}`,
description: siteConfig.description,
metadataBase: new URL(siteConfig.url),
applicationName: siteConfig.name,
keywords: [
"ui",
"components",
"Tailwind CSS",
"Next.js",
"shadcn",
"Framer Motion",
"React Library",
],
robots: "index, follow",
authors: [{ name: "Dorian Baffier", url: "https://x.com/dorian_baffier" }],
creator: "Dorian Baffier",
openGraph: {
title: siteConfig.name,
description: siteConfig.description,
url: siteConfig.url,
siteName: siteConfig.name,
},
twitter: {
card: "summary_large_image",
creator: "@dorian_baffier",
title: siteConfig.name,
description: siteConfig.description,
},
};
export const viewport: Viewport = {
themeColor: META_THEME_COLORS.dark,
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<body
className={cn(
geistSans.variable,
geistSans.className,
"antialiased"
)}
>
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
<div className="flex flex-col min-h-screen">
<Header />
<div className="flex-1">{children}</div>
<Footer />
</div>
</ThemeProvider>
<Analytics />
</body>
</html>
);
}