feat: static generation

This commit is contained in:
ner committed 2024-11-04 12:35:39 +02:00
1 parent 99255f4f13
commit 25866b9eb9
12 files changed
+56 -72

No files matched your search

+3 -5
View File
@@ -23,12 +23,10 @@ export const viewport: Viewport = {
const font = Jost({ subsets: ['latin', 'cyrillic'], weight: ['400'] });
const RootLayout = ({ children }: { children: ReactNode }) => {
const theme = cookies().get('theme')?.value as Theme;
return (
<html lang='en' data-mode={theme}>
<html lang='en' suppressHydrationWarning>
<head>
<meta name='theme-color' content={theme === 'dark' ? 'hsl(222.2 84% 4.9%)' : 'white'} />
{/*<meta name='theme-color' content={theme === 'dark' ? 'hsl(222.2 84% 4.9%)' : 'white'} />*/}
<link
rel='icon'
@@ -67,7 +65,7 @@ const RootLayout = ({ children }: { children: ReactNode }) => {
<meta property='og:image' content={`${SITE_URL}/apple-touch-icon.png`} />
</head>
<body className={font.className}>
<Providers theme={theme}>
<Providers>
<Header className='sticky top-0 z-20' />
<main className='container'>{children}</main>
</Providers>