Loading repository data…
Loading repository data…
GGabrielDev / repository
Planteamiento de proyecto para distribucion de infogramas digitales usando paginas estaticas servidas de un simple servidor SSR con Typescript
Static Astro site that publishes digital self-protection brochures for civil protection topics in Venezuela. The home page works as a central dashboard and links to eight brochure pages: four topics, each available in dark and light variants of the same institutional visual system.
The project turns summarized emergency guidance into mobile-first brochure pages that are easy to open, review, and compare by reading mode while preserving one consistent Protección Civil visual identity.
Current topics
| Topic | Variants |
|---|---|
| Sismos y terremotos | Dark, Light |
| Lluvias e inundaciones | Dark, Light |
| Orden publico y crisis | Dark, Light |
| Riesgos especificos | Dark, Light |
| Area | Choice |
|---|---|
| Framework | Astro 6 |
| UI runtime | Static Astro pages |
| Styling | Tailwind CSS 4 via @tailwindcss/vite |
| Icons | lucide-react |
| Language | TypeScript-compatible Astro project |
| Node.js | >=22.12.0 |
Although React support is configured, the current site is implemented with .astro pages and shared data/components only.
The site follows the PC-VENEZUELA style guide documented in docs/design_guide.md. The active implementation uses:
| Route | Description |
|---|---|
/ | Main dashboard for all brochures |
/sismos-dark | Earthquake brochure, dark institutional variant |
/sismos-light | Earthquake brochure, light institutional variant |
/inundaciones-dark | Flood brochure, dark institutional variant |
/inundaciones-light | Flood brochure, light institutional variant |
/orden-publico-dark | Public order brochure, dark institutional variant |
/orden-publico-light | Public order brochure, light institutional variant |
/otros-riesgos-dark | Specific risks brochure, dark institutional variant |
/otros-riesgos-light | Specific risks brochure, light institutional variant |
Detailed route inventory: docs/routes.md
.
├── public/
│ ├── assets/ # Logo and brochure illustrations
│ └── favicon.*
├── src/
│ ├── data/
│ │ └── brochures.ts # Shared topic content and per-variant copy
│ ├── components/
│ │ ├── BrochurePage.astro
│ │ ├── HomeButton.astro
│ │ └── ModeSwitch.astro
│ ├── layouts/
│ │ └── Layout.astro # Shared HTML shell and font loading
│ ├── pages/
│ │ ├── index.astro # Dashboard page
│ │ └── *-{dark,light}.astro
│ └── styles/
│ └── global.css # Tailwind import, tokens, and guide utilities
├── pdf_content.txt # Source summary extracted from the reference PDF
└── astro.config.mjs
npm install
npm run dev
Other available commands:
npm run build
npm run preview
Si necesitas desplegar el sitio bajo una subruta o directorio específico (por ejemplo, /folleto usando un proxy reverso de Apache/Nginx), puedes configurar la ruta base en tiempo de ejecución utilizando la variable de entorno BASE_PATH.
Desarrollo local con subruta:
BASE_PATH=/folleto npm run dev
(El sitio estará disponible en http://localhost:4321/folleto/)
Compilación para producción con subruta:
BASE_PATH=/folleto npm run build
(Todos los recursos, estilos y enlaces internos se compilarán prefijados con /folleto)
Comportamiento por defecto: Si no defines la variable de entorno BASE_PATH, el sistema utilizará / por defecto, sirviendo el contenido desde la raíz del dominio.
The brochure copy appears to be derived from the technical reference material summarized in pdf_content.txt, which in turn references Venezuelan civil protection and risk-management guidance such as FUNVISIS and INAMEH material.
This repository currently contains curated static copy. There is no CMS, API, database, or automated content ingestion pipeline.
src/layouts/Layout.astro.src/styles/global.css.src/data/brochures.ts.src/components/BrochurePage.astro renders the common brochure structure for all routes.npm run build is the main project health check.