# profana92/portfolio architecture

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

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

## Overview

##### Main Components

a. Frontend Architecture (Primary Focus):
- Client Application (React + TypeScript)
- Routing System
- Internationalization (i18n) Layer
- Component Structure
- Static Assets
- Styling System (Tailwind CSS)

##### Key Architectural Elements to Highlight

a. Application Layers:
- Presentation Layer (Components)
- Sections (Hero, About, Work, Contact)
- UI Components
- Routing Layer (React Router)
- State Management
- Internationalization System
- Asset Management

b. Component Organization:
- Feature-based organization
- Sections
- UI Components
- Shared Components
- Layout Components (Header, Footer)

**┌─ Client Application ─────────────────────┐**

- ┌─ Routing Layer ──┐                   │

- ┌─ Pages ────┐  │  ┌─ i18n Layer ┐ │
- Home     │  │  │             │ │
- About    │  │  │             │ │
- Work     │  │  │             │ │
- Contact  │  │  │             │ │
- ┘  │  └─────────────┘ │
- ┘                  │

- ┌─ Component Library ─────────────────┐│

- ┘ └─────┘ └────────┘   ││

- ┘│
- ┘

##### Specific Elements

a. Components:
- Header with Language Switcher
- Main Content Sections
- Footer with Contact Form
- UI Component Library

b. Technical Stack Indicators:
- React
- TypeScript
- Tailwind CSS
- i18n
- Vite (Build Tool)

##### Flow Indicators

Show:
- User navigation flow through routes
- Component composition hierarchy
- Data flow for internationalization
- Form submission paths

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client["Client Application"]
        direction TB
        Entry["React Entry Point"]
        
        subgraph RoutingLayer["Routing Layer"]
            direction TB
            Router["Root Router"]
            ErrorPage["Error Page"]
            
            subgraph Pages["Pages"]
                direction TB
                Home["Home Page"]
                About["About Page"]
                Work["Work Page"]
                Contact["Contact Page"]
            end
        end
        
        subgraph I18N["Internationalization Layer"]
            I18NSystem["i18n System"]
        end
        
        subgraph Components["Component Library"]
            direction TB
            
            subgraph HeaderComp["Header Components"]
                Header["Header"]
                LangSwitch["Language Switcher"]
                Nav["Navigation"]
            end
            
            subgraph FooterComp["Footer Components"]
                Footer["Footer"]
                FooterForm["Contact Form"]
            end
            
            subgraph Sections["Section Components"]
                HeroSection["Hero Section"]
                AboutSection["About Section"]
                WorkSection["Work Section"]
                ContactSection["Contact Section"]
            end
            
            subgraph UI["UI Components"]
                Buttons["Buttons"]
                Containers["Containers"]
                Headings["Headings"]
            end
            
            subgraph Icons["Icons System"]
                RegularIcons["Regular Icons"]
                ColoredIcons["Colored Icons"]
            end
        end
        
        subgraph Technical["Technical Layer"]
            Effects["Effects/Meta"]
            CustomHooks["Custom Hooks"]
            Styling["Styling System"]
        end
    end
    
    %% Relationships
    Entry --> Router
    Router --> Pages
    Router --> ErrorPage
    I18NSystem --> Components
    
    Header --> LangSwitch
    Header --> Nav
    
    %% Click events
    click Entry "https://github.com/Profana92/Portfolio/blob/main/client/src/main.tsx"
    click Router "https://github.com/Profana92/Portfolio/blob/main/client/src/routes/Root.tsx"
    click ErrorPage "https://github.com/Profana92/Portfolio/blob/main/client/src/routes/Error-page.tsx"
    click Home "https://github.com/Profana92/Portfolio/blob/main/client/src/routes/pages/Home.tsx"
    click About "https://github.com/Profana92/Portfolio/blob/main/client/src/routes/pages/About.tsx"
    click Work "https://github.com/Profana92/Portfolio/blob/main/client/src/routes/pages/MyWork.tsx"
    click Contact "https://github.com/Profana92/Portfolio/blob/main/client/src/routes/pages/Contact.tsx"
    click I18NSystem "https://github.com/Profana92/Portfolio/blob/main/client/src/i18n.tsx"
    click Header "https://github.com/Profana92/Portfolio/blob/main/client/src/components/Header/Header.tsx"
    click LangSwitch "https://github.com/Profana92/Portfolio/blob/main/client/src/components/Header/LanguageSwitcher.tsx"
    click Nav "https://github.com/Profana92/Portfolio/blob/main/client/src/components/Header/Navigation.tsx"
    click Footer "https://github.com/Profana92/Portfolio/blob/main/client/src/components/Footer/Footer.tsx"
    click FooterForm "https://github.com/Profana92/Portfolio/blob/main/client/src/components/Footer/FooterForm.tsx"
    click HeroSection "https://github.com/Profana92/Portfolio/blob/main/client/src/components/Sections/HeroSectionWithButtons.tsx"
    click AboutSection "https://github.com/Profana92/Portfolio/blob/main/client/src/components/Sections/AboutSectionHero.tsx"
    click WorkSection "https://github.com/Profana92/Portfolio/blob/main/client/src/components/Sections/MyWorkSectionHero.tsx"
    click ContactSection "https://github.com/Profana92/Portfolio/blob/main/client/src/components/Sections/ContactSectionHero.tsx"
    click UI "https://github.com/Profana92/Portfolio/tree/main/client/src/components/UI/"
    click RegularIcons "https://github.com/Profana92/Portfolio/tree/main/client/src/components/Icons/"
    click ColoredIcons "https://github.com/Profana92/Portfolio/tree/main/client/src/components/ColoredIcons/"
    click Effects "https://github.com/Profana92/Portfolio/blob/main/client/src/components/Effects/ReactHelmet.tsx"
    click CustomHooks "https://github.com/Profana92/Portfolio/blob/main/client/src/hooks/scrollToHashElement.tsx"
    click Styling "https://github.com/Profana92/Portfolio/blob/main/client/tailwind.config.js"

    %% Styling
    classDef default fill:#f9f9f9,stroke:#333,stroke-width:2px
    classDef routing fill:#e1d5e7,stroke:#9673a6
    classDef i18n fill:#fff2cc,stroke:#d6b656
    classDef components fill:#d5e8d4,stroke:#82b366
    classDef technical fill:#dae8fc,stroke:#6c8ebf
    
    class Router,ErrorPage,Pages routing
    class I18NSystem i18n
    class HeaderComp,FooterComp,Sections,UI,Icons components
    class Effects,CustomHooks,Styling technical
```
