mirror of
https://github.com/corazoncp/corazoncp-landing.git
synced 2026-11-30 20:20:32 +00:00
20908fdf7814aaa748bee4c77547dc13cb98c155
* test(a11y): add Red contract tests for contrast, sticky header, skip link, and FAB
- Assert skip-to-content link before .fixed WhatsApp FAB and <main id="main"> across all 4 built routes
- Assert bg-ivory/95 header, #146c3c/#183a2d FAB contrast + mobile icon circle, #7d5d28 gold token, pb-20 footer, and >=24px tap targets
* fix(a11y): resolve WCAG contrast, sticky header legibility, WhatsApp FAB overlap, and skip link
- Switch sticky header from bg-sage/15 to bg-ivory/95, prepend #main skip link before .fixed FAB, and add py-2.5 lg:py-1.5 nav tap padding
- Darken WhatsApp FAB to #146c3c, align aria-label with visible text ("Conversar con Azu por WhatsApp"), and collapse to 48x48 circle on <640px
- Darken --color-gold to #7d5d28 and footer text to #4b5950; add pb-20 on footer and pb-24 on /kundalini/ main
- Add id="main" across all 4 routes, scroll-mt-24 on focus targets, and update Slice 3 header bg assertion in services-catalog.test.js
fix(a11y): resolve WCAG contrast, sticky header legibility, WhatsApp FAB overlap, and skip link (#16)
fix(a11y): resolve WCAG contrast, sticky header legibility, WhatsApp FAB overlap, and skip link (#16)
fix(a11y): resolve WCAG contrast, sticky header legibility, WhatsApp FAB overlap, and skip link (#16)
fix(a11y): resolve WCAG contrast, sticky header legibility, WhatsApp FAB overlap, and skip link (#16)
fix(a11y): resolve WCAG contrast, sticky header legibility, WhatsApp FAB overlap, and skip link (#16)
fix(a11y): resolve WCAG contrast, sticky header legibility, WhatsApp FAB overlap, and skip link (#16)
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%