# iitzirfan/irfan-shaikh_portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/iitzirfan/irfan-shaikh_portfolio
- Repository: https://github.com/iitzirfan/irfan-shaikh_portfolio

## Overview

##### Project type and purpose
- This is a purely static, front-end portfolio website.
- It consists of one entry point (index.html), style sheets, JavaScript behavior, and image assets.
- There is no back-end API or database—only static asset hosting.

##### File structure
- Top level
- index.html – the single-page entry point
- .gitattributes – Git config for line endings, etc.
- assets/
- css/style.css – presentation layer
- js/script.js – behavior/interactivity layer

##### README
- No additional architecture notes or runtime requirements—static files only.

##### Main components
a. Client layer (User’s browser)
b. Hosting layer (e.g., GitHub Pages, Netlify, Apache/Nginx)
c. CDN (optional) for caching/serving static assets
d. Asset storage
- index.html
- style.css
- script.js
- image files

##### Relationships and data flow
- User → HTTP GET → Hosting/CDN → index.html
- index.html → CSS and JS assets requested (separate GETs)
- Browser loads style.css and applies styles
- Browser loads script.js and executes interactivity
- Browser requests images as referenced by HTML/CSS
- All assets served from the same static host or via CDN

##### Architectural patterns and design principles
- Single‐page, static hosting—no dynamic server code
- Clear separation of concerns:
- Structure (HTML)
- Presentation (CSS)
- Behavior (JS)
- Leverage CDNs or edge caches for performance and global distribution

## Diagram (Mermaid)

```mermaid
graph TD
    %% Version Control Layer
    subgraph "Version Control"
        Git["Git Repository"]:::code
        Gitattributes[".gitattributes"]:::code
        README["README.md"]:::code
    end

    %% Hosting/CDN Layer
    subgraph "Hosting & CDN"
        HostingCDN["Hosting/CDN\n(GitHub Pages / Netlify)"]:::hosting
    end

    %% Asset Storage
    subgraph "Asset Storage"
        Index["index.html"]:::storage
        CSS["style.css"]:::storage
        JS["script.js"]:::storage
        Images["Image Assets"]:::storage
    end

    %% Client Layer
    Browser["User's Browser"]:::browser

    %% Flows
    Browser -->|"HTTP GET index.html"| HostingCDN
    HostingCDN -->|"200 OK HTML"| Browser

    Browser -->|"HTTP GET style.css"| HostingCDN
    HostingCDN -->|"200 OK CSS"| Browser

    Browser -->|"HTTP GET script.js"| HostingCDN
    HostingCDN -->|"200 OK JS"| Browser

    Browser -->|"HTTP GET images"| HostingCDN
    HostingCDN -->|"200 OK Images"| Browser

    %% Deployment Flow
    Git -->|"deploy"| HostingCDN

    %% Hosting serves assets
    HostingCDN --> Index
    HostingCDN --> CSS
    HostingCDN --> JS
    HostingCDN --> Images

    %% Click Events
    click Index "https://github.com/iitzirfan/irfan-shaikh_portfolio/blob/main/index.html"
    click CSS "https://github.com/iitzirfan/irfan-shaikh_portfolio/blob/main/assets/css/style.css"
    click JS "https://github.com/iitzirfan/irfan-shaikh_portfolio/blob/main/assets/js/script.js"
    click Images "https://github.com/iitzirfan/irfan-shaikh_portfolio/tree/main/assets/images/"
    click Gitattributes "https://github.com/iitzirfan/irfan-shaikh_portfolio/blob/main/.gitattributes"
    click README "https://github.com/iitzirfan/irfan-shaikh_portfolio/blob/main/README.md"

    %% Styles
    classDef browser fill:#D5E8D4,stroke:#82B366,stroke-width:1px;
    classDef hosting fill:#FFF2CC,stroke:#D6B656,stroke-width:1px;
    classDef storage fill:#DAE8FC,stroke:#6C8EBF,stroke-width:1px;
    classDef code fill:#F8CECC,stroke:#B85450,stroke-width:1px;
```
