使用shadcn重构

This commit is contained in:
2025-04-24 19:37:31 +08:00
parent a55726c724
commit c99b76e7a9
9 changed files with 3863 additions and 5883 deletions

View File

@@ -1,6 +1,7 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { ThemeProvider } from "./components/theme-provider";
const geistSans = Geist({
variable: "--font-geist-sans",
@@ -13,8 +14,8 @@ const geistMono = Geist_Mono({
});
export const metadata: Metadata = {
title: "特恩的日志",
description: "一名啥都会一点点的程序员",
title: "Create Next App",
description: "Generated by create next app",
};
export default function RootLayout({
@@ -27,7 +28,14 @@ export default function RootLayout({
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children}
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
{children}
</ThemeProvider>
</body>
</html>
);