Files
lokiloto/components/hero.tsx
T
Nazim KriandClaude Opus 5.5 9996f7b823 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>
2026-10-30 15:41:16 -04:00

45 lines
1.9 KiB
TypeScript

import Image from "next/image"
import Link from "next/link"
import { Button } from "@/components/ui/button"
/** Compact promo banner, 1xbet-style: short, wide, one message and one CTA — data stays above the fold. */
export function Hero({ isAuthenticated }: { isAuthenticated: boolean }) {
return (
<section className="relative isolate overflow-hidden rounded-lg border border-gold/25">
<img
src="/lokilab/backgrounds/observatory-desktop.webp"
alt=""
aria-hidden="true"
className="absolute inset-0 -z-20 h-full w-full object-cover object-[center_35%]"
/>
<div className="absolute inset-0 -z-10 bg-gradient-to-r from-background via-background/85 to-background/20" />
<div className="flex min-h-[176px] items-center justify-between gap-4 pl-5 sm:pl-8">
<div className="py-5">
<p className="text-[11px] font-semibold uppercase tracking-[0.2em] text-mint">L&apos;armée de Loki</p>
<h1 className="mt-1.5 font-display text-2xl leading-tight sm:text-3xl">
Loki lit les tirages. <span className="text-gold">Suivez ses choix.</span>
</h1>
<p className="mt-1.5 max-w-md text-sm text-muted-foreground">
Suivez ses pronostics, grimpez au classement — gratuit.
</p>
<Button asChild size="sm" className="mt-3.5 h-9 px-5 font-semibold">
<Link href={isAuthenticated ? "/classement" : "/connexion?mode=inscription"}>
{isAuthenticated ? "Voir le classement" : "Rejoindre l'armée"}
</Link>
</Button>
</div>
<Image
src="/lokilab/mascots/loki-welcome-320.webp"
alt=""
aria-hidden="true"
width={320}
height={480}
priority
className="hidden h-[176px] w-auto self-end object-cover object-top sm:block sm:mr-6"
/>
</div>
</section>
)
}