diff --git a/components/draw-timeline.tsx b/components/draw-timeline.tsx index bcf080b..02c1df7 100644 --- a/components/draw-timeline.tsx +++ b/components/draw-timeline.tsx @@ -12,7 +12,7 @@ export function DrawTimeline({ entry }: { entry: LotteryFeedEntry }) { className="flex flex-wrap items-center gap-3 rounded-md border border-border/60 bg-panel px-3 py-2" > {draw.date} - + {draw.pick && ( Choix: diff --git a/components/lottery-mobile-card.tsx b/components/lottery-mobile-card.tsx index 8615ed0..c8ce73b 100644 --- a/components/lottery-mobile-card.tsx +++ b/components/lottery-mobile-card.tsx @@ -52,7 +52,7 @@ export function LotteryMobileCard({

Résultat du {formatDate(lastDraw.date)}

- + {lastDraw.pick ? (
diff --git a/components/lottery-row.tsx b/components/lottery-row.tsx index 2e31843..786137f 100644 --- a/components/lottery-row.tsx +++ b/components/lottery-row.tsx @@ -44,7 +44,7 @@ export function LotteryRow({ )}
-
{lastDraw ? : }
+
{lastDraw ? : }
{lastDraw?.pick ? ( diff --git a/components/lottery-strip.tsx b/components/lottery-strip.tsx index c7ef764..9945cb8 100644 --- a/components/lottery-strip.tsx +++ b/components/lottery-strip.tsx @@ -1,5 +1,5 @@ import Link from "next/link" -import { Clover, Crown, Dices, Gem, LayoutGrid, type LucideIcon } from "lucide-react" +import { Clover, Crown, Dices, Gem, LayoutGrid, Sparkles, Star, Zap, type LucideIcon } from "lucide-react" import { cn } from "@/lib/utils" import type { LotteryFeedEntry } from "@/lib/lokilab-feed" @@ -7,6 +7,10 @@ const ICONS: Record = { "lotto-max": Crown, "lotto-649": Clover, "daily-grand": Gem, + powerball: Zap, + "mega-millions": Star, + "fr-loto": Clover, + euromillions: Sparkles, } /** Horizontal icon strip under the header — the 1xbet sports-strip pattern, one tile per lottery. */ diff --git a/components/number-sequence.tsx b/components/number-sequence.tsx index 49ce722..9d384d8 100644 --- a/components/number-sequence.tsx +++ b/components/number-sequence.tsx @@ -1,8 +1,12 @@ export function NumberSequence({ numbers, + bonus, + bonusLabel, hitSet, }: { numbers: number[] + bonus?: number[] + bonusLabel?: string hitSet?: Set }) { return ( @@ -12,14 +16,26 @@ export function NumberSequence({ key={i} className={ "flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-[13px] font-semibold tabular-nums " + - (hitSet?.has(n) - ? "bg-success text-success-foreground" - : "bg-muted text-foreground") + (hitSet?.has(n) ? "bg-success text-success-foreground" : "bg-muted text-foreground") } > {n} ))} + {bonus && bonus.length > 0 && ( + <> + + + {bonus.map((n, i) => ( + + {n} + + ))} + + )}
) } diff --git a/lib/lokilab-feed.ts b/lib/lokilab-feed.ts index 967586f..f753f5e 100644 --- a/lib/lokilab-feed.ts +++ b/lib/lokilab-feed.ts @@ -22,15 +22,18 @@ export interface LotteryFeedEntry { wins: number winRate: number } + /** Name of the extra ball(s), e.g. "Powerball", "Étoiles" — international games only. */ + bonusLabel?: string lastDraw: { date: string result: number[] + bonus?: number[] pick: number[] | null matched: number | null won: boolean | null } | null /** Last ~30 official draws (date + result only), newest first. */ - recentDraws: { date: string; result: number[]; pick: number[] | null }[] + recentDraws: { date: string; result: number[]; bonus?: number[]; pick: number[] | null }[] /** Loki's resolved picks over time (date + won), oldest first. */ pickHistory: { date: string; won: boolean }[] }