# arielcovarrubia/ecoruta-temuco architecture

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

- Interactive diagram: https://gitdiagram.com/arielcovarrubia/ecoruta-temuco
- Repository: https://github.com/arielcovarrubia/ecoruta-temuco

## Overview

EcoRuta is a static tourism website for exploring Araucanía attractions and routes, with shared navigation and accessibility/theme controls. The README describes maps and local businesses as product goals, but the sampled source does not confirm how those appear or connect, so they are represented only as documented content capabilities. The only sampled source is the shared layout script; links from individual pages to it are therefore omitted.

Main entry points: [`js/layout.js`](https://github.com/arielcovarrubia/ecoruta-temuco/blob/main/js/layout.js) (Shared layout), [`index.html`](https://github.com/arielcovarrubia/ecoruta-temuco/blob/main/index.html) (Home page), [`paginas`](https://github.com/arielcovarrubia/ecoruta-temuco/tree/main/paginas) (Destination pages), [`paginas/paginas extra`](https://github.com/arielcovarrubia/ecoruta-temuco/tree/main/paginas/paginas%20extra) (Route pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Tourism content"]
  node_home["Home page<br/>[index.html]"]
  node_destinations["Destination pages"]
  node_routes["Route pages"]
  node_contact["Contact page<br/>[contacto.html]"]
  node_maps["Maps"]
  node_businesses["Local businesses"]
end

subgraph group_shared["Shared interface"]
  node_layout["Shared layout<br/>[layout.js]"]
  node_header["Header component<br/>[header.html]"]
  node_footer["Footer component<br/>[footer.html]"]
  node_styles["Site styles<br/>[style.css]"]
end

subgraph group_preferences["User preferences"]
  node_storage[("Browser storage")]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_home
node_layout -->|"fetches"| node_header
node_layout -->|"fetches"| node_footer
node_layout -->|"reads preferences"| node_storage
node_layout -->|"writes preferences"| node_storage
node_visitor -.->|"browses"| node_destinations
node_visitor -.->|"browses"| node_routes

click node_home "https://github.com/arielcovarrubia/ecoruta-temuco/blob/main/index.html"
click node_destinations "https://github.com/arielcovarrubia/ecoruta-temuco/tree/main/paginas"
click node_routes "https://github.com/arielcovarrubia/ecoruta-temuco/tree/main/paginas/paginas%20extra"
click node_contact "https://github.com/arielcovarrubia/ecoruta-temuco/blob/main/paginas/paginas%20extra/contacto.html"
click node_maps "https://github.com/arielcovarrubia/ecoruta-temuco/tree/main/paginas"
click node_businesses "https://github.com/arielcovarrubia/ecoruta-temuco/tree/main/paginas"
click node_layout "https://github.com/arielcovarrubia/ecoruta-temuco/blob/main/js/layout.js"
click node_header "https://github.com/arielcovarrubia/ecoruta-temuco/blob/main/paginas/components/header.html"
click node_footer "https://github.com/arielcovarrubia/ecoruta-temuco/blob/main/paginas/components/footer.html"
click node_styles "https://github.com/arielcovarrubia/ecoruta-temuco/blob/main/css/style.css"

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_destinations,node_routes,node_contact,node_maps,node_businesses toneBlue
class node_layout,node_header,node_footer,node_styles toneAmber
class node_storage toneMint
class node_visitor toneIndigo
```

## Components

### Tourism content

- [Home page](https://github.com/arielcovarrubia/ecoruta-temuco/blob/main/index.html): `index.html`
- [Destination pages](https://github.com/arielcovarrubia/ecoruta-temuco/tree/main/paginas): `paginas`
- [Route pages](https://github.com/arielcovarrubia/ecoruta-temuco/tree/main/paginas/paginas%20extra): `paginas/paginas extra`
- [Contact page](https://github.com/arielcovarrubia/ecoruta-temuco/blob/main/paginas/paginas%20extra/contacto.html): `paginas/paginas extra/contacto.html`
- [Maps](https://github.com/arielcovarrubia/ecoruta-temuco/tree/main/paginas): `paginas`
- [Local businesses](https://github.com/arielcovarrubia/ecoruta-temuco/tree/main/paginas): `paginas`

### Shared interface

- [Shared layout](https://github.com/arielcovarrubia/ecoruta-temuco/blob/main/js/layout.js): `js/layout.js`
- [Header component](https://github.com/arielcovarrubia/ecoruta-temuco/blob/main/paginas/components/header.html): `paginas/components/header.html`
- [Footer component](https://github.com/arielcovarrubia/ecoruta-temuco/blob/main/paginas/components/footer.html): `paginas/components/footer.html`
- [Site styles](https://github.com/arielcovarrubia/ecoruta-temuco/blob/main/css/style.css): `css/style.css`

### User preferences

- **Browser storage**

### Other components

- **Visitor**

## Connections

- Visitor → Home page: opens site (evidence: `README.md`)
- Shared layout → Header component: fetches (evidence: `js/layout.js`)
- Shared layout → Footer component: fetches (evidence: `js/layout.js`)
- Shared layout → Browser storage: reads preferences (evidence: `js/layout.js`)
- Shared layout → Browser storage: writes preferences (evidence: `js/layout.js`)
- Visitor → Destination pages: browses
- Visitor → Route pages: browses
