# fazilat-jahan/my-portfolio- architecture

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

- Interactive diagram: https://gitdiagram.com/fazilat-jahan/my-portfolio-
- Repository: https://github.com/fazilat-jahan/my-portfolio-

## Overview

##### Main Components

A. Client-Side Components:
- Next.js App Router (Core)
- Static Assets (public directory)
- Page Components
- Layout Components
- Font Optimization System

B. Build-time Components:
- Next.js Build System
- TypeScript Compiler
- PostCSS/Tailwind Processing
- ESLint Code Quality Checks

C. Development/Production Server:
- Next.js Development Server
- Vercel Edge Runtime (for production)

**┌─────────────────────────────────────────────┐**
- Client Layer                   │
- ┌─────────────┐ ┌─────────────┐ ┌────────┐ │
- App Router │ │   Pages     │ │ Layout │ │
- ┘ └─────────────┘ └────────┘ │
- ┘
- ↑               ↑
**┌─────────────────────────────────────────────┐**
- Asset/Resource Layer              │
- ┌─────────┐ ┌──────────┐ ┌───────────────┐ │
- Fonts  │ │  Videos  │ │  Stylesheets  │ │
- ┘ └──────────┘ └───────────────┘ │
- ┘
- ↑               ↑
**┌─────────────────────────────────────────────┐**
- Build/Deploy Layer                │
- ┌──────────┐ ┌───────────┐ ┌─────────────┐ │
- Next.js  │ │ TypeScript│ │ TailwindCSS │ │
- ┘ └───────────┘ └─────────────┘ │
- ┘

##### Important Elements to Highlight

A. App Router Architecture:
- Relationship between layout.tsx and page.tsx
- Global styling with globals.css
- Font optimization system

B. Static Assets:
- Video files (Background.mp4, Logo.mp4, NameLogo.mp4)
- Their serving path through the public directory

C. Build Configuration:
- TypeScript configuration
- Tailwind CSS processing pipeline
- ESLint integration

**┌─────────────────────────┐**
- Development Tooling   │
- npm/yarn/pnpm/bun    │
- ESLint               │
- TypeScript           │
- PostCSS              │
- ┘

##### Deployment Section
**┌─────────────────────────┐**
- Vercel Deployment     │
- Edge Runtime         │
- CDN Distribution     │
- Asset Optimization   │
- ┘

Remember to:
- Use consistent styling for similar components
- Version numbers for key technologies
- Optimization paths for fonts and static assets
- Development server setup

## Diagram (Mermaid)

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

    subgraph "Next.js App Layer"
        AppRouter["App Router"]:::core
        click AppRouter "https://github.com/Fazilat-Jahan/My-Portfolio-/tree/master/src/app"
        
        Layout["Layout System"]:::component
        click Layout "https://github.com/Fazilat-Jahan/My-Portfolio-/blob/master/src/app/layout.tsx"
        
        Pages["Page Components"]:::component
        click Pages "https://github.com/Fazilat-Jahan/My-Portfolio-/blob/master/src/app/page.tsx"
        
        Fonts["Font Optimization"]:::component
        click Fonts "https://github.com/Fazilat-Jahan/My-Portfolio-/tree/master/src/app/fonts"
        
        GlobalCSS["Global Styles"]:::styles
        click GlobalCSS "https://github.com/Fazilat-Jahan/My-Portfolio-/blob/master/src/app/globals.css"
    end

    subgraph "Asset Management"
        StaticAssets["Static Assets"]:::assets
        Videos["Video Assets"]:::assets
        click Videos "https://github.com/Fazilat-Jahan/My-Portfolio-/tree/master/public"
        
        BgVideo["Background.mp4"]:::video
        click BgVideo "https://github.com/Fazilat-Jahan/My-Portfolio-/blob/master/public/Background.mp4"
        
        LogoVideo["Logo.mp4"]:::video
        click LogoVideo "https://github.com/Fazilat-Jahan/My-Portfolio-/blob/master/public/Logo.mp4"
        
        NameVideo["NameLogo.mp4"]:::video
        click NameVideo "https://github.com/Fazilat-Jahan/My-Portfolio-/blob/master/public/NameLogo.mp4"
    end

    subgraph "Build Infrastructure"
        NextConfig["Next.js Config"]:::config
        click NextConfig "https://github.com/Fazilat-Jahan/My-Portfolio-/blob/master/next.config.ts"
        
        TSConfig["TypeScript Config"]:::config
        click TSConfig "https://github.com/Fazilat-Jahan/My-Portfolio-/blob/master/tsconfig.json"
        
        TailwindConfig["Tailwind Config"]:::config
        click TailwindConfig "https://github.com/Fazilat-Jahan/My-Portfolio-/blob/master/tailwind.config.ts"
        
        PostCSSConfig["PostCSS Config"]:::config
        click PostCSSConfig "https://github.com/Fazilat-Jahan/My-Portfolio-/blob/master/postcss.config.mjs"
    end

    subgraph "Deployment"
        Vercel["Vercel Platform"]
        EdgeNetwork["Edge Network"]
        StaticServing["Static File Serving"]
    end

    %% Relationships
    Browser --> AppRouter
    AppRouter --> Layout
    AppRouter --> Pages
    AppRouter --> Fonts
    Layout --> GlobalCSS
    
    StaticAssets --> Videos
    Videos --> BgVideo
    Videos --> LogoVideo
    Videos --> NameVideo
    
    NextConfig --> AppRouter
    TSConfig --> AppRouter
    TailwindConfig --> GlobalCSS
    PostCSSConfig --> GlobalCSS
    
    AppRouter --> Vercel
    Vercel --> EdgeNetwork
    EdgeNetwork --> StaticServing
    StaticServing --> StaticAssets

    %% Styles
    classDef core fill:#2563eb,color:white
    classDef component fill:#3b82f6,color:white
    classDef assets fill:#f59e0b,color:white
    classDef video fill:#f97316,color:white
    classDef config fill:#10b981,color:white
    classDef styles fill:#8b5cf6,color:white

    %% Legend
    subgraph Legend
        L1["Core Components"]:::core
        L2["App Components"]:::component
        L3["Asset Management"]:::assets
        L4["Video Files"]:::video
        L5["Configuration"]:::config
        L6["Styling"]:::styles
    end
```
