-
-
L'armée de Loki
-
- Loki lit les tirages. Suivez ses choix.
-
-
- Suivez ses pronostics, grimpez au classement — gratuit.
-
-
-
-
+ {STARS.map((s, i) => (
+
+ ))}
+
+
+
+
+ L'armée de Loki
+
+
+ Loki lit les tirages.
+
+
+ Vous suivez ses choix.
+
+
+
+ Résultats officiels, statistiques et pronostics de loterie au Québec, en France, aux
+ États-Unis, en Espagne et au Portugal.
+
+
+
+
+ {isAuthenticated ? "Voir le classement" : "Rejoindre l'armée — gratuit"}
+
+
+
+ Derniers tirages
+
+
+
+
+
+
+
+
+
+
+
)
}
+
+function HeroStat({ value, label }: { value: number; label: string }) {
+ return (
+
+
{label}
+
+
+
+
{label}
+
+ )
+}
diff --git a/components/how-it-works.tsx b/components/how-it-works.tsx
new file mode 100644
index 0000000..8891dc0
--- /dev/null
+++ b/components/how-it-works.tsx
@@ -0,0 +1,39 @@
+import { BarChart3, Star, Trophy } from "lucide-react"
+
+const STEPS = [
+ {
+ icon: BarChart3,
+ title: "Loki analyse",
+ text: "Chaque tirage officiel est archivé et passé au crible : fréquences, retards, séries.",
+ },
+ {
+ icon: Star,
+ title: "Vous suivez",
+ text: "Marquez d'une étoile les choix de Loki qui vous inspirent, gratuitement.",
+ },
+ {
+ icon: Trophy,
+ title: "L'armée grimpe",
+ text: "Chaque tirage résolu fait bouger le classement des membres qui suivent Loki.",
+ },
+]
+
+export function HowItWorks() {
+ return (
+
+
+ Comment ça marche
+
+
+ {STEPS.map((s, i) => (
+ -
+ {i + 1}
+
+
{s.title}
+ {s.text}
+
+ ))}
+
+
+ )
+}
diff --git a/components/lottery-card.tsx b/components/lottery-card.tsx
new file mode 100644
index 0000000..8528e51
--- /dev/null
+++ b/components/lottery-card.tsx
@@ -0,0 +1,127 @@
+import Link from "next/link"
+import { BarChart3, Target } from "lucide-react"
+import { FollowButton } from "@/components/follow-button"
+import { lotteryIcon } from "@/components/lottery-strip"
+import type { LotteryFeedEntry } from "@/lib/lokilab-feed"
+import { cn } from "@/lib/utils"
+
+export function LotteryCard({
+ entry,
+ country,
+ isFollowing,
+ isAuthenticated,
+ index,
+}: {
+ entry: LotteryFeedEntry
+ country: string
+ isFollowing: boolean
+ isAuthenticated: boolean
+ index: number
+}) {
+ const { lastDraw, lifetime } = entry
+ const Icon = lotteryIcon(entry.id)
+ const hits = new Set(lastDraw?.result ?? [])
+ const base = index * 90
+
+ return (
+
+
+
+
+
+
+
{entry.name}
+ {lastDraw &&
{formatDate(lastDraw.date)}
}
+
+ {lastDraw && (
+
+ )}
+
+
+
+ {lastDraw ? (
+
+ {lastDraw.result.map((n, i) => (
+
+ ))}
+ {lastDraw.bonus?.map((n, i) => (
+
+ ))}
+
+ ) : (
+
Aucun tirage disponible.
+ )}
+
+ {lastDraw?.pick ? (
+
+
+ Choix de Loki · {lastDraw.matched}/{lastDraw.result.length}
+
+
+ {lastDraw.pick.map((n, i) => (
+
+ {n}
+
+ ))}
+
+
+ ) : null}
+
+
+
+
+ {lifetime.picksTracked > 0 ? (
+ <>
+ Loki : {(lifetime.winRate * 100).toFixed(0)}% sur{" "}
+ {lifetime.picksTracked}
+ >
+ ) : (
+ "Archives officielles"
+ )}
+
+
+ Statistiques
+
+
+
+ )
+}
+
+function Ball({ n, bonus, delay, title }: { n: number; bonus?: boolean; delay: number; title?: string }) {
+ return (
+
+ {n}
+
+ )
+}
+
+function formatDate(iso: string): string {
+ return new Date(iso + "T00:00:00").toLocaleDateString("fr-CA", { weekday: "long", day: "numeric", month: "long" })
+}
diff --git a/components/lottery-mobile-card.tsx b/components/lottery-mobile-card.tsx
deleted file mode 100644
index c8ce73b..0000000
--- a/components/lottery-mobile-card.tsx
+++ /dev/null
@@ -1,81 +0,0 @@
-import Link from "next/link"
-import { NumberSequence } from "@/components/number-sequence"
-import { FollowButton } from "@/components/follow-button"
-import type { LotteryFeedEntry } from "@/lib/lokilab-feed"
-
-export function LotteryMobileCard({
- entry,
- country,
- isFollowing,
- isAuthenticated,
-}: {
- entry: LotteryFeedEntry
- country: string
- isFollowing: boolean
- isAuthenticated: boolean
-}) {
- const { lifetime, lastDraw } = entry
- const resultSet = new Set(lastDraw?.result ?? [])
-
- return (
-
-
-
- {lastDraw && (
-
- )}
-
- {entry.name}
-
-
- {lifetime.picksTracked > 0 ? (
-
-
- {(lifetime.winRate * 100).toFixed(0)}%
- {" "}
- sur {lifetime.picksTracked}
-
- ) : (
-
Nouveau
- )}
-
-
- {lastDraw ? (
- <>
-
-
- Résultat du {formatDate(lastDraw.date)}
-
-
-
- {lastDraw.pick ? (
-
-
- Choix pour ce tirage —{" "}
-
- {lastDraw.matched} / {lastDraw.result.length}
-
-
-
-
- ) : (
-
Aucun choix pour ce tirage.
- )}
- >
- ) : (
-
Aucun tirage disponible.
- )}
-
- )
-}
-
-function formatDate(iso: string): string {
- const d = new Date(iso + "T00:00:00")
- return d.toLocaleDateString("fr-CA", { day: "numeric", month: "short" })
-}
diff --git a/components/lottery-results-panel.tsx b/components/lottery-results-panel.tsx
deleted file mode 100644
index 5883a31..0000000
--- a/components/lottery-results-panel.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-import { LotteryRow } from "@/components/lottery-row"
-import { LotteryMobileCard } from "@/components/lottery-mobile-card"
-import type { LotteryFeedEntry } from "@/lib/lokilab-feed"
-
-export function LotteryResultsPanel({
- lotteries,
- country,
- followedKeys,
- isAuthenticated,
-}: {
- lotteries: LotteryFeedEntry[]
- country: string
- followedKeys: Set
- isAuthenticated: boolean
-}) {
- return (
-
-
-
- Loterie
- Résultat officiel
- Choix de Loki
- Score
- Historique
-
-
-
- {lotteries.map((entry) => (
-
- ))}
-
-
-
- {lotteries.map((entry) => (
-
- ))}
-
-
- )
-}
diff --git a/components/lottery-row.tsx b/components/lottery-row.tsx
deleted file mode 100644
index 786137f..0000000
--- a/components/lottery-row.tsx
+++ /dev/null
@@ -1,92 +0,0 @@
-import Link from "next/link"
-import { NumberSequence } from "@/components/number-sequence"
-import { FollowButton } from "@/components/follow-button"
-import type { LotteryFeedEntry } from "@/lib/lokilab-feed"
-
-export function LotteryRow({
- entry,
- country,
- isFollowing,
- isAuthenticated,
-}: {
- entry: LotteryFeedEntry
- country: string
- isFollowing: boolean
- isAuthenticated: boolean
-}) {
- const { lifetime, lastDraw } = entry
- const resultSet = new Set(lastDraw?.result ?? [])
-
- return (
-
-
- {lastDraw && (
-
- )}
-
-
-
-
- {entry.name}
-
- {lastDraw && (
-
{formatDate(lastDraw.date)}
- )}
-
-
-
{lastDraw ? : }
-
-
- {lastDraw?.pick ? (
-
- ) : (
- Aucun choix pour ce tirage
- )}
-
-
-
- {lastDraw?.pick ? (
-
- {lastDraw.matched} / {lastDraw.result.length}
-
- ) : (
-
- )}
-
-
-
- {lifetime.picksTracked > 0 ? (
- <>
-
- {(lifetime.winRate * 100).toFixed(0)}%
-
-
- sur {lifetime.picksTracked} grilles
-
- >
- ) : (
- Nouveau
- )}
-
-
- )
-}
-
-function Dash() {
- return —
-}
-
-function formatDate(iso: string): string {
- const d = new Date(iso + "T00:00:00")
- return d.toLocaleDateString("fr-CA", { day: "numeric", month: "short" })
-}
diff --git a/components/lottery-strip.tsx b/components/lottery-strip.tsx
index 9945cb8..487ed14 100644
--- a/components/lottery-strip.tsx
+++ b/components/lottery-strip.tsx
@@ -13,6 +13,10 @@ const ICONS: Record = {
euromillions: Sparkles,
}
+export function lotteryIcon(id: string): LucideIcon {
+ return ICONS[id] ?? Dices
+}
+
/** 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 (
diff --git a/components/site-footer.tsx b/components/site-footer.tsx
new file mode 100644
index 0000000..1c649d9
--- /dev/null
+++ b/components/site-footer.tsx
@@ -0,0 +1,92 @@
+import Image from "next/image"
+import Link from "next/link"
+import { COUNTRIES } from "@/lib/countries"
+import { Flag } from "@/components/flag"
+
+export function SiteFooter() {
+ return (
+
+ )
+}
+
+function FooterCol({ title, children }: { title: string; children: React.ReactNode }) {
+ return (
+
+ )
+}
+
+function FooterLink({ href, children }: { href: string; children: React.ReactNode }) {
+ return (
+
+
+ {children}
+
+
+ )
+}
diff --git a/lib/countries.ts b/lib/countries.ts
index 54d7abd..32dc246 100644
--- a/lib/countries.ts
+++ b/lib/countries.ts
@@ -51,14 +51,6 @@ export const COUNTRIES: CountryTheme[] = [
accent: 'oklch(0.76 0.16 89.6)',
accentSoft: 'oklch(0.76 0.16 89.6 / 14%)',
},
- {
- code: 'IT',
- name: 'Italie',
- flagPrimary: '#009246',
- flagSecondary: '#CE2B37',
- accent: 'oklch(0.65 0.15 151.1)',
- accentSoft: 'oklch(0.65 0.15 151.1 / 14%)',
- },
{
code: 'PT',
name: 'Portugal',
@@ -67,22 +59,6 @@ export const COUNTRIES: CountryTheme[] = [
accent: 'oklch(0.63 0.14 153.6)',
accentSoft: 'oklch(0.63 0.14 153.6 / 14%)',
},
- {
- code: 'DZ',
- name: 'Algérie',
- flagPrimary: '#006233',
- flagSecondary: '#D21034',
- accent: 'oklch(0.6 0.13 153.7)',
- accentSoft: 'oklch(0.6 0.13 153.7 / 14%)',
- },
- {
- code: 'MA',
- name: 'Maroc',
- flagPrimary: '#C1272D',
- flagSecondary: '#006233',
- accent: 'oklch(0.58 0.19 25)',
- accentSoft: 'oklch(0.58 0.19 25 / 14%)',
- },
]
export function countryTheme(code: string): CountryTheme {
diff --git a/lib/lokilab-feed.ts b/lib/lokilab-feed.ts
index f753f5e..49173eb 100644
--- a/lib/lokilab-feed.ts
+++ b/lib/lokilab-feed.ts
@@ -34,6 +34,8 @@ export interface LotteryFeedEntry {
} | null
/** Last ~30 official draws (date + result only), newest first. */
recentDraws: { date: string; result: number[]; bonus?: number[]; pick: number[] | null }[]
+ /** Full archive size in LokiLab (recentDraws is capped at 30). */
+ totalDraws?: number
/** Loki's resolved picks over time (date + won), oldest first. */
pickHistory: { date: string; won: boolean }[]
}
diff --git a/public/flags/dz.svg b/public/flags/dz.svg
deleted file mode 100644
index fe8bb71..0000000
--- a/public/flags/dz.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/public/flags/it.svg b/public/flags/it.svg
deleted file mode 100644
index 2eb1289..0000000
--- a/public/flags/it.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/public/flags/ma.svg b/public/flags/ma.svg
deleted file mode 100644
index c2f0600..0000000
--- a/public/flags/ma.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file