fa7f98ac52
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 commits0d477acthrough9891ae4(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>
284 lines
14 KiB
HTML
284 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"/>
|
|
<title>Solitaire Replay Overlay</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&family=Inter:wght@400;500&family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet"/>
|
|
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet"/>
|
|
<script id="tailwind-config">
|
|
tailwind.config = {
|
|
darkMode: "class",
|
|
theme: {
|
|
extend: {
|
|
"colors": {
|
|
"on-background": "#e0e3e6",
|
|
"suit-red-cb": "#6fc2ef",
|
|
"surface-container": "#202020",
|
|
"primary": "#a1dcff",
|
|
"tertiary-fixed-dim": "#f0b0fc",
|
|
"on-tertiary-fixed-variant": "#653173",
|
|
"surface-tint": "#7ed0fe",
|
|
"outline": "#505050",
|
|
"suit-black": "#d0d0d0",
|
|
"secondary": "#bad073",
|
|
"on-surface": "#d0d0d0",
|
|
"on-primary": "#003549",
|
|
"on-error-container": "#ffdad6",
|
|
"on-secondary-fixed-variant": "#3c4d00",
|
|
"surface-bright": "#363a3d",
|
|
"surface-variant": "#313538",
|
|
"secondary-container": "#435401",
|
|
"surface-container-highest": "#313538",
|
|
"surface-container-low": "#181c1f",
|
|
"primary-container": "#6fc2ef",
|
|
"on-error": "#690005",
|
|
"primary-fixed-dim": "#7ed0fe",
|
|
"tertiary-container": "#e1a3ee",
|
|
"on-tertiary-container": "#683476",
|
|
"suit-red": "#fb9fb1",
|
|
"highlight-celebration": "#e1a3ee",
|
|
"on-primary-fixed-variant": "#004c69",
|
|
"secondary-fixed": "#d5ec8c",
|
|
"primary-fixed": "#c4e7ff",
|
|
"on-primary-container": "#004f6c",
|
|
"secondary-fixed-dim": "#bad073",
|
|
"warning": "#ddb26f",
|
|
"on-secondary": "#293500",
|
|
"info": "#12cfc0",
|
|
"on-tertiary-fixed": "#340043",
|
|
"background": "#101417",
|
|
"surface-container-high": "#272a2d",
|
|
"surface-dim": "#101417",
|
|
"surface": "#151515",
|
|
"inverse-surface": "#e0e3e6",
|
|
"on-surface-variant": "#bfc8cf",
|
|
"error-container": "#93000a",
|
|
"tertiary": "#f7c3ff",
|
|
"inverse-primary": "#00668a",
|
|
"surface-container-lowest": "#0b0f11",
|
|
"inverse-on-surface": "#2d3134",
|
|
"on-primary-fixed": "#001e2c",
|
|
"highlight-valid": "#acc267",
|
|
"outline-variant": "#3f484e",
|
|
"tertiary-fixed": "#fbd7ff",
|
|
"on-secondary-fixed": "#161e00",
|
|
"error": "#fb9fb1",
|
|
"on-tertiary": "#4c195b",
|
|
"on-secondary-container": "#b2c86d"
|
|
},
|
|
"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"],
|
|
"body-md": ["Inter"],
|
|
"label-caps": ["JetBrains Mono"],
|
|
"hud-score": ["JetBrains Mono"],
|
|
"headline": ["JetBrains Mono"],
|
|
"card-rank": ["JetBrains Mono"]
|
|
},
|
|
"fontSize": {
|
|
"hud-timer": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
|
|
"body-md": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
|
|
"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"}]
|
|
}
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style>
|
|
.material-symbols-outlined {
|
|
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
}
|
|
.card-back-pattern {
|
|
background-color: #151515;
|
|
background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, #1a1a1a 2px, #1a1a1a 4px);
|
|
}
|
|
/* Custom mechanical transition style */
|
|
.mechanical-transition {
|
|
transition: all 120ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
</style>
|
|
<style>
|
|
body {
|
|
min-height: max(884px, 100dvh);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="bg-surface text-on-surface font-body-md select-none overflow-hidden flex flex-col h-[844px] w-[390px] mx-auto border-x border-outline-variant">
|
|
<!-- Status Bar -->
|
|
<header class="h-8 bg-surface-container flex items-center justify-between px-4 border-b border-outline-variant flex-shrink-0">
|
|
<div class="flex items-center gap-2">
|
|
<span class="text-primary font-headline text-[14px]">▌replay.tsx</span>
|
|
</div>
|
|
<div class="flex items-center text-on-surface-variant font-label-caps text-[10px] tracking-wider uppercase">
|
|
GAME #2024-127 · 87 MOVES
|
|
</div>
|
|
</header>
|
|
<!-- Game Peek Band (Tableau) -->
|
|
<main class="h-[240px] relative bg-background overflow-hidden border-b border-outline-variant">
|
|
<!-- 7-Column Tableau (Dimmed 50%) -->
|
|
<div class="absolute inset-0 opacity-50 flex justify-around p-2 gap-1">
|
|
<!-- Tableau Columns 1-7 -->
|
|
<div class="flex-1 flex flex-col items-center">
|
|
<div class="w-full aspect-[2/3] border border-dashed border-outline-variant mb-1"></div>
|
|
<div class="w-full aspect-[2/3] bg-surface-container-low border border-outline"></div>
|
|
</div>
|
|
<div class="flex-1 flex flex-col items-center">
|
|
<div class="w-full aspect-[2/3] bg-surface-container-low border border-outline"></div>
|
|
</div>
|
|
<div class="flex-1 flex flex-col items-center">
|
|
<div class="w-full aspect-[2/3] bg-surface-container-low border border-outline"></div>
|
|
</div>
|
|
<div class="flex-1 flex flex-col items-center">
|
|
<div class="w-full aspect-[2/3] bg-surface-container-low border border-outline"></div>
|
|
</div>
|
|
<div class="flex-1 flex flex-col items-center">
|
|
<div class="w-full aspect-[2/3] bg-surface-container-low border border-outline"></div>
|
|
</div>
|
|
<div class="flex-1 flex flex-col items-center">
|
|
<div class="w-full aspect-[2/3] bg-surface-container-low border border-outline"></div>
|
|
</div>
|
|
<div class="flex-1 flex flex-col items-center">
|
|
<div class="w-full aspect-[2/3] bg-surface-container-low border border-outline relative">
|
|
<!-- Central Focused Card (Move 47) -->
|
|
<div class="absolute inset-0 z-20 opacity-100">
|
|
<!-- Shadow-less highlight using glow outline -->
|
|
<div class="w-full h-full bg-[#1a1a1a] border border-suit-red-cb ring-2 ring-suit-red-cb/40 flex flex-col justify-between p-1">
|
|
<div class="flex flex-col">
|
|
<span class="font-card-rank text-card-rank text-suit-red-cb">4</span>
|
|
<span class="material-symbols-outlined text-[14px] text-suit-red-cb" data-icon="diamond">diamond</span>
|
|
</div>
|
|
<div class="self-end rotate-180 flex flex-col">
|
|
<span class="font-card-rank text-card-rank text-suit-red-cb">4</span>
|
|
<span class="material-symbols-outlined text-[14px] text-suit-red-cb" data-icon="diamond">diamond</span>
|
|
</div>
|
|
</div>
|
|
<!-- Move Chip -->
|
|
<div class="absolute -top-6 left-1/2 -translate-x-1/2 bg-suit-red-cb px-2 py-0.5 rounded-sm">
|
|
<span class="text-surface font-label-caps text-[9px] font-bold">MOVE 47/87</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<!-- Playback Toolbar -->
|
|
<div class="h-16 bg-surface-container flex items-center justify-between px-4 border-b border-outline-variant">
|
|
<!-- Left: Timer -->
|
|
<div class="flex flex-col">
|
|
<span class="text-on-surface font-hud-timer text-[18px] font-bold leading-none">00:42</span>
|
|
<span class="text-[11px] text-[#a0a0a0] font-label-caps tracking-tighter">/ 02:18</span>
|
|
</div>
|
|
<!-- Center: Controls -->
|
|
<div class="flex items-center gap-4">
|
|
<button class="material-symbols-outlined text-on-surface-variant hover:text-primary mechanical-transition" data-icon="skip_previous">skip_previous</button>
|
|
<button class="material-symbols-outlined text-on-surface-variant hover:text-primary mechanical-transition" data-icon="arrow_left">arrow_left</button>
|
|
<button class="material-symbols-outlined text-suit-red-cb text-[32px] mechanical-transition" data-icon="play_arrow">play_arrow</button>
|
|
<button class="material-symbols-outlined text-on-surface-variant hover:text-primary mechanical-transition" data-icon="arrow_right">arrow_right</button>
|
|
<button class="material-symbols-outlined text-on-surface-variant hover:text-primary mechanical-transition" data-icon="skip_next">skip_next</button>
|
|
</div>
|
|
<!-- Right: Speed -->
|
|
<div class="flex items-center bg-surface-variant border border-outline px-2 py-1 gap-1">
|
|
<span class="font-label-caps text-[14px] font-bold text-on-surface">1.0x</span>
|
|
<span class="material-symbols-outlined text-[16px] text-on-surface-variant" data-icon="unfold_more">unfold_more</span>
|
|
</div>
|
|
</div>
|
|
<!-- Scrub Bar Area -->
|
|
<div class="px-margin-edge pt-6 pb-8 bg-surface-container-low border-b border-outline-variant">
|
|
<div class="relative w-full h-1 bg-outline rounded-full">
|
|
<!-- Cyan Progress Track -->
|
|
<div class="absolute left-0 top-0 h-full bg-suit-red-cb" style="width: 54%;"></div>
|
|
<!-- Notches & Labels -->
|
|
<div class="absolute inset-0 flex justify-between">
|
|
<div class="relative">
|
|
<div class="w-[1px] h-3 bg-outline -mt-1"></div>
|
|
<span class="absolute -bottom-5 left-1/2 -translate-x-1/2 text-[9px] font-label-caps text-outline">0%</span>
|
|
</div>
|
|
<div class="relative">
|
|
<div class="w-[1px] h-3 bg-outline -mt-1"></div>
|
|
<span class="absolute -bottom-5 left-1/2 -translate-x-1/2 text-[9px] font-label-caps text-outline">25%</span>
|
|
</div>
|
|
<div class="relative">
|
|
<div class="w-[1px] h-3 bg-outline -mt-1"></div>
|
|
<span class="absolute -bottom-5 left-1/2 -translate-x-1/2 text-[9px] font-label-caps text-outline">50%</span>
|
|
</div>
|
|
<div class="relative">
|
|
<div class="w-[1px] h-3 bg-outline -mt-1"></div>
|
|
<span class="absolute -bottom-5 left-1/2 -translate-x-1/2 text-[9px] font-label-caps text-outline">75%</span>
|
|
</div>
|
|
<div class="relative">
|
|
<div class="w-[1px] h-3 bg-outline -mt-1"></div>
|
|
<span class="absolute -bottom-5 left-1/2 -translate-x-1/2 text-[9px] font-label-caps text-outline">100%</span>
|
|
</div>
|
|
</div>
|
|
<!-- Current Marker (54%) -->
|
|
<div class="absolute top-1/2 -translate-y-1/2 w-3 h-3 bg-suit-red-cb border border-surface" style="left: 54%;"></div>
|
|
<div class="absolute -top-4 left-[54%] -translate-x-1/2 text-[10px] text-suit-red-cb font-label-caps font-bold">47/87</div>
|
|
<!-- Win Marker (72%) -->
|
|
<div class="absolute top-0 w-[2px] h-3 bg-highlight-valid -translate-y-1" style="left: 72%;"></div>
|
|
<div class="absolute -bottom-5 left-[72%] -translate-x-1/2 text-[8px] text-highlight-valid font-label-caps font-bold whitespace-nowrap">WIN MOVE</div>
|
|
</div>
|
|
</div>
|
|
<!-- Move Log Card -->
|
|
<section class="flex-1 bg-surface-container p-4 overflow-y-auto">
|
|
<h3 class="font-label-caps text-label-caps text-on-surface-variant mb-4 flex items-center gap-2">
|
|
<span class="w-1.5 h-3 bg-primary block"></span>
|
|
MOVE LOG · 47/87
|
|
</h3>
|
|
<div class="flex flex-col font-label-caps text-[12px]">
|
|
<!-- Log Rows -->
|
|
<div class="flex items-center h-6 px-2 text-[#a0a0a0] border-b border-outline-variant/30">
|
|
<span class="w-8">44 |</span>
|
|
<span>5♥ → tableau col 3</span>
|
|
</div>
|
|
<div class="flex items-center h-6 px-2 text-[#a0a0a0] border-b border-outline-variant/30">
|
|
<span class="w-8">45 |</span>
|
|
<span>8♣ → tableau col 1</span>
|
|
</div>
|
|
<div class="flex items-center h-6 px-2 text-[#a0a0a0] border-b border-outline-variant/30">
|
|
<span class="w-8">46 |</span>
|
|
<span>stock cycle</span>
|
|
</div>
|
|
<!-- Highlighted Active Move -->
|
|
<div class="flex items-center h-6 px-2 bg-suit-red-cb text-surface-container font-bold">
|
|
<span class="w-8">▶ 47 |</span>
|
|
<span>4♦ → 5♣ on col 7</span>
|
|
</div>
|
|
<div class="flex items-center h-6 px-2 text-on-surface border-b border-outline-variant/30">
|
|
<span class="w-8">48 |</span>
|
|
<span class="material-symbols-outlined text-[14px] align-middle mr-1" data-icon="foundation">foundation</span> A♠ → foundation
|
|
</div>
|
|
<div class="flex items-center h-6 px-2 text-on-surface border-b border-outline-variant/30">
|
|
<span class="w-8">49 |</span>
|
|
<span class="material-symbols-outlined text-[14px] align-middle mr-1" data-icon="foundation">foundation</span> 2♠ → foundation
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!-- Footer -->
|
|
<footer class="h-6 bg-surface-container flex items-center justify-between px-4 border-t border-outline-variant flex-shrink-0 text-[10px] font-label-caps tracking-wider">
|
|
<div class="text-on-surface-variant">
|
|
<span class="text-primary">▌</span> NORMAL │ replay
|
|
</div>
|
|
<div class="text-on-surface-variant opacity-70">
|
|
[SPACE] play · [← →] scrub · [ESC]
|
|
</div>
|
|
</footer>
|
|
<!-- Overlay Background (For visualization of depth) -->
|
|
<div class="fixed inset-0 pointer-events-none border-[16px] border-surface-dim/40 z-50"></div>
|
|
</body></html> |