A note under each table option while it is chosen, and the rules page offers the way back to the game it was opened from

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jm2auWk6RP71CjaAb4FMoG
This commit is contained in:
Eric WagonerandClaude Fable 5.1 committed 2026-09-23 18:48:57 -04:00
1 parent 7aa05536c2
commit de430c3794
4 files changed
+23 -9

No files matched your search

+5 -1
View File
@@ -2,6 +2,10 @@
// The rules page: the game's own text, structured for reading mid-game.
// Keep the original rules text verbatim in docs/ and render from it
// where you can, so the page and the engine follow one source.
import { page } from '$app/state';
/** Opened from a table, the page offers the way back to it. */
const room = $derived((page.url.searchParams.get('room') ?? '').toUpperCase());
</script>
<svelte:head>
@@ -10,7 +14,7 @@
<main class="rules">
<header>
<a class="back" href="/">Back to the hall</a> · <a class="back" href="/guide">How to play</a>
{#if room}<a class="back" href={`/join/${room}`}>Back to your game</a> · {/if}<a class="back" href="/">Back to the hall</a> · <a class="back" href="/guide">How to play</a>
<h1>The rules</h1>
<p class="lede">One paragraph on where these rules come from and which edition or text this page follows.</p>
</header>