# elunir/my-portfolio architecture

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

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

## Overview

##### Main Components

A. Core Application Layer:
- React Application Core
- Redux Store
- Theme Provider
- i18n (Internationalization) System

B. Feature Modules:
- Home Page Module
- Portfolio Pages (About, Experience, Work, Projects)
- Navigation System
- Form Components

C. Technical Infrastructure:
- State Management
- Styling System
- Component Generation System
- Testing Infrastructure

**┌─────────────────────────────────────────────────────────┐**
- User Interface Layer                   │
- ┤
- Components  │  Pages  │  Features  │  Shared Components │
- ┤
- Application Core Services                   │
- ┤
- Technical Infrastructure                    │
- ┘

##### Specific Component Relationships to Highlight

a. Core Application Flow:
- How the Redux store connects to features
- Theme provider's global influence
- Demonstrate i18n integration points

b. Feature Module Integration:
- How pages connect to the core
- Component hierarchy
- Form handling flow

##### Important Architectural Patterns to Emphasize

- Feature-First Organization
- Redux Slice Pattern
- Lazy Loading (Loadable components)
- Styled-Components Theme System
- Generator System for Components/Slices

##### Technical Details

**┌─ Component Generation System ─┐**
- Templates                 │
- Generators               │
- Scripts                  │
- ┘

**┌─ State Management ─┐**
- Redux Store    │
- Slices        │
- Sagas         │
- ┘

**┌─ Styling System ─┐**
- Theme        │
- Global Styles│
- Media Queries│
- ┘

##### Implementation Notes

- The modular nature of the portfolio
- How themes and internationalization are globally applied
- The component generation workflow
- Testing integration points
- State management flow

This system design should help developers understand how to modify the portfolio for their needs while maintaining its architectural integrity.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph UI["User Interface Layer"]
        direction TB
        NavBar["Navigation System"]:::ui
        HomePage["Home Page"]:::ui
        Portfolio["Portfolio Pages"]:::ui
        Forms["Form Components"]:::ui
    end

    subgraph Core["Application Core Services"]
        direction TB
        ReactCore["React Application Core"]:::core
        ReduxStore["Redux Store"]:::core
        ThemeProvider["Theme Provider"]:::core
        i18n["i18n System"]:::core
    end

    subgraph Features["Feature Modules"]
        direction TB
        About["About Page"]:::feature
        Experience["Experience Page"]:::feature
        Work["Work Page"]:::feature
        Hero["Hero Section"]:::feature
        GithubForm["Github Repo Form"]:::feature
    end

    subgraph Infrastructure["Technical Infrastructure"]
        direction TB
        StateManagement["State Management"]:::infra
        StylingSystem["Styling System"]:::infra
        ComponentGen["Component Generation"]:::infra
        Testing["Testing Infrastructure"]:::infra
    end

    %% Relationships
    ReactCore --> ReduxStore
    ReactCore --> ThemeProvider
    ReactCore --> i18n
    
    HomePage --> About
    HomePage --> Experience
    HomePage --> Work
    HomePage --> Hero
    
    Forms --> GithubForm
    
    ReduxStore --> StateManagement
    ThemeProvider --> StylingSystem
    
    %% Component Mappings
    click ReactCore "https://github.com/Elunir/My-Portfolio/blob/master/src/app/index.tsx"
    click ReduxStore "https://github.com/Elunir/My-Portfolio/blob/master/src/store/configureStore.ts"
    click ThemeProvider "https://github.com/Elunir/My-Portfolio/blob/master/src/styles/theme/ThemeProvider.tsx"
    click i18n "https://github.com/Elunir/My-Portfolio/blob/master/src/locales/i18n.ts"
    click HomePage "https://github.com/Elunir/My-Portfolio/blob/master/src/app/pages/HomePage/index.tsx"
    click About "https://github.com/Elunir/My-Portfolio/tree/master/src/app/pages/HomePage/pages/About/"
    click Experience "https://github.com/Elunir/My-Portfolio/tree/master/src/app/pages/HomePage/pages/Experience/"
    click Work "https://github.com/Elunir/My-Portfolio/tree/master/src/app/pages/HomePage/pages/Work/"
    click Hero "https://github.com/Elunir/My-Portfolio/tree/master/src/app/pages/HomePage/pages/Hero/"
    click NavBar "https://github.com/Elunir/My-Portfolio/blob/master/src/app/components/NavBar/index.tsx"
    click Forms "https://github.com/Elunir/My-Portfolio/blob/master/src/app/components/FormLabel/index.ts"
    click GithubForm "https://github.com/Elunir/My-Portfolio/blob/master/src/app/pages/HomePage/Features/GithubRepoForm/index.tsx"
    click StateManagement "https://github.com/Elunir/My-Portfolio/blob/master/src/store/configureStore.ts"
    click StylingSystem "https://github.com/Elunir/My-Portfolio/blob/master/src/styles/theme/themes.ts"
    click ComponentGen "https://github.com/Elunir/My-Portfolio/tree/master/internals/generators/component/"
    click Testing "https://github.com/Elunir/My-Portfolio/tree/master/internals/testing/"

    %% Styling
    classDef ui fill:#2196F3,stroke:#fff,stroke-width:2px,color:#fff
    classDef core fill:#4CAF50,stroke:#fff,stroke-width:2px,color:#fff
    classDef feature fill:#FF9800,stroke:#fff,stroke-width:2px,color:#fff
    classDef infra fill:#9C27B0,stroke:#fff,stroke-width:2px,color:#fff

    %% Legend
    subgraph Legend
        UI_Legend["UI Components"]:::ui
        Core_Legend["Core Services"]:::core
        Feature_Legend["Features"]:::feature
        Infra_Legend["Infrastructure"]:::infra
    end
```
