This commit is contained in:
eric
2026-03-10 11:48:50 -05:00
parent eb33ed9360
commit 296d703307
41 changed files with 9072 additions and 121 deletions

View File

@@ -1,6 +1,8 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { ThemeProvider } from "./providers/ThemeProvider";
import { themeInitScript } from "./theme-init";
const geistSans = Geist({
variable: "--font-geist-sans",
@@ -23,11 +25,12 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<html lang="en">
<html lang="zh-CN" suppressHydrationWarning>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children}
<script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
<ThemeProvider>{children}</ThemeProvider>
</body>
</html>
);