Data Files
Arte y Web Creaciones uses JSON data files to store structured content for various sections of the website. These files are located insrc/data/ and provide centralized data management.
Available Data Files
Located insrc/data/:
servicios.json- Service offerings and cardsprecios.json- Pricing tiers and packagespromociones.json- Promotional offersprocesoentrega.json- Delivery process stepstestimonios.json- Client testimonialsnosotros.json- About/team informationmenu.json- Navigation menu structurenuestraswebs.json- Portfolio/showcase websitesmantenimiento.json- Maintenance service detailsgoogle-reviews.json- Google review datacards.json- Generic card contentdescarte.json- Archived/unused content
servicios.json
Defines service offerings with detailed cards. Located atsrc/data/servicios.json.
Structure
Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier |
background | string | Background image path |
titulo | string | Service title |
subtitulo | string | Service subtitle/description |
textoboton | string | Button text |
link | string | Service detail page URL |
tipoweb | string | Website type label |
precio | string | Price display |
cards | array | Array of feature cards |
Card Structure
precios.json
Defines pricing tiers for web pages and online stores. Located atsrc/data/precios.json.
Structure
Price Card Fields
Each pricing card supports up to 17 detail fields (detalle1 through detalle17). Empty fields should be set to "".
| Field | Type | Description |
|---|---|---|
slug | string | URL-friendly identifier |
tipoPago | string | Payment type: “unico” or “fases” |
imagenOferta | string | Offer image path |
itemPaypal | string | PayPal item description |
titulo | string | Package title |
subtitulo | string | Package tagline |
precio | string | Price (numeric string) |
detalle1-17 | string | Feature details |
procesoentrega.json
Defines the delivery/work process steps. Located atsrc/data/procesoentrega.json.
Structure
Fields
| Field | Type | Description |
|---|---|---|
title | string | Step title |
body | string | HTML content (supports links) |
nosotros.json
About/team information. Located atsrc/data/nosotros.json.
Structure
Fields
| Field | Type | Description |
|---|---|---|
nombre | string | Person name |
ubicacion | string | Location |
cargo | string | Job title/position |
imagen | string | Profile image path |
parrafos | string[] | Array of HTML paragraphs |
cta | string | Call-to-action text |
colaboradores | array | Team members |
Using Data Files in Astro
Import and Use
Filter by ID
HTML Content
Many fields contain HTML (especially inprocesoentrega.json and nosotros.json). Use set:html in Astro:
Data File Best Practices
- Keep paths absolute: Start image/link paths with
/ - Use WebP images: All image references use
.webpformat - HTML in strings: Use proper escaping for quotes in HTML content
- Consistent IDs: Use string IDs (“1”, “2”) for consistency
- Empty fields: Use empty strings
""rather than null/undefined - SEO-friendly links: Include descriptive internal links in content
Updating Data Files
- Navigate to
src/data/ - Edit the appropriate JSON file
- Validate JSON syntax
- Save and rebuild - Astro will hot-reload in dev mode
Example: Adding a New Service
To add a new service toservicios.json:
servicios.json and it will be available throughout the site.