Rebuild layout per Codex's design review: sidebar nav, shared results panel

Codex (independent /codex consult) reviewed the prior card-grid layout
and called it an unstructured "starter dashboard" look: too much chrome
before the data, duplicated card containers competing for attention,
community size outweighing actual draw results, and a real bug —
CardHeader's base class is `grid`, so the `flex-row` override on
LotteryCard never applied.

Rebuilds around a shared data panel instead of isolated cards:
- CountryNav: 200px sidebar (desktop) / horizontal scroller (mobile),
  replacing pill-tab filters that read as tags rather than navigation
- LotteryResultsPanel + LotteryRow: one table-like panel with column
  headers (Loterie / Résultat / Choix / Score / Historique), not N
  separate bordered cards — makes draws directly comparable
- LotteryMobileCard: dedicated compact mobile layout, not a shrunk
  desktop row
- NumberSequence: shared ball component used by both layouts
- --success token, independent of --accent: a winning number is always
  green, never the country's accent color (previously a win in France
  would render in France's red, which reads as a loss)
- --primary now stays neutral, decoupled from --accent, so generic
  shadcn control states don't inherit a country's color as if it meant
  something semantically
- New surface/text palette (page/header/panel/divider tiers) replacing
  the flat near-black scale
- Redrawn LokiMark: clearer two-ear fox silhouette, legible at 20-24px

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Nazim Kri
2026-10-29 22:34:16 -04:00
co-authored by Claude Sonnet 5
parent 8621284cab
commit fc69d4a668
11 changed files with 352 additions and 283 deletions
+28 -15
View File
@@ -30,6 +30,10 @@
--color-accent-foreground: var(--accent-foreground);
--color-accent: var(--accent);
--color-accent-soft: var(--accent-soft);
--color-success: var(--success);
--color-success-foreground: var(--success-foreground);
--color-panel: var(--panel);
--color-panel-hover: var(--panel-hover);
--color-muted-foreground: var(--muted-foreground);
--color-muted: var(--muted);
--color-secondary-foreground: var(--secondary-foreground);
@@ -86,22 +90,31 @@
}
.dark {
--background: oklch(0.145 0.002 264);
--foreground: oklch(0.96 0 0);
--card: oklch(0.195 0.004 264);
--card-foreground: oklch(0.96 0 0);
--popover: oklch(0.195 0.004 264);
--popover-foreground: oklch(0.96 0 0);
--primary: var(--accent);
--primary-foreground: oklch(0.145 0 0);
--secondary: oklch(0.255 0.004 264);
--secondary-foreground: oklch(0.96 0 0);
--muted: oklch(0.225 0.004 264);
--muted-foreground: oklch(0.63 0.01 264);
--accent-foreground: oklch(0.96 0 0);
--background: oklch(0.183 0.031 263.4);
--foreground: oklch(0.969 0.007 260.7);
--card: oklch(0.229 0.037 257.2);
--card-foreground: oklch(0.969 0.007 260.7);
--popover: oklch(0.266 0.043 255.9);
--popover-foreground: oklch(0.969 0.007 260.7);
/* --primary stays neutral — never tied to the country accent, so generic
shadcn controls (menu hover, focus states) don't inherit a country's
color as if it meant something semantically. */
--primary: oklch(0.969 0.007 260.7);
--primary-foreground: oklch(0.183 0.031 263.4);
--secondary: oklch(0.317 0.050 254.8);
--secondary-foreground: oklch(0.969 0.007 260.7);
--muted: oklch(0.266 0.043 255.9);
--muted-foreground: oklch(0.774 0.033 255.6);
--accent-foreground: oklch(0.969 0.007 260.7);
/* --success is the one stable "won/matched" color across every country —
never derived from --accent, so a win doesn't change color by country. */
--success: oklch(0.723 0.192 149.6);
--success-foreground: oklch(0.1 0.02 149.6);
--panel: oklch(0.229 0.037 257.2);
--panel-hover: oklch(0.317 0.050 254.8);
--destructive: oklch(0.704 0.191 22.216);
--border: oklch(1 0 0 / 8%);
--input: oklch(1 0 0 / 12%);
--border: oklch(0.366 0.051 253.4 / 50%);
--input: oklch(0.366 0.051 253.4 / 60%);
--ring: var(--accent);
--chart-1: oklch(0.87 0 0);
--chart-2: oklch(0.556 0 0);