Files
corazoncp-landing/public/img/volver-a-ti-proceso-inicial.webp
T
Andrés Tróchez 9b95141933 chore(media): extract Volver a ti copy and prepare Kundalini media assets (#8)
* test(media): add Red contract checks for Volver a ti assets

- Add tests/media-assets.test.js asserting the five deterministic volver-a-ti-*.webp names, valid RIFF/WEBP headers, <=150 KB budgets, and pure-JS dimension bounds
- Assert og-kundalini.jpg is a valid <=300 KB JPEG at exactly 1200x630 so WhatsApp previews stay shareable
- Parse image headers in JavaScript so CI needs no system image binaries

Rationale: AC2/AC3 media constraints had no coverage; a failing Red test makes the Phase 0 deliverables falsifiable before any assets are generated.

* feat(media): add Volver a ti WebP assets from approved docx images

- Add volver-a-ti-hero.webp (1200x800, 82,946 bytes) from docx image5.png for the eager top hero
- Add volver-a-ti-proceso-inicial.webp (1200x655, 71,408 bytes), volver-a-ti-practica-personal.webp (1200x800, 45,024 bytes), volver-a-ti-diario.webp (1200x670, 71,528 bytes), and volver-a-ti-recursos.webp (900x900, 50,638 bytes) for below-the-fold sections
- Keep aspect ratios and deterministic role-based names; all five files stay under the 150 KB budget enforced by the new contract test

Rationale: the owner approved all five embedded docx images for public use; transcoding them locally gives Phase 2 pages explicit-width/height assets without third-party hotlinks.

* feat(media): add 1200x630 Open Graph JPEG for Kundalini routes

- Generate public/img/og-kundalini.jpg (1200x630, 78,861 bytes) with a center-cover crop from the approved kundalini-yoga.webp
- Stay under the 300 KB budget so WhatsApp link previews for /kundalini/ and /volver-a-ti/ are not dropped

Rationale: WhatsApp previews inconsistently render WebP thumbnails; a JPEG preview keeps the shareable program URL legible.
2026-11-29 16:30:36 -05:00

70 KiB
1200x655px