This commit is contained in:
eric
2026-03-11 23:17:16 -05:00
parent efe816915d
commit 51b88291ef
5 changed files with 16 additions and 23 deletions

View File

@@ -1,19 +1,8 @@
import type { Metadata, Viewport } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { ThemeProvider } from "./context/ThemeContext";
import { getSiteConfig } from "@/config";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
@@ -53,9 +42,7 @@ export default function RootLayout({
}>) {
return (
<html lang="zh-CN" suppressHydrationWarning>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
<body className="antialiased">
<ThemeScript />
<ThemeProvider>{children}</ThemeProvider>
</body>