Restructure navigation after 1xbet: utility bar, lottery strip, right rail

User feedback: still ugly, the 1xbet navigation was never actually
reproduced. Now follows its structure:
- thin utility bar on top (country picker, Connexion + Inscription)
  above the main bar (logo, nav)
- horizontal icon strip of the country's lotteries under the header,
  with the active one underlined in gold
- compact promo banner instead of a full-height hero, so results stay
  above the fold
- right rail in the bet-slip position: top-5 leaderboard and army stats

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Nazim Kri
2026-10-30 15:41:16 -04:00
co-authored by Claude Opus 5.5
parent e97b2e54ad
commit 9996f7b823
11 changed files with 233 additions and 158 deletions
+23 -14
View File
@@ -9,13 +9,31 @@ import { resolveCountry } from "@/lib/country-pref"
async function CountrySlot() {
const member = await getCurrentMember()
return <CountrySwitcher active={await resolveCountry(member)} />
return <CountrySwitcher active={await resolveCountry(member)} compact />
}
/** Two stacked bars, 1xbet-style: a thin utility bar (country, auth), then the main bar (logo, nav). */
export function AppHeader() {
return (
<div className="sticky top-0 z-30 h-14 border-b border-border bg-background/85 backdrop-blur">
<div className="mx-auto flex h-full max-w-6xl items-center gap-6 px-4 sm:px-6">
<header className="sticky top-0 z-30 border-b border-border bg-background/95 backdrop-blur">
<div className="border-b border-border/60 bg-[#0b111d]">
<div className="mx-auto flex h-9 max-w-6xl items-center px-4 text-xs sm:px-6">
<p className="hidden text-muted-foreground md:block">
Pronostics &amp; statistiques de loterie — l&apos;univers de Loki
</p>
<div className="ml-auto flex items-center gap-2.5">
<Suspense fallback={<Skeleton className="h-7 w-24 rounded" />}>
<CountrySlot />
</Suspense>
<span aria-hidden className="h-4 w-px bg-border" />
<Suspense fallback={<Skeleton className="h-7 w-32 rounded" />}>
<UserMenu />
</Suspense>
</div>
</div>
</div>
<div className="mx-auto flex h-14 max-w-6xl items-center gap-7 px-4 sm:px-6">
<Link href="/" className="flex shrink-0 items-center gap-2.5">
<Image src="/lokilab/ui/loki-mark.svg" alt="" aria-hidden="true" width={30} height={30} />
<span className="font-display text-xl text-foreground">
@@ -23,7 +41,7 @@ export function AppHeader() {
</span>
</Link>
<nav className="hidden items-center gap-5 text-sm text-muted-foreground sm:flex">
<nav className="flex items-center gap-5 text-sm font-medium text-muted-foreground">
<Link href="/" className="transition-colors hover:text-gold">
Résultats
</Link>
@@ -31,16 +49,7 @@ export function AppHeader() {
Classement
</Link>
</nav>
<div className="ml-auto flex items-center gap-3">
<Suspense fallback={<Skeleton className="h-9 w-28 rounded-md" />}>
<CountrySlot />
</Suspense>
<Suspense fallback={<Skeleton className="h-8 w-8 rounded-full" />}>
<UserMenu />
</Suspense>
</div>
</div>
</div>
</header>
)
}