# hedaguma/dev_internet_1 architecture

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

- Interactive diagram: https://gitdiagram.com/hedaguma/dev_internet_1
- Repository: https://github.com/hedaguma/dev_internet_1

## Overview

##### Project type and purpose
- This is a static, multi-page educational website for the “Desarrollo para Internet 1” course.
- It consists of standalone HTML lesson and exercise pages, a shared CSS stylesheet, a small navigation script, and is hosted on GitHub Pages.

##### File structure
- Top‐level files:
- Dozens of “U##_#_Ejercicio.html” pages (unit exercises)
- Topic pages (e.g., Definicion.html, Listas.html, Menu.html)
- index.html (main entry point)
- styles.css (global styles)
- menu.js (front-end navigation logic)
- There are no backend or data directories—purely static assets.

##### Extract insights from the README
- Technologies: HTML5, CSS3, GitHub Pages
- Purpose: host interactive presentations and links for students
- Deployment: served directly from a GitHub Pages repository (no server‐side code)

##### Main components
a. Client browser (Chrome, Firefox, etc.)
b. GitHub Pages hosting (static file server / CDN)
c. Static assets repository:
- HTML documents (content & presentation pages)
- CSS stylesheet (styles.css)
- JavaScript module (menu.js)
- Embedded/external resources (YouTube iframes, external links)
d. Optional: GitHub (source control + CI/CD push to Pages)

##### Relationships & data flow
- On HTML parse: Browser GET /styles.css & /menu.js → GitHub Pages returns CSS/JS
- Browser renders page, executes menu.js for dynamic nav
- Browser may fetch embedded/external content (iframes, API calls)

##### Architectural patterns & design principles
- Separation of concerns: content (HTML), presentation (CSS), behavior (JS)
- Static site hosting: no runtime servers, pure CDN distribution
- Flat file structure for easy navigation and scaling
- Caching friendly: leverage browser and CDN caching of static assets

##### Detail reminders
- Every asset type: HTML, CSS, JS, external embeds
- Hosting lifecycle: dev (GitHub) → build (Pages CI) → production (CDN)
- Keep labels concise but descriptive

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Client
    subgraph "Client Side"
        Browser["Client Browser"]:::client
        DNS["DNS Lookup"]:::client
    end

    %% Hosting
    subgraph "Hosting & CDN"
        GitHub["GitHub Pages CDN"]:::host
    end

    %% Repository contents
    subgraph "Repository Contents"
        Index["index.html"]:::asset
        CSS["styles.css"]:::asset
        JS["menu.js"]:::asset
        Content["Course Content Pages\n(Definicion.html, Listas.html, ... )"]:::asset
        Exercises["Unit Exercise Pages\n(U2_1_Ejercicio.html, U2_2_Ejercicio.html, ... )"]:::asset
        README["README.md"]:::asset
    end

    %% External resources
    Ext["External Embeds\n(YouTube, External Links)"]:::external

    %% Flows
    Browser --> DNS
    DNS --> Request["GET /index.html"]:::client
    Request --> GitHub
    GitHub --> Index
    GitHub --> CSS
    GitHub --> JS
    GitHub --> Content
    GitHub --> Exercises
    GitHub --> README
    Browser -->|"fetch HTML"| Index
    Browser -->|"fetch CSS/JS"| CSS & JS
    Index -->|"includes links to"| Content & Exercises
    JS -->|"executes navigation"| Browser
    Browser --> Ext

    %% Click Events
    click Index "https://github.com/hedaguma/dev_internet_1/blob/main/index.html"
    click CSS "https://github.com/hedaguma/dev_internet_1/blob/main/styles.css"
    click JS "https://github.com/hedaguma/dev_internet_1/blob/main/menu.js"
    click README "https://github.com/hedaguma/dev_internet_1/blob/main/README.md"

    %% Styles
    classDef client fill:#cce5ff,stroke:#3399ff;
    classDef host fill:#d4edda,stroke:#28a745;
    classDef asset fill:#fff3cd,stroke:#ffbf00;
    classDef external fill:#e2e3e5,stroke:#868e96;
```
