46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
import type React from "react"
|
|
import type { Metadata } from "next"
|
|
import { Space_Mono, Noto_Sans_SC } from "next/font/google"
|
|
import "./globals.css"
|
|
import { ThemeProvider } from "@/components/theme-provider"
|
|
|
|
const spaceMono = Space_Mono({
|
|
weight: ["400", "700"],
|
|
subsets: ["latin"],
|
|
variable: "--font-space-mono",
|
|
})
|
|
|
|
const notoSansSC = Noto_Sans_SC({
|
|
weight: ["100", "300", "400", "500", "700", "900"],
|
|
subsets: ["latin"],
|
|
variable: "--font-noto-sans-sc",
|
|
})
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Simba Robotics | RoboMaster Team",
|
|
description:
|
|
"Simba Robotics official website, a competitive robotics team participating in the RoboMaster competition.",
|
|
generator: 'v0.dev'
|
|
}
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode
|
|
}>) {
|
|
return (
|
|
<html lang="zh-CN" suppressHydrationWarning className={`${spaceMono.variable} ${notoSansSC.variable}`}>
|
|
<head>
|
|
<link rel="icon" href="/logo.svg" type="image/svg+xml" />
|
|
</head>
|
|
<body className="font-sans">
|
|
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem disableTransitionOnChange>
|
|
{children}
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|
|
|
|
|
|
import './globals.css' |