# developer-pritam/portfolio-pritam architecture

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

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

## Overview

##### Main Components

A. Client-Side Layer:
- Next.js App Router (app directory structure)
- Component Layer
- Theme Provider
- Animation System (Framer Motion)

B. Server-Side Layer:
- Next.js Server Components
- API Integration (Google Forms)

C. Static Assets:
- Public Resources
- Content Management

##### Component Relationships

**┌─────────────────────────────────────────────┐**
- Client Layer                 │
- ┤
- Server Layer                   │
- ┤
- Static Assets                  │
- ┘

##### Detailed Component Breakdown

- Home (/)
- About (/about)
- Education (/education)
- Experience (/experience)
- Projects (/projects)
- UI Components hierarchy:
- Layout Components (Header, Footer, Navbar)
- Page Components (Hero, About, Projects, etc.)
- UI Components (buttons, inputs, textarea)
- Theme Provider System:
- Dark/Light Mode Controller
- Global Styles

- Next.js Server Components
- API Routes
- Google Forms Integration
- SEO Optimization Layer

- Public Directory Structure
- Content Management System (lib/content.ts)
- Image Assets
- Fonts

##### Data Flow Indicators

- User interaction flow
- Theme switching mechanism
- Form submission process
- Content rendering pipeline

##### Technical Details

- Build tools (Next.js, TypeScript)
- Styling tools (Tailwind CSS, Shadcn UI)
- Animation library (Framer Motion)
- Content management (lib/content.ts)

##### Optimization Features

Highlight:
- Static page generation
- Image optimization
- CSS optimization
- Performance optimization points

- Rectangles: Components and pages
- Rounded rectangles: Services and utilities
- Hexagons: External services (Google Forms)

Remember to include version numbers for major dependencies (Next.js 14, etc.) and add notes about the responsive design implementation and dark mode functionality.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client
        AppRouter["Next.js App Router"]
        ThemeProvider["Theme Provider"]
        
        subgraph Pages
            Home["Home (/)"]
            About["About (/about)"]
            Education["Education (/education)"]
            Experience["Experience (/experience)"]
            Projects["Projects (/projects)"]
        end
        
        subgraph Components
            subgraph Layout
                Header["Header"]
                Footer["Footer"]
                Navbar["Navbar"]
            end
            
            subgraph Sections
                Hero["Hero Section"]
                AboutSection["About Section"]
                ProjectsSection["Projects Section"]
                ExperienceSection["Experience Section"]
                EducationSection["Education Section"]
                SkillsSection["Skills Section"]
                ContactSection["Contact Section"]
            end
            
            subgraph UI
                Button["Button"]
                Input["Input"]
                Textarea["Textarea"]
            end
        end
        
        StyleSystem["Styling System"]
    end
    
    subgraph Server
        ServerComponents["Next.js Server Components"]
        APIRoutes["API Routes"]
        GoogleForms["Google Forms Integration"]
        SEOLayer["SEO Optimization"]
    end
    
    subgraph Static
        Public["Public Assets"]
        Content["Content Management"]
        Images["Image Assets"]
        Fonts["Fonts"]
        SEOFiles["SEO Files"]
    end
    
    %% Relationships
    AppRouter --> Pages
    Pages --> Components
    ThemeProvider --> StyleSystem
    Components --> ServerComponents
    ContactSection --> GoogleForms
    Content --> Pages
    Public --> Pages
    
    %% Click Events
    click AppRouter "https://github.com/developer-pritam/portfolio-pritam/tree/main/app"
    click ThemeProvider "https://github.com/developer-pritam/portfolio-pritam/blob/main/components/theme-provider.tsx"
    click Button "https://github.com/developer-pritam/portfolio-pritam/blob/main/components/ui/button.tsx"
    click Input "https://github.com/developer-pritam/portfolio-pritam/blob/main/components/ui/input.tsx"
    click Textarea "https://github.com/developer-pritam/portfolio-pritam/blob/main/components/ui/textarea.tsx"
    click Header "https://github.com/developer-pritam/portfolio-pritam/blob/main/components/Header.tsx"
    click Footer "https://github.com/developer-pritam/portfolio-pritam/blob/main/components/Footer.tsx"
    click Navbar "https://github.com/developer-pritam/portfolio-pritam/blob/main/components/Navbar.tsx"
    click Hero "https://github.com/developer-pritam/portfolio-pritam/blob/main/components/Hero.tsx"
    click AboutSection "https://github.com/developer-pritam/portfolio-pritam/blob/main/components/About.tsx"
    click ProjectsSection "https://github.com/developer-pritam/portfolio-pritam/blob/main/components/Projects.tsx"
    click ExperienceSection "https://github.com/developer-pritam/portfolio-pritam/blob/main/components/Experience.tsx"
    click EducationSection "https://github.com/developer-pritam/portfolio-pritam/blob/main/components/Education.tsx"
    click SkillsSection "https://github.com/developer-pritam/portfolio-pritam/blob/main/components/Skills.tsx"
    click ContactSection "https://github.com/developer-pritam/portfolio-pritam/blob/main/components/Contact.tsx"
    click Home "https://github.com/developer-pritam/portfolio-pritam/blob/main/app/page.tsx"
    click About "https://github.com/developer-pritam/portfolio-pritam/blob/main/app/about/page.tsx"
    click Education "https://github.com/developer-pritam/portfolio-pritam/blob/main/app/education/page.tsx"
    click Experience "https://github.com/developer-pritam/portfolio-pritam/blob/main/app/experience/page.tsx"
    click Projects "https://github.com/developer-pritam/portfolio-pritam/blob/main/app/projects/page.tsx"
    click Content "https://github.com/developer-pritam/portfolio-pritam/blob/main/lib/content.ts"
    click Images "https://github.com/developer-pritam/portfolio-pritam/tree/main/public/images"
    click Fonts "https://github.com/developer-pritam/portfolio-pritam/tree/main/public/fonts"
    click StyleSystem "https://github.com/developer-pritam/portfolio-pritam/blob/main/app/globals.css"
    
    %% Styling
    classDef client fill:#e1f5fe,stroke:#01579b
    classDef server fill:#e8f5e9,stroke:#1b5e20
    classDef static fill:#fff3e0,stroke:#e65100
    
    class AppRouter,ThemeProvider,Pages,Components,StyleSystem client
    class ServerComponents,APIRoutes,GoogleForms,SEOLayer server
    class Public,Content,Images,Fonts,SEOFiles static
```
