Skip to content
SprecherEast
Issue 461

tech-debt: Post and event pages use PageHeader with a photo and facts

Back to our plan
Done
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 a scrim overlay and text-on-image
  • facts: label-and-value items through MetaList, on the photo or plain
  • eyebrow (text or a Badge) for the category, and backLink

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: PageHeader has the image variant and facts, with component tests (axe included).
  • Not done: The post and event pages use it; PostHero and EventHero are 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

See it on GitHub, opens in a new tab