# 0xtijan/portfolio architecture

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

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

## Overview

**┌─ React Application (Portfolio Website) ─────────────────────┐**

- ┌─ Component Layer ─────────────────────────────────────┐ │

- ┌─ Core Components ─┐    ┌─ Feature Components ─┐    │ │
- Navbar          │    │ - About              │    │ │
- Footer          │    │ - Projects           │    │ │
- Terminal        │    │ - Skills             │    │ │
- ┘    │ - Certificates       │    │ │
- Hackathons         │    │ │
- Contact            │    │ │
- ┘    │ │

- ┘ │

- ┌─ Shared Layer ──────────────────────────────────────┐   │
- Contexts (LanguageContext)                        │   │
- Helpers                                          │   │
- ┘   │

- ┌─ Asset Layer ───────────────────────────────────────┐  │
- Images                                           │  │
- Videos                                           │  │
- ┘   │
- ┘

##### Component Relationships
- LanguageContext provider at the top level with connections to components that consume it
- Configuration files (config.ts) to their respective components

##### Additional Elements
- A deployment flow section showing GitHub Actions workflow
- External dependencies like React and TypeScript
- Public assets and their relationship to the build process

Key Aspects to Emphasize:

##### Component Architecture
- Clear separation between presentational components
- Modular structure with each component having its own CSS
- Demonstrate the configuration-driven components (projects, skills, hackathons)

##### State Management
- LanguageContext provider's scope
- How the context flows through the component tree

##### Asset Management
- How images and videos are organized and consumed
- Public directory structure and its purpose

Remember to:
- Use consistent styling for similar components
- Notes for any special architectural decisions
- Build/deployment flow from source to production

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "React Application"
        App["App Component"]:::main
        Index["Index Root"]:::main

        subgraph "Component Layer"
            subgraph "Core Components"
                Navbar["Navbar"]:::core
                Footer["Footer"]:::core
                Terminal["Terminal"]:::core
            end

            subgraph "Feature Components"
                About["About"]:::feature
                Projects["Projects"]:::feature
                Skills["Skills"]:::feature
                Certificates["Certificates"]:::feature
                Hackathons["Hackathons"]:::feature
                Contact["Contact"]:::feature
            end
        end

        subgraph "Shared Layer"
            LangContext["Language Context"]:::shared
            Helpers["Text Helpers"]:::shared
        end

        subgraph "Asset Layer"
            Images["Images & Videos"]:::asset
        end

        subgraph "Configuration"
            ProjectsConfig["Projects Config"]:::config
            SkillsConfig["Skills Config"]:::config
            HackConfig["Hackathons Config"]:::config
        end

        subgraph "Deployment"
            GHActions["GitHub Actions"]:::deploy
        end
    end

    %% Relationships
    Index --> App
    App --> LangContext
    LangContext -.->|Provides| Navbar
    LangContext -.->|Provides| About
    LangContext -.->|Provides| Projects
    LangContext -.->|Provides| Skills

    Navbar --> About
    Navbar --> Projects
    Navbar --> Skills
    Navbar --> Certificates
    Navbar --> Hackathons
    Navbar --> Contact

    Projects --> ProjectsConfig
    Skills --> SkillsConfig
    Hackathons --> HackConfig

    About --> Images
    Projects --> Images
    Skills --> Images

    App --> Navbar
    App --> Footer
    App --> Terminal
    App --> About
    App --> Projects
    App --> Skills
    App --> Certificates
    App --> Hackathons
    App --> Contact

    %% Click Events
    click App "https://github.com/0xTijan/portfolio/blob/main/src/App.tsx"
    click Index "https://github.com/0xTijan/portfolio/blob/main/src/index.tsx"
    click Navbar "https://github.com/0xTijan/portfolio/blob/main/src/components/navbar/Navbar.tsx"
    click Footer "https://github.com/0xTijan/portfolio/blob/main/src/components/footer/Footer.tsx"
    click Terminal "https://github.com/0xTijan/portfolio/blob/main/src/components/terminal/Terminal.tsx"
    click About "https://github.com/0xTijan/portfolio/blob/main/src/components/about/About.tsx"
    click Projects "https://github.com/0xTijan/portfolio/blob/main/src/components/projects/Projects.tsx"
    click Skills "https://github.com/0xTijan/portfolio/blob/main/src/components/skills/Skills.tsx"
    click Certificates "https://github.com/0xTijan/portfolio/blob/main/src/components/certificates/Certificates.tsx"
    click Hackathons "https://github.com/0xTijan/portfolio/blob/main/src/components/hackathons/Hackathons.tsx"
    click Contact "https://github.com/0xTijan/portfolio/blob/main/src/components/contact/Contact.tsx"
    click ProjectsConfig "https://github.com/0xTijan/portfolio/blob/main/src/components/projects/config.ts"
    click SkillsConfig "https://github.com/0xTijan/portfolio/blob/main/src/components/skills/config.ts"
    click HackConfig "https://github.com/0xTijan/portfolio/blob/main/src/components/hackathons/config.ts"
    click LangContext "https://github.com/0xTijan/portfolio/blob/main/src/contexts/LanguageContext.tsx"
    click Helpers "https://github.com/0xTijan/portfolio/blob/main/src/helpers/text.ts"
    click Images "https://github.com/0xTijan/portfolio/tree/main/src/images"
    click GHActions "https://github.com/0xTijan/portfolio/blob/main/.github/workflows/deploy.yml"

    %% Styles
    classDef main fill:#f9f,stroke:#333,stroke-width:2px
    classDef core fill:#9cf,stroke:#333
    classDef feature fill:#9f9,stroke:#333
    classDef shared fill:#fc9,stroke:#333
    classDef asset fill:#ddd,stroke:#333
    classDef config fill:#ff9,stroke:#333
    classDef deploy fill:#c9f,stroke:#333

    %% Legend
    subgraph Legend
        Main["Main Components"]:::main
        Core["Core Components"]:::core
        Feature["Feature Components"]:::feature
        Shared["Shared Layer"]:::shared
        Asset["Asset Layer"]:::asset
        Config["Configuration"]:::config
        Deploy["Deployment"]:::deploy
    end
```
