feat: complete UI design system refactoring and fix TS build errors

This commit is contained in:
Leon Tonhäuser committed 2026-08-11 03:38:34 +02:00
1 parent 0b1ffdfdfc
commit 8728308fc6
27 files changed
+847 -370

No files matched your search

+28 -16
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 { ThemeToggle } from "@/components/theme-toggle";
export type NavItem = { href: string; label: string };
@@ -27,24 +28,35 @@ export function PortalShell({
children,
}: Readonly<PortalShellProps>) {
return (
<div className="editorial-shell">
<header className="portal-masthead">
<Link aria-label={sectionLabel} className="portal-brand" href={brandHref}>
<BrandLogo variant="white" />
</Link>
<div className="portal-masthead-meta">
<span>{sectionLabel}</span>
<nav aria-label={sectionLabel}>
{nav.map((item) => (
<Link key={item.href} href={item.href}>
{item.label}
</Link>
))}
</nav>
<LogoutButton />
<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">
<Link aria-label={sectionLabel} className="flex items-center gap-2 transition-opacity hover:opacity-80" href={brandHref}>
{/* The BrandLogo might need to be theme-aware or we just use white/black depending on theme */}
<div className="dark:hidden flex items-center"><BrandLogo variant="black" /></div>
<div className="hidden dark:flex items-center"><BrandLogo variant="white" /></div>
</Link>
<div className="flex items-center gap-6 text-sm font-medium">
<span className="hidden md:inline-block text-muted-foreground uppercase tracking-widest text-xs font-bold">{sectionLabel}</span>
<nav aria-label={sectionLabel} className="hidden sm:flex items-center gap-6">
{nav.map((item) => (
<Link
key={item.href}
href={item.href}
className="transition-colors hover:text-primary-500 text-foreground"
>
{item.label}
</Link>
))}
</nav>
<div className="flex items-center gap-4">
<ThemeToggle />
<LogoutButton />
</div>
</div>
</div>
</header>
<main className={mainClassName}>{children}</main>
<main className="flex-1 w-full max-w-7xl mx-auto px-6 py-12 lg:px-12 lg:py-16">{children}</main>
</div>
);
}