Skip to content

weekly podium card matches the site's podium - #152

Merged
iamnotstatic merged 1 commit into
mainfrom
iamnotstatic/podium-card
Nov 2, 2026
Merged

iamnotstatic merged 1 commit into
mainfrom
iamnotstatic/podium-card

Conversation

@iamnotstatic

Copy link
Copy Markdown
Owner

The Monday card (node tools/weekly-top3.mjs --html) still had the pre-redesign look. It now renders the same stepped podium as /leaderboard.

  • Pulls the live site stylesheet, Geist Mono and the gem logo at run time and embeds them, so the card opens from file:// and follows future site changes without edits here. The font has no CORS header, which is why it is inlined rather than linked.
  • 1200x675, the size X shows without cropping.
  • Each step shows days shipped, like the site. The query adds COUNT(DISTINCT e.day).
  • If vibetime.club is unreachable the card is skipped with a message. The terminal output and paste block are unchanged.

Owner-only tool, excluded from the npm tarball, so no release. Checked by rendering this week's real podium in headless Chrome, and by running with fetch forced to fail.

The card still used the pre-redesign look (SF Mono, emoji medals, old mark).
It now fetches the live site stylesheet, font and gem logo, embeds them so
the card works from file://, and renders the same stepped podium as
/leaderboard at 1200x675, the size X shows uncropped. Each step shows days
shipped, as the site does. If vibetime.club can't be reached the card is
skipped with a message; the paste block is unaffected.
@iamnotstatic
iamnotstatic merged commit ed5406e into main Nov 2, 2026
3 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.

1 participant