实现响应式导航栏组件

This commit is contained in:
2025-06-18 17:57:12 +08:00
parent ba7d22168d
commit 39f30fcfa9
29 changed files with 742 additions and 223 deletions

View File

@@ -4,8 +4,9 @@ import {Metadata} from 'next'
import './globals.css'
import localFont from 'next/font/local'
import {Toaster} from '@/components/ui/sonner'
import StoreProvider from '@/components/providers/StoreProvider'
import Stores from '@/app/stores'
import {getProfile} from '@/actions/auth'
import Effects from '@/app/effects'
const font = localFont({
src: './NotoSansSC-VariableFont_wght.ttf',
@@ -28,9 +29,11 @@ export default async function RootLayout({
return (
<html lang="zh-CN">
<body className={`${font.className}`}>
<StoreProvider user={user}>
{children}
</StoreProvider>
<Stores user={user}>
<Effects>
{children}
</Effects>
</Stores>
<Toaster position="top-center" richColors expand/>
</body>
</html>