Re-theme the app: token-based CSS and a full face lift
CSS refactor: every color, font, radius, and shadow is now defined once in theme.css; all other styles derive translucent variants with color-mix(), so re-theming means editing one file. Removed the duplicate core.css/style.css import chains, dead styles, and the Bootstrap/Tailwind orphan classes that were silently unstyled (the main reason the splash page looked broken). New "Lantern & Brine" look: brass and parchment on a lantern-lit ink-navy night, Pirata One wordmark with Alegreya SC/Sans body fonts (self-hosted via fontsource — they were previously referenced but never loaded), parchment-faced playing cards, and a rebuilt splash page. Inline color styles in components were replaced with semantic classes (prompt-box, notice-banner, status chips, etc.), the rulebook's embedded palette was updated to match, and the leftover Vite favicon and "frontend" page title were replaced. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -7,16 +7,16 @@
|
||||
$: crewDone = state.game.completed_crew_1 && state.game.completed_crew_2 && state.game.completed_crew_3;
|
||||
</script>
|
||||
|
||||
<div class="dashboard-container" style="max-width: 800px; margin: 0 auto; padding: 2rem;">
|
||||
<div class="card glass-panel" style="text-align: center; padding: 2rem;">
|
||||
<h1 style="font-family: var(--font-heading); color: var(--gold);">🎉 The Story Has Ended!</h1>
|
||||
<div class="gameover-container">
|
||||
<div class="card glass-panel gameover-card">
|
||||
<h1>🎉 The Story Has Ended!</h1>
|
||||
<p class="section-desc" style="font-size: 1.1rem;">
|
||||
The Pi-Rats of {state.game.crew_name || 'the crew'} party til they pass out in a pile.
|
||||
Tell one last tale of how your Pi-Rat is remembered!
|
||||
</p>
|
||||
|
||||
<div class="sheet-group" style="text-align: left; margin-top: 2rem;">
|
||||
<h3 style="color: var(--gold);">Crew Objectives</h3>
|
||||
<div class="sheet-group">
|
||||
<h3 class="text-accent">Crew Objectives</h3>
|
||||
<div class="objectives-checklist">
|
||||
<label class="checkbox-label"><input type="checkbox" checked={state.game.completed_crew_1} disabled> <span>Steal a Ship</span></label>
|
||||
<label class="checkbox-label"><input type="checkbox" checked={state.game.completed_crew_2} disabled> <span>Choose a Captain</span></label>
|
||||
@@ -29,16 +29,16 @@
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="sheet-group" style="text-align: left; margin-top: 1.5rem;">
|
||||
<h3 style="color: var(--gold);">The Crew</h3>
|
||||
<div class="sheet-group">
|
||||
<h3 class="text-accent">The Crew</h3>
|
||||
{#each pirats as p}
|
||||
<div style="background: rgba(0,0,0,0.2); padding: 0.75rem; border-radius: 6px; margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;">
|
||||
<div class="crew-epitaph-row">
|
||||
<span>
|
||||
{#if p.is_ghost}👻{:else if p.is_dead}💀{:else}🐀{/if}
|
||||
<strong>{displayName(p)}</strong> (Rank {p.rank})
|
||||
{#if p.id === state.game.captain_player_id}<span style="color: var(--gold);"> ⭐ Captain</span>{/if}
|
||||
{#if p.id === state.game.captain_player_id}<span class="text-accent"> ⭐ Captain</span>{/if}
|
||||
</span>
|
||||
<span style="font-size: 0.85rem; color: var(--text-muted);">
|
||||
<span class="objectives-summary">
|
||||
{p.completed_personal_1 ? '🔫 Gat' : '— no gat'} ·
|
||||
{p.completed_personal_2 ? '📛 Named' : '— nameless'} ·
|
||||
{p.completed_personal_3 ? '⚰️ Story complete' : '⛵ Still sailing'}
|
||||
|
||||
Reference in New Issue
Block a user