Spaces:
Sleeping
Sleeping
File size: 1,280 Bytes
8e0dd55 | 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 | import type { Metadata } from "next";
import { Noto_Sans_JP, Noto_Serif_JP, Geist_Mono } from "next/font/google";
import "./globals.css";
import { ThemeProvider } from "next-themes";
import { LanguageProvider } from "@/contexts/LanguageContext";
// Japanese-friendly fonts
const notoSansJP = Noto_Sans_JP({
variable: "--font-geist-sans",
subsets: ["latin"],
weight: ["400", "500", "700"],
display: "swap",
});
const notoSerifJP = Noto_Serif_JP({
variable: "--font-serif-jp",
subsets: ["latin"],
weight: ["400", "500", "700"],
display: "swap",
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Deepwiki Open Source | Sheing Ng",
description: "Created by Sheing Ng",
};
export default function RootLayout({
children
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<body
className={`${notoSansJP.variable} ${notoSerifJP.variable} ${geistMono.variable} antialiased`}
>
<ThemeProvider attribute="data-theme" defaultTheme="system" enableSystem>
<LanguageProvider>
{children}
</LanguageProvider>
</ThemeProvider>
</body>
</html>
);
}
|