mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-06 17:49:07 -05:00
[PR #1452] [MERGED] Fix dark-mode shield + dedup About paper CTA #8216
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1452
Author: @profvjreddi
Created: 4/22/2026
Status: ✅ Merged
Merged: 4/22/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/dark-shield-and-about-dedup📝 Commits (2)
00fe6f7fix(brand): make SEAS shield PNG transparent so it works in dark mode3edbddbfix(staffml/about): drop duplicate "Read the Research Paper" CTA📊 Changes
5 files changed (+15 additions, -20 deletions)
View changed files
📝
book/quarto/assets/images/icons/logo-seas-shield.png(+0 -0)📝
interviews/staffml/public/logo-seas-shield.png(+0 -0)📝
interviews/staffml/src/app/about/page.tsx(+14 -19)📝
shared/assets/img/logo-seas-shield.png(+0 -0)📝
shared/scripts/sync-mirrors.sh(+1 -1)📄 Description
Summary
Two related polish fixes the user flagged on the StaffML site:
1. Shield logo had a white box around it in dark mode
The canonical
shared/assets/img/logo-seas-shield.pngshipped as RGB no-alpha with white pixels in the rectangular bleed around the curved shield outline. In light mode the white was invisible against light navbar bgs; in dark mode it rendered as a stark white tile around the shield (clearly visible on StaffML's dark navbar at the small 28px brand size).Flood-filled the exterior white from the corners with PIL and saved as RGBA. The interior white "VERITAS" books are isolated from the corners by the shield's black border and so are preserved (they are the actual design, not background bleed).
Also added
interviews/staffml/public/logo-seas-shield.pngtosync-mirrors.shso the StaffML mirror stays in lockstep with the canonical asset on future regenerations.Before / after (StaffML dark navbar, zoomed):
#212529navbar.2.
/abouthad two competing "Read the paper" surfacesThe page had:
<PaperCitationCard />at the top (above the fold, PDF + BibTeX). Phase 6 academic-citation entry point.Replaced the bottom card with a single inline link inside the methodology prose ("…is described in our paper"). This preserves the in-context pointer (this section IS the methodology) without the duplicate visual surface. Also drops the now-unused
FileTextimport.Test plan
npm run buildpasses;out/logo-seas-shield.pngreports8-bit/color RGBA.npx tsc --noEmitpasses (no type errors from the import drop)./body bg =#111117, shield URL loads, navbar visually clean (no white tile)./about.html: exactly one "read the paper" headline (the top card) and twoStaffML-Paper.pdflinks (top "Download PDF" button + new inline "our paper").pre-commithooks pass on both commits (codespell, mirror-sync check, etc.)./aboutpaper-card count.Scope notes
The shield change touches the canonical asset so it benefits every site that consumes the shared SEAS shield (book/Quarto vol1/vol2 mirrors are auto-synced via
sync-mirrors.sh). Light-mode rendering is unchanged because the now-transparent pixels were previously white-on-white anyway, so there is no Quarto regression risk.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.