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>
315 lines
15 KiB
HTML
315 lines
15 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 - Leaderboard</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&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"/>
|
|
<style>
|
|
body {
|
|
background-color: #151515;
|
|
color: #e0e3e6;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
.material-symbols-outlined {
|
|
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
vertical-align: middle;
|
|
}
|
|
.scanline-overlay {
|
|
background: linear-gradient(to bottom, rgba(21, 21, 21, 0) 50%, rgba(26, 26, 26, 0.2) 50%);
|
|
background-size: 100% 4px;
|
|
pointer-events: none;
|
|
}
|
|
.terminal-glow {
|
|
box-shadow: 0 0 10px rgba(111, 194, 239, 0.1);
|
|
}
|
|
</style>
|
|
<script id="tailwind-config">
|
|
tailwind.config = {
|
|
darkMode: "class",
|
|
theme: {
|
|
extend: {
|
|
"colors": {
|
|
"outline": "#505050",
|
|
"on-surface-variant": "#bfc8cf",
|
|
"secondary-container": "#435401",
|
|
"surface-container-lowest": "#0b0f11",
|
|
"primary": "#a1dcff",
|
|
"secondary-fixed": "#d5ec8c",
|
|
"on-secondary-fixed": "#161e00",
|
|
"on-error": "#690005",
|
|
"inverse-primary": "#00668a",
|
|
"surface-container": "#202020",
|
|
"highlight-valid": "#acc267",
|
|
"suit-black": "#d0d0d0",
|
|
"on-secondary-fixed-variant": "#3c4d00",
|
|
"on-primary-fixed": "#001e2c",
|
|
"on-tertiary-fixed-variant": "#653173",
|
|
"primary-fixed": "#c4e7ff",
|
|
"inverse-on-surface": "#2d3134",
|
|
"secondary-fixed-dim": "#bad073",
|
|
"on-secondary": "#293500",
|
|
"on-surface": "#e0e3e6",
|
|
"on-tertiary-container": "#683476",
|
|
"secondary": "#bad073",
|
|
"surface-bright": "#363a3d",
|
|
"tertiary-container": "#e1a3ee",
|
|
"surface-variant": "#313538",
|
|
"suit-red": "#fb9fb1",
|
|
"primary-fixed-dim": "#7ed0fe",
|
|
"surface-container-low": "#181c1f",
|
|
"surface": "#151515",
|
|
"suit-red-cb": "#6fc2ef",
|
|
"on-primary": "#003549",
|
|
"primary-container": "#6fc2ef",
|
|
"on-background": "#e0e3e6",
|
|
"tertiary": "#f7c3ff",
|
|
"surface-container-highest": "#313538",
|
|
"tertiary-fixed-dim": "#f0b0fc",
|
|
"tertiary-fixed": "#fbd7ff",
|
|
"info": "#12cfc0",
|
|
"error": "#fb9fb1",
|
|
"warning": "#ddb26f",
|
|
"on-primary-container": "#004f6c",
|
|
"surface-container-high": "#272a2d",
|
|
"inverse-surface": "#e0e3e6",
|
|
"error-container": "#93000a",
|
|
"on-tertiary-fixed": "#340043",
|
|
"surface-tint": "#7ed0fe",
|
|
"on-tertiary": "#4c195b",
|
|
"background": "#101417",
|
|
"on-error-container": "#ffdad6",
|
|
"on-secondary-container": "#b2c86d",
|
|
"outline-variant": "#3f484e",
|
|
"highlight-celebration": "#e1a3ee",
|
|
"surface-dim": "#101417",
|
|
"on-primary-fixed-variant": "#004c69"
|
|
},
|
|
"borderRadius": {
|
|
"DEFAULT": "0.125rem",
|
|
"lg": "0.25rem",
|
|
"xl": "0.5rem",
|
|
"full": "0.75rem"
|
|
},
|
|
"spacing": {
|
|
"touch-target-min": "48px",
|
|
"action-bar-height": "64px",
|
|
"stack-overlap": "2rem",
|
|
"gutter-card": "0.375rem",
|
|
"margin-edge": "1rem"
|
|
},
|
|
"fontFamily": {
|
|
"card-rank": ["JetBrains Mono"],
|
|
"body-md": ["Inter"],
|
|
"headline": ["JetBrains Mono"],
|
|
"label-caps": ["JetBrains Mono"],
|
|
"hud-timer": ["JetBrains Mono"],
|
|
"hud-score": ["JetBrains Mono"]
|
|
},
|
|
"fontSize": {
|
|
"card-rank": ["18px", {"lineHeight": "18px", "fontWeight": "700"}],
|
|
"body-md": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
|
|
"headline": ["28px", {"lineHeight": "32px", "letterSpacing": "-0.01em", "fontWeight": "700"}],
|
|
"label-caps": ["12px", {"lineHeight": "16px", "letterSpacing": "0.08em", "fontWeight": "500"}],
|
|
"hud-timer": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
|
|
"hud-score": ["24px", {"lineHeight": "32px", "letterSpacing": "-0.02em", "fontWeight": "700"}]
|
|
}
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style>
|
|
body {
|
|
min-height: max(884px, 100dvh);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="font-body-md overflow-hidden h-[844px] w-[390px] mx-auto relative border-x border-outline/20">
|
|
<div class="scanline-overlay absolute inset-0 z-0"></div>
|
|
<!-- Top AppBar (Identity Anchor) -->
|
|
<header class="fixed top-0 w-full h-action-bar-height z-50 flex items-center px-margin-edge justify-between bg-surface dark:bg-surface text-primary dark:text-primary border-b border-outline dark:border-outline">
|
|
<div class="flex items-center gap-2">
|
|
<span class="material-symbols-outlined text-primary">terminal</span>
|
|
<h1 class="font-headline text-headline text-primary dark:text-primary uppercase tracking-tighter">Rusty Solitaire</h1>
|
|
</div>
|
|
<div class="flex items-center gap-4">
|
|
<span class="material-symbols-outlined text-on-surface-variant hover:bg-surface-variant transition-colors duration-120 p-2 rounded-lg cursor-pointer">sync</span>
|
|
</div>
|
|
</header>
|
|
<main class="pt-[64px] h-[calc(100%-64px)] flex flex-col z-10 relative">
|
|
<!-- Pseudo Status Bar -->
|
|
<div class="h-[32px] bg-surface-container flex items-center justify-between px-4 font-label-caps text-[10px] tracking-tight">
|
|
<div class="text-[#a0a0a0]">▌leaderboard.tsx</div>
|
|
<div class="flex items-center gap-2">
|
|
<span class="flex items-center gap-1">
|
|
<span class="w-1.5 h-1.5 rounded-full bg-info"></span>
|
|
<span class="text-on-surface-variant">SYNCED</span>
|
|
</span>
|
|
<span class="text-outline">v0.20.0</span>
|
|
</div>
|
|
</div>
|
|
<!-- Tab Strip -->
|
|
<nav class="h-[40px] bg-[#1a1a1a] border-b border-[#353535] flex items-center">
|
|
<div class="flex-1 flex flex-col items-center justify-center relative">
|
|
<span class="font-label-caps text-[11px] text-[#6fc2ef]">[ TODAY ]</span>
|
|
<div class="absolute bottom-0 w-full h-[2px] bg-[#6fc2ef]"></div>
|
|
</div>
|
|
<div class="flex-1 flex items-center justify-center">
|
|
<span class="font-label-caps text-[11px] text-[#a0a0a0]">WEEK</span>
|
|
</div>
|
|
<div class="flex-1 flex items-center justify-center">
|
|
<span class="font-label-caps text-[11px] text-[#a0a0a0]">ALL-TIME</span>
|
|
</div>
|
|
<div class="flex-1 flex items-center justify-center">
|
|
<span class="font-label-caps text-[11px] text-[#a0a0a0]">FRIENDS</span>
|
|
</div>
|
|
</nav>
|
|
<div class="flex-1 overflow-y-auto px-margin-edge pt-4 space-y-4 pb-[88px]">
|
|
<!-- Hero Podium Card -->
|
|
<section class="h-[120px] bg-surface-container border border-[#353535] rounded-lg p-2 flex flex-col justify-between">
|
|
<div class="font-label-caps text-[10px] text-[#a0a0a0]">TOP 3 · TODAY</div>
|
|
<div class="flex gap-2 items-end justify-between flex-1 mt-1">
|
|
<!-- 2nd -->
|
|
<div class="flex-1 border border-[#a0a0a0] h-full rounded flex flex-col items-center justify-center relative py-1">
|
|
<span class="font-card-rank text-[16px] text-[#a0a0a0]">02</span>
|
|
<span class="text-[9px] font-mono text-[#d0d0d0] truncate w-full text-center px-1">base16_fan</span>
|
|
<span class="text-[10px] font-mono text-[#a0a0a0]">03:12</span>
|
|
</div>
|
|
<!-- 1st -->
|
|
<div class="flex-[1.2] border border-warning h-[110%] mb-[-2px] rounded-lg bg-surface flex flex-col items-center justify-center relative py-1 terminal-glow">
|
|
<span class="absolute top-1 right-1 text-warning material-symbols-outlined text-[14px]">star</span>
|
|
<span class="font-card-rank text-[24px] text-warning leading-none">01</span>
|
|
<span class="text-[11px] font-mono text-[#d0d0d0] font-bold truncate w-full text-center px-1">swift_jaguar</span>
|
|
<span class="text-[12px] font-mono text-[#d0d0d0]">02:47</span>
|
|
</div>
|
|
<!-- 3rd -->
|
|
<div class="flex-1 border border-[#7a5d3b] h-full rounded flex flex-col items-center justify-center relative py-1">
|
|
<span class="font-card-rank text-[16px] text-[#7a5d3b]">03</span>
|
|
<span class="text-[9px] font-mono text-[#d0d0d0] truncate w-full text-center px-1">cli_player</span>
|
|
<span class="text-[10px] font-mono text-[#a0a0a0]">03:54</span>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!-- Search/Filter Row -->
|
|
<div class="flex items-center gap-2 h-[40px]">
|
|
<div class="px-3 h-8 border border-outline rounded flex items-center justify-center bg-surface-container-low">
|
|
<span class="font-label-caps text-[10px] text-[#6fc2ef]">[ ALL TIMES ]</span>
|
|
</div>
|
|
<div class="flex-1 h-8 border border-outline rounded flex items-center px-2 bg-surface gap-2">
|
|
<span class="font-mono text-[12px] text-outline">/ search players</span>
|
|
</div>
|
|
</div>
|
|
<!-- Leaderboard List -->
|
|
<div class="space-y-0.5 font-mono text-[12px]">
|
|
<!-- Header -->
|
|
<div class="flex justify-between px-2 pb-1 border-b border-outline/20 text-outline text-[10px] uppercase font-bold tracking-widest">
|
|
<span>Rank & User</span>
|
|
<span>Time</span>
|
|
</div>
|
|
<!-- Rank 04 -->
|
|
<div class="flex items-center justify-between px-2 py-2 border-b border-[#353535]">
|
|
<div class="flex gap-4">
|
|
<span class="text-[#a0a0a0] w-8">004</span>
|
|
<span class="text-on-surface">tablejockey</span>
|
|
</div>
|
|
<span class="text-[#a0a0a0]">04:01</span>
|
|
</div>
|
|
<!-- Rank 05 -->
|
|
<div class="flex items-center justify-between px-2 py-2 border-b border-[#353535]">
|
|
<div class="flex gap-4">
|
|
<span class="text-[#a0a0a0] w-8">005</span>
|
|
<span class="text-on-surface">vim_motions</span>
|
|
</div>
|
|
<span class="text-[#a0a0a0]">04:05</span>
|
|
</div>
|
|
<!-- Rank 06 -->
|
|
<div class="flex items-center justify-between px-2 py-2 border-b border-[#353535]">
|
|
<div class="flex gap-4">
|
|
<span class="text-[#a0a0a0] w-8">006</span>
|
|
<span class="text-on-surface">tmux_lover</span>
|
|
</div>
|
|
<span class="text-[#a0a0a0]">04:18</span>
|
|
</div>
|
|
<!-- Rank 07 -->
|
|
<div class="flex items-center justify-between px-2 py-2 border-b border-[#353535]">
|
|
<div class="flex gap-4">
|
|
<span class="text-[#a0a0a0] w-8">007</span>
|
|
<span class="text-on-surface">nvim_dotfiles</span>
|
|
</div>
|
|
<span class="text-[#a0a0a0]">04:23</span>
|
|
</div>
|
|
<!-- Rank 08 -->
|
|
<div class="flex items-center justify-between px-2 py-2 border-b border-[#353535]">
|
|
<div class="flex gap-4">
|
|
<span class="text-[#a0a0a0] w-8">008</span>
|
|
<span class="text-on-surface">dark_theme</span>
|
|
</div>
|
|
<span class="text-[#a0a0a0]">04:31</span>
|
|
</div>
|
|
<!-- Spacer for truncated view -->
|
|
<div class="flex justify-center py-2 text-outline/30 tracking-[1em]">...</div>
|
|
<!-- YOU (Rank 17) -->
|
|
<div class="flex items-center justify-between px-2 py-2 bg-[#1f3a4a]/30 border border-[#6fc2ef]/40 rounded-sm">
|
|
<div class="flex gap-4">
|
|
<span class="text-[#6fc2ef] w-8 font-bold">▶ 017</span>
|
|
<span class="text-[#6fc2ef] font-bold">anonymous (YOU)</span>
|
|
</div>
|
|
<span class="text-[#6fc2ef] font-bold">04:12</span>
|
|
</div>
|
|
<!-- Rank 18 -->
|
|
<div class="flex items-center justify-between px-2 py-2 border-b border-[#353535]">
|
|
<div class="flex gap-4">
|
|
<span class="text-[#a0a0a0] w-8">018</span>
|
|
<span class="text-on-surface">bash_brawler</span>
|
|
</div>
|
|
<span class="text-[#a0a0a0]">05:01</span>
|
|
</div>
|
|
<!-- Rank 19 -->
|
|
<div class="flex items-center justify-between px-2 py-2 border-b border-[#353535]">
|
|
<div class="flex gap-4">
|
|
<span class="text-[#a0a0a0] w-8">019</span>
|
|
<span class="text-on-surface">curl_master</span>
|
|
</div>
|
|
<span class="text-[#a0a0a0]">05:14</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- CLI Style Footer -->
|
|
<footer class="fixed bottom-0 w-full h-[24px] bg-[#202020] border-t border-[#353535] px-2 flex items-center justify-between font-mono text-[9px] z-50">
|
|
<div class="text-[#a0a0a0]">
|
|
<span class="text-info font-bold">▌</span> NORMAL │ leaderboard
|
|
</div>
|
|
<div class="text-[#a0a0a0] flex gap-3">
|
|
<span>[1-4] tab</span>
|
|
<span>[/] search</span>
|
|
<span>[ESC] back</span>
|
|
</div>
|
|
</footer>
|
|
<!-- Shared Component: BottomNavBar -->
|
|
<nav class="fixed bottom-[24px] w-full h-action-bar-height z-50 flex justify-around items-center bg-surface-container dark:bg-surface-container border-t border-outline dark:border-outline">
|
|
<button class="flex flex-col items-center justify-center text-on-surface-variant dark:text-on-surface-variant p-2 hover:text-primary dark:hover:text-primary transition-all duration-120 ease-linear active:bg-surface-container-highest">
|
|
<span class="material-symbols-outlined">playing_cards</span>
|
|
<span class="font-label-caps text-label-caps">DEAL [F1]</span>
|
|
</button>
|
|
<button class="flex flex-col items-center justify-center text-on-surface-variant dark:text-on-surface-variant p-2 hover:text-primary dark:hover:text-primary transition-all duration-120 ease-linear active:bg-surface-container-highest">
|
|
<span class="material-symbols-outlined">undo</span>
|
|
<span class="font-label-caps text-label-caps">UNDO [Z]</span>
|
|
</button>
|
|
<button class="flex flex-col items-center justify-center text-on-surface-variant dark:text-on-surface-variant p-2 hover:text-primary dark:hover:text-primary transition-all duration-120 ease-linear active:bg-surface-container-highest">
|
|
<span class="material-symbols-outlined">lightbulb</span>
|
|
<span class="font-label-caps text-label-caps">HINT [H]</span>
|
|
</button>
|
|
<button class="flex flex-col items-center justify-center bg-primary-container dark:bg-primary-container text-on-primary-container dark:text-on-primary-container rounded-none p-2 transition-all duration-120 ease-linear active:bg-surface-container-highest">
|
|
<span class="material-symbols-outlined">analytics</span>
|
|
<span class="font-label-caps text-label-caps">STATS [S]</span>
|
|
</button>
|
|
<button class="flex flex-col items-center justify-center text-on-surface-variant dark:text-on-surface-variant p-2 hover:text-primary dark:hover:text-primary transition-all duration-120 ease-linear active:bg-surface-container-highest">
|
|
<span class="material-symbols-outlined">menu</span>
|
|
<span class="font-label-caps text-label-caps">MENU [ESC]</span>
|
|
</button>
|
|
</nav>
|
|
</main>
|
|
</body></html> |