# deepanshugoel1122/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/deepanshugoel1122/portfolio
- Repository: https://github.com/deepanshugoel1122/portfolio

## Overview

##### Project type and purpose
- This is a **single‐page, front‐end React portfolio application**.
- Purpose: showcase projects, skills, and contact info in a modern, responsive UI using React 18 and Tailwind CSS.

##### File structure
- **Top level**
- index.html + public folder → static assets and entry HTML
- package.json + vite.config.mjs → build & dev server configuration
- src/ → React source code
- **src/**
- main.jsx → React DOM entry point (bootstraps App.jsx)
- App.jsx → root component, orchestrates children
- components/ → modular UI sections (Header, Hero, About, Projects, Contact, Footer)
- index.css → global Tailwind CSS imports & custom styles
- Assets folder → images or static media
- No backend or database—pure front‐end pipeline

##### README for additional insights
- Uses Vite as the build tool and dev server
- Tailwind CSS for styling, with dark mode configured in tailwind.config.js
- Component-based architecture for modularity and easy maintenance

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Developer Environment Layer
    subgraph "Developer Environment"
        DevNode["Node.js & npm/yarn"]:::dev
        DevVite["Vite Dev Server (HMR)"]:::dev
        DevTailwind["Tailwind CLI/PostCSS"]:::dev
    end

    %% Build Pipeline Layer
    subgraph "Build Pipeline"
        ViteBundle["Vite Bundler"]:::build
    end

    %% Hosting / Deployment Layer
    subgraph "Hosting / CDN"
        StaticServer[(Static File Server)]:::host
    end

    %% Client / Browser Layer
    subgraph "Client Browser"
        Browser["Browser"]:::client
    end

    %% React Application Layer
    subgraph "React Application"
        MainEntry["src/main.jsx"]:::client
        RootApp["src/App.jsx"]:::client
        GlobalStyles["src/index.css"]:::client
        Assets["src/Assets/"]:::client
        subgraph "Components"
            Header["Header Component"]:::comp
            Hero["Hero Component"]:::comp
            About["About Component"]:::comp
            Projects["Projects Component"]:::comp
            Contact["Contact Component"]:::comp
            Footer["Footer Component"]:::comp
        end
    end

    %% External Services
    EmailAPI["Email API / Formspree"]:::external

    %% Connections
    DevNode --> DevVite
    DevVite --> DevTailwind
    DevTailwind --> ViteBundle
    DevNode --> ViteBundle
    DevVite --> ViteBundle
    ViteBundle --> StaticServer
    StaticServer --> Browser
    Browser --> MainEntry
    MainEntry --> RootApp
    RootApp --> Header
    RootApp --> Hero
    RootApp --> About
    RootApp --> Projects
    RootApp --> Contact
    RootApp --> Footer
    ViteBundle --> GlobalStyles
    ViteBundle --> Assets
    Contact --> EmailAPI

    %% Click Events
    click DevNode "https://github.com/deepanshugoel1122/portfolio/blob/main/package.json"
    click DevNode "https://github.com/deepanshugoel1122/portfolio/blob/main/package-lock.json"
    click DevVite "https://github.com/deepanshugoel1122/portfolio/blob/main/vite.config.mjs"
    click MainEntry "https://github.com/deepanshugoel1122/portfolio/blob/main/src/main.jsx"
    click RootApp "https://github.com/deepanshugoel1122/portfolio/blob/main/src/App.jsx"
    click GlobalStyles "https://github.com/deepanshugoel1122/portfolio/blob/main/src/index.css"
    click Assets "https://github.com/deepanshugoel1122/portfolio/tree/main/src/Assets/"
    click Header "https://github.com/deepanshugoel1122/portfolio/blob/main/src/components/Header.jsx"
    click Hero "https://github.com/deepanshugoel1122/portfolio/blob/main/src/components/Hero.jsx"
    click About "https://github.com/deepanshugoel1122/portfolio/blob/main/src/components/About.jsx"
    click Projects "https://github.com/deepanshugoel1122/portfolio/blob/main/src/components/Projects.jsx"
    click Contact "https://github.com/deepanshugoel1122/portfolio/blob/main/src/components/Contact.jsx"
    click Footer "https://github.com/deepanshugoel1122/portfolio/blob/main/src/components/Footer.jsx"
    click StaticServer "https://github.com/deepanshugoel1122/portfolio/tree/main/public/"
    click StaticServer "https://github.com/deepanshugoel1122/portfolio/blob/main/public/index.html"
    click StaticServer "https://github.com/deepanshugoel1122/portfolio/blob/main/index.html"

    %% Styles
    classDef dev fill:#f9f,stroke:#333,stroke-width:1px
    classDef build fill:#ff9,stroke:#333,stroke-width:1px
    classDef host fill:#9ff,stroke:#333,stroke-width:1px
    classDef client fill:#cfc,stroke:#333,stroke-width:1px
    classDef comp fill:#fc9,stroke:#333,stroke-width:1px
    classDef external fill:#ddd,stroke:#333,stroke-width:1px;border-dasharray: 5 5
```
