mirror of
https://github.com/corazoncp/corazoncp-landing.git
synced 2026-12-01 04:30:31 +00:00
758706e65e8c22d8d443131fd15b55217c1a5d7c
* test(wpo): add Red contract tests for self-hosted woff2, 404.html, twitter:card, img dims, and view transitions - Assert self-hosted .woff2 fonts in public/fonts/, @font-face in built CSS, and zero Google Fonts links - Assert dist/404.html with shared partials, zero inline scripts, and return CTA to / - Assert twitter:card on all 4 routes, numeric width/height on all <img> tags, @view-transition, and brand hover * perf(wpo): self-host woff2 fonts, add 404.html, explicit img dims, twitter:card, and view transitions - Self-host 5 latin .woff2 font files (176 KB total) in public/fonts/ with @font-face in src/style.css and remove Google Fonts links - Add static 404.html with shared partials and register in vite.config.ts - Add twitter:card metadata across all 4 routes and explicit width/height on logo.png and all 8 index.html images - Add @view-transition (prefers-reduced-motion: no-preference), brand hover state, arrow motion on solid CTAs, and reconcile services-catalog.test.js
perf(wpo): self-host woff2 fonts, add 404.html, explicit img dims, twitter:card, and view transitions (#17)
perf(wpo): self-host woff2 fonts, add 404.html, explicit img dims, twitter:card, and view transitions (#17)
perf(wpo): self-host woff2 fonts, add 404.html, explicit img dims, twitter:card, and view transitions (#17)
perf(wpo): self-host woff2 fonts, add 404.html, explicit img dims, twitter:card, and view transitions (#17)
perf(wpo): self-host woff2 fonts, add 404.html, explicit img dims, twitter:card, and view transitions (#17)
perf(wpo): self-host woff2 fonts, add 404.html, explicit img dims, twitter:card, and view transitions (#17)
perf(wpo): self-host woff2 fonts, add 404.html, explicit img dims, twitter:card, and view transitions (#17)
perf(wpo): self-host woff2 fonts, add 404.html, explicit img dims, twitter:card, and view transitions (#17)
corazoncp-landing
Public website for El Corazón como Portal (Azucena Sánchez — Seva Surpreet Kaur), live at elcorazoncomoportal.com.
Purpose & Current Capabilities
A static-first, mobile-first Spanish website built to introduce Azu's holistic practice and convert visitors directly into WhatsApp Business conversations (+57 321 542 8972) without form friction:
- Grounded Brand Narrative: Hero and section structure aligned with Azu's approved copy and brand palette (
Porcelain Mist#F4F1EA,Gris Oscuro#303030). - Outcome-First Service Catalog: 5-card service grid and complementary paths with per-service pre-filled WhatsApp inquiry links.
- Static Edge Delivery: Zero runtime JS dependencies or backend services on
main; deployed automatically to Cloudflare Pages.
Technical Stack
- Build & Dev: Vite+ (
vp) with Tailwind CSS v4 (@tailwindcss/vite) and a build-time HTML partial plugin (scripts/html-partials-plugin.ts). - Linting & Formatting: Biome (
biome check .). - Contract Tests: Hermetic
node:testsuites (tests/*.test.js:hero-whatsapp.test.js,services-catalog.test.js,html-partials.test.js,nav-menu.test.js,kundalini-routes.test.js,media-assets.test.js) asserting against builtdist/output viapretest: vp build. - Hosting & Security: Cloudflare Pages with static security headers (
public/_headers) andpublic/robots.txt.
Multi-Page Structure
- Routes (
vite.config.ts): Four static HTML entrypoints built intodist/:/(index.html) — Main landing page/kundalini/(kundalini/index.html) — Kundalini Yoga overview and class paths/volver-a-ti/(volver-a-ti/index.html) — «Volver a ti» program details and enrollment/descargo/(descargo/index.html) — Practice disclaimer and informed-consent terms
- Shared Partials (
src/partials/):header.html,footer.html, andwhatsapp-fab.html, inlined at build time byscripts/html-partials-plugin.ts. - Client ES Modules (
src/scripts/):nav-menu.js— Mobile disclosure navigation behavior.volver-a-ti.js— Disclaimer-acknowledgment gating for enrollment payment links on/volver-a-ti/.
Developer Commands
With Nix flakes and direnv enabled:
# Start local development server
direnv exec . pnpm dev
# Run automated contract tests (builds dist/ first via pretest)
direnv exec . pnpm test
# Run linter and formatter checks
direnv exec . pnpm lint
# Production build and local preview
direnv exec . pnpm build
direnv exec . pnpm preview
Repository Navigation
- Repository Rules & Planning Contract:
AGENTS.md - Active Specifications (
docs/specs/): - Project Tracking:
- Organization Board: El Corazón como Portal — Roadmap
- Repository Milestones: corazoncp-landing/milestones
Languages
JavaScript
59.1%
HTML
32.8%
TypeScript
6.1%
CSS
1.2%
Nix
0.7%