Issue 461
tech-debt: Post and event pages use PageHeader with a photo and facts
Back to our planDone
frontendtech-debtpriority: medium
Summary
Make the post and event page tops use the shared PageHeader, with a photo variant and a row of facts, instead of their own hand-built heroes. Visitors see the same pages; two near-copies of the same layout become one component.
Details
Today PostHero (news) and EventHero (events) each build the photo header, the scrim and the facts row by hand (H6–H10 in docs/ui/). EventHero is partly a copy of PostHero. The component set (docs/ui/component-set.md, row PageHeader) already plans:
PageHeader · image: a photo behind the title with ascrimoverlay andtext-on-imagefacts: label-and-value items throughMetaList, on the photo or plaineyebrow(text or aBadge) for the category, andbackLink
The post and event pages pass plain props from their own modules (news and events mappers), so PageHeader stays in platform/ui and imports no module.
Acceptance criteria
- Not done:
PageHeaderhas theimagevariant andfacts, with component tests (axe included). - Not done: The post and event pages use it;
PostHeroandEventHeroare deleted. - Not done: Posts and events, with and without a photo, look the same at the six widths in both themes (or each change is listed and follows the design rules), including contrast on the photo.
- Not done:
docs/ui/says what exists.
Generated by Claude Code, opens in a new tab