# eric1718/tour-agency-cartagena architecture

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

- Interactive diagram: https://gitdiagram.com/eric1718/tour-agency-cartagena
- Repository: https://github.com/eric1718/tour-agency-cartagena

## Overview

Cartagena Tours is a static tourism landing site for presenting Cartagena tour experiences and converting visitors into booking inquiries. The documented visitor journey is to browse tour details and prices, then use a contact or reservation call to action; the sampled JavaScript also implements currency and language controls, interactive tour selectors, and booking dialogs. The two site copies contain parallel scripts, with a different WhatsApp number. HTML wiring and the full script were not inspected, so links between page elements and these behaviors are not asserted.

Main entry points: [`js/script.js`](https://github.com/eric1718/tour-agency-cartagena/blob/main/js/script.js) (Main interactions), [`copias-proyecto-tour/js/script.js`](https://github.com/eric1718/tour-agency-cartagena/blob/main/copias-proyecto-tour/js/script.js) (Copied interactions), [`index.html`](https://github.com/eric1718/tour-agency-cartagena/blob/main/index.html) (Main landing), [`contacto.html`](https://github.com/eric1718/tour-agency-cartagena/blob/main/contacto.html) (Contact page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Tour site"]
  node_main["Main landing<br/>[index.html]"]
  node_contact["Contact page<br/>[contacto.html]"]
  node_copy_main["Copied landing<br/>[index.html]"]
  node_copy_contact["Copied contact<br/>[contacto.html]"]
  node_styles["Site styling<br/>[styles.css]"]
  node_copy_styles["Copied styling<br/>[styles.css]"]
end

subgraph group_interaction["Visitor interactions"]
  node_main_js["Main interactions<br/>[script.js]"]
  node_copy_js["Copied interactions<br/>[script.js]"]
end

subgraph group_conversion["Booking contact"]
  node_booking["Tour booking dialog<br/>[script.js]"]
  node_copy_booking["Copied booking dialog<br/>[script.js]"]
end

node_visitor(("Traveler"))
node_currency_api["Exchange rate API"]
node_google_translate["Google Translate"]
node_whatsapp["WhatsApp contact"]

node_visitor -->|"browses tours"| node_main
node_visitor -->|"requests information"| node_contact
node_visitor -->|"browses tours"| node_copy_main
node_visitor -->|"requests information"| node_copy_contact
node_main_js -->|"fetches rates"| node_currency_api
node_copy_js -->|"fetches rates"| node_currency_api
node_main_js -->|"translates language"| node_google_translate
node_copy_js -->|"translates language"| node_google_translate
node_main_js -->|"opens dialog"| node_booking
node_copy_js -->|"opens dialog"| node_copy_booking
node_main_js -->|"opens inquiry"| node_whatsapp
node_copy_js -->|"opens inquiry"| node_whatsapp

click node_main "https://github.com/eric1718/tour-agency-cartagena/blob/main/index.html"
click node_contact "https://github.com/eric1718/tour-agency-cartagena/blob/main/contacto.html"
click node_copy_main "https://github.com/eric1718/tour-agency-cartagena/blob/main/copias-proyecto-tour/index.html"
click node_copy_contact "https://github.com/eric1718/tour-agency-cartagena/blob/main/copias-proyecto-tour/contacto.html"
click node_styles "https://github.com/eric1718/tour-agency-cartagena/blob/main/css/styles.css"
click node_copy_styles "https://github.com/eric1718/tour-agency-cartagena/blob/main/copias-proyecto-tour/css/styles.css"
click node_main_js "https://github.com/eric1718/tour-agency-cartagena/blob/main/js/script.js"
click node_copy_js "https://github.com/eric1718/tour-agency-cartagena/blob/main/copias-proyecto-tour/js/script.js"
click node_booking "https://github.com/eric1718/tour-agency-cartagena/blob/main/js/script.js"
click node_copy_booking "https://github.com/eric1718/tour-agency-cartagena/blob/main/copias-proyecto-tour/js/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_main,node_contact,node_copy_main,node_copy_contact,node_styles,node_copy_styles toneBlue
class node_main_js,node_copy_js toneAmber
class node_booking,node_copy_booking,node_currency_api toneMint
class node_visitor,node_google_translate,node_whatsapp toneIndigo
```

## Components

### Tour site

- [Main landing](https://github.com/eric1718/tour-agency-cartagena/blob/main/index.html): `index.html`
- [Contact page](https://github.com/eric1718/tour-agency-cartagena/blob/main/contacto.html): `contacto.html`
- [Copied landing](https://github.com/eric1718/tour-agency-cartagena/blob/main/copias-proyecto-tour/index.html): `copias-proyecto-tour/index.html`
- [Copied contact](https://github.com/eric1718/tour-agency-cartagena/blob/main/copias-proyecto-tour/contacto.html): `copias-proyecto-tour/contacto.html`
- [Site styling](https://github.com/eric1718/tour-agency-cartagena/blob/main/css/styles.css): `css/styles.css`
- [Copied styling](https://github.com/eric1718/tour-agency-cartagena/blob/main/copias-proyecto-tour/css/styles.css): `copias-proyecto-tour/css/styles.css`

### Visitor interactions

- [Main interactions](https://github.com/eric1718/tour-agency-cartagena/blob/main/js/script.js): `js/script.js`
- [Copied interactions](https://github.com/eric1718/tour-agency-cartagena/blob/main/copias-proyecto-tour/js/script.js): `copias-proyecto-tour/js/script.js`

### Booking contact

- [Tour booking dialog](https://github.com/eric1718/tour-agency-cartagena/blob/main/js/script.js): `js/script.js`
- [Copied booking dialog](https://github.com/eric1718/tour-agency-cartagena/blob/main/copias-proyecto-tour/js/script.js): `copias-proyecto-tour/js/script.js`

### Other components

- **Traveler**
- **Exchange rate API**
- **Google Translate**
- **WhatsApp contact**

## Connections

- Traveler → Main landing: browses tours (evidence: `README.md`)
- Traveler → Contact page: requests information (evidence: `README.md`)
- Traveler → Copied landing: browses tours (evidence: `README.md`)
- Traveler → Copied contact: requests information (evidence: `README.md`)
- Main interactions → Exchange rate API: fetches rates (evidence: `js/script.js`)
- Copied interactions → Exchange rate API: fetches rates (evidence: `copias-proyecto-tour/js/script.js`)
- Main interactions → Google Translate: translates language (evidence: `js/script.js`)
- Copied interactions → Google Translate: translates language (evidence: `copias-proyecto-tour/js/script.js`)
- Main interactions → Tour booking dialog: opens dialog (evidence: `js/script.js`)
- Copied interactions → Copied booking dialog: opens dialog (evidence: `copias-proyecto-tour/js/script.js`)
- Main interactions → WhatsApp contact: opens inquiry (evidence: `js/script.js`)
- Copied interactions → WhatsApp contact: opens inquiry (evidence: `copias-proyecto-tour/js/script.js`)
