# germanjcm/interfem architecture

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

- Interactive diagram: https://gitdiagram.com/germanjcm/interfem
- Repository: https://github.com/germanjcm/interfem

## Overview

1. **Project shape**
   - This is a **static Astro landing site** for InterFEM, an internet service provider.
   - The architecture is mostly **presentation-only**: pages are pre-rendered from `.astro` files and deployed to Vercel, with no visible backend, database, or API layer in the repo.

2. **Routing and page composition**
   - Each user-facing section is implemented as a route under `src/pages/`.
   - The main pages are `index`, `paquetes`, `cobertura`, `empresa`, `contacto`, `ser-residencial`, `ser-empresarial`, `aviso`, plus mirrored service routes under `src/pages/servicios/`.
   - This means navigation is primarily **page-to-page routing**, not client-side app state.

3. **Shared layout boundary**
   - `src/layouts/Layout.astro` is the top-level wrapper used to standardize the site shell.
   - It likely centralizes the document structure, global metadata, and shared elements such as header/footer placement.
   - This is the main boundary between page content and the common site chrome.

4. **Reusable UI components**
   - `src/components/Header.astro`, `Footer.astro`, and `Popup.astro` are the reusable UI building blocks.
   - Header/footer define consistent navigation and site identity across pages.
   - The popup is the only clearly interactive shared component, likely used as a contact/conversion element across the landing experience.

5. **Content and conversion flow**
   - The site is structured as a **marketing funnel**: home page, service pages, plans, coverage, company info, and contact/legal pages.
   - The primary conversion path is from informational sections into contact-oriented actions, with the popup and contact page acting as the main lead-capture touchpoints.
   - There is no evidence of server-side form processing in the repo, so contact likely relies on static links, embedded interactions, or client-side behavior.

6. **Coverage subsystem**
   - `src/pages/cobertura.astro` is paired with `public/cobertura.geojson`.
   - That suggests a map or coverage visualization that consumes geographic boundary data from a static GeoJSON asset.
   - This is the clearest data-driven feature in the repo, though it still appears static and client-rendered rather than API-backed.

7. **Static asset layer**
   - `public/` contains PDFs, images, CSS files, and `public/script.js`.
   - The PDFs are business/legal documents: privacy notice, commercial practice code, regulatory/complaint docs.
   - These assets are served directly by the host and represent the site’s non-component content layer.

8. **Styling system**
   - Styling is split between `src/styles/global.css` and public CSS assets like `public/css/styles.css`, `tokens.css`, and `interfem-design-tokens.css`.
   - The presence of design-token CSS files indicates a tokenized visual system for colors, spacing, or typography.
   - Styling is therefore managed as static CSS rather than a JS-heavy component styling pipeline.

9. **Client-side behavior**
   - `public/script.js` is the only explicit JavaScript asset in the tree.
   - That implies limited client-side interactivity, likely for the popup, navigation behavior, or minor UI enhancements.
   - The architecture remains mostly server-rendered/static with small islands of behavior.

10. **Legal and compliance surface**
   - The `aviso` page and several PDFs in `public/` show a compliance-focused information layer.
   - These documents are part of the public site and likely linked from footer or legal sections.
   - In an architecture diagram, this is a separate static content branch rather than an application service.

11. **Deployment/runtime**
   - The repo is configured for **Astro on Vercel**.
   - Vercel serves the generated static site and handles build/deploy automation from Git.
   - Because there is no backend service in the tree, the deployment boundary is simply “source → Astro build → static hosting.”

12. **Practical diagram summary**
   - The best architecture diagram would show:
     - **Browser** requesting Astro routes
     - **Astro pages** composing shared layout and components
     - **Static assets** from `public/` and CSS/JS files
     - **GeoJSON-driven coverage page**
     - **Vercel** as the hosting/deployment target
   - The system is fundamentally a **static marketing site with shared components and a small amount of client-side enhancement**.

Main entry points: [`src/layouts/Layout.astro`](https://github.com/germanjcm/interfem/blob/main/src/layouts/Layout.astro) (Layout), [`src/components/Popup.astro`](https://github.com/germanjcm/interfem/blob/main/src/components/Popup.astro) (Popup), [`src/pages/index.astro`](https://github.com/germanjcm/interfem/blob/main/src/pages/index.astro) (Home), [`src/pages/paquetes.astro`](https://github.com/germanjcm/interfem/blob/main/src/pages/paquetes.astro) (Plans)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_src["Source"]
  node_astro_app["Astro site"]
  node_layout["Layout<br/>shell<br/>[Layout.astro]"]
  node_header["Header<br/>nav<br/>[Header.astro]"]
  node_footer["Footer<br/>nav<br/>[Footer.astro]"]
  node_popup["Popup<br/>cta<br/>[Popup.astro]"]
  node_home["Home<br/>route<br/>[index.astro]"]
  node_plans["Plans<br/>route<br/>[paquetes.astro]"]
  node_coverage["Coverage<br/>route<br/>[cobertura.astro]"]
  node_company["Company<br/>route<br/>[empresa.astro]"]
  node_contact["Contact<br/>route<br/>[contacto.astro]"]
  node_residential["Residential<br/>route"]
  node_business["Business<br/>route"]
  node_legal["Legal<br/>route<br/>[aviso.astro]"]
  node_service_pages["Service mirrors<br/>route set"]
end

subgraph group_public["Public"]
  node_style_system["Styles<br/>css system"]
  node_coverage_geojson["GeoJSON<br/>map data<br/>[cobertura.geojson]"]
  node_legal_docs["Documents<br/>pdf set"]
  node_script_js["Script<br/>client js<br/>[script.js]"]
end

subgraph group_deploy["Deploy"]
  node_vercel[("Vercel<br/>host")]
end

node_browser(("Browser<br/>client"))

node_browser -->|"requests site"| node_vercel
node_vercel -->|"serves build"| node_astro_app
node_astro_app -->|"wraps"| node_layout
node_layout -->|"includes"| node_header
node_layout -->|"includes"| node_footer
node_layout -->|"mounts"| node_popup
node_layout -->|"renders"| node_home
node_layout -->|"renders"| node_plans
node_layout -->|"renders"| node_coverage
node_layout -->|"renders"| node_company
node_layout -->|"renders"| node_contact
node_layout -->|"renders"| node_residential
node_layout -->|"renders"| node_business
node_layout -->|"renders"| node_legal
node_layout -->|"renders"| node_service_pages
node_coverage -->|"loads data"| node_coverage_geojson
node_home -->|"promotes"| node_popup
node_plans -->|"promotes"| node_popup
node_contact -->|"promotes"| node_popup
node_service_pages -->|"promotes"| node_popup
node_legal -->|"links"| node_legal_docs
node_astro_app -->|"uses styles"| node_style_system
node_astro_app -->|"uses script"| node_script_js

click node_layout "https://github.com/germanjcm/interfem/blob/main/src/layouts/Layout.astro"
click node_header "https://github.com/germanjcm/interfem/blob/main/src/components/Header.astro"
click node_footer "https://github.com/germanjcm/interfem/blob/main/src/components/Footer.astro"
click node_popup "https://github.com/germanjcm/interfem/blob/main/src/components/Popup.astro"
click node_home "https://github.com/germanjcm/interfem/blob/main/src/pages/index.astro"
click node_plans "https://github.com/germanjcm/interfem/blob/main/src/pages/paquetes.astro"
click node_coverage "https://github.com/germanjcm/interfem/blob/main/src/pages/cobertura.astro"
click node_company "https://github.com/germanjcm/interfem/blob/main/src/pages/empresa.astro"
click node_contact "https://github.com/germanjcm/interfem/blob/main/src/pages/contacto.astro"
click node_residential "https://github.com/germanjcm/interfem/blob/main/src/pages/ser-residencial.astro"
click node_business "https://github.com/germanjcm/interfem/blob/main/src/pages/ser-empresarial.astro"
click node_legal "https://github.com/germanjcm/interfem/blob/main/src/pages/aviso.astro"
click node_service_pages "https://github.com/germanjcm/interfem/tree/main/src/pages/servicios"
click node_style_system "https://github.com/germanjcm/interfem/tree/main/public/css"
click node_coverage_geojson "https://github.com/germanjcm/interfem/blob/main/public/cobertura.geojson"
click node_legal_docs "https://github.com/germanjcm/interfem/tree/main/public"
click node_script_js "https://github.com/germanjcm/interfem/blob/main/public/script.js"

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_astro_app,node_layout,node_header,node_footer,node_popup,node_home,node_plans,node_coverage,node_company,node_contact,node_residential,node_business,node_legal,node_service_pages toneBlue
class node_style_system,node_coverage_geojson,node_legal_docs,node_script_js toneAmber
class node_vercel toneMint
class node_browser toneNeutral
```

## Components

### Source

Astro site source, page routes, and shared UI

- **Astro site**: site · Static landing site assembled from routes and layout
- [Layout](https://github.com/germanjcm/interfem/blob/main/src/layouts/Layout.astro): shell · Top-level document and shared site chrome · `src/layouts/Layout.astro`
- [Header](https://github.com/germanjcm/interfem/blob/main/src/components/Header.astro): nav · Shared navigation and brand header · `src/components/Header.astro`
- [Footer](https://github.com/germanjcm/interfem/blob/main/src/components/Footer.astro): nav · Shared footer and legal links · `src/components/Footer.astro`
- [Popup](https://github.com/germanjcm/interfem/blob/main/src/components/Popup.astro): cta · Shared conversion-focused interactive component · `src/components/Popup.astro`
- [Home](https://github.com/germanjcm/interfem/blob/main/src/pages/index.astro): route · Main landing page · `src/pages/index.astro`
- [Plans](https://github.com/germanjcm/interfem/blob/main/src/pages/paquetes.astro): route · Packages and offers page · `src/pages/paquetes.astro`
- [Coverage](https://github.com/germanjcm/interfem/blob/main/src/pages/cobertura.astro): route · Coverage map and availability page · `src/pages/cobertura.astro`
- [Company](https://github.com/germanjcm/interfem/blob/main/src/pages/empresa.astro): route · About the company page · `src/pages/empresa.astro`
- [Contact](https://github.com/germanjcm/interfem/blob/main/src/pages/contacto.astro): route · Lead capture and contact page · `src/pages/contacto.astro`
- [Residential](https://github.com/germanjcm/interfem/blob/main/src/pages/ser-residencial.astro): route · Residential service page · `src/pages/ser-residencial.astro`
- [Business](https://github.com/germanjcm/interfem/blob/main/src/pages/ser-empresarial.astro): route · Business service page · `src/pages/ser-empresarial.astro`
- [Legal](https://github.com/germanjcm/interfem/blob/main/src/pages/aviso.astro): route · Privacy and notice page · `src/pages/aviso.astro`
- [Service mirrors](https://github.com/germanjcm/interfem/tree/main/src/pages/servicios): route set · Mirrored service routes under /servicios · `src/pages/servicios`

### Public

Static assets, styles, documents, and client script

- [Styles](https://github.com/germanjcm/interfem/tree/main/public/css): css system · Global CSS and tokenized styling assets · `public/css`
- [GeoJSON](https://github.com/germanjcm/interfem/blob/main/public/cobertura.geojson): map data · Static coverage boundary data · `public/cobertura.geojson`
- [Documents](https://github.com/germanjcm/interfem/tree/main/public): pdf set · Privacy and compliance PDFs · `public`
- [Script](https://github.com/germanjcm/interfem/blob/main/public/script.js): client js · Small client-side behavior layer · `public/script.js`

### Deploy

Vercel hosting and build output boundary

- **Vercel**: host · Static hosting and deploy target

### Other components

- **Browser**: client · User-facing entry point

## Connections

- Browser → Vercel: requests site · User requests the static site from the hosting boundary
- Vercel → Astro site: serves build · Vercel serves the generated Astro output
- Astro site → Layout: wraps · All routes are composed through the shared site shell
- Layout → Header: includes · Shared header is part of the common shell
- Layout → Footer: includes · Shared footer is part of the common shell
- Layout → Popup: mounts · Shared popup can be placed from the shell
- Layout → Home: renders · Route content is injected into the layout
- Layout → Plans: renders · Route content is injected into the layout
- Layout → Coverage: renders · Route content is injected into the layout
- Layout → Company: renders · Route content is injected into the layout
- Layout → Contact: renders · Route content is injected into the layout
- Layout → Residential: renders · Route content is injected into the layout
- Layout → Business: renders · Route content is injected into the layout
- Layout → Legal: renders · Route content is injected into the layout
- Layout → Service mirrors: renders · Mirrored service routes also use the shared layout
- Coverage → GeoJSON: loads data · Coverage page consumes static geographic boundaries
- Home → Popup: promotes · Landing page drives conversion into the shared popup
- Plans → Popup: promotes · Plans page drives conversion into the shared popup
- Contact → Popup: promotes · Contact page can reuse the shared popup
- Service mirrors → Popup: promotes · Service routes can reuse the shared popup
- Legal → Documents: links · Legal page points to compliance documents
- Astro site → Styles: uses styles · Site styling is provided by static CSS assets
- Astro site → Script: uses script · Limited client-side enhancement layer
