Skip to content

Feature/nov update - #146

Merged
bradp merged 206 commits into
mainfrom
feature/nov-update
Nov 27, 2026
Merged

bradp merged 206 commits into
mainfrom
feature/nov-update

Conversation

@bradp

@bradp bradp commented Nov 26, 2026

Copy link
Copy Markdown
Member

No description provided.

bradp added 30 commits November 12, 2026 19:06
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.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
🔵 In progress
View logs
mouse-rip 5ec3d25 Nov 27 2026, 02:08 AM

@bradp
bradp force-pushed the feature/nov-update branch from 74bdec7 to 5ec3d25 Compare November 27, 2026 02:08
@bradp
bradp merged commit e26dbef into main Nov 27, 2026
4 of 5 checks passed
@bradp
bradp deleted the feature/nov-update branch November 27, 2026 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant