# mayankghatawal/mayank-ghatawal-portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/mayankghatawal/mayank-ghatawal-portfolio
- Repository: https://github.com/mayankghatawal/mayank-ghatawal-portfolio

## Overview

##### Main System Components

a) Frontend Layer:
- Sub-components:
- Static Pages (Home, Blog, Projects)
- Components (Navbar, Footer)
- Client-side Routing
- Asset Management (public folder)

b) API Layer:
- Three main endpoints:
- /api/contact
- /api/data
- /api/google

c) Data Management:
- Include:
- Utils/Data (Static Data)
- External Services (indicated by Google API integration)

##### Component Relationships

a) Client-Server Communication:

b) Data Flow:
- Connection between contact form and contact API

##### Specific Implementation Details

Technical aspects:

a) Frontend Architecture:
- Next.js App Router structure
- Component hierarchy (homepage components)
- Static/Dynamic routing (blog/[slug])

b) Static Assets:
- Lottie animations
- SVG/PNG resources
- Style management (CSS/SCSS)

Create these distinct sections:

- Client Layer       |
- (Next.js Components)   |

- ↕

- API Layer         |
- (Route Handlers)       |

- ↕

- Data Sources        |
- (Static & External)    |

##### Additional Elements

Include:

- Version information
- Data flow direction indicators

##### Implementation Notes

Key details:

- Tailwind CSS integration
- GSAP animations
- MongoDB connection (if implemented)
- Contact form functionality
- Blog system architecture

Remember to:

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client
        UI[User Interface]
        Pages[Pages Container]
        click Pages "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/tree/master/app"
        Components[Component Library]
        click Components "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/tree/master/app/components"
        Assets[Static Assets]
        click Assets "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/tree/master/public"
        Styling[Styling System]
        click Styling "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/tree/master/app/css"
    end

    subgraph "Homepage Components"
        Hero[Hero Section]
        click Hero "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/app/components/homepage/hero-section/index.jsx"
        About[About Section]
        click About "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/app/components/homepage/about/index.jsx"
        Projects[Projects Section]
        click Projects "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/app/components/homepage/projects/index.jsx"
        Skills[Skills Section]
        click Skills "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/app/components/homepage/skills/index.jsx"
        Experience[Experience Section]
        click Experience "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/app/components/homepage/experience/index.jsx"
        Education[Education Section]
        click Education "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/app/components/homepage/education/index.jsx"
        Contact[Contact Form]
        click Contact "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/app/components/homepage/contact/contact-form.jsx"
    end

    subgraph "Core Components"
        Nav[Navigation System]
        click Nav "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/app/components/navbar.jsx"
        Blog[Blog System]
        click Blog "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/tree/master/app/blog"
        Anim[Animation Components]
        click Anim "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/app/components/helper/animation-lottie.jsx"
    end

    subgraph "API Layer"
        ContactAPI[Contact API]
        click ContactAPI "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/app/api/contact/route.js"
        DataAPI[Data API]
        click DataAPI "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/app/api/data/route.js"
        GoogleAPI[Google Integration API]
        click GoogleAPI "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/app/api/google/route.js"
    end

    subgraph "Data Management"
        Config[Configuration Files]
        click Config "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/next.config.js"
        DataStore[Data Storage]
        click DataStore "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/tree/master/utils/data"
        PersonalData[Personal Data]
        click PersonalData "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/utils/data/personal-data.js"
        ProjectsData[Projects Data]
        click ProjectsData "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/utils/data/projects-data.js"
        SkillsData[Skills Data]
        click SkillsData "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/utils/data/skills.js"
        ExperienceData[Experience Data]
        click ExperienceData "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/utils/data/experience.js"
        EducationData[Education Data]
        click EducationData "https://github.com/MayankGhatawal/Mayank-Ghatawal-Portfolio/blob/master/utils/data/educations.js"
    end

    UI --> Pages
    Pages --> Components
    Components --> Assets
    Components --> Styling

    Components --> Hero
    Components --> About
    Components --> Projects
    Components --> Skills
    Components --> Experience
    Components --> Education
    Components --> Contact

    Components --> Nav
    Components --> Blog
    Components --> Anim

    Contact --> ContactAPI
    Blog --> DataAPI
    Components --> GoogleAPI

    ContactAPI --> DataStore
    DataAPI --> DataStore
    GoogleAPI --> DataStore

    DataStore --> PersonalData
    DataStore --> ProjectsData
    DataStore --> SkillsData
    DataStore --> ExperienceData
    DataStore --> EducationData

    classDef frontend fill:#3498db,stroke:#2980b9,color:white
    classDef api fill:#2ecc71,stroke:#27ae60,color:white
    classDef data fill:#e67e22,stroke:#d35400,color:white
    classDef component fill:#9b59b6,stroke:#8e44ad,color:white
    classDef config fill:#95a5a6,stroke:#7f8c8d,color:white

    class UI,Pages,Components,Assets,Styling frontend
    class ContactAPI,DataAPI,GoogleAPI api
    class DataStore,PersonalData,ProjectsData,SkillsData,ExperienceData,EducationData data
    class Hero,About,Projects,Skills,Experience,Education,Contact,Nav,Blog,Anim component
    class Config config
```
