# suhasbangale/portfolio2 architecture

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

- Interactive diagram: https://gitdiagram.com/suhasbangale/portfolio2
- Repository: https://github.com/suhasbangale/portfolio2

## Overview

##### Project Type and Purpose
- This is a simple static portfolio website.
- There is no dynamic backend or database—everything is served as static assets.

##### Main Components
a. Client (Web Browser)
b. Web Server or CDN (serving static files)
c. Static Assets:
- index.html (entry point)
- CSS directory (css/buttons.css, css/common.css)
- Docs directory (docs/Resume_Suhas_Bangale.pdf)

##### Relationships and Data Flow
- Browser sends an HTTP GET for index.html.
- Server responds with index.html.
- Server (or CDN) returns each static asset.

##### Architectural Patterns and Design Principles
- Single‐Page Static Site Architecture
- Asset Organization by type (CSS, images, docs)
- Leveraging browser caching for static assets
- (Optional) Edge CDN layer for high availability and low latency

##### Technologies and Frameworks
- HTML5 (index.html)
- CSS3 (buttons.css, common.css)
- Static file server (e.g., Nginx, GitHub Pages) or CDN
- PDF viewer in-browser for the resume document

##### Detail
- Even in a simple static site, capturing each asset request path helps diagnose performance or 404 issues.
- Grouping of CSS vs. image vs. document assets to clarify folder structure.

## Diagram (Mermaid)

```mermaid
flowchart TB
    Client["Client (Browser)"]:::client
    Server["Static Web Server / CDN"]:::server

    subgraph "HTML Assets"
        index["index.html"]:::asset
    end

    subgraph "CSS Assets"
        CSSdir["css/"]:::asset
        btn["buttons.css"]:::asset
        common["common.css"]:::asset
    end

    subgraph "Image Assets"
        Iconsdir["icons/"]:::asset
        Imagesdir["images/"]:::asset
    end

    subgraph "Document Assets"
        Docsdir["docs/"]:::asset
        resume["Resume_Suhas_Bangale.pdf"]:::asset
    end

    Client -->|"GET /index.html"| Server
    Server -->|"200 OK + index.html"| Client

    Client -->|"GET /css/buttons.css"| Server
    Server -->|"200 OK + buttons.css"| Client

    Client -->|"GET /css/common.css"| Server
    Server -->|"200 OK + common.css"| Client

    Client -->|"GET /images/...("| Server
    Server -->|"200 OK + image asset"| Client

    Client -->|"GET /icons/...("| Server
    Server -->|"200 OK + icon asset"| Client

    Client -->|"GET /docs/Resume_Suhas_Bangale.pdf"| Server
    Server -->|"200 OK + PDF"| Client

    click index "https://github.com/suhasbangale/portfolio2/blob/main/index.html"
    click CSSdir "https://github.com/suhasbangale/portfolio2/tree/main/css/"
    click btn "https://github.com/suhasbangale/portfolio2/blob/main/css/buttons.css"
    click common "https://github.com/suhasbangale/portfolio2/blob/main/css/common.css"
    click Imagesdir "https://github.com/suhasbangale/portfolio2/tree/main/images/"
    click Iconsdir "https://github.com/suhasbangale/portfolio2/tree/main/icons/"
    click Docsdir "https://github.com/suhasbangale/portfolio2/tree/main/docs/"
    click resume "https://github.com/suhasbangale/portfolio2/blob/main/docs/Resume_Suhas_Bangale.pdf"

    classDef client fill:#ADD8E6,stroke:#000,stroke-width:1px
    classDef server fill:#90EE90,stroke:#000,stroke-width:1px
    classDef asset fill:#D3D3D3,stroke:#000,stroke-width:1px
```
