blob: 60f06012a8bdf6f73b3ad2e528b0891b52092cbd (
plain) (
blame)
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
|
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import { Toaster } from "@/components/ui/sonner";
import { ThemeProvider } from "@/components/theme-provider";
const inter = Inter({
subsets: ["latin"],
variable: "--font-inter",
});
export const metadata: Metadata = {
title: "blcklst - not everyone get blcklsted",
description: "not everyone gets blcklsted - discover carefully curated fashion pieces that define modern elegance.",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<head>
{/* Preload both logo variants for instant theme switching */}
<link
rel="preload"
href="/black-logo.png"
as="image"
type="image/png"
/>
<link
rel="preload"
href="/white-logo.png"
as="image"
type="image/png"
/>
<script dangerouslySetInnerHTML={{
__html: `
(function() {
function addLoadedClass() {
document.documentElement.classList.add('loaded');
}
if (document.readyState === 'complete') {
addLoadedClass();
} else {
window.addEventListener('load', addLoadedClass);
}
})();
`
}} />
</head>
<body className={`${inter.variable} font-sans antialiased`}>
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
{children}
<Toaster />
</ThemeProvider>
</body>
</html>
);
}
|