Skip to content
SprecherEast
Issue 1278

feat: One shared frosted-glass panel, lifted from the home hero

Back to our plan
Done
enhancementfrontendstylingpriority: mediumshared-componentready

Problem

In plain words: the frosted-glass panel on the home hero (the one holding the "unofficial site" line) is written inside the hero's own file, so nothing else can use it. The owner wants that exact glass reused wherever something sits on a photo, starting with the "Get Involved" card over a page backdrop (#1268), without a second look-alike being invented.

Summary of the owner's decision (2026-11-16, Claude session, voice then text): lift the hero's glass out into one shared component under the guard rails and use it for the hero's content and for the "Get Involved" card. It is the same component with the same look everywhere, in light and dark, correct once and reused; no second variant. Test it over light, dark, different shades and photos, and check it against the design baseline (alignment, spacing, color, contrast).

Why this is needed, and what exists: FrostedText in src/modules/site/ui/PageHero.tsx holds the recipe (corner radius, on-image border and tint, its shadow, the blur, the sheen and the top edge glow, on-image text). The pattern library describes a "Glass Card" in prose only. A mockup test on #1268 put those exact values over a bright backdrop with normal text colors and measured 1.8:1 contrast: the glass reads well on the hero only because the hero darkens its photo first and the text is white.

Proposed fix

  1. A shared UI kit component, GlassPanel, in src/platform/ui/, carrying the hero's recipe value for value, with on-image text for its content.
  2. Its text passes AA wherever it is placed, by itself: the panel carries its own darkening layer from the scrim token under the glass, so it does not depend on what is behind it. One look in light and dark, as on the hero.
  3. PageHero uses it for its description (FrostedText goes away). The hero must look the same, apart from the panel's own darkening; the pull request shows the hero before and after, phone and desktop.
  4. Test first: the component's test and axe check, its gallery entry shown over a light photo, a dark photo, plain light and plain dark, its row in docs/ui/component-set.md, and a contrast check of its text over white, black and a mid shade.

The "Get Involved" card takes this panel in #1268, where the backdrop is built; not here.

Acceptance criteria

  • Not done: GlassPanel exists in the UI kit with the hero's recipe and no variant for its look.
  • Not done: Text inside it measures 4.5:1 or better over white, black and photos, in light and dark, and the pull request records the numbers.
  • Not done: PageHero renders its description through GlassPanel; no glass classes remain in PageHero.tsx.
  • Not done: Hero before and after screenshots at phone and desktop widths are in the pull request, with any visible difference named.
  • Not done: Gallery entry, component-set row, UI kit note and the generated component reference are updated in the same pull request.
  • Not done: The pattern library's "Glass Card" points to the component.

Files likely touched

src/platform/ui/GlassPanel.tsx, src/platform/ui/GlassPanel.test.tsx, src/modules/site/ui/PageHero.tsx, src/modules/site/ui/PageHero.test.tsx, src/app/(frontend)/dev/gallery/DisplayGallery.tsx, docs/ui/component-set.md, src/platform/ui/README.md, src/modules/site/README.md, docs/reference/components/, docs/guidelines/frontend-patterns/backdrops-and-glass.md, .claude/rules/generated/

Must not touch

src/platform/ui/PageBackdrop.tsx, src/platform/ui/BandBackdrop.tsx, src/platform/ui/PageHeader.tsx, src/platform/ui/SidebarCTA.tsx, src/modules/news/, src/modules/events/

Size: M. Load: docs/roles/worker.md, docs/roles/ui-designer.md, the UI kit note, the theme note, docs/guidelines/ui-ux-design.md (the baseline), docs/guidelines/images.md. Open questions: none. Note: open pull request #1065 (waiting for the owner) also edits PageHero.tsx and will need a rebase after this.


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab