feat(design): add AppShell, MobileShell and the notifications drawer

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 09:31:12 +08:00
co-authored by Claude Haiku 4.5
parent 32dd42ac79
commit 9ba708ecb7
10 changed files with 482 additions and 311 deletions
+4 -11
View File
@@ -2,7 +2,7 @@ export const dynamic = 'force-dynamic'
import { redirect } from 'next/navigation'
import { getSession } from '@/lib/auth/get-session'
import { Sidebar } from '@/components/layout/sidebar'
import { AppShell } from '@/components/layout/app-shell'
export default async function ProtectedLayout({
children,
@@ -13,15 +13,8 @@ export default async function ProtectedLayout({
if (!session) redirect('/login')
return (
<div className="min-h-screen bg-ground">
<Sidebar
role={session.role}
userName={session.name}
userEmail=""
/>
<div className="sm:ml-60 pb-16 sm:pb-0">
{children}
</div>
</div>
<AppShell role={session.role} userName={session.name}>
{children}
</AppShell>
)
}