velxio/frontend/public
davidmonterocrespo24 d53f4f1380 feat(examples): real canvas screenshots as gallery thumbnails
Replaces the manually-positioned wokwi-element mock (CircuitPreview) in
the /examples gallery with real screenshots of the actual simulator
canvas, so each card shows the example's boards + components + wires
exactly as they appear when you open the example.

How it works
- A new <ExampleThumbnail> component tries
  /examples-thumbs/<id>.{webp,png} first. If the image 404s — or no
  thumbnail has been captured yet — it falls back to the existing
  CircuitPreview component. No-op for examples without a screenshot.
- ExamplesGallery and ExampleDetailPage now render <ExampleThumbnail>
  instead of CircuitPreview directly.
- Explicit example.thumbnail field still wins (kept the existing
  override path in case someone wants a custom asset).

Capture pipeline
- Generated by velxio-prod's scripts/capture-example-thumbs.mjs
  (Playwright + sharp). For each example: opens /examples/<slug>,
  clicks "Open in Simulator", waits for [data-board-id] elements,
  computes the bbox of all boards + components, sets a transform on
  .canvas-world to center and fit them with 12% padding inside the
  canvas viewport, screenshots .canvas-content, and re-encodes to
  600x360 @2x DPI as .png + .webp.

This commit ships the first batch (102 of ~129 examples — the rest
will follow once the capture completes; missing slugs gracefully
fall back to CircuitPreview in the meantime).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 22:44:10 +02:00
..
boards feat(design): tokens, webfonts, Lucide icons, board PNG/WebP picture strip 2026-05-07 20:45:44 +02:00
component-svgs Add shared validators and test configurations for Velxio projects 2026-04-28 00:36:05 -03:00
examples-thumbs feat(examples): real canvas screenshots as gallery thumbnails 2026-05-07 22:44:10 +02:00
firmware feat: add MicroPython support for ESP32-C3 (RISC-V) boards 2026-03-29 23:40:05 -03:00
fonts feat(design): tokens, webfonts, Lucide icons, board PNG/WebP picture strip 2026-05-07 20:45:44 +02:00
marketing feat(marketing): replace mock hero with live editor screenshot 2026-05-07 21:21:52 +02:00
android-chrome-192.png
android-chrome-512.png
apple-touch-icon.png
components-metadata.json feat: add support for UC8159c (ACeP 7-colour) display 2026-04-30 00:27:40 -03:00
favicon-16x16.png
favicon-32x32.png
favicon-48x48.png
favicon.ico
favicon.svg
image.png perf: optimize hero image for faster load times 2026-03-28 20:33:40 +01:00
image.webp perf: optimize hero image for faster load times 2026-03-28 20:33:40 +01:00
manifest.webmanifest
og-image.png feat(design): tokens, webfonts, Lucide icons, board PNG/WebP picture strip 2026-05-07 20:45:44 +02:00
og-image.svg
robots.txt feat: update SEO handling across various pages, enhance mobile tab navigation, and improve .gitignore for sensitive files 2026-03-23 17:15:29 -03:00
sitemap.xml feat: add data-velxio-slot markers for overlay portal targets 2026-05-04 23:28:02 -03:00
vite.svg