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>
56 lines
2.2 KiB
TypeScript
56 lines
2.2 KiB
TypeScript
import Image from "next/image"
|
|
import Link from "next/link"
|
|
import { Suspense } from "react"
|
|
import { UserMenu } from "@/components/user-menu"
|
|
import { CountrySwitcher } from "@/components/country-switcher"
|
|
import { Skeleton } from "@/components/ui/skeleton"
|
|
import { getCurrentMember } from "@/lib/member-auth"
|
|
import { resolveCountry } from "@/lib/country-pref"
|
|
|
|
async function CountrySlot() {
|
|
const member = await getCurrentMember()
|
|
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 (
|
|
<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 & statistiques de loterie — l'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">
|
|
Loki<span className="text-gold">Loto</span>
|
|
</span>
|
|
</Link>
|
|
|
|
<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>
|
|
<Link href="/classement" className="transition-colors hover:text-gold">
|
|
Classement
|
|
</Link>
|
|
</nav>
|
|
</div>
|
|
</header>
|
|
)
|
|
}
|