Files
Ferrous-Solitaire/docs/ui-mockups/stats-mobile.html
T
funman300 fa7f98ac52 docs(ui): land the Terminal design system + 24-mockup library
Adds the spec the recent visual-identity port pass referenced:

- design-system.md — base16-eighties palette, type scale, spacing
  scale, motion budget, component library, accessibility notes
  (color-blind toggle, high-contrast mode, glyph differentiation),
  and the canonical "Terminal" card-back theme.
- 24 Stitch-rendered mockups (HTML + PNG): 12 redesigned existing
  screens, 1 desktop home variant, 2 onboarding steps, and 9
  missing-plugin screens (splash, challenge, time-attack,
  weekly-goals, leaderboard, sync, level-up, replay, radial-menu).

These mockups are the source the engine plugins were ported
against in commits 0d477ac through 9891ae4 (token system,
modal scaffold, gameplay-feedback layer, toasts, table chrome,
card chrome, splash cursor, hint highlight). Future plugin work
should diff against the matching mockup before touching pixels.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-07 18:47:57 -07:00

279 lines
14 KiB
HTML

<!DOCTYPE html>
<html class="dark" lang="en"><head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&amp;family=Inter:wght@400;500;600&amp;family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&amp;display=swap" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&amp;display=swap" rel="stylesheet"/>
<style>
.material-symbols-outlined {
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
/* CRT Scanline effect overlay */
.crt-overlay::before {
content: " ";
display: block;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
z-index: 100;
background-size: 100% 2px, 3px 100%;
pointer-events: none;
}
</style>
<script id="tailwind-config">
tailwind.config = {
darkMode: "class",
theme: {
extend: {
"colors": {
"tertiary": "#f7c3ff",
"surface-container": "#202020",
"primary-container": "#6fc2ef",
"surface": "#151515",
"tertiary-fixed": "#fbd7ff",
"info": "#12cfc0",
"inverse-on-surface": "#2d3134",
"suit-red": "#fb9fb1",
"secondary-fixed-dim": "#bad073",
"on-background": "#e0e3e6",
"tertiary-container": "#e1a3ee",
"suit-black": "#d0d0d0",
"on-primary": "#003549",
"secondary-fixed": "#d5ec8c",
"tertiary-fixed-dim": "#f0b0fc",
"suit-red-cb": "#6fc2ef",
"primary": "#a1dcff",
"on-primary-container": "#004f6c",
"primary-fixed": "#c4e7ff",
"on-surface-variant": "#bfc8cf",
"surface-tint": "#7ed0fe",
"surface-dim": "#101417",
"on-tertiary-container": "#683476",
"inverse-primary": "#00668a",
"background": "#101417",
"on-surface": "#d0d0d0",
"primary-fixed-dim": "#7ed0fe",
"on-error": "#690005",
"surface-container-highest": "#313538",
"outline-variant": "#3f484e",
"inverse-surface": "#e0e3e6",
"warning": "#ddb26f",
"surface-variant": "#313538",
"on-tertiary-fixed": "#340043",
"outline": "#505050",
"surface-container-lowest": "#0b0f11",
"on-secondary-container": "#b2c86d",
"surface-container-high": "#272a2d",
"secondary": "#bad073",
"error": "#fb9fb1",
"highlight-valid": "#acc267",
"surface-container-low": "#181c1f",
"on-secondary": "#293500",
"surface-bright": "#363a3d",
"on-secondary-fixed": "#161e00",
"on-error-container": "#ffdad6",
"highlight-celebration": "#e1a3ee",
"on-primary-fixed-variant": "#004c69",
"on-tertiary": "#4c195b",
"on-primary-fixed": "#001e2c",
"secondary-container": "#435401",
"error-container": "#93000a",
"on-tertiary-fixed-variant": "#653173",
"on-secondary-fixed-variant": "#3c4d00"
},
"borderRadius": {
"DEFAULT": "0.125rem",
"lg": "0.25rem",
"xl": "0.5rem",
"full": "0.75rem"
},
"spacing": {
"touch-target-min": "48dp",
"stack-overlap": "2rem",
"margin-edge": "1rem",
"action-bar-height": "64px",
"gutter-card": "0.375rem"
},
"fontFamily": {
"hud-timer": ["JetBrains Mono"],
"headline": ["JetBrains Mono"],
"card-rank": ["JetBrains Mono"],
"body-md": ["Inter"],
"hud-score": ["JetBrains Mono"],
"label-caps": ["JetBrains Mono"]
},
"fontSize": {
"hud-timer": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
"headline": ["28px", {"lineHeight": "32px", "letterSpacing": "-0.01em", "fontWeight": "700"}],
"card-rank": ["18px", {"lineHeight": "18px", "fontWeight": "700"}],
"body-md": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
"hud-score": ["24px", {"lineHeight": "32px", "letterSpacing": "-0.02em", "fontWeight": "700"}],
"label-caps": ["12px", {"lineHeight": "16px", "letterSpacing": "0.08em", "fontWeight": "500"}]
}
},
},
}
</script>
<style>
body {
min-height: max(884px, 100dvh);
}
</style>
</head>
<body class="bg-surface text-on-surface font-body-md min-h-screen selection:bg-primary-container selection:text-on-primary-container">
<!-- Top Navigation Shell -->
<header class="fixed top-0 w-full bg-background z-50 border-b border-outline flex justify-between items-center px-margin-edge h-action-bar-height">
<div class="flex items-center gap-2">
<span class="material-symbols-outlined text-primary" data-icon="terminal">terminal</span>
<h1 class="font-headline text-headline text-primary uppercase tracking-tighter">STATISTICS.LOG</h1>
</div>
<div class="flex items-center">
<button class="material-symbols-outlined text-on-surface-variant hover:bg-surface-container-highest transition-colors duration-120 p-2 rounded" data-icon="settings_input_component">settings_input_component</button>
</div>
</header>
<main class="pt-action-bar-height pb-[88px] crt-overlay">
<!-- Status Bar (Emulated Retro Style) -->
<div class="h-[32px] bg-surface-container flex items-center justify-between px-margin-edge text-[11px] font-hud-timer">
<span class="text-on-surface">▌stats.log</span>
<span class="text-on-surface-variant">247 GAMES TRACKED</span>
</div>
<!-- Sub-tab Strip -->
<nav class="h-[40px] bg-[#1a1a1a] border-b border-outline flex items-center px-margin-edge overflow-x-auto whitespace-nowrap scrollbar-hide">
<div class="flex items-center h-full gap-4">
<button class="h-full px-1 flex flex-col justify-center font-label-caps text-[11px] text-primary-container border-b-2 border-primary-container">
[ OVERVIEW ]
</button>
<button class="h-full px-1 flex flex-col justify-center font-label-caps text-[11px] text-on-surface-variant hover:text-primary transition-colors">
DRAW-1
</button>
<button class="h-full px-1 flex flex-col justify-center font-label-caps text-[11px] text-on-surface-variant hover:text-primary transition-colors">
DRAW-3
</button>
<button class="h-full px-1 flex flex-col justify-center font-label-caps text-[11px] text-on-surface-variant hover:text-primary transition-colors">
DAILY
</button>
</div>
</nav>
<!-- Main Content Grid -->
<section class="p-4 flex flex-col gap-4">
<!-- Hero Stat Card -->
<div class="h-24 bg-surface-container border border-outline rounded-lg p-4 flex justify-between items-center">
<div>
<span class="font-headline text-[48px] text-on-surface">61%</span>
</div>
<div class="text-right">
<p class="font-label-caps text-[11px] text-on-surface-variant">WIN RATE</p>
<p class="font-hud-timer text-[13px] text-highlight-valid">▲ +3% vs last 30</p>
</div>
</div>
<!-- 2x2 Grid -->
<div class="grid grid-cols-2 gap-2">
<div class="h-[88px] bg-surface-container border border-outline rounded-lg p-3 flex flex-col justify-between">
<p class="font-label-caps text-[11px] text-on-surface-variant">GAMES</p>
<p class="font-hud-score text-hud-score">247</p>
</div>
<div class="h-[88px] bg-surface-container border border-outline rounded-lg p-3 flex flex-col justify-between">
<p class="font-label-caps text-[11px] text-on-surface-variant">WINS</p>
<p class="font-hud-score text-hud-score">151</p>
</div>
<div class="h-[88px] bg-surface-container border border-outline rounded-lg p-3 flex flex-col justify-between">
<p class="font-label-caps text-[11px] text-on-surface-variant">BEST TIME</p>
<p class="font-hud-score text-hud-score text-primary">01:54</p>
</div>
<div class="h-[88px] bg-surface-container border border-outline rounded-lg p-3 flex flex-col justify-between">
<p class="font-label-caps text-[11px] text-on-surface-variant">STREAK</p>
<p class="font-hud-score text-hud-score">12</p>
</div>
</div>
<!-- Sparkline Card -->
<div class="bg-surface-container border border-outline rounded-lg p-4 h-[200px] flex flex-col">
<p class="font-label-caps text-[11px] text-on-surface-variant mb-4">WIN RATE · LAST 30 DAYS</p>
<div class="relative flex-1 flex items-end justify-between border-b border-outline pb-1">
<!-- Y-Axis Labels -->
<span class="absolute top-0 left-0 text-[9px] font-hud-timer text-outline">100%</span>
<span class="absolute bottom-1 left-0 text-[9px] font-hud-timer text-outline">0%</span>
<!-- Pixel Bar Chart -->
<div class="flex items-end justify-between w-full h-[80%] gap-[2px]">
<!-- Generated bars with upward trend -->
<div class="bg-primary-container w-full" style="height: 35%"></div>
<div class="bg-primary-container w-full" style="height: 30%"></div>
<div class="bg-primary-container w-full" style="height: 40%"></div>
<div class="bg-primary-container w-full" style="height: 38%"></div>
<div class="bg-primary-container w-full" style="height: 45%"></div>
<div class="bg-primary-container w-full" style="height: 42%"></div>
<div class="bg-primary-container w-full" style="height: 50%"></div>
<div class="bg-primary-container w-full" style="height: 48%"></div>
<div class="bg-primary-container w-full" style="height: 55%"></div>
<div class="bg-primary-container w-full" style="height: 52%"></div>
<div class="bg-primary-container w-full" style="height: 58%"></div>
<div class="bg-primary-container w-full" style="height: 60%"></div>
<div class="bg-primary-container w-full" style="height: 55%"></div>
<div class="bg-primary-container w-full" style="height: 62%"></div>
<div class="bg-primary-container w-full" style="height: 65%"></div>
<div class="bg-primary-container w-full" style="height: 63%"></div>
<div class="bg-primary-container w-full" style="height: 68%"></div>
<div class="bg-primary-container w-full" style="height: 70%"></div>
<div class="bg-primary-container w-full" style="height: 65%"></div>
<div class="bg-primary-container w-full" style="height: 72%"></div>
<div class="bg-primary-container w-full" style="height: 75%"></div>
<div class="bg-primary-container w-full" style="height: 78%"></div>
<div class="bg-primary-container w-full" style="height: 74%"></div>
<div class="bg-primary-container w-full" style="height: 80%"></div>
<div class="bg-primary-container w-full" style="height: 82%"></div>
<div class="bg-primary-container w-full" style="height: 85%"></div>
<div class="bg-primary-container w-full" style="height: 88%"></div>
<div class="bg-primary-container w-full" style="height: 86%"></div>
<div class="bg-primary-container w-full" style="height: 90%"></div>
<div class="bg-primary-container w-full" style="height: 95%"></div>
</div>
</div>
<div class="flex justify-between mt-1">
<span class="text-[9px] font-hud-timer text-outline uppercase">30d ago</span>
<span class="text-[9px] font-hud-timer text-outline uppercase">today</span>
</div>
</div>
<!-- Draw-Mode Split Card -->
<div class="h-20 bg-surface-container border border-outline rounded-lg p-4 flex flex-col justify-between">
<p class="font-label-caps text-[11px] text-on-surface-variant">DRAW MODE SPLIT</p>
<div class="h-3 w-full flex rounded-sm overflow-hidden bg-outline">
<div class="h-full bg-highlight-valid" style="width: 60%"></div>
<div class="h-full bg-primary-container" style="width: 40%"></div>
</div>
<div class="flex justify-between">
<span class="font-hud-timer text-[11px] text-highlight-valid">DRAW-1 · 60%</span>
<span class="font-hud-timer text-[11px] text-primary-container">DRAW-3 · 40%</span>
</div>
</div>
</section>
<!-- Retro Footer Strip -->
<footer class="h-[24px] px-margin-edge flex items-center justify-between font-hud-timer text-[10px] text-outline mt-2">
<div>▌ NORMAL │ stats</div>
<div>[1-4] view</div>
</footer>
</main>
<!-- Bottom Navigation Shell -->
<nav class="fixed bottom-0 w-full z-50 h-[64px] bg-surface-container border-t border-outline flex justify-around items-center">
<div class="flex flex-col items-center justify-center text-on-surface-variant pt-1 hover:text-primary transition-colors duration-120">
<span class="material-symbols-outlined" data-icon="playing_cards">playing_cards</span>
<span class="font-label-caps text-label-caps">DECK</span>
</div>
<!-- ACTIVE TAB: STATS -->
<div class="flex flex-col items-center justify-center text-primary border-t-2 border-primary pt-1 hover:text-primary transition-colors duration-120">
<span class="material-symbols-outlined" data-icon="query_stats" style="font-variation-settings: 'FILL' 1;">query_stats</span>
<span class="font-label-caps text-label-caps">STATS</span>
</div>
<div class="flex flex-col items-center justify-center text-on-surface-variant pt-1 hover:text-primary transition-colors duration-120">
<span class="material-symbols-outlined" data-icon="history_edu">history_edu</span>
<span class="font-label-caps text-label-caps">LOGS</span>
</div>
<div class="flex flex-col items-center justify-center text-on-surface-variant pt-1 hover:text-primary transition-colors duration-120">
<span class="material-symbols-outlined" data-icon="terminal">terminal</span>
<span class="font-label-caps text-label-caps">SYS</span>
</div>
</nav>
</body></html>