From 3f39cc770c1ac014e19a3ec942e9e6b38b3aa11d Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Mon, 30 Nov 2026 04:48:50 -0500 Subject: [PATCH] feat(nav): route Service Card 2 and nav link to /kundalini/ - `src/partials/header.html`: add `Kundalini Yoga` (`/kundalini/`, `data-nav-current="kundalini"`) link between `/#servicios` and `/#otros-espacios` - `index.html`: route Service Card 2 CTA in-tab to `/kundalini/` instead of `wa.me` - `AGENTS.md`: document `/kundalini/` routing and temporary Spanish-only routes ahead of Slice 5 - `tests/html-partials.test.js` & `tests/services-catalog.test.js`: update contract tests for `/kundalini/` nav link, `aria-current="page"` mapping, and Card 2 route --- AGENTS.md | 6 +- index.html | 6 +- src/partials/header.html | 1 + tests/html-partials.test.js | 101 ++++++++++++++++++++++++++++----- tests/services-catalog.test.js | 57 ++++++++++++++++++- 5 files changed, 147 insertions(+), 24 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 689d003..07d53eb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -8,8 +8,8 @@ project_number: 1 ``` ## Rules for working in this repo -- **Acceptance criteria:** Implement strictly against [`docs/specs/landing-page-brief.md`](./docs/specs/landing-page-brief.md). Never invent service copy, pricing, schedules, or contact numbers. +- **Acceptance criteria:** Implement strictly against [`docs/specs/landing-page-brief.md`](./docs/specs/landing-page-brief.md) and, for the `/kundalini/`, `/volver-a-ti/`, and `/descargo/` routes, [`docs/specs/kundalini-volver-a-ti-design.md`](./docs/specs/kundalini-volver-a-ti-design.md). Never invent service copy, pricing, schedules, or contact numbers. - **Static-first v1:** Zero backend, database, authentication, payment, or scheduling API dependencies. -- **Direct conversion:** All primary and per-service CTAs route directly to WhatsApp (`wa.me`) with URL-encoded pre-filled inquiry text. +- **Direct conversion:** All primary and per-service CTAs route directly to WhatsApp (`wa.me`) with URL-encoded pre-filled inquiry text, except Service Card 2 (Kundalini Yoga), which routes in-tab to the `/kundalini/` hub. The hub and program pages keep their WhatsApp/payment CTAs per [`docs/specs/kundalini-volver-a-ti-design.md`](./docs/specs/kundalini-volver-a-ti-design.md). - **Visual & a11y baseline:** Mobile-first (`375px` to `1440px`), WCAG AA contrast (`>= 4.5:1`), zero console errors, and grounded warm-neutral styling per approved brand assets (never pull raw/unapproved files from workspace `.internal/`). -- **Bilingual parity invariant (multi-page static):** Prior to adopting a component compiler or templating layer, any structural, CSS class, asset, or design token change applied to `index.html` (Spanish default) must be mirrored with identical structural parity in `en/index.html` (English), maintaining localized copy, reciprocal `hreflang` tags, and language-specific WhatsApp inquiry strings. +- **Bilingual parity invariant (multi-page static):** Shared header, footer, and WhatsApp FAB live in build-time partials (`src/partials/*`, injected by `scripts/html-partials-plugin.ts`); edit them there, not inline. Any other structural, CSS class, asset, or design token change applied to `index.html` (Spanish default) must be mirrored with identical structural parity in `en/index.html` (English), maintaining localized copy, reciprocal `hreflang` tags, and language-specific WhatsApp inquiry strings. Exception: `/kundalini/`, `/volver-a-ti/`, and `/descargo/` are temporarily Spanish-only until Milestone 1 Slice 5 ([`ROADMAP.md`](../ROADMAP.md)); no `en/` mirrors are required for them yet. diff --git a/index.html b/index.html index f20713c..9dce8a8 100644 --- a/index.html +++ b/index.html @@ -151,12 +151,10 @@

- Consultar Kundalini Yoga → + Explorar Kundalini Yoga → diff --git a/src/partials/header.html b/src/partials/header.html index 1ed3571..069a51d 100644 --- a/src/partials/header.html +++ b/src/partials/header.html @@ -23,6 +23,7 @@