-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.tsx
executable file
·34 lines (29 loc) · 953 Bytes
/
layout.tsx
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
import type React from "react"
import { ThemeProvider } from "@/components/theme-provider"
import { cn } from "@/lib/utils"
import type { Metadata } from "next"
import { Inter } from "next/font/google"
import "./globals.css"
import { Toaster } from "@/components/toaster"
const inter = Inter({ subsets: ["latin"] })
export const metadata: Metadata = {
title: "Next.js 应用 - Gitee OAuth 集成",
description: "使用 Next.js 15 和 Gitee OAuth 构建的应用"
}
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
return (
<html lang="zh-CN" suppressHydrationWarning>
<body className={cn("min-h-screen bg-background font-sans antialiased", inter.className)}>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
{children}
<Toaster />
</ThemeProvider>
</body>
</html>
)
}
import './globals.css'