# abbas-asad/portfolio-website architecture

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

- Interactive diagram: https://gitdiagram.com/abbas-asad/portfolio-website
- Repository: https://github.com/abbas-asad/portfolio-website

## Overview

##### Main System Components

The system architecture should be represented as follows:

A. Client-Side Components:
- Next.js Frontend Application
- Static Assets (public directory)
- UI Components Layer
- Layout System
- Page Components

B. Build & Configuration Layer:
- Next.js Configuration
- TypeScript Configuration
- Tailwind CSS System
- ESLint

**┌─ Next.js Application ──────────────────────────────┐**

- ┌─ Pages Layer ─────────┐  ┌─ Layout Layer ────┐ │
- Home (page.tsx)     │  │ - Header         │ │
- ┘  │ - Footer         │ │
- Section        │ │
- ┌─ Component Layer ────┐    └─────────────────┘ │
- Hero              │                         │
- Projects          │    ┌─ UI Layer ───────┐ │
- Services          │    │ - Sheet          │ │
- Contact           │    │ - Utils          │ │
- Testimonials      │    └─────────────────┘ │
- ┘                         │

- ┘

##### Important Relationships to Highlight

- How the layout.tsx wraps all pages
- Component composition flow
- Demonstrate how utilities are consumed
- Build-time vs. runtime components

##### Additional Notes

- Component reusability
- Clear separation of concerns
- Layout system hierarchy
- UI component isolation

- Component types
- Data flow directions
- Build vs. runtime elements
- Configuration dependencies

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph NextApp["Next.js Application"]
        subgraph Pages["Pages Layer"]
            MainPage["Home (page.tsx)"]:::page
            Layout["Global Layout"]:::layout
        end

        subgraph LayoutLayer["Layout Components"]
            Header["Header"]:::layout
            Footer["Footer"]:::layout
            Section["Section"]:::layout
        end

        subgraph Components["Feature Components"]
            Hero["Hero"]:::feature
            Projects["Projects"]:::feature
            Services["Services"]:::feature
            Contact["Contact"]:::feature
            Testimonials["Testimonials"]:::feature
        end

        subgraph UI["UI Layer"]
            Sheet["Sheet Component"]:::ui
            Utils["Utilities"]:::ui
        end

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

        subgraph Static["Static Assets"]
            Public["Public Directory"]:::static
            Fonts["Font Management"]:::static
        end

        GlobalStyles["Global Styles"]:::styles
    end

    Layout --> Header
    Layout --> Footer
    Layout --> Section
    Layout --> MainPage

    MainPage --> Hero
    MainPage --> Projects
    MainPage --> Services
    MainPage --> Contact
    MainPage --> Testimonials

    Components --> Sheet
    Components --> Utils

    GlobalStyles --> Layout

    %% Click Events
    click NextApp "https://github.com/abbas-asad/Portfolio-Website/tree/main/src/app"
    click MainPage "https://github.com/abbas-asad/Portfolio-Website/blob/main/src/app/page.tsx"
    click Layout "https://github.com/abbas-asad/Portfolio-Website/blob/main/src/app/layout.tsx"
    click GlobalStyles "https://github.com/abbas-asad/Portfolio-Website/blob/main/src/app/globals.css"
    click Header "https://github.com/abbas-asad/Portfolio-Website/blob/main/src/app/components/layout/header.tsx"
    click Footer "https://github.com/abbas-asad/Portfolio-Website/blob/main/src/app/components/layout/footer.tsx"
    click Section "https://github.com/abbas-asad/Portfolio-Website/blob/main/src/app/components/layout/section.tsx"
    click Hero "https://github.com/abbas-asad/Portfolio-Website/blob/main/src/app/components/hero.tsx"
    click Projects "https://github.com/abbas-asad/Portfolio-Website/blob/main/src/app/components/projects.tsx"
    click Services "https://github.com/abbas-asad/Portfolio-Website/blob/main/src/app/components/services.tsx"
    click Contact "https://github.com/abbas-asad/Portfolio-Website/blob/main/src/app/components/contact.tsx"
    click Testimonials "https://github.com/abbas-asad/Portfolio-Website/blob/main/src/app/components/testimonials.tsx"
    click Sheet "https://github.com/abbas-asad/Portfolio-Website/blob/main/src/components/ui/sheet.tsx"
    click Utils "https://github.com/abbas-asad/Portfolio-Website/blob/main/src/lib/utils.ts"
    click NextConfig "https://github.com/abbas-asad/Portfolio-Website/blob/main/next.config.ts"
    click TSConfig "https://github.com/abbas-asad/Portfolio-Website/blob/main/tsconfig.json"
    click TailwindConfig "https://github.com/abbas-asad/Portfolio-Website/blob/main/tailwind.config.ts"
    click ESLintConfig "https://github.com/abbas-asad/Portfolio-Website/blob/main/.eslintrc.json"
    click Public "https://github.com/abbas-asad/Portfolio-Website/tree/main/public"
    click Fonts "https://github.com/abbas-asad/Portfolio-Website/tree/main/src/app/fonts"

    %% Styles
    classDef page fill:#2563eb,color:white
    classDef layout fill:#9333ea,color:white
    classDef feature fill:#16a34a,color:white
    classDef ui fill:#eab308,color:black
    classDef config fill:#6b7280,color:white
    classDef static fill:#475569,color:white
    classDef styles fill:#ec4899,color:white

    %% Legend
    subgraph Legend
        L1["Page Component"]:::page
        L2["Layout Component"]:::layout
        L3["Feature Component"]:::feature
        L4["UI Component"]:::ui
        L5["Configuration"]:::config
        L6["Static Asset"]:::static
        L7["Styles"]:::styles
    end
```
