Joy cards finalize (Codex pass): robust year align, image guard, a11y, honesty
/onthisday: - Year alignment restructured per Codex: "2013" is the sole in-flow baseline anchor; "IN HISTORY" is absolutely positioned in reserved start-padding, so it can't drag the shared baseline (no more viewport-math/top-offset compensation). Rule baseline-aligns too. Narrow phones deliberately wrap the year lockup onto its own row (rule+date below) instead of accidental flex wrapping. - Render the hero only when image_url exists (pool has imageless items → was a blank dark hero). - "The story" → "A little context": the Wikipedia summary is context about an associated subject, not a narrative of the event. Honest without backend work. - Figure detection also forces contain on filename hints (seal/flag/logo/map/ diagram/crest/emblem/coat-of-arms) so JPEG logos/maps aren't cropped. A11y contrast (AA): clay #b06a45→#9a5a38 (eyebrow, button, + homepage card accent so they still match), small green IN HISTORY #3a7d5b→#367653, rose attribution/share + Copy button → #8b596d. /quote: native Share now carries the attributed text (author included, matching Copy); narrow-phone guard so "QUOTE OF THE DAY" + eyelash don't crowd at 320px. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -493,7 +493,7 @@
|
||||
.joy-word .wm { right: -14px; bottom: -30px; font-size: 150px; font-weight: 400; color: rgba(79, 125, 168, 0.13); }
|
||||
.joy-quote { background: linear-gradient(165deg, #F9EDF1, #F1DEE6); border: 1px solid #eed6df; box-shadow: 0 10px 30px -22px rgba(150, 85, 115, 0.5); --accent: #b06a86; --rule: #b06a86; }
|
||||
.joy-quote .wm { left: 14px; top: -26px; font-size: 120px; color: rgba(176, 106, 134, 0.16); }
|
||||
.joy-fact { background: linear-gradient(165deg, #F7EAE1, #EFDACB); border: 1px solid #ecd5c4; box-shadow: 0 10px 30px -22px rgba(150, 90, 55, 0.5); --accent: #b06a45; --rule: #b06a45; }
|
||||
.joy-fact { background: linear-gradient(165deg, #F7EAE1, #EFDACB); border: 1px solid #ecd5c4; box-shadow: 0 10px 30px -22px rgba(150, 90, 55, 0.5); --accent: #9a5a38; --rule: #9a5a38; }
|
||||
|
||||
.tag { display: flex; align-items: center; gap: 8px; }
|
||||
.tag .rule { width: 18px; height: 2px; border-radius: 2px; background: var(--rule); }
|
||||
|
||||
Reference in New Issue
Block a user