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
+62
View File
@@ -0,0 +1,62 @@
import Link from "next/link"
import { Clover, Crown, Dices, Gem, LayoutGrid, type LucideIcon } from "lucide-react"
import { cn } from "@/lib/utils"
import type { LotteryFeedEntry } from "@/lib/lokilab-feed"
const ICONS: Record<string, LucideIcon> = {
"lotto-max": Crown,
"lotto-649": Clover,
"daily-grand": Gem,
}
/** Horizontal icon strip under the header — the 1xbet sports-strip pattern, one tile per lottery. */
export function LotteryStrip({ lotteries, activeId }: { lotteries: LotteryFeedEntry[]; activeId?: string }) {
return (
<div className="border-b border-border bg-card/70">
<div className="mx-auto flex max-w-6xl items-stretch overflow-x-auto px-2 sm:px-4 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden">
<StripItem href="/" icon={LayoutGrid} label="Tous" active={!activeId} />
{lotteries.map((l) => (
<StripItem
key={l.id}
href={`/loterie/${l.id}`}
icon={ICONS[l.id] ?? Dices}
label={shortName(l.name)}
active={activeId === l.id}
/>
))}
</div>
</div>
)
}
function StripItem({
href,
icon: Icon,
label,
active,
}: {
href: string
icon: LucideIcon
label: string
active?: boolean
}) {
return (
<Link
href={href}
aria-current={active ? "page" : undefined}
className={cn(
"flex w-[86px] shrink-0 flex-col items-center gap-1.5 border-b-2 px-2 pb-2.5 pt-3 text-center transition-colors",
active
? "border-gold bg-gold/5 text-gold"
: "border-transparent text-muted-foreground hover:bg-panel-hover/50 hover:text-foreground"
)}
>
<Icon className="h-5 w-5" />
<span className="w-full truncate text-[11px] leading-tight">{label}</span>
</Link>
)
}
function shortName(name: string) {
return name.replace(" (Daily Grand)", "").replace("Quotidienne ", "Quot. ")
}