# destrabe/proy-web-utp architecture

> Architecture diagram of the GitHub repository destrabe/proy-web-utp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/destrabe/proy-web-utp
- Repository: https://github.com/destrabe/proy-web-utp

## Overview

##### Project type and purpose
- This is a purely front-end, static website project (no back-end services) built with vanilla HTML5, CSS3 and JavaScript.
- The goal is to present a multi-page site (home, menu/carta, promotions, and reservations) along with shared assets (images, SVGs) and styles.

##### File structure
- Top-level files:
- index.html (home page entry point)
- pages/ (additional HTML pages: carta.html, promociones.html, reservas.html)
- assets/images & assets/svg (all graphic resources)
- styles/ (modular CSS: global.css, header.css, footer.css, page-specific styles)
- No back-end code or build scripts—everything is delivered as static files.

##### README for additional insights
- Emphasis on “HTML, CSS y JavaScript (Vanilla)” and “buenas prácticas en la estructura y diseño del código.”
- No mention of a server-side component, so the architecture is client-driven.

##### Detail is key—capture every folder as a distinct component
- Assets/images and assets/svg under a single “Static Assets” component.
- Pages/*.html under “HTML Pages” and list each page as a sub-item.
- Styles/*.css as separate modules or group them under “CSS Modules,” annotating global vs page-specific files.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Client Layer
    Browser["Client / Browser"]:::client

    %% Hosting Layer
    WebHost["Web Host / CDN"]:::host
    Browser -->|"HTTP GET"| WebHost

    %% Static Content Layer
    subgraph "Static Content"
        direction TB

        subgraph "HTML Pages"
            direction TB
            Home["index.html"]:::front
            Carta["pages/carta.html"]:::front
            Promociones["pages/promociones.html"]:::front
            Reservas["pages/reservas.html"]:::front
        end

        subgraph "CSS Modules"
            direction TB
            GlobalCSS["styles/global.css"]:::front
            HeaderCSS["styles/header.css"]:::front
            FooterCSS["styles/footer.css"]:::front
            HomeCSS["styles/home.css"]:::front
            MenuCSS["styles/menu.css"]:::front
            PromotionsCSS["styles/promotions.css"]:::front
            ReservationsCSS["styles/reservations.css"]:::front
        end

        subgraph "JavaScript Logic"
            direction TB
            JS["Inline .js or .js files"]:::front
        end

        subgraph "Static Assets"
            direction TB

            subgraph "Images"
                direction TB
                ImgHome["assets/images/home"]:::asset
                ImgIndex["assets/images/index"]:::asset
                ImgLogo["assets/images/logo"]:::asset
                ImgProm["assets/images/promociones"]:::asset
                ImgRF["assets/images/RecursosFuturo"]:::asset
            end

            subgraph "SVGs"
                direction TB
                SVGs["assets/svg"]:::asset
            end
        end
    end

    %% Content Serving
    WebHost -->|"serves HTML"| Home
    WebHost -->|"serves HTML"| Carta
    WebHost -->|"serves HTML"| Promociones
    WebHost -->|"serves HTML"| Reservas
    WebHost -->|"serves CSS"| GlobalCSS
    WebHost -->|"serves CSS"| HeaderCSS
    WebHost -->|"serves CSS"| FooterCSS
    WebHost -->|"serves CSS"| HomeCSS
    WebHost -->|"serves CSS"| MenuCSS
    WebHost -->|"serves CSS"| PromotionsCSS
    WebHost -->|"serves CSS"| ReservationsCSS
    WebHost -->|"serves JS"| JS
    WebHost -->|"serves Assets"| ImgHome
    WebHost -->|"serves Assets"| ImgIndex
    WebHost -->|"serves Assets"| ImgLogo
    WebHost -->|"serves Assets"| ImgProm
    WebHost -->|"serves Assets"| ImgRF
    WebHost -->|"serves Assets"| SVGs

    %% Browser loading
    Home -->|"parse HTML"| Browser
    Carta -->|"parse HTML"| Browser
    Promociones -->|"parse HTML"| Browser
    Reservas -->|"parse HTML"| Browser
    GlobalCSS -->|"load CSS"| Browser
    HeaderCSS -->|"load CSS"| Browser
    FooterCSS -->|"load CSS"| Browser
    HomeCSS -->|"load CSS"| Browser
    MenuCSS -->|"load CSS"| Browser
    PromotionsCSS -->|"load CSS"| Browser
    ReservationsCSS -->|"load CSS"| Browser
    JS -->|"execute JS"| Browser
    ImgHome -->|"fetch image"| Browser
    ImgIndex -->|"fetch image"| Browser
    ImgLogo -->|"fetch image"| Browser
    ImgProm -->|"fetch image"| Browser
    ImgRF -->|"fetch image"| Browser
    SVGs -->|"fetch SVG"| Browser

    %% Click Events
    click Home "https://github.com/destrabe/proy-web-utp/blob/main/index.html"
    click Carta "https://github.com/destrabe/proy-web-utp/blob/main/pages/carta.html"
    click Promociones "https://github.com/destrabe/proy-web-utp/blob/main/pages/promociones.html"
    click Reservas "https://github.com/destrabe/proy-web-utp/blob/main/pages/reservas.html"
    click GlobalCSS "https://github.com/destrabe/proy-web-utp/blob/main/styles/global.css"
    click HeaderCSS "https://github.com/destrabe/proy-web-utp/blob/main/styles/header.css"
    click FooterCSS "https://github.com/destrabe/proy-web-utp/blob/main/styles/footer.css"
    click HomeCSS "https://github.com/destrabe/proy-web-utp/blob/main/styles/home.css"
    click MenuCSS "https://github.com/destrabe/proy-web-utp/blob/main/styles/menu.css"
    click PromotionsCSS "https://github.com/destrabe/proy-web-utp/blob/main/styles/promotions.css"
    click ReservationsCSS "https://github.com/destrabe/proy-web-utp/blob/main/styles/reservations.css"
    click ImgHome "https://github.com/destrabe/proy-web-utp/tree/main/assets/images/home"
    click ImgIndex "https://github.com/destrabe/proy-web-utp/tree/main/assets/images/index"
    click ImgLogo "https://github.com/destrabe/proy-web-utp/tree/main/assets/images/logo"
    click ImgProm "https://github.com/destrabe/proy-web-utp/tree/main/assets/images/promociones"
    click ImgRF "https://github.com/destrabe/proy-web-utp/tree/main/assets/images/RecursosFuturo"
    click SVGs "https://github.com/destrabe/proy-web-utp/tree/main/assets/svg"

    %% Styles
    classDef client fill:#D6EAF8,stroke:#2980B9
    classDef host fill:#F4F6F6,stroke:#7F8C8D
    classDef front fill:#AED6F1,stroke:#1F618D
    classDef asset fill:#ABEBC6,stroke:#28B463
```
