feat: expose portal navigation on mobile

This commit is contained in:
Leon Tonhäuser committed 2026-08-11 17:14:52 +02:00
1 parent 9089dce74a
commit 0085c721af
2 files changed
+16 -5

No files matched your search

+5 -3
View File
@@ -4,6 +4,7 @@ import Link from "next/link";
import { BrandLogo } from "@/components/brand/logo";
import { LogoutButton } from "@/components/layout/logout-button";
import { MobilePortalMenu } from "@/components/layout/mobile-portal-menu";
import { ThemeToggle } from "@/components/theme-toggle";
export type NavItem = { href: string; label: string };
@@ -30,7 +31,7 @@ export function PortalShell({
return (
<div className="min-h-screen bg-background flex flex-col">
<header className="sticky top-0 z-50 w-full border-b border-border/40 bg-background/80 backdrop-blur-md transition-colors duration-300">
<div className="flex h-16 items-center justify-between px-6 lg:px-12">
<div className="flex h-16 items-center justify-between px-4 sm:px-6 lg:px-12">
<Link aria-label={sectionLabel} className="flex items-center gap-2 transition-opacity hover:opacity-80" href={brandHref}>
<div className="flex items-center"><BrandLogo /></div>
</Link>
@@ -47,14 +48,15 @@ export function PortalShell({
</Link>
))}
</nav>
<div className="flex items-center gap-4">
<div className="hidden items-center gap-4 sm:flex">
<ThemeToggle />
<LogoutButton />
</div>
<MobilePortalMenu nav={nav} sectionLabel={sectionLabel} />
</div>
</div>
</header>
<main className="flex-1 w-full max-w-7xl mx-auto px-6 py-12 lg:px-12 lg:py-16">{children}</main>
</div>
);
}
}