# anhquannlee/graduation-12a1 architecture

> Architecture diagram of the GitHub repository anhquannlee/graduation-12a1, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/anhquannlee/graduation-12a1
- Repository: https://github.com/anhquannlee/graduation-12a1

## Overview

##### Main Components
- Browser/Client: Represents the end-user’s browser, which loads and renders the static website.
- GitHub Pages / Hosting Service: Acts as the delivery mechanism where the static files (index.html, script.js, and styles.css) are hosted and served.
- Static Assets: The individual components of your website:
- index.html (providing the HTML structure/content)
- script.js (handling any client-side functionality)
- styles.css (handling presentation and styling)

##### Architectural Patterns and Design Principles
- Structure (HTML)
- Styling (CSS)
- Behavior (JavaScript)
- That the web hosting (GitHub Pages) serves only static content, with no server-side logic. This simplifies the architecture to a client-server model where the “server” is merely a file host.

##### Relevant Technologies and Their Roles
- HTML, CSS, and JavaScript are the core technologies.
- GitHub Pages is used to host these files and present the live preview of the site.
- Optionally, you might note that the user’s browser and the static file hosting provider communicate over HTTP/HTTPS, forming the basis of the interaction.

##### Elements
- Explicit labels for each component – “GitHub Pages”, “Client Browser”, “index.html”, “script.js”, “styles.css”.
- The browser requests content.
- The hosting service responds with the static content.
- Annotations to indicate what each file is responsible for (e.g., “structure”, “style”, “behavior”).

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Client Browser"
        A["Client Browser"]:::client
        A1["HTML (index.html)"]:::file
        A2["CSS (styles.css)"]:::file
        A3["JavaScript (script.js)"]:::file
    end

    subgraph "GitHub Pages / Static Hosting"
        H["GitHub Pages / Static Hosting"]:::hosting
        H1["index.html"]:::file
        H2["styles.css"]:::file
        H3["script.js"]:::file
    end

    A -->|"HTTP GET request for index.html,script.js,styles.css"| H
    H -->|"HTTP Response with Static Files"| A

    H -->|"contains"| H1
    H -->|"contains"| H2
    H -->|"contains"| H3

    A1 -->|"loads"| A2
    A1 -->|"loads"| A3

    click H "https://github.com/anhquannlee/graduation-12a1/blob/main/README.md"
    click H1 "https://github.com/anhquannlee/graduation-12a1/blob/main/index.html"
    click H2 "https://github.com/anhquannlee/graduation-12a1/blob/main/styles.css"
    click H3 "https://github.com/anhquannlee/graduation-12a1/blob/main/script.js"

    classDef client fill:#AED6F1,stroke:#1F618D,stroke-width:2px;
    classDef hosting fill:#ABEBC6,stroke:#239B56,stroke-width:2px;
    classDef file fill:#F9E79F,stroke:#F1C40F,stroke-width:2px;
```
