diff --git a/CONVENTIONS.md b/CONVENTIONS.md index c45311b..6d516db 100644 --- a/CONVENTIONS.md +++ b/CONVENTIONS.md @@ -13,9 +13,10 @@ README. is and unread talk), *your reports to the keeper*, and *about this game — a labor of love*, which opens the about panel: a dialog of tabs (The game, The tally, More games, Send word; a game may add its own, as Dip's - Playing here), `About.svelte`, with each game's words in its hall. Its - strip is `Tabs.svelte`, which also serves a long reading page such as the - guide or the rules, where `address` lets a #fragment open a tab. + Playing here), `TabbedDialog.svelte`, with each game's words in its hall. + The address names the dialog (`#about`, `#about/tally`), so a plain link + opens it; a game may put its guide and rules in dialogs the same way, as + Dip does. Its strip of tabs is `Tabs.svelte`. - **A table** is a room. Its code is four letters or digits from an alphabet with no look-alikes, and its link is `/join/CODE`. The masthead button reads *invite friends · room CODE* and copies the link. Whoever opened diff --git a/template/src/lib/components/About.svelte b/template/src/lib/components/About.svelte deleted file mode 100644 index d706126..0000000 --- a/template/src/lib/components/About.svelte +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - -{#if open} - -{/if} - - diff --git a/template/src/lib/components/Hall.svelte b/template/src/lib/components/Hall.svelte index f8dc5ca..5ccf828 100644 --- a/template/src/lib/components/Hall.svelte +++ b/template/src/lib/components/Hall.svelte @@ -4,7 +4,7 @@ // about panel with the rules, the guide and a way to reach the keeper. import { goto } from '$app/navigation'; import { loadFamily, type FamilyGame } from '$lib/family'; - import About from './About.svelte'; + import TabbedDialog from './TabbedDialog.svelte'; import TallyBoard from './Tally.svelte'; import Preferences from './Preferences.svelte'; import { prefs, setPref } from '$lib/prefs.svelte'; @@ -27,9 +27,6 @@ let seats = $state(allSeats()); let games = $state | null>>({}); let aboutOpen = $state(false); - $effect(() => { - if (location.hash === '#about') aboutOpen = true; - }); /** The ledgers' tally, fetched when the about panel opens. */ let tally = $state(null); $effect(() => { @@ -195,7 +192,7 @@

__NAME__

One line that says what the game is.

Two or three sentences for someone who has never heard of it: what you do on a turn, what makes it fun, and that it is free to play here against the bot or with friends.

- + @@ -325,7 +322,18 @@

A rule read wrong, a bug, a game you would like to tell of: write to eric@ericwagoner.com, @kestrelsnest.social on Bluesky, or @eric@toots.kestrelsnest.social on Mastodon. The keeper of this hall roosts at kestrelsnest.social.

{/snippet} - +