# dev-tanvir-ahamed/tanvir-portfolio-website architecture

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

- Interactive diagram: https://gitdiagram.com/dev-tanvir-ahamed/tanvir-portfolio-website
- Repository: https://github.com/dev-tanvir-ahamed/tanvir-portfolio-website

## Overview

##### Main System Components

a) Client Layer
- Next.js frontend with its App Router structure
- Static assets handling (public directory)
- Client-side components and routing

b) Server Layer
- Next.js server components
- API routes (if any are added in the future)
- Server-side rendering capabilities

##### Key Areas to Highlight

Create distinct sections for:

a) Page Structure
- Main routes (/blog, /contact, /resume, /services, /work)
- Dynamic routing for blog posts ([id])

b) Component Architecture
- Shared components (Header, Footer, Navigation)
- UI components library
- Page-specific components
- Transition components for animations

c) Static Assets
- Public assets organization
- Font management

**┌─ Client Browser ─────────────────────────────────┐**

- ┌─ Next.js Frontend ──────────────────────┐     │

- ┌─ Pages ─────┐    ┌─ Components ─┐   │     │
- Home      │    │ - Shared     │   │     │
- Blog      │    │ - UI         │   │     │
- Contact   │    │ - Homepage   │   │     │
- Resume    │    │ - Transitions│   │     │
- Services  │    └─────────────┘   │     │
- Work      │                      │     │
- ┘                       │     │

- ┌─ Static Assets ┐   ┌─ Data Layer ┐  │     │
- Images       │   │ - Blog Posts│  │     │
- ┘   └────────────┘  │     │

- ┘     │

- ┘

##### Important Elements

a) Flow Indicators:
- Client-side navigation flows
- Server-side rendering paths
- Static asset delivery routes

b) Technology Badges:
- Next.js
- TypeScript
- Tailwind CSS
- Shadcn UI components

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client["Client Browser"]
        Frontend["Next.js Frontend"]
    end

    subgraph AppLayer["Application Layer"]
        Layout["Root Layout"]:::layout
        GlobalStyles["Global Styles"]:::styles

        subgraph Pages["Pages"]
            Home["Homepage"]:::page
            Blog["Blog"]:::page
            BlogPost["Blog Post [id]"]:::page
            Contact["Contact"]:::page
            Resume["Resume"]:::page
            Services["Services"]:::page
            Work["Work"]:::page
        end

        subgraph Components["Component Layer"]
            direction TB
            
            subgraph Shared["Shared Components"]
                Header["Header"]:::component
                Footer["Footer"]:::component
                Nav["Navigation"]:::component
                MobileNav["Mobile Nav"]:::component
            end

            subgraph UI["UI Components"]
                Button["Button"]:::ui
                Card["Card"]:::ui
                Input["Input"]:::ui
                Select["Select"]:::ui
                Tabs["Tabs"]:::ui
                Textarea["Textarea"]:::ui
                Tooltip["Tooltip"]:::ui
            end

            subgraph Transitions["Transitions"]
                PageTransition["Page Transition"]:::transition
                StairTransition["Stair Transition"]:::transition
                Stairs["Stairs"]:::transition
            end

            subgraph HomepageComponents["Homepage Components"]
                Stats["Stats"]:::component
                BlogPostCard["Blog Post Card"]:::component
                WorksSlider["Works Slider"]:::component
            end
        end

        subgraph Static["Static Assets"]
            ResumeAssets["Resume Assets"]:::static
            WorkAssets["Work Assets"]:::static
            Fonts["Fonts"]:::static
        end

        subgraph Data["Data Layer"]
            BlogData["Blog Posts Data"]:::data
            Utils["Utilities"]:::data
        end
    end

    Frontend --> Layout
    Layout --> Pages
    Layout --> Components
    Pages --> Components
    Components --> Static
    Components --> Data

    %% Styling
    classDef page fill:#2563eb,color:white
    classDef component fill:#4f46e5,color:white
    classDef ui fill:#7c3aed,color:white
    classDef transition fill:#9333ea,color:white
    classDef static fill:#16a34a,color:white
    classDef data fill:#ea580c,color:white
    classDef layout fill:#475569,color:white
    classDef styles fill:#6b7280,color:white

    %% Click Events
    click Home "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/app/page.tsx"
    click Blog "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/app/blog/page.tsx"
    click BlogPost "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/app/blog/[id]/page.tsx"
    click Contact "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/app/contact/page.tsx"
    click Resume "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/app/resume/page.tsx"
    click Services "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/app/services/page.tsx"
    click Work "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/app/work/page.tsx"
    click Header "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/components/shared/Header.tsx"
    click Footer "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/components/shared/Footer.tsx"
    click Nav "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/components/shared/Nav.tsx"
    click MobileNav "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/components/shared/MobileNav.tsx"
    click Button "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/components/ui/button.tsx"
    click Card "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/components/ui/card.tsx"
    click Input "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/components/ui/input.tsx"
    click Select "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/components/ui/select.tsx"
    click Tabs "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/components/ui/tabs.tsx"
    click Textarea "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/components/ui/textarea.tsx"
    click Tooltip "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/components/ui/tooltip.tsx"
    click PageTransition "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/components/PageTransition.tsx"
    click StairTransition "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/components/StairTransition.tsx"
    click Stairs "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/components/Stairs.tsx"
    click Stats "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/components/Homepage/Stats.tsx"
    click BlogPostCard "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/components/BlogPostCard.tsx"
    click WorksSlider "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/components/WorksSliderBtn.tsx"
    click ResumeAssets "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/tree/master/public/assets/resume"
    click WorkAssets "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/tree/master/public/assets/work"
    click Fonts "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/tree/master/src/app/fonts"
    click BlogData "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/data/blogPosts.ts"
    click Utils "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/lib/utils.ts"
    click Layout "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/app/layout.tsx"
    click GlobalStyles "https://github.com/Dev-Tanvir-Ahamed/Tanvir-Portfolio-Website/blob/master/src/app/globals.css"
```
