-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlayout.tsx
More file actions
86 lines (82 loc) · 2.56 KB
/
layout.tsx
File metadata and controls
86 lines (82 loc) · 2.56 KB
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
83
84
85
86
import { config } from "@/config";
import { cookieToInitialState } from "@account-kit/core";
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import { headers } from "next/headers";
import "./globals.css";
import { Providers } from "./providers";
import Navbar from "@/components/Navbar";
import { cn } from "@/lib/utils/utils";
import { Toaster } from "@/components/ui/toaster";
import Footer from "@/components/Footer";
const inter = Inter({ subsets: ["latin"] });
export const metadata: Metadata = {
metadataBase: new URL("https://tv.creativeplatform.xyz"),
title: "Creative TV",
description: "The Way Content Should Be.",
openGraph: {
title: "Creative TV",
description: "The Way Content Should Be.",
images: [
{
url: "https://tv.creativeplatform.xyz/Creative_TV_Logo.png",
width: 500,
height: 500,
alt: "Creative TV Logo",
type: "image/png",
},
],
},
twitter: {
card: "summary_large_image",
title: "Creative TV",
description: "The Way Content Should Be.",
images: ["https://tv.creativeplatform.xyz/creative-banner.png"],
},
};
export default async function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
// Persist state across pages
const headersList = headers();
const initialState = cookieToInitialState(
config,
headersList.get("cookie") ?? undefined
);
return (
<html lang="en" suppressHydrationWarning>
<head>
<link rel="manifest" href="/manifest.json" />
<meta name="theme-color" content="#000000" />
<link
rel="apple-touch-icon"
href="/icons/CreativeTV_blur-192x192.png"
/>
{/* Default favicon */}
<link rel="icon" href="/favicon.ico" sizes="any" />
{/* Optional: SVG or PNG favicons */}
{/* <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> */}
{/* <link rel="icon" type="image/png" href="/favicon.png" /> */}
</head>
<body
className={cn(
inter.className,
"min-h-screen bg-background antialiased"
)}
>
<div id="alchemy-signer-iframe-container" style={{ display: "none" }} />{" "}
{/* Alchemy signer iframe container for modular account functionality */}
<Providers initialState={initialState}>
<Navbar />
<div className="min-h-screen flex flex-col">
<main className="flex-1">{children}</main>
<Footer />
</div>
</Providers>
<Toaster />
</body>
</html>
);
}