Skip to content

feat(web): per-audit photographic hero images#147

Merged
muraschal merged 1 commit into
mainfrom
feat/per-audit-hero-images
Jun 25, 2026
Merged

feat(web): per-audit photographic hero images#147
muraschal merged 1 commit into
mainfrom
feat/per-audit-hero-images

Conversation

@muraschal

Copy link
Copy Markdown
Contributor

Each /audits/<key> page now opens with a bespoke "Verified Systems Lab" hero image — one forensic still per audit, derived from that audit's real subject, in the site's graphite + emerald key (no stock cyber clichés).

  • 13 heroes in web/public/<key>.webp — converted PNG→webp via sharp (q80): 21 MB → 1.1 MB (~64–114 KB each).
  • lib/heroes.ts — fs lookup mapping <key> → its public image at build/SSR; graceful fallback (no image → the typographic grid hero stays). Dropping public/<key>.webp lights up a hero with zero code change.
  • audit-page.tsx — image as the hero background (object-right) with a left-weighted scrim so the H1/CTA stay legible; next/image (priority, responsive sizes); decorative alt="" (WCAG-correct — the heading + tagline already convey meaning).
  • OG share-cards stay as the informative text cards (photos without a title are weaker shares).

Verified: typecheck · lint · test 17/17 · build 67/67 static pages.

Each /audits/<key> page now leads with a forensic-lab hero image derived
from that audit's real subject (security = trust boundaries, api = contract
drift, lean = safe disassembly, ...), in the brand's graphite + emerald key.

- web/public/<key>.webp: 13 heroes, PNG->webp via sharp (q80) — 21MB -> 1.1MB.
- lib/heroes.ts: server-only fs lookup mapping <key> -> /public image; no match
  -> the page keeps its typographic grid hero, so adding an image needs no code.
- audit-page.tsx: image as the hero background (object-right) with a
  left-weighted scrim for headline/CTA legibility; next/image (priority,
  responsive); decorative alt (the H1 + tagline carry the meaning).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 25, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
auditor Ready Ready Preview, Comment Jun 25, 2026 8:53pm

Request Review

@muraschal muraschal merged commit 2e5172a into main Jun 25, 2026
5 checks passed
@muraschal muraschal deleted the feat/per-audit-hero-images branch June 25, 2026 20:55
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