# jay09990/portfolio architecture

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

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

## Overview

##### Project type and purpose
- This is a single‐page portfolio website built with React.js and Tailwind CSS.
- It’s a static front‐end application (no in‐repo backend code) that gets deployed to Vercel.
- It showcases sections (Hero, About, Projects, Skills, Contact) and leverages local data files for content.

##### File structure
- Top‐level files:
- index.html – the SPA entrypoint
- vite.config.js – build and dev server config
- package.json & package-lock.json – dependencies & scripts
- public/ – static assets (images, PDF resume)
- src/ – application source:
- main.jsx – React app bootstrap
- App.jsx – root component
- components/ – presentational components (common Header/Footer, sections)
- data/ – JSON-like data and service definitions
- index.css – global styles

##### README for additional insights
- Confirms React.js + Tailwind CSS, optionally mentions Node/Express/MongoDB if a backend were added.
- Deployment: Vercel
- Feature callouts: responsive design, smooth scrolling, contact form (likely posts to a mail API).

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Build & Deploy Tier
    subgraph "Build & Deploy"
        direction TB
        Developer["Developer Machine"]:::build
        GitHub["GitHub Repository"]:::build
        VercelCI["Vercel CI/CD"]:::build
        Vite["Vite Build System"]:::build
        ConfigFiles["Config & Package Files"]:::build
        ConfigFiles -->|includes| Vite
        Developer -->|push code| GitHub
        GitHub -->|trigger build| VercelCI
        VercelCI -->|runs build| Vite
    end

    %% Config & Package Files Details
    subgraph "Configuration Files"
        direction TB
        ViteConfig["vite.config.js"]:::build
        PackageJSON["package.json"]:::build
        PackageLock["package-lock.json"]:::build
        ViteConfig -.-> Vite
        PackageJSON -.-> VercelCI
        PackageLock -.-> VercelCI
    end

    Developer --> ConfigFiles

    %% Runtime Tier
    subgraph "Runtime"
        direction TB
        CDN["Vercel CDN"]:::runtime
        Browser["End User Browser"]:::runtime
        PublicAssets["Static Assets (PDF & Images)"]:::assets
        ReactSPA["React Single-Page Application"]:::runtime

        CDN -->|serves SPA & assets via HTTPS GET| Browser
        ReactSPA -->|runs in browser| Browser
        Browser -->|HTTP GET /index.html| CDN

        %% Static Assets
        PublicAssets --> CDN

        %% SPA Internal Structure
        subgraph "SPA Structure"
            direction TB
            HTMLShell["index.html"]:::runtime
            EntryPoint["main.jsx"]:::runtime
            RootComponent["App.jsx"]:::runtime
            Styles["Global Styles (index.css)"]:::runtime
            DataFiles["Local Data (data.js & services.js)"]:::runtime
            subgraph "UI Components"
                direction TB
                Layout["Layout Components"]:::runtime
                subgraph "Layout Components"
                    Header["Header"]:::runtime
                    Footer["Footer"]:::runtime
                end
                Sections["Page Sections"]:::runtime
                subgraph "Page Sections"
                    Hero["Hero Section"]:::runtime
                    About["About Section"]:::runtime
                    Projects["Projects Section"]:::runtime
                    Skills["Skills Section"]:::runtime
                    Contact["Contact Section"]:::runtime
                end
            end
            HTMLShell --> EntryPoint
            EntryPoint --> RootComponent
            RootComponent --> Styles
            RootComponent --> DataFiles
            RootComponent --> Layout
            RootComponent --> Sections
        end

        %% External Service
        EmailAPI["Email API"]:::external
        Browser -->|POST /send-email| EmailAPI
    end

    %% Connections to SPA Structure
    CDN --> HTMLShell

    %% Click Events
    click ViteConfig "https://github.com/jay09990/portfolio/blob/main/vite.config.js"
    click EntryPoint "https://github.com/jay09990/portfolio/blob/main/src/main.jsx"
    click RootComponent "https://github.com/jay09990/portfolio/blob/main/src/App.jsx"
    click Header "https://github.com/jay09990/portfolio/blob/main/src/components/common/Header.jsx"
    click Footer "https://github.com/jay09990/portfolio/blob/main/src/components/common/Footer.jsx"
    click Hero "https://github.com/jay09990/portfolio/blob/main/src/components/sections/Hero.jsx"
    click About "https://github.com/jay09990/portfolio/blob/main/src/components/sections/About.jsx"
    click Projects "https://github.com/jay09990/portfolio/blob/main/src/components/sections/Projects.jsx"
    click Skills "https://github.com/jay09990/portfolio/blob/main/src/components/sections/Skills.jsx"
    click Contact "https://github.com/jay09990/portfolio/blob/main/src/components/sections/Contact.jsx"
    click Styles "https://github.com/jay09990/portfolio/blob/main/src/index.css"
    click HTMLShell "https://github.com/jay09990/portfolio/blob/main/index.html"
    click PackageJSON "https://github.com/jay09990/portfolio/blob/main/package.json"
    click PackageLock "https://github.com/jay09990/portfolio/blob/main/package-lock.json"
    click PublicAssets "https://github.com/jay09990/portfolio/blob/main/public/Docs/Dudchrejiya_Jay.pdf"
    click PublicAssets "https://github.com/jay09990/portfolio/tree/main/public/images/"
    click DataFiles "https://github.com/jay09990/portfolio/blob/main/src/data/data.js"
    click DataFiles "https://github.com/jay09990/portfolio/blob/main/src/data/services.js"

    %% Styles
    classDef build fill:#cce5ff,stroke:#3182ce,color:#1e3a8a
    classDef runtime fill:#d4edda,stroke:#22863a,color:#1e4620
    classDef external fill:#ffe5b4,stroke:#d67713,color:#8a3714
    classDef assets fill:#fff3cd,stroke:#b4900c,color:#735c0f
```
