feat(web): per-audit photographic hero images#147
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).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). Droppingpublic/<key>.webplights 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, responsivesizes); decorativealt=""(WCAG-correct — the heading + tagline already convey meaning).Verified: typecheck · lint · test 17/17 · build 67/67 static pages.