overhaul complete

This commit is contained in:
2026-05-07 11:02:34 +02:00
parent d860d78543
commit 779a1fdb82
29 changed files with 1612 additions and 213 deletions
+18 -12
View File
@@ -1,23 +1,29 @@
import { Outlet } from 'react-router-dom'
import { Header } from './Header'
import { Sidebar } from './Sidebar'
import { BottomTabBar } from './BottomTabBar'
export function AppShell() {
return (
<div className="flex h-screen overflow-hidden bg-[#FAFBFC]">
{/* Desktop sidebar — hidden below md breakpoint */}
<Sidebar className="hidden md:flex" />
<div className="flex flex-col h-screen overflow-hidden bg-[#F4F5F7]">
{/* Top header — full width, always visible */}
<Header />
{/* Main content area — bottom padding leaves room for mobile tab bar */}
<main
id="main-content"
className="flex-1 overflow-y-auto pb-14 md:pb-0"
tabIndex={-1}
>
<Outlet />
</main>
<div className="flex flex-1 overflow-hidden">
{/* Desktop sidebar */}
<Sidebar className="hidden md:flex flex-col" />
{/* Mobile bottom tab bar — hidden above md breakpoint */}
{/* Main content */}
<main
id="main-content"
className="flex-1 overflow-y-auto pb-14 md:pb-0"
tabIndex={-1}
>
<Outlet />
</main>
</div>
{/* Mobile bottom tab bar */}
<BottomTabBar className="md:hidden" />
</div>
)