# dadondev/portfolio architecture

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

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

## Overview

##### Main Components Structure

a) Client Layer
- Browser/User Interface
- Client-side Runtime

b) Next.js Application Layer
- App Router
- Page Components
- Shared Components
- Static Assets

##### Component Organization

**App Container**
- Layout (app/layout.tsx)
- Global Styles (globals.css)
- Main Content (page.tsx)
- Hero Component
- Ports Component
- Port Component (Individual)
- Techno Component
- Social Component
- Footer Component

##### Technical Stack Layer

A separate section showing the technical stack:

**Frontend Stack**
- Next.js 13+
- React
- TypeScript
- TailwindCSS
- ESLint

##### Build/Deploy Flow

Build and deployment process:

**Source Code → Next.js Build → Static/Dynamic Assets → Vercel Deployment**

##### App Router architecture
- Distinction between layout.tsx and page.tsx
- Component hierarchy
- Static vs. client components

##### Configuration context
- Relevant config files (next.config.mjs, tailwind.config.ts, etc.)
- Their relationship to the build process

##### Data Flow
- Component props flow
- Client-side navigation paths
- Static vs. dynamic rendering paths

##### Development Environment
- Development server setup
- Hot reload functionality
- TypeScript compilation process

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client
        Browser["Browser/User Interface"]
        CSR["Client-side Runtime"]
    end

    subgraph "Next.js Application"
        AppRouter["App Router"]
        Layout["Root Layout"]:::layout
        GlobalStyles["Global Styles"]:::styles
        MainContent["Main Content"]:::page
        
        subgraph "Components"
            Hero["Hero Section"]:::component
            Ports["Ports Container"]:::component
            Port["Individual Port"]:::component
            Techno["Technology Section"]:::component
            Social["Social Section"]:::component
            Footer["Footer"]:::component
        end

        subgraph "Configuration"
            NextConfig["Next.js Config"]:::config
            TailwindConfig["Tailwind Config"]:::config
            TSConfig["TypeScript Config"]:::config
            ESLintConfig["ESLint Config"]:::config
            PostCSSConfig["PostCSS Config"]:::config
        end
    end

    subgraph "Technical Stack"
        Next["Next.js 13+"]:::tech
        React["React"]:::tech
        TS["TypeScript"]:::tech
        Tailwind["TailwindCSS"]:::tech
        ESLint["ESLint"]:::tech
    end

    Browser --> CSR
    CSR --> AppRouter
    AppRouter --> Layout
    Layout --> GlobalStyles
    Layout --> MainContent
    MainContent --> Hero
    MainContent --> Ports
    Ports --> Port
    MainContent --> Techno
    MainContent --> Social
    MainContent --> Footer

    %% Component Mappings
    click Layout "https://github.com/dadondev/portfolio/blob/master/app/layout.tsx"
    click GlobalStyles "https://github.com/dadondev/portfolio/blob/master/app/globals.css"
    click MainContent "https://github.com/dadondev/portfolio/blob/master/app/page.tsx"
    click Hero "https://github.com/dadondev/portfolio/blob/master/components/Hero.tsx"
    click Ports "https://github.com/dadondev/portfolio/blob/master/components/Ports.tsx"
    click Port "https://github.com/dadondev/portfolio/blob/master/components/Port.tsx"
    click Techno "https://github.com/dadondev/portfolio/blob/master/components/Techno.tsx"
    click Social "https://github.com/dadondev/portfolio/blob/master/components/Social.tsx"
    click Footer "https://github.com/dadondev/portfolio/blob/master/components/Footer.tsx"
    click NextConfig "https://github.com/dadondev/portfolio/blob/master/next.config.mjs"
    click TailwindConfig "https://github.com/dadondev/portfolio/blob/master/tailwind.config.ts"
    click TSConfig "https://github.com/dadondev/portfolio/blob/master/tsconfig.json"
    click ESLintConfig "https://github.com/dadondev/portfolio/blob/master/.eslintrc.json"
    click PostCSSConfig "https://github.com/dadondev/portfolio/blob/master/postcss.config.mjs"

    %% Styling
    classDef layout fill:#2563eb,color:white
    classDef page fill:#3b82f6,color:white
    classDef component fill:#22c55e,color:white
    classDef styles fill:#8b5cf6,color:white
    classDef config fill:#6b7280,color:white
    classDef tech fill:#0f172a,color:white

    %% Legend
    subgraph Legend
        L1["Layout File"]:::layout
        L2["Page File"]:::page
        L3["Component"]:::component
        L4["Styles"]:::styles
        L5["Configuration"]:::config
        L6["Technology"]:::tech
    end
```
