# mr-vicky-01/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/mr-vicky-01/portfolio
- Repository: https://github.com/mr-vicky-01/portfolio

## Overview

##### Project type and purpose
- This is a static portfolio website built with plain HTML, CSS, and JavaScript.
- The README confirms it is hosted via GitHub Pages and serves as a personal showcase of projects.

##### File structure
- Top-level files:
- index.html – the homepage
- projects/ – a folder containing individual project pages (blog.html, todo.html, etc.)
- assets/ – static assets subdivided into css/, js/, img/, and vendor/
- website_images/ – additional images used site-wide
- No backend code or database; everything is client-side.
- Configuration is implicit (GitHub Pages) rather than via build scripts or server configs.

##### README for additional insights
- The site is published at https://mr-vicky-01.github.io/Portfolio/
- No further architectural details provided; it’s a straightforward static site.

##### Detailed breakdown of components to capture
- Frontend Layer:
- index.html (entry point)
- /projects/*.html
- assets/js/main.js (UI logic)
- assets/css/style.css (theme, layout)
- Asset Storage:
- assets/img/… (background, project thumbnails)
- website_images/ (misc images)
- Hosting & Delivery:
- GitHub Pages repository
- DNS resolution
- CDN edge caches
- Client Interaction:
- User device (desktop/mobile) running a browser

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Client Side"
        User["User (Browser)"]:::client
        BrowserEngine["Browser Rendering Engine"]:::client
    end

    subgraph "Delivery Infrastructure"
        DNS["DNS Resolution"]:::infra
        CDN["CDN / GitHub Pages"]:::infra
        StaticHost["GitHub Pages Static Host"]:::infra
    end

    subgraph "Static File Store"
        HTMLIndex["index.html"]:::html
        Projects["projects/*.html"]:::html
        CSS["assets/css/style.css"]:::css
        JS["assets/js/main.js"]:::js
        ImgAssets["assets/img/..."]:::image
        SiteImages["website_images/"]:::image
        Vendor["assets/vendor/"]:::vendor
    end

    User -->|"requests homepage"| DNS
    DNS --> CDN
    CDN -->|"cache miss fetch"| StaticHost
    StaticHost --> HTMLIndex
    StaticHost --> Projects
    StaticHost --> CSS
    StaticHost --> JS
    StaticHost --> ImgAssets
    StaticHost --> SiteImages
    StaticHost --> Vendor

    BrowserEngine -->|"fetch index.html"| CDN
    BrowserEngine -->|"fetch style.css"| CDN
    BrowserEngine -->|"fetch main.js"| CDN
    BrowserEngine -->|"fetch images"| CDN

    User --> BrowserEngine

    click HTMLIndex "https://github.com/mr-vicky-01/portfolio/blob/main/index.html"
    click Projects "https://github.com/mr-vicky-01/portfolio/tree/main/projects/"
    click CSS "https://github.com/mr-vicky-01/portfolio/blob/main/assets/css/style.css"
    click JS "https://github.com/mr-vicky-01/portfolio/blob/main/assets/js/main.js"
    click ImgAssets "https://github.com/mr-vicky-01/portfolio/tree/main/assets/img/"
    click SiteImages "https://github.com/mr-vicky-01/portfolio/tree/main/website_images/"
    click Vendor "https://github.com/mr-vicky-01/portfolio/tree/main/assets/vendor/"

    classDef client fill:#f9f,stroke:#333,stroke-width:2px
    classDef infra fill:#ccc,stroke:#333,stroke-width:1px
    classDef html fill:#bbf,stroke:#333,stroke-width:1px
    classDef css fill:#ccf,stroke:#333,stroke-width:1px
    classDef js fill:#cff,stroke:#333,stroke-width:1px
    classDef image fill:#cfc,stroke:#333,stroke-width:1px
    classDef vendor fill:#eee,stroke:#333,stroke-width:1px
```
