mirror of
https://github.com/corazoncp/corazoncp-landing.git
synced 2026-12-01 04:30:31 +00:00
docs(readme): document 4-route multi-page structure and disclaimer gate
- Document the build-time HTML partial plugin (scripts/html-partials-plugin.ts) and expanded contract test suites in Technical Stack so contributors know how multi-page builds and tests are structured. - Add Multi-Page Structure section detailing the four Vite HTML entrypoints (/, /kundalini/, /volver-a-ti/, /descargo/), shared partials (src/partials/), and client ES modules (nav-menu.js, volver-a-ti.js disclaimer gate) to align README.md with the current architecture.
This commit is contained in:
1 parent
c6b7ea54d7
commit
02d9085876
1 file changed
+16
-2
@@ -16,13 +16,27 @@ A static-first, mobile-first Spanish website built to introduce Azu's holistic p
|
||||
|
||||
## Technical Stack
|
||||
|
||||
- **Build & Dev:** [Vite+](https://vite.dev) (`vp`) with Tailwind CSS v4 (`@tailwindcss/vite`).
|
||||
- **Build & Dev:** [Vite+](https://vite.dev) (`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:test` suites (`tests/*.test.js`) asserting against built `dist/` output via `pretest: vp build`.
|
||||
- **Contract Tests:** Hermetic `node:test` suites (`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 built `dist/` output via `pretest: vp build`.
|
||||
- **Hosting & Security:** Cloudflare Pages with static security headers (`public/_headers`) and `public/robots.txt`.
|
||||
|
||||
---
|
||||
|
||||
## Multi-Page Structure
|
||||
|
||||
- **Routes (`vite.config.ts`):** Four static HTML entrypoints built into `dist/`:
|
||||
- `/` (`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`, and `whatsapp-fab.html`, inlined at build time by `scripts/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:
|
||||
|
||||
Reference in new issue
Block a user