# fernandomeneses99/zentrosoft architecture

> Architecture diagram of the GitHub repository fernandomeneses99/zentrosoft, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fernandomeneses99/zentrosoft
- Repository: https://github.com/fernandomeneses99/zentrosoft

## Overview

ZentroSoft is a Spanish-language marketing site for its software and web services, with a dedicated VelarisPOS product page. Visitors browse service and product information, then use contact channels or submit a lead form; the site sends valid submissions through EmailJS and presents success feedback. The graph also includes consent-aware analytics and the VelarisPOS capability content. Source excerpts establish the form, shared UI, home interactions and consent behavior; links for unsampled page composition are omitted where wiring is not shown.

Main entry points: [`src/scripts/cookie-consent.ts`](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/scripts/cookie-consent.ts) (Cookie preferences), [`src/scripts/home.ts`](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/scripts/home.ts) (Home interactions), [`src/scripts/contact-form.ts`](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/scripts/contact-form.ts) (Contact form), [`src/pages/index.astro`](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/pages/index.astro) (Home page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Marketing site"]
  node_home["Home page<br/>[index.astro]"]
  node_sharedlayout["Shared layout<br/>[BaseLayout.astro]"]
  node_marketingcontent["Marketing sections"]
  node_servicecatalog["Service catalog<br/>[services.ts]"]
  node_clientlogos["Client references<br/>[clients.ts]"]
  node_faqcontent["FAQ content<br/>[faq.ts]"]
  node_structureddata["Structured data<br/>[jsonld.ts]"]
  node_thankyou["Thank-you page<br/>[gracias.astro]"]
end

subgraph group_velaris["VelarisPOS page"]
  node_velarispag["VelarisPOS page<br/>[velarispos.astro]"]
  node_velariscontent["POS capabilities<br/>[velaris.ts]"]
end

subgraph group_interaction["Browser interactions"]
  node_sharedui["Shared UI behavior<br/>[ui.ts]"]
  node_homebehavior["Home interactions<br/>[home.ts]"]
  node_velarisbehavior["POS interactions<br/>[velaris.ts]"]
end

subgraph group_lead["Lead and measurement"]
  node_contactform["Contact form<br/>[contact-form.ts]"]
  node_emailjs["EmailJS delivery"]
  node_cookieconsent["Cookie preferences<br/>[cookie-consent.ts]"]
  node_analytics["Conversion analytics<br/>[analytics.ts]"]
  node_google["Google analytics tags"]
end

node_visitor(("Site visitor"))

node_visitor -.->|"browses"| node_home
node_contactform -->|"sends lead"| node_emailjs
node_contactform -->|"tracks events"| node_cookieconsent
node_homebehavior -->|"uses motion preference"| node_sharedui
node_homebehavior -->|"tracks CTA"| node_cookieconsent
node_analytics -->|"tracks events"| node_cookieconsent
node_cookieconsent -->|"loads with consent"| node_google
node_home -.->|"redirects after success"| node_thankyou

click node_home "https://github.com/fernandomeneses99/zentrosoft/blob/main/src/pages/index.astro"
click node_sharedlayout "https://github.com/fernandomeneses99/zentrosoft/blob/main/src/layouts/BaseLayout.astro"
click node_marketingcontent "https://github.com/fernandomeneses99/zentrosoft/tree/main/src/components"
click node_servicecatalog "https://github.com/fernandomeneses99/zentrosoft/blob/main/src/data/services.ts"
click node_clientlogos "https://github.com/fernandomeneses99/zentrosoft/blob/main/src/data/clients.ts"
click node_faqcontent "https://github.com/fernandomeneses99/zentrosoft/blob/main/src/data/faq.ts"
click node_structureddata "https://github.com/fernandomeneses99/zentrosoft/blob/main/src/data/jsonld.ts"
click node_thankyou "https://github.com/fernandomeneses99/zentrosoft/blob/main/src/pages/gracias.astro"
click node_velarispag "https://github.com/fernandomeneses99/zentrosoft/blob/main/src/pages/velarispos.astro"
click node_velariscontent "https://github.com/fernandomeneses99/zentrosoft/blob/main/src/data/velaris.ts"
click node_sharedui "https://github.com/fernandomeneses99/zentrosoft/blob/main/src/scripts/ui.ts"
click node_homebehavior "https://github.com/fernandomeneses99/zentrosoft/blob/main/src/scripts/home.ts"
click node_velarisbehavior "https://github.com/fernandomeneses99/zentrosoft/blob/main/src/scripts/velaris.ts"
click node_contactform "https://github.com/fernandomeneses99/zentrosoft/blob/main/src/scripts/contact-form.ts"
click node_cookieconsent "https://github.com/fernandomeneses99/zentrosoft/blob/main/src/scripts/cookie-consent.ts"
click node_analytics "https://github.com/fernandomeneses99/zentrosoft/blob/main/src/scripts/analytics.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_home,node_sharedlayout,node_marketingcontent,node_servicecatalog,node_clientlogos,node_faqcontent,node_structureddata,node_thankyou toneBlue
class node_velarispag,node_velariscontent toneAmber
class node_sharedui,node_homebehavior,node_velarisbehavior toneMint
class node_contactform,node_emailjs,node_cookieconsent,node_analytics,node_google toneRose
class node_visitor toneIndigo
```

## Components

### Marketing site

- [Home page](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/pages/index.astro): `src/pages/index.astro`
- [Shared layout](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/layouts/BaseLayout.astro): `src/layouts/BaseLayout.astro`
- [Marketing sections](https://github.com/fernandomeneses99/zentrosoft/tree/main/src/components): `src/components`
- [Service catalog](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/data/services.ts): `src/data/services.ts`
- [Client references](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/data/clients.ts): `src/data/clients.ts`
- [FAQ content](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/data/faq.ts): `src/data/faq.ts`
- [Structured data](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/data/jsonld.ts): `src/data/jsonld.ts`
- [Thank-you page](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/pages/gracias.astro): `src/pages/gracias.astro`

### VelarisPOS page

- [VelarisPOS page](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/pages/velarispos.astro): `src/pages/velarispos.astro`
- [POS capabilities](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/data/velaris.ts): `src/data/velaris.ts`

### Browser interactions

- [Shared UI behavior](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/scripts/ui.ts): `src/scripts/ui.ts`
- [Home interactions](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/scripts/home.ts): `src/scripts/home.ts`
- [POS interactions](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/scripts/velaris.ts): `src/scripts/velaris.ts`

### Lead and measurement

- [Contact form](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/scripts/contact-form.ts): `src/scripts/contact-form.ts`
- **EmailJS delivery**
- [Cookie preferences](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/scripts/cookie-consent.ts): `src/scripts/cookie-consent.ts`
- [Conversion analytics](https://github.com/fernandomeneses99/zentrosoft/blob/main/src/scripts/analytics.ts): `src/scripts/analytics.ts`
- **Google analytics tags**

### Other components

- **Site visitor**

## Connections

- Site visitor → Home page: browses
- Contact form → EmailJS delivery: sends lead (evidence: `src/scripts/contact-form.ts`)
- Contact form → Cookie preferences: tracks events (evidence: `src/scripts/contact-form.ts`)
- Home interactions → Shared UI behavior: uses motion preference (evidence: `src/scripts/home.ts`)
- Home interactions → Cookie preferences: tracks CTA (evidence: `src/scripts/home.ts`)
- Conversion analytics → Cookie preferences: tracks events (evidence: `src/scripts/analytics.ts`)
- Cookie preferences → Google analytics tags: loads with consent (evidence: `src/scripts/cookie-consent.ts`)
- Home page → Thank-you page: redirects after success
