mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 05:20:33 +08:00
45 lines
1.1 KiB
TypeScript
45 lines
1.1 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Plus_Jakarta_Sans, Lora } from "next/font/google";
|
|
import "./globals.css";
|
|
import ThemeScript from "@/components/ThemeScript";
|
|
import { AppShellProvider } from "@/context/AppShellContext";
|
|
import { I18nClientBridge } from "@/i18n/I18nClientBridge";
|
|
|
|
const fontSans = Plus_Jakarta_Sans({
|
|
subsets: ["latin"],
|
|
display: "swap",
|
|
variable: "--font-sans",
|
|
});
|
|
|
|
const fontSerif = Lora({
|
|
subsets: ["latin"],
|
|
display: "swap",
|
|
variable: "--font-serif",
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "DeepTutor",
|
|
description: "Agent-native intelligent learning companion",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning className={`${fontSans.variable} ${fontSerif.variable}`}>
|
|
<head>
|
|
<ThemeScript />
|
|
</head>
|
|
<body className="font-sans bg-[var(--background)] text-[var(--foreground)]">
|
|
<AppShellProvider>
|
|
<I18nClientBridge>
|
|
{children}
|
|
</I18nClientBridge>
|
|
</AppShellProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|