Skip to content

Center the 101 reader on a paper card; fix callouts in dark mode - #93

Merged
DanialBeg merged 1 commit into
mainfrom
feature/reader-paper-card
Nov 2, 2026
Merged

DanialBeg merged 1 commit into
mainfrom
feature/reader-paper-card

Conversation

@DanialBeg

Copy link
Copy Markdown
Member

What

Every 101 article (Scholarships 101, Application 101, and the rest) opens in the same reader, ChecklistContentView. It sat flush left on the module's tinted background.

  • Centered column: the "Back to…" link and the article share a 720px column centered in the content area.
  • Paper card: the badge, title, body, "Mark as Complete" and prev/next buttons sit on an elevated card (white in light mode, the theme's raised tone in dark) with a border, rounded corners and a soft shadow.
  • Width: the body's old 600px cap is gone; the card's padding sets the line length, which ends up close to before.
  • Narrow screens: side padding shrinks with the viewport (clamp), down to 20px inside the card.

Fix: callouts in dark mode

Callouts ("Surprising Stat", "Timing Matters", …) had fixed light hex backgrounds, so in dark mode their light text sat on a light box and was nearly unreadable. This was already broken before this change. They now tint from their own variant color, as their icon already did, and look about the same as before in light mode. The unused bg field is gone from CALLOUT_VARIANT.

Testing

  • Typecheck and lint pass; all component tests pass (175).
  • Checked in Chrome on local dev: the FAFSA article in Scholarships 101, top to bottom, in light and dark mode.
  • Not checked at phone width.

Every 101 article (Scholarships 101, Application 101, ...) goes through
ChecklistContentView, which sat flush left on the module's tinted
background. It now centers in a 720px column on an elevated card, with
padding that shrinks on narrow screens.

Callouts had fixed light hex backgrounds, so in dark mode their light
text sat on a light box and was nearly unreadable. They now tint from
their own variant color, as their icon already did.
@vercel

vercel Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
webapp Ready Ready Preview Nov 2, 2026 7:50pm UTC

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying timeline-prototype with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0b04ffe
Status: ✅  Deploy successful!
Preview URL: https://a878fa49.timeline-prototype.pages.dev
Branch Preview URL: https://feature-reader-paper-card.timeline-prototype.pages.dev

View logs

@DanialBeg
DanialBeg merged commit bb1dfc1 into main Nov 2, 2026
6 checks passed
@DanialBeg
DanialBeg deleted the feature/reader-paper-card branch November 2, 2026 20:26

This branch was successfully deployed

1 active deployment
Preview — 0b04ffe4 Deployed Nov 2, 2026 by vercel[bot]
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