Files
Ferrous-Solitaire/docs/ui-mockups/time-attack-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

215 lines
12 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"/>
<title>Rusty Solitaire - Time Attack Configuration</title>
<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;800&amp;family=Inter:wght@400;500&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"/>
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&amp;display=swap" rel="stylesheet"/>
<script id="tailwind-config">
tailwind.config = {
darkMode: "class",
theme: {
extend: {
"colors": {
"surface-tint": "#7ed0fe",
"on-secondary-fixed-variant": "#3c4d00",
"primary-container": "#6fc2ef",
"surface-container-high": "#272a2d",
"tertiary": "#f7c3ff",
"suit-black": "#d0d0d0",
"secondary-container": "#435401",
"on-error-container": "#ffdad6",
"on-surface-variant": "#bfc8cf",
"surface-dim": "#101417",
"on-primary-container": "#004f6c",
"info": "#12cfc0",
"outline-variant": "#3f484e",
"surface": "#151515",
"inverse-on-surface": "#2d3134",
"surface-container-low": "#181c1f",
"on-secondary-container": "#b2c86d",
"on-primary-fixed-variant": "#004c69",
"inverse-primary": "#00668a",
"suit-red": "#fb9fb1",
"tertiary-fixed": "#fbd7ff",
"surface-container-lowest": "#0b0f11",
"on-surface": "#d0d0d0",
"on-secondary": "#293500",
"error-container": "#93000a",
"highlight-valid": "#acc267",
"surface-container-highest": "#313538",
"primary": "#a1dcff",
"secondary-fixed": "#d5ec8c",
"error": "#fb9fb1",
"outline": "#505050",
"tertiary-container": "#e1a3ee",
"tertiary-fixed-dim": "#f0b0fc",
"highlight-celebration": "#e1a3ee",
"surface-container": "#202020",
"on-primary": "#003549",
"on-error": "#690005",
"warning": "#ddb26f",
"suit-red-cb": "#6fc2ef",
"on-primary-fixed": "#001e2c",
"on-secondary-fixed": "#161e00",
"on-tertiary-fixed": "#340043",
"on-background": "#e0e3e6",
"on-tertiary": "#4c195b",
"inverse-surface": "#e0e3e6",
"secondary-fixed-dim": "#bad073",
"on-tertiary-fixed-variant": "#653173",
"background": "#101417",
"surface-variant": "#313538",
"secondary": "#bad073",
"on-tertiary-container": "#683476",
"surface-bright": "#363a3d",
"primary-fixed-dim": "#7ed0fe",
"primary-fixed": "#c4e7ff"
},
"borderRadius": {
"DEFAULT": "0.125rem",
"lg": "0.25rem",
"xl": "0.5rem",
"full": "0.75rem"
},
"spacing": {
"margin-edge": "1rem",
"touch-target-min": "48px",
"stack-overlap": "2rem",
"gutter-card": "0.375rem",
"action-bar-height": "64px"
},
"fontFamily": {
"label-caps": ["JetBrains Mono"],
"hud-score": ["JetBrains Mono"],
"headline": ["JetBrains Mono"],
"card-rank": ["JetBrains Mono"],
"body-md": ["Inter"],
"hud-timer": ["JetBrains Mono"]
},
"fontSize": {
"label-caps": ["12px", {"lineHeight": "16px", "letterSpacing": "0.08em", "fontWeight": "500"}],
"hud-score": ["24px", {"lineHeight": "32px", "letterSpacing": "-0.02em", "fontWeight": "700"}],
"headline": ["28px", {"lineHeight": "32px", "letterSpacing": "-0.01em", "fontWeight": "700"}],
"card-rank": ["18px", {"lineHeight": "18px", "fontWeight": "700"}],
"body-md": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
"hud-timer": ["16px", {"lineHeight": "24px", "fontWeight": "400"}]
}
},
},
}
</script>
<style>
body { background-color: #151515; color: #d0d0d0; }
.material-symbols-outlined {
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.scanline {
background: linear-gradient(to bottom, rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%);
background-size: 100% 4px;
}
</style>
<style>
body {
min-height: max(884px, 100dvh);
}
</style>
</head>
<body class="flex items-center justify-center min-h-screen">
<!-- Mobile Container (390x844) -->
<div class="w-[390px] h-[844px] bg-surface relative flex flex-col overflow-hidden border border-outline-variant">
<!-- STATUS BAR -->
<header class="h-8 bg-surface-container flex items-center justify-between px-4 z-10">
<span class="font-headline text-[12px] tracking-tight text-primary">▌time-attack.tsx</span>
<span class="font-label-caps text-[10px] text-on-surface-variant">MODE · TIMED</span>
</header>
<!-- TOP APP BAR (from JSON) -->
<nav class="flex justify-between items-center w-full px-margin-edge h-action-bar-height max-w-full bg-surface text-primary font-headline text-headline font-bold border-b border-outline-variant">
<div class="font-headline text-headline text-primary tracking-tighter uppercase">▌RS_TERMINAL_OS</div>
<div class="flex gap-4">
<span class="material-symbols-outlined cursor-pointer hover:text-primary-fixed transition-colors duration-120">account_circle</span>
<span class="material-symbols-outlined cursor-pointer hover:text-primary-fixed transition-colors duration-120">sync</span>
<span class="material-symbols-outlined cursor-pointer hover:text-primary-fixed transition-colors duration-120">settings</span>
</div>
</nav>
<!-- MAIN CONTENT -->
<main class="flex-1 px-4 py-4 flex flex-col gap-4 overflow-y-auto">
<!-- HERO BAND -->
<section class="flex flex-col items-center justify-center h-[100px] text-center">
<h1 class="font-headline text-[32px] font-bold tracking-tighter text-on-surface uppercase">TIME ATTACK</h1>
<p class="font-body-md text-[12px] text-on-surface-variant max-w-[280px]">Race the clock. The faster you finish, the higher your score.</p>
</section>
<!-- TIMER DISPLAY -->
<section class="w-full h-[120px] bg-surface-dim border border-outline-variant flex flex-col items-center justify-center relative overflow-hidden">
<div class="absolute inset-0 scanline opacity-10 pointer-events-none"></div>
<div class="font-headline text-[64px] font-bold tracking-tight text-primary tabular-nums leading-none">05:00</div>
<div class="font-label-caps text-[11px] uppercase tracking-[0.2em] text-on-surface-variant mt-2">MINUTES</div>
</section>
<!-- DURATION PICKER -->
<section class="grid grid-cols-4 gap-px bg-outline-variant border border-outline-variant">
<button class="h-12 bg-surface-container font-label-caps text-[12px] text-on-surface hover:bg-surface-bright transition-all">1 MIN</button>
<button class="h-12 bg-surface-container font-label-caps text-[12px] text-on-surface hover:bg-surface-bright transition-all">3 MIN</button>
<button class="h-12 bg-primary text-on-primary font-bold font-label-caps text-[12px]">5 MIN</button>
<button class="h-12 bg-surface-container font-label-caps text-[12px] text-on-surface hover:bg-surface-bright transition-all">10 MIN</button>
</section>
<!-- RULES CARD -->
<section class="bg-surface-container h-20 p-3 border border-outline-variant flex flex-col justify-between">
<div class="font-label-caps text-[10px] text-on-surface-variant uppercase tracking-widest">RULES</div>
<div class="font-headline text-[12px] text-on-surface flex items-center gap-2">
<span class="w-1 h-1 bg-primary"></span> DRAW-3
<span class="w-1 h-1 bg-primary ml-2"></span> NO HINT PENALTY
<span class="w-1 h-1 bg-primary ml-2"></span> +50 XP / WIN
</div>
</section>
<!-- BEST RUN CARD -->
<section class="bg-surface-container h-16 p-3 border border-outline-variant flex items-center justify-between">
<div class="flex flex-col">
<div class="font-label-caps text-[10px] text-on-surface-variant uppercase tracking-widest">PERSONAL BEST · 5 MIN</div>
<div class="font-headline text-[24px] font-bold text-on-surface leading-tight">02:47 <span class="text-[12px] font-normal text-on-surface-variant">WIN</span></div>
</div>
<div class="flex flex-col items-end">
<div class="font-label-caps text-[10px] text-on-surface-variant">GLOBAL RANK 142</div>
<div class="bg-warning text-on-surface text-[9px] px-1.5 py-0.5 font-bold mt-1">TOP 5%</div>
</div>
</section>
<!-- PRIMARY CTA -->
<section class="mt-auto pt-4">
<button class="w-full h-20 bg-primary text-on-primary flex flex-col items-center justify-center transition-all active:scale-[0.98] duration-80">
<div class="font-headline text-[18px] font-extrabold uppercase tracking-[0.2em] flex items-center gap-2">
<span class="material-symbols-outlined" style="font-variation-settings: 'FILL' 1;">play_arrow</span> BEGIN COUNTDOWN
</div>
</button>
<p class="font-body-md text-[11px] text-on-surface-variant text-center mt-3">Game starts after a 3-second countdown.</p>
</section>
</main>
<!-- FOOTER -->
<footer class="h-6 bg-surface-container-lowest flex items-center justify-between px-4 border-t border-outline-variant">
<span class="font-headline text-[10px] text-on-surface-variant">▌ NORMAL │ time-attack</span>
<span class="font-label-caps text-[9px] text-on-surface-variant uppercase">[ENTER] begin · [ESC] back</span>
</footer>
<!-- BOTTOM NAV BAR (from JSON) -->
<nav class="fixed bottom-0 w-[390px] z-50 flex justify-around items-center h-action-bar-height px-margin-edge bg-surface-container border-t border-outline-variant">
<div class="flex flex-col items-center justify-center text-primary bg-surface-container-highest rounded-none p-2 transition-transform duration-80 active:scale-95">
<span class="material-symbols-outlined text-primary" style="font-variation-settings: 'FILL' 1;">videogame_asset</span>
<span class="font-label-caps text-label-caps uppercase tracking-widest">F1_NEW_GAME</span>
</div>
<div class="flex flex-col items-center justify-center text-on-surface-variant p-2 hover:bg-surface-bright transition-all duration-120">
<span class="material-symbols-outlined">event_upcoming</span>
<span class="font-label-caps text-label-caps uppercase tracking-widest">F2_CHALLENGE</span>
</div>
<div class="flex flex-col items-center justify-center text-on-surface-variant p-2 hover:bg-surface-bright transition-all duration-120">
<span class="material-symbols-outlined">query_stats</span>
<span class="font-label-caps text-label-caps uppercase tracking-widest">F5_STATS</span>
</div>
<div class="flex flex-col items-center justify-center text-on-surface-variant p-2 hover:bg-surface-bright transition-all duration-120">
<span class="material-symbols-outlined">power_settings_new</span>
<span class="font-label-caps text-label-caps uppercase tracking-widest">ESC_EXIT</span>
</div>
</nav>
<!-- PADDING FOR FIXED NAV -->
<div class="h-action-bar-height"></div>
</div>
</body></html>