Repository navigation
Feature/nov update - #146
Merged
Merged
Conversation
The header is the biggest picture the game has of a location; its square one is 54px. The card takes the widest strip of the header that's all scenery, leaving out the MouseHunt logo and the wooden frame. A location with no header art keeps the square picture.
/og/card drew whatever text it was handed, on the Worker that serves every page, so anyone could have it render their own words under the mouse.rip name, or render endlessly. Pages now sign their card links with OG_CARD_SECRET, and the route sends any other request to the site-wide card. The key has to be set both when the pages are built and in the deployed Worker; the README says how. Without it, pages use the site-wide card, and `bun run dev` signs with a stand-in key. The browser tests job sets a key so the build and the server it tests agree.
The site-wide card shows the star and the wordmark side by side, as the sidebar does, with the tagline under them; its row of category names is gone. The other cards get the star beside the mouse.rip in their corner. The star is inlined as a data URI: the site-wide card is drawn at build time, when there's no server to fetch it from.
Group cards had no picture. The game's banner for a group is all art, so it's only trimmed top and bottom, and comes out as tall as a location's strip. The title is sized for the room it has: smaller under a strip, and a long name steps down sooner when a picture sits beside it.
For pages with no game art of their own. `ogCard` takes the name of one of the icons the tools' page headers use, and the card draws it on a tinted tile where a picture would go. The icon is part of what's signed. Six more accent colours, and `ogCard` now only accepts the icons and colours the card knows.
The eleven tool pages used the site-wide card. Each now has a card with its name and its page header's icon. The browser test renders a tool's card instead of a group's, which now has a banner to fetch from the image host.
A title beside a picture or an icon tile now steps down from 104px to 64px until it fits on one line, and wraps at 76px only when it can't. The art beside it is 320px, down from 360px, with a 48px gap, which gives the text enough room for names like Catch rate estimator. The fit is judged on the title's width before its tighter letter spacing, since that is what the renderer wraps on.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| 🔵 In progress View logs |
mouse-rip | 5ec3d25 | Nov 27 2026, 02:08 AM |
bradp
force-pushed
the
feature/nov-update
branch
from
November 27, 2026 02:08
74bdec7 to
5ec3d25
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.