feat(navbar) new style, better performance

This commit is contained in:
lumither committed 2024-05-25 23:20:12 +08:00
1 parent 60a4a88246
commit d855df0d6e
7 files changed
+90 -73

No files matched your search

+7 -3
View File
@@ -17,10 +17,14 @@ export default function RootLayout({
}>) {
return (
<html lang="en" suppressHydrationWarning>
<body className={`dark:bg-[#282830]`}>
<body className={ `dark:bg-[#282830] min-h-screen` }>
<NextThemesProvider attribute="class" defaultTheme="dark">
<Navbar />
{ children }
<div className={ `justify-center flex flex-row w-full` }>
<Navbar />
<div className={ `flex-auto max-w-[1024px]` }>
{ children }
</div>
</div>
</NextThemesProvider>
</body>
</html>