# hernangior/pousada architecture

> Architecture diagram of the GitHub repository hernangior/pousada, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hernangior/pousada
- Repository: https://github.com/hernangior/pousada

## Overview

##### Project Type Identification
This is a static website project, primarily focused on presenting information about a hotel/inn with multiple accommodation options. The structure suggests it's a frontend-only application using HTML, CSS, and JavaScript.

##### Main Components

A. Static Content Layer
- HTML Pages (represent with rectangles)
- Home (index.html)
- Apartment pages
- Contact page
- About Us page
- Facilities pages

B. Presentation Layer
- CSS Components (represent with rounded rectangles)
- Bootstrap 3.4.1
- Bootstrap 4.4.1
- Font Awesome
- Custom styles

C. Interactive Layer
- JavaScript Components (represent with hexagons)
- jQuery
- Bootstrap JS
- Form handling
- Contact validation
- Mask functionality

D. Asset Management
- Images
- Fonts
- SVGs

**┌─────────────────────────────────────────────┐**
- Client Browser               │
- ┘
- ↓
**┌─────────────────────────────────────────────┐**
- Static Web Server              │
- ┘
- ↓
**┌─────────────────────────────────────────────┐**
- HTML Pages Layer              │
- ┬─────────────┬────────────────┤
- Main Pages │ Apartments  │ Facility Pages │
- ┴─────────────┴────────────────┘
- ↓
**┌─────────────────────────────────────────────┐**
- Presentation Layer               │
- ┬─────────────┬────────────────┤
- Bootstrap  │Font Awesome │ Custom CSS     │
- ┴─────────────┴────────────────┘
- ↓
**┌─────────────────────────────────────────────┐**
- Interactive Layer                │
- ┬─────────────┬────────────────┤
- jQuery    │  Forms      │ Validation     │
- ┴─────────────┴────────────────┘
- ↓
**┌─────────────────────────────────────────────┐**
- Asset Management                │
- ┬─────────────┬────────────────┤
- ┴─────────────┴────────────────┘

##### Important Elements to Highlight
- Form submission handling (contact_me.js and form-submission-handler.js)
- Multiple Bootstrap versions coexistence
- Image gallery organization
- Responsive design components

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Client
        Browser["Web Browser"]
    end

    subgraph StaticServer["Static Web Server"]
        WebServer["HTTP Server"]
    end

    subgraph StaticContent["Static Content Layer"]
        Home["Home Page"]:::page
        Apartments["Apartment Pages"]:::page
        Contact["Contact Page"]:::page
        About["About Us Page"]:::page
        Facilities["Facilities Page"]:::page
    end

    subgraph Presentation["Presentation Layer"]
        Bootstrap3["Bootstrap 3.4.1"]:::css
        Bootstrap4["Bootstrap 4.4.1"]:::css
        FontAwesome["Font Awesome"]:::css
        CustomCSS["Custom Styles"]:::css
    end

    subgraph Interactive["Interactive Layer"]
        jQuery["jQuery Core"]:::js
        FormHandling["Form Handling"]:::js
        FormValidation["Form Validation"]:::js
        MaskFunc["Mask Functionality"]:::js
        BootstrapJS["Bootstrap JS"]:::js
    end

    subgraph Assets["Asset Management"]
        Images["Images"]:::asset
        Fonts["Fonts"]:::asset
        Icons["Icons"]:::asset
        SVGs["SVGs"]:::asset
        Backgrounds["Backgrounds"]:::asset
    end

    Browser --> WebServer
    WebServer --> StaticContent
    StaticContent --> Presentation
    Presentation --> Interactive
    Interactive --> Assets

    %% Component Mappings
    click Home "https://github.com/hernangior/pousada/blob/master/index.html"
    click Apartments "https://github.com/hernangior/pousada/blob/master/apartamento.html"
    click Contact "https://github.com/hernangior/pousada/blob/master/contato.html"
    click About "https://github.com/hernangior/pousada/blob/master/quem_somos.html"
    click Facilities "https://github.com/hernangior/pousada/blob/master/piscina_e_cafeteria.html"
    
    click Bootstrap3 "https://github.com/hernangior/pousada/blob/master/css/bootstrap-3.4.1-dist"
    click Bootstrap4 "https://github.com/hernangior/pousada/blob/master/css/bootstrap-4.4.1-dist"
    click FontAwesome "https://github.com/hernangior/pousada/tree/master/css/font-awesome"
    click CustomCSS "https://github.com/hernangior/pousada/blob/master/css/style.css"
    
    click jQuery "https://github.com/hernangior/pousada/blob/master/js/jquery-3.4.1.js"
    click FormHandling "https://github.com/hernangior/pousada/blob/master/js/contact_me.js"
    click FormValidation "https://github.com/hernangior/pousada/blob/master/js/jqBootstrapValidation.js"
    click MaskFunc "https://github.com/hernangior/pousada/blob/master/js/jquery.mask.js"
    click BootstrapJS "https://github.com/hernangior/pousada/blob/master/js/bootstrap-3.4.1-dist/bootstrap.js"
    
    click Images "https://github.com/hernangior/pousada/tree/master/imgs/elements"
    click Fonts "https://github.com/hernangior/pousada/tree/master/fonts"
    click Icons "https://github.com/hernangior/pousada/tree/master/imgs/favicon"
    click SVGs "https://github.com/hernangior/pousada/tree/master/imgs/svg"
    click Backgrounds "https://github.com/hernangior/pousada/tree/master/imgs/backgrounds"

    %% Styling
    classDef page fill:#2196F3,stroke:#1565C0,color:white
    classDef css fill:#4CAF50,stroke:#2E7D32,color:white
    classDef js fill:#FF9800,stroke:#EF6C00,color:white
    classDef asset fill:#9E9E9E,stroke:#616161,color:white
    
    %% Legend
    subgraph Legend
        L1["Static Pages"]:::page
        L2["CSS Components"]:::css
        L3["JavaScript"]:::js
        L4["Assets"]:::asset
    end
```
