The masthead, the scrim, the quiet button and the colophon are styled once in app.css instead of pasted into each page and slip with drifting paddings; the style blocks of the play page and the board are indented like the rest of the files; and comments in script and CSS say what the code does or guards, in plain words, where they had been written in the game's own voice
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0141G6xqLeNRYEtviLWSB5Up
This commit is contained in:
1 parent
22979afd35
commit
42144c1cc9
19 files changed
+364
-481
No files matched your search
@@ -1,9 +1,9 @@
|
||||
<script lang="ts">
|
||||
// The host's announcement, shown by every game of Kestrel's Hall: the keeper
|
||||
// writes /var/lib/hall/announcement.json on the host (hall-announce), and each
|
||||
// game's site serves it at /hall/announcement.json. It is checked when the page
|
||||
// loads, every few minutes, and whenever the page is looked at again. A reader
|
||||
// may dismiss one announcement; the next one still shows.
|
||||
// The site-family announcement, shown by every game: the maintainer writes
|
||||
// /var/lib/hall/announcement.json on the host (hall-announce), and each game's
|
||||
// site serves it at /hall/announcement.json. It is fetched on load, every few
|
||||
// minutes, and whenever the tab becomes visible again. Dismissal is per
|
||||
// announcement id, so the next one still shows.
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
interface Announcement {
|
||||
@@ -88,7 +88,7 @@
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
/* Its own colors, not the game's: the same notice reads the same in every game of the hall. */
|
||||
/* Fixed colours rather than the game's tokens, so the notice looks the same on every site that shows it. */
|
||||
.hall-announcement {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
|
||||
Reference in new issue
Block a user