# rishabhrajphx/portfolio architecture

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

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

## Overview

##### Main Components

A. Client-Side Architecture
- React Application Core
- Component Layer
- Context Management
- Routing System
- Utility Services

B. Build & Deployment
- Vite Build System
- Netlify Deployment

##### Component Breakdown

Frontend Layer (Main Focus):
**┌─────────────────────────────────────────────────────────┐**
- React Application                       │

- ┌─────────────┐    ┌──────────────┐    ┌──────────┐   │
- Pages    │    │  Components  │    │ Context  │   │
- Index    │    │  - Hero      │    │ - Dark   │   │
- Contacts │    │  - Navigation│    │   Mode   │   │
- Timeline │    │  - UI Kit    │    └──────────┘   │
- ┘    └──────────────┘                   │

- ┌─────────────┐    ┌──────────────┐    ┌──────────┐   │
- Hooks    │    │    Utils     │    │  Styles  │   │
- Mobile   │    │  - Resume    │    │          │   │
- Toast    │    │    Parser    │    │          │   │
- ┘    └──────────────┘    └──────────┘   │
- ┘

##### Key Elements to Highlight

a. Component Architecture:
- Hierarchical structure of components
- Extensive UI component library
- Separation of concerns between pages and components

b. State Management:
- DarkModeContext and its connections
- How context providers wrap the application

c. Build & Deployment Pipeline:
- Vite development server
- Build process
- Netlify deployment flow

##### Important Relationships

- Pages importing UI components
- Components utilizing context
- Hook usage across components
- Build process flow to deployment

##### Technical Stack Indicators

- React
- Vite
- Tailwind CSS
- TypeScript
- Netlify

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "React Application"
        MainEntry["Main Entry"]:::core
        AppComponent["App Component"]:::core
        
        subgraph "Component Layer"
            Pages["Pages"]:::component
            Components["Components"]:::component
            UIKit["UI Kit"]:::component
            
            subgraph "Page Components"
                Index["Index Page"]:::page
                Contacts["Contacts Page"]:::page
                Timeline["Timeline Page"]:::page
                JobPortal["Job Portal Page"]:::page
            end
            
            subgraph "UI Components"
                Hero["Hero Component"]:::ui
                Navigation["Navigation"]:::ui
            end
        end
        
        subgraph "State Management"
            DarkMode["Dark Mode Context"]:::context
        end
        
        subgraph "Utilities"
            Hooks["Hooks"]:::util
            Utils["Utils"]:::util
            ResumeParser["Resume Parser"]:::util
            GeneralUtils["General Utilities"]:::util
        end
        
        subgraph "Build & Configuration"
            ViteConfig["Vite Config"]:::config
            TSConfig["TypeScript Config"]:::config
            TailwindConfig["Tailwind Config"]:::config
            NetlifyConfig["Netlify Config"]:::config
        end
    end
    
    MainEntry --> AppComponent
    AppComponent --> Pages
    AppComponent --> DarkMode
    Pages --> Components
    Components --> UIKit
    Components --> Hero
    Components --> Navigation
    Utils --> ResumeParser
    Utils --> GeneralUtils
    
    %% Click events for component mapping
    click MainEntry "https://github.com/rishabhrajphx/Portfolio/blob/main/src/main.tsx"
    click AppComponent "https://github.com/rishabhrajphx/Portfolio/blob/main/src/App.tsx"
    click Pages "https://github.com/rishabhrajphx/Portfolio/tree/main/src/pages/"
    click Hero "https://github.com/rishabhrajphx/Portfolio/blob/main/src/components/HeroSection.tsx"
    click Navigation "https://github.com/rishabhrajphx/Portfolio/blob/main/src/components/Navigation.tsx"
    click UIKit "https://github.com/rishabhrajphx/Portfolio/tree/main/src/components/ui/"
    click DarkMode "https://github.com/rishabhrajphx/Portfolio/blob/main/src/context/DarkModeContext.tsx"
    click Index "https://github.com/rishabhrajphx/Portfolio/blob/main/src/pages/Index.tsx"
    click Contacts "https://github.com/rishabhrajphx/Portfolio/blob/main/src/pages/Contacts.tsx"
    click Timeline "https://github.com/rishabhrajphx/Portfolio/blob/main/src/pages/ProjectTimeline.tsx"
    click JobPortal "https://github.com/rishabhrajphx/Portfolio/blob/main/src/pages/job-portal.tsx"
    click Hooks "https://github.com/rishabhrajphx/Portfolio/tree/main/src/hooks/"
    click Utils "https://github.com/rishabhrajphx/Portfolio/tree/main/src/utils/"
    click ResumeParser "https://github.com/rishabhrajphx/Portfolio/blob/main/src/utils/resumeParser.ts"
    click GeneralUtils "https://github.com/rishabhrajphx/Portfolio/blob/main/src/lib/utils.ts"
    click ViteConfig "https://github.com/rishabhrajphx/Portfolio/blob/main/vite.config.ts"
    click TSConfig "https://github.com/rishabhrajphx/Portfolio/blob/main/tsconfig.json"
    click TailwindConfig "https://github.com/rishabhrajphx/Portfolio/blob/main/tailwind.config.ts"
    click NetlifyConfig "https://github.com/rishabhrajphx/Portfolio/blob/main/netlify.toml"
    
    %% Styling
    classDef core fill:#2563eb,color:white
    classDef component fill:#3b82f6,color:white
    classDef page fill:#60a5fa,color:white
    classDef ui fill:#93c5fd,color:black
    classDef context fill:#7c3aed,color:white
    classDef util fill:#f97316,color:white
    classDef config fill:#6b7280,color:white
    
    %% Legend
    subgraph Legend
        L1["Core"]:::core
        L2["Components"]:::component
        L3["Pages"]:::page
        L4["UI Elements"]:::ui
        L5["Context"]:::context
        L6["Utilities"]:::util
        L7["Configuration"]:::config
    end
```
