# ankitsharmadev/ankit-portfolio architecture

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

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

## Overview

##### Project Type Analysis
This is a single-page React application serving as a personal portfolio website. The structure indicates a component-based frontend architecture with no backend services except for EmailJS integration for the contact form.

##### Main Components

Client Side (Browser):
- User Interface Layer
- Application Core
- External Services Integration

A. Core Components (Top Level):

##### React Application (Main Container)
- Theme Context Provider
- Route Management
- Component Tree

##### External Services
- EmailJS Service
- Asset Delivery (PDFs, images)

B. Component Architecture (Second Level):

**App (Root)**
- Theme Context Provider
- Main Layout
- Navbar
- Sections
- Hero
- Projects
- Skills
- Experiences
- Contact
- Footer
- Page Transition

C. Visual Representation Guidelines:

D. Specific Implementation Details:

##### Component Communication
- Prop drilling where applicable
- State management flow

##### Asset Management
- PDF files location and delivery
- Static asset serving

##### Contact Form Flow
- EmailJS integration
- Form submission flow

E. Additional Elements:

##### Metadata
- Version information
- Build tools (Vite)
- Development environment

##### Responsive Design Indication
- Breakpoint handling
- CSS module usage

F. Technical Stack Highlights:

- React.js
- Vanilla CSS (Modules)
- EmailJS
- Vite
- React Router

##### Maintain Clarity
- Use consistent spacing and alignment
- Related components together

##### Architecture
- Component relationships
- State management flow
- External service integration

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client
        Browser["Web Browser"]
    end

    subgraph ReactApp["React Application"]
        App["App Component"]:::core
        click App "https://github.com/AnkitSharmaDev/Ankit-Portfolio/blob/main/src/App.jsx"
        
        ThemeContext["Theme Context Provider"]:::context
        click ThemeContext "https://github.com/AnkitSharmaDev/Ankit-Portfolio/blob/main/src/common/ThemeContext.jsx"
        
        subgraph MainLayout["Main Layout"]
            Navbar["Navbar"]:::component
            click Navbar "https://github.com/AnkitSharmaDev/Ankit-Portfolio/blob/main/src/sections/Hero/Navbar.jsx"
            
            PageTransition["Page Transition"]:::utility
            click PageTransition "https://github.com/AnkitSharmaDev/Ankit-Portfolio/blob/main/src/common/PageTransition.jsx"
            
            subgraph Sections["Page Sections"]
                Hero["Hero Section"]:::section
                click Hero "https://github.com/AnkitSharmaDev/Ankit-Portfolio/blob/main/src/sections/Hero/Hero.jsx"
                
                Projects["Projects Section"]:::section
                click Projects "https://github.com/AnkitSharmaDev/Ankit-Portfolio/blob/main/src/sections/Hero/Projects/Projects.jsx"
                
                Skills["Skills Section"]:::section
                click Skills "https://github.com/AnkitSharmaDev/Ankit-Portfolio/blob/main/src/sections/Skills/Skills.jsx"
                
                Experiences["Experiences Section"]:::section
                click Experiences "https://github.com/AnkitSharmaDev/Ankit-Portfolio/blob/main/src/sections/Experiences/Experiences.jsx"
                
                Contact["Contact Section"]:::section
                click Contact "https://github.com/AnkitSharmaDev/Ankit-Portfolio/blob/main/src/sections/Contact/Contact.jsx"
                
                Footer["Footer Section"]:::section
                click Footer "https://github.com/AnkitSharmaDev/Ankit-Portfolio/blob/main/src/sections/Footer/Footer.jsx"
            end
            
            subgraph CommonComponents["Common Components"]
                ProjectCard["Project Card"]:::component
                click ProjectCard "https://github.com/AnkitSharmaDev/Ankit-Portfolio/blob/main/src/common/ProjectCard.jsx"
                
                SkillList["Skill List"]:::component
                click SkillList "https://github.com/AnkitSharmaDev/Ankit-Portfolio/blob/main/src/common/SkillList.jsx"
            end
        end
    end

    subgraph Assets["Asset Management"]
        StaticAssets["Static Assets"]:::storage
        click StaticAssets "https://github.com/AnkitSharmaDev/Ankit-Portfolio/tree/main/src/assets"
        
        Styles["CSS Modules"]:::styles
    end

    subgraph ExternalServices["External Services"]
        EmailJS["EmailJS Service"]:::external
    end

    %% Connections
    Browser --> App
    App --> ThemeContext
    ThemeContext --> MainLayout
    MainLayout --> Navbar
    MainLayout --> PageTransition
    MainLayout --> Sections
    Projects --> ProjectCard
    Skills --> SkillList
    Contact -.-> EmailJS
    MainLayout -.-> StaticAssets
    MainLayout -.-> Styles

    %% Styling
    classDef core fill:#2d5c8f,stroke:#1a365d,color:white
    classDef context fill:#8b5cf6,stroke:#6d28d9,color:white
    classDef component fill:#3b82f6,stroke:#2563eb,color:white
    classDef section fill:#059669,stroke:#047857,color:white
    classDef utility fill:#6b7280,stroke:#4b5563,color:white
    classDef storage fill:#f59e0b,stroke:#d97706,color:white
    classDef external fill:#10b981,stroke:#059669,color:white
    classDef styles fill:#ec4899,stroke:#db2777,color:white

    %% Legend
    subgraph Legend
        L1["Core Component"]:::core
        L2["Context Provider"]:::context
        L3["UI Component"]:::component
        L4["Page Section"]:::section
        L5["Utility"]:::utility
        L6["Storage"]:::storage
        L7["External Service"]:::external
        L8["Styles"]:::styles
    end
```
