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:
co-authored by
Claude Sonnet 5
parent
8621284cab
commit
fc69d4a668
@@ -1,21 +1,18 @@
|
||||
/**
|
||||
* The one shared mascot mark: a geometric fox/trickster silhouette.
|
||||
* Palette-swapped per country via currentColor — never hardcode a fill here.
|
||||
* The one shared mascot mark: a simplified fox head. Two ears, a tapered
|
||||
* muzzle, two eyes — designed to stay legible at 20-24px, not just at hero
|
||||
* size. Palette-swapped per country via currentColor — never hardcode a
|
||||
* fill here.
|
||||
*/
|
||||
export function LokiMark({ className }: { className?: string }) {
|
||||
return (
|
||||
<svg
|
||||
viewBox="0 0 48 48"
|
||||
fill="none"
|
||||
className={className}
|
||||
aria-hidden="true"
|
||||
>
|
||||
<svg viewBox="0 0 48 48" fill="none" className={className} aria-hidden="true">
|
||||
<path
|
||||
d="M24 6 L34 16 L41 11 L38 22 L41 33 L32 29 L24 42 L16 29 L7 33 L10 22 L7 11 L14 16 Z"
|
||||
d="M9 10 L19 19 Q24 16 29 19 L39 10 L36 23 Q38 28 36 33 Q31 41 24 41 Q17 41 12 33 Q10 28 12 23 Z"
|
||||
fill="currentColor"
|
||||
/>
|
||||
<circle cx="19.5" cy="24" r="2.4" fill="var(--background)" />
|
||||
<circle cx="28.5" cy="24" r="2.4" fill="var(--background)" />
|
||||
<circle cx="19" cy="26" r="2.1" fill="var(--background)" />
|
||||
<circle cx="29" cy="26" r="2.1" fill="var(--background)" />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user