# sahildavkhar/portfolio-website architecture

> Architecture diagram of the GitHub repository sahildavkhar/portfolio-website, 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/sahildavkhar/portfolio-website
- Repository: https://github.com/sahildavkhar/portfolio-website

## Overview

##### Main Components
- Frontend (Client-Side): Since we only see web assets, the core components are the HTML structure, CSS for styling, and JavaScript for interactivity.
- index.html: Represents the main page and serves as the user interface skeleton.
- index.css: Contains the styling rules applied to the HTML content.
- index.js: Handles the primary site interactivity and JavaScript logic.
- theme.js: Likely supports dynamic theming or additional UI configurations.
- Assets and Media:
- Logos, Elements, and Thumbnail directories: These likely hold images and design elements used within the site.
- video.mp4: A media asset that might be played within the webpage.
- Deployment/Hosting:
- The README points to a live website on Netlify, so it's important to note that deployment is managed through Netlify, emphasizing a static hosting infrastructure.

##### Relationships and Interactions
- The browser (client) fetches index.html, which then links to index.css for styling and index.js along with theme.js for interactivity.
- The HTML document also likely references assets from the Logos, Elements, and Thumbnail directories, and the video file as needed.
- The site being static means that data flow is one-directional: assets are loaded to render the page, and user interactions occur entirely on the client side without direct backend server calls.

##### Architectural Patterns and Design Principles
- Separation of Concerns: The clear division between HTML for structure, CSS for presentation, and JS for behavior.
- Static Web Site Design: Since there is no back-end component or API mentioned, the architecture follows a static deployment model, potentially with additional functionality hosted externally if needed (like forms or third-party integrations).
- Asset Management: Organized directories for design elements improve maintainability.

##### Relevant Technologies and Frameworks
- Standard web technologies (HTML, CSS, JavaScript).
- Client-side theming or UI state management might be embedded in theme.js.
- Deployment via Netlify emphasizes modern CI/CD and static site hosting practices.

## Diagram (Mermaid)

```mermaid
flowchart TD
    Browser["Browser/Client"]:::browser

    subgraph "Core Files"
        HTML["HTML (index.html)"]:::static
        CSS["CSS (index.css)"]:::static
        JS["JavaScript (index.js)"]:::behavior
        Theme["Theme Module (theme.js)"]:::behavior
    end

    subgraph "Static Assets"
        Logos["Logos"]:::assets
        Elements["Elements"]:::assets
        Thumbnail["Thumbnail"]:::assets
        Video["Video Media (video.mp4)"]:::assets
    end

    Deployment["Deployment (Netlify)"]:::deployment

    Browser -->|"loads"| HTML
    HTML -->|"links"| CSS
    HTML -->|"calls"| JS
    HTML -->|"includes"| Theme
    HTML -->|"references"| Logos
    HTML -->|"references"| Elements
    HTML -->|"references"| Thumbnail
    HTML -->|"references"| Video
    Browser -->|"servedBy"| Deployment

    click HTML "https://github.com/sahildavkhar/portfolio-website/blob/main/index.html"
    click CSS "https://github.com/sahildavkhar/portfolio-website/blob/main/index.css"
    click JS "https://github.com/sahildavkhar/portfolio-website/blob/main/index.js"
    click Theme "https://github.com/sahildavkhar/portfolio-website/blob/main/theme.js"
    click Logos "https://github.com/sahildavkhar/portfolio-website/tree/main/Logos"
    click Elements "https://github.com/sahildavkhar/portfolio-website/tree/main/Elements"
    click Thumbnail "https://github.com/sahildavkhar/portfolio-website/tree/main/Thumbnail"
    click Video "https://github.com/sahildavkhar/portfolio-website/blob/main/video.mp4"
    click Deployment "https://github.com/sahildavkhar/portfolio-website/blob/main/README.md"

    classDef browser fill:#FBE7C6,stroke:#D35400,stroke-width:2px,color:#000;
    classDef static fill:#D6EAF8,stroke:#1F618D,stroke-width:2px,color:#000;
    classDef behavior fill:#D5F5E3,stroke:#27AE60,stroke-width:2px,color:#000;
    classDef assets fill:#FCF3CF,stroke:#B7950B,stroke-width:2px,color:#000;
    classDef deployment fill:#FADBD8,stroke:#C0392B,stroke-width:2px,color:#000;
```
