Skip to content

Fix full-screen locations, serve Minecraft heads from the site, remove Donate - #11

Merged
mathhulk merged 1 commit into
mainfrom
claude/vibrant-faraday-ux7zgr-fixes
Nov 23, 2026
Merged

mathhulk merged 1 commit into
mainfrom
claude/vibrant-faraday-ux7zgr-fixes

Conversation

@mathhulk

Copy link
Copy Markdown
Collaborator

Fixes three issues on the live site.

1. Expand (full screen) button on Campus locations

  • Bug: an expanded location stayed at card width (410px of a 1280px window) instead of filling the screen.
  • Cause: the Campus grid's card-width rule (#locations-wrapper .location) is more specific than the full-screen rule, so it kept applying after a card expanded. This came in with the switch from Bootstrap's grid to plain CSS: the old column wrapper sized the card from outside, so the conflict couldn't happen.
  • Fix: the grid widths now skip cards that are full screen. An expanded location fills the window again (checked at 1280×800).

2. Missing Minecraft skins on the Club page

  • Bug: mc-heads.net returned default faces for 7 of the 21 board members: mathhulk, X1_Dragon, JingleTheLeo, Zetrox42, Onnowhere, Rimpo__ and Agentbjorn. Mojang has a custom skin on file for all 21.
  • Fix: the site now serves the heads itself.
    • bun run heads (scripts/heads.ts) reads each player's skin from Mojang by UUID. It takes the 8×8 face, lays the hat layer on top the way the game does, and saves public/images/heads/<uuid>.png. All 21 together are about 5 KB.
    • The page scales the faces up with image-rendering: pixelated, so they stay crisp.
    • The Club page no longer depends on any third-party service.
    • Board data moves to app/data/board.ts, so the script and the page share one list. Re-run bun run heads after changing who's on the board.
    • It runs on demand rather than during the build, so deploys never depend on Mojang's API being up.
  • Note: Rimpo__ and Agentbjorn really do use the same Steve-style skin; both accounts point at the same skin file on Mojang.

3. Donate removed

The Donate (Patreon) link is gone from the desktop and mobile navigation.

Verification

  • format:check, lint and nuxt typecheck pass; the heads script is type-checked separately under the same strict settings.
  • On the built site:
    • full screen fills the window;
    • the menu shows Home, Campus and Club on desktop and mobile;
    • all 21 heads load from the site, with no external requests on /club;
    • no console errors;
    • the mobile menu, edition toggle and server-status checks still pass.

Generated by Claude Code

…e Donate

- Full screen: the Campus grid's card widths (#locations-wrapper .location)
  out-ranked the full-screen rule, so an expanded location stayed card
  width (410px of a 1280px window). The grid sizes now skip cards that
  are full screen
- Heads: mc-heads.net returned default faces for 7 of the 21 board
  members (mathhulk, X1_Dragon, JingleTheLeo, Zetrox42, Onnowhere,
  Rimpo__, Agentbjorn) although Mojang has custom skins for all of them.
  `bun run heads` (scripts/heads.ts) now takes each face and hat layer
  straight from Mojang's skin file into public/images/heads/<uuid>.png
  (8x8, ~5 KB for all 21), scaled up with image-rendering: pixelated.
  The Club page no longer depends on any third-party service. Board data
  moves to app/data/board.ts so the script and page share it
- Remove the Donate (Patreon) link from the navigation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DxVDmLPux3Tx7RV1v4yznD
@mathhulk
mathhulk merged commit 046067a into main Nov 23, 2026
2 checks passed
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.

2 participants