# eronred/widget-based-portfolio-nextjs-tailwind architecture

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

- Interactive diagram: https://gitdiagram.com/eronred/widget-based-portfolio-nextjs-tailwind
- Repository: https://github.com/eronred/widget-based-portfolio-nextjs-tailwind

## Overview

##### Main Components Structure

A. Application Layer
- Next.js App Router Structure
- Global Layout and Styling
- Page Components

B. Component Layer
- Widgets System
- Applications System
- Core UI Components

C. Supporting Layer
- Hooks
- Libraries
- Utils
- Static Assets

##### Detailed Component Breakdown

**[Application Layer]**
- App Router (app/)
- Layout (layout.tsx)
- Home Page (page.tsx)
- Global Styles (globals.css)

**[Component Layer]**
- Widget System
- Interactive Widgets
- (Calendar, CD Player, Github Heatmap, etc.)
- Display Widgets
- (Quote, Social Media, Product Launch, etc.)

- Applications System
- App Components
- (Arc Browser, Figma, VSCode, etc.)

- Core UI
- Layout Components
- Interactive Elements

**[Supporting Layer]**
- Custom Hooks
- Animation Library
- Utility Functions
- Static Assets

##### Key Relationships to Highlight

a. Component Hierarchy:
- How widgets are composed and rendered within the main layout
- How applications are integrated into the widget system
- The relationship between core UI components and specialized widgets

b. Data Flow:
- How hooks provide data and functionality to components
- How animation utilities integrate with components
- How static assets are utilized by different components

##### Technical Stack Indicators

A technical stack section showing:

- Next.js
- Tailwind CSS
- Framer Motion
- TypeScript

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph AL["Application Layer"]
        AR["App Router"]
        GL["Global Layout"]
        GP["Main Page"]
        GS["Global Styles"]
    end

    subgraph CL["Component Layer"]
        subgraph WS["Widget System"]
            IW["Interactive Widgets"]
            DW["Display Widgets"]
            CW["Calendar Widget"]
            CDP["CD Player"]
            GH["Github Heatmap"]
            QW["Quote Widget"]
            SMW["Social Media Widget"]
            PLW["Product Launch Widget"]
        end

        subgraph AS["Applications System"]
            ARC["Arc Browser"]
            FIG["Figma"]
            VSC["VSCode"]
        end

        subgraph UI["Core UI"]
            ACS["Action Sheet"]
            AT["Animated Text"]
            MD["Mac Dock"]
            GC["Grid Cards"]
        end
    end

    subgraph SL["Supporting Layer"]
        subgraph HK["Custom Hooks"]
            AH["Animation Hook"]
            GDH["Github Data Hook"]
        end
        
        AL1["Animation Library"]
        UF["Utility Functions"]
        
        subgraph SA["Static Assets"]
            IMG["Images"]
            ICO["Icons"]
            AUD["Audio"]
            AVT["Avatars"]
        end
    end

    %% Technical Stack
    subgraph TS["Technical Stack"]
        NJS["Next.js"]
        TWC["Tailwind CSS"]
        FM["Framer Motion"]
        TS1["TypeScript"]
    end

    %% Relationships
    AR --> GL
    GL --> GP
    GL --> GS
    
    WS --> UI
    AS --> UI
    
    IW --> CW
    IW --> CDP
    IW --> GH
    DW --> QW
    DW --> SMW
    DW --> PLW
    
    HK --> WS
    AL1 --> WS
    UF --> WS
    SA --> WS

    %% Click Events
    click AR "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/tree/main/app"
    click GL "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/app/layout.tsx"
    click GP "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/app/page.tsx"
    click GS "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/app/globals.css"
    
    click WS "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/tree/main/components/widgets"
    click CW "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/components/widgets/calendar-widget.tsx"
    click CDP "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/components/widgets/cd-player.tsx"
    click GH "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/components/widgets/github-heatmap.tsx"
    click QW "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/components/widgets/quote-widget.tsx"
    click SMW "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/components/widgets/social-media-widget.tsx"
    click PLW "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/components/widgets/product-launch-widget.tsx"
    
    click AS "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/tree/main/components/applications"
    click ARC "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/components/applications/arc-browser.tsx"
    click FIG "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/components/applications/figma.tsx"
    click VSC "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/components/applications/vsc.tsx"
    
    click ACS "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/components/action-sheet.tsx"
    click AT "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/components/animated-text.tsx"
    click MD "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/components/mac-dock.tsx"
    click GC "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/components/large-grid-card.tsx"
    
    click HK "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/tree/main/hooks"
    click AH "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/hooks/use-animation-circle.ts"
    click GDH "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/blob/main/hooks/use-github-heatmap.ts"
    click AL1 "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/tree/main/lib/animation"
    click UF "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/tree/main/lib/utils"
    click IMG "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/tree/main/public/images"
    click ICO "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/tree/main/public/icons"
    click AUD "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/tree/main/public/songs"
    click AVT "https://github.com/Eronred/widget-based-portfolio-nextjs-tailwind/tree/main/public/images/avatars"

    %% Styling
    classDef default fill:#f9f9f9,stroke:#333,stroke-width:2px
    classDef application fill:#b3e0ff,stroke:#333
    classDef widget fill:#90EE90,stroke:#333
    classDef apps fill:#DDA0DD,stroke:#333
    classDef support fill:#FFB366,stroke:#333
    classDef assets fill:#D3D3D3,stroke:#333
    classDef tech fill:#FFE4B5,stroke:#333

    class AR,GL,GP,GS application
    class WS,IW,DW,CW,CDP,GH,QW,SMW,PLW widget
    class AS,ARC,FIG,VSC,UI,ACS,AT,MD,GC apps
    class HK,AH,GDH,AL1,UF support
    class SA,IMG,ICO,AUD,AVT assets
    class NJS,TWC,FM,TS1 tech
```
