feat(marketing): replace mock hero with live editor screenshot

Captures /examples/traffic-light → /editor in headless Chromium and saves
the rendered editor as a 3840x2160 (2x DPI) PNG + WebP for the landing
page hero.

The shot includes the code editor on the left (Traffic Light Simulator
.ino), the Arduino Uno on the canvas with three LEDs wired up, the SPICE
nets indicator, and the full chrome — a much stronger first impression
than the previous CSS-mocked schematic.

Generation script lives in the private velxio-prod repo
(scripts/capture-hero.mjs) and can be re-run any time to refresh the
asset against the live deployment.

- /marketing/hero-editor.png (320 KB)
- /marketing/hero-editor.webp (160 KB)
- LandingPage hero <picture> now points at these (loading=eager,
  fetchPriority=high since it's above the fold).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
davidmonterocrespo24 2026-05-07 21:21:52 +02:00
parent 8781719e40
commit 0c8d96a05c
3 changed files with 6 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

View File

@ -845,12 +845,14 @@ export const LandingPage: React.FC = () => {
</div>
<div className="hero-right">
<picture>
<source srcSet="/image.webp" type="image/webp" />
<source srcSet="/marketing/hero-editor.webp" type="image/webp" />
<source srcSet="/marketing/hero-editor.png" type="image/png" />
<img
src="/image.png"
alt="Velxio simulator preview"
src="/marketing/hero-editor.png"
alt="Velxio editor with Arduino Uno traffic-light circuit"
className="hero-preview-img"
loading="lazy"
loading="eager"
fetchPriority="high"
/>
</picture>
</div>