# prvn-mhsh/hub architecture

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

- Interactive diagram: https://gitdiagram.com/prvn-mhsh/hub
- Repository: https://github.com/prvn-mhsh/hub

## Overview

##### Project Type and Purpose
- Type: Static portfolio website (single-page application).
- Purpose: Host personal résumé and portfolio content (index.html, styles.css, styles.js, Resume.pdf).

##### File Structure
- Top-level files:
- index.html – the main HTML entry point
- styles.css – styling
- styles.js – client-side script
- Resume.pdf – downloadable asset
- README.md – project description
- No backend code or server-side logic.

##### README for Additional Insights
- Confirms it’s a personal portfolio (“This repo consist of my portfoilio”).
- No mention of frameworks or external services beyond static hosting.

##### Main Components and Their Interactions
a. Components:
- Client (Web Browser)
- Web Server or Static-Hosting Service (e.g., GitHub Pages, Netlify, S3 + CloudFront)
- Static Assets:
– HTML (index.html)
– CSS (styles.css)
– JavaScript (styles.js)
– PDF (Resume.pdf)
b. Relationships:
- Browser → HTTP GET → Hosting Service
- Hosting Service → Serves → HTML/CSS/JS/PDF
- Browser ↔ Executes/Applies → JS & CSS, triggers PDF download
c. Architectural Patterns/Principles:
- Static-site architecture
- CDN caching (optional but recommended)
- Separation of concerns: content (HTML), styling (CSS), behavior (JS)
d. Technologies/Frameworks:
- Plain HTML/CSS/JavaScript
- Static-site host or CDN (GitHub Pages, Netlify, AWS S3 + CloudFront)

## Diagram (Mermaid)

```mermaid
graph TB
    Client["Web Browser"]:::client
    Hosting["Static Hosting/CDN"]:::hosting

    subgraph "Static Assets"
        HTML["index.html"]:::asset
        CSS["styles.css"]:::asset
        JS["styles.js"]:::asset
        PDF["Resume.pdf"]:::asset
        README["README.md"]:::asset
    end

    Client -->|"HTTP GET index.html"| Hosting
    Hosting -->|"HTTP 200 index.html"| HTML

    Client -->|"HTTP GET styles.css"| Hosting
    Hosting -->|"HTTP 200 styles.css"| CSS

    Client -->|"HTTP GET styles.js"| Hosting
    Hosting -->|"HTTP 200 styles.js"| JS

    Client -->|"HTTP GET Resume.pdf"| Hosting
    Hosting -->|"HTTP 200 Resume.pdf"| PDF

    HTML -->|"Render content"| Client
    CSS -->|"Apply styles"| Client
    JS -->|"Execute scripts"| Client
    PDF -->|"Download PDF"| Client

    click HTML "https://github.com/prvn-mhsh/hub/blob/main/index.html"
    click CSS "https://github.com/prvn-mhsh/hub/blob/main/styles.css"
    click JS "https://github.com/prvn-mhsh/hub/blob/main/styles.js"
    click PDF "https://github.com/prvn-mhsh/hub/blob/main/Resume.pdf"
    click README "https://github.com/prvn-mhsh/hub/blob/main/README.md"

    classDef client fill:#ADD8E6,stroke:#000
    classDef hosting fill:#90EE90,stroke:#000
    classDef asset fill:#FFA500,stroke:#000
```
