42 lines
1.3 KiB
TypeScript
42 lines
1.3 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 是来自黑龙江大学的 RoboMaster 竞赛团队,致力于推动机器人技术的创新与发展。我们专注于设计和开发高性能的机器人系统,参与国内外各类机器人竞赛。",}
|
|
|
|
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>
|
|
)
|
|
}
|