# jrvgr/portfolio architecture

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

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

## Overview

##### Detailed Component Breakdown

a. UI Layer (Top Level):
- Hero Section
- About Section
- Projects Section
- Skills Section

b. Reusable Components Layer:
- Shared components from /src/components:
- Marquee
- ProjectItem
- SkillsTabSwitcher

c. API Integration Layer:
- A GitHub API integration module (based on /src/api/github.ts)
- Type definitions connection (github.d.ts)

d. Build/Development Infrastructure:
- Vite Build System
- TypeScript Compilation
- SCSS Processing

##### Data Flow Representation

- Component composition flow (sections → components)
- API data flow (GitHub API → components)
- Style processing (SCSS → components)

##### Technical Stack Indicators

Badges or labels for:
- Svelte
- TypeScript
- Vite
- SCSS
- GitHub API

##### Main Container

- Svelte Frontend    |
- Application (SPA)    |

##### Layer Organization

- UI Sections       |
- [Hero, About, etc.] |

- Components        |
- [Marquee, Project..] |

- API Integration    |
- [GitHub API]       |

- Build Infrastructure |
- [Vite, TS, SCSS]   |

Important Considerations:

##### Clear separation between
- Page sections
- Reusable components
- External integrations
- Build tooling

##### Development workflow elements
- Hot Module Replacement (HMR)
- TypeScript compilation
- SCSS processing

##### Notes about
- Component state management
- Type system integration
- Style processing pipeline

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Main Application"
        App["App.svelte"]
        MainTS["main.ts"]
        GlobalStyles["app.scss"]
        MainTS --> App
        GlobalStyles --> App
    end

    subgraph "UI Sections"
        Hero["Hero Section"]
        About["About Section"]
        Projects["Projects Section"]
        Skills["Skills Section"]
        
        App --> Hero
        App --> About
        App --> Projects
        App --> Skills
    end

    subgraph "Reusable Components"
        Marquee["Marquee Component"]
        ProjectItem["Project Item"]
        SkillsTab["Skills Tab Switcher"]
        
        Projects --> ProjectItem
        Skills --> SkillsTab
        Hero --> Marquee
    end

    subgraph "API Integration"
        GitHubAPI["GitHub API Module"]
        TypeDefs["API Type Definitions"]
        
        GitHubAPI --> TypeDefs
        GitHubAPI --> Projects
    end

    subgraph "Build Infrastructure"
        Vite["Vite Build System"]
        TSConfig["TypeScript Compiler"]
        SvelteConfig["Svelte Config"]
        SCSS["SCSS Processor"]
        
        Vite --> App
        TSConfig --> App
        SvelteConfig --> App
        SCSS --> GlobalStyles
    end

    classDef default fill:#f9f9f9,stroke:#333,stroke-width:1px
    classDef main fill:#e1f5fe,stroke:#0288d1
    classDef component fill:#e8f5e9,stroke:#388e3c
    classDef api fill:#fff3e0,stroke:#f57c00
    classDef build fill:#f3e5f5,stroke:#7b1fa2
    
    class App,MainTS,GlobalStyles main
    class Hero,About,Projects,Skills,Marquee,ProjectItem,SkillsTab component
    class GitHubAPI,TypeDefs api
    class Vite,TSConfig,SvelteConfig,SCSS build

    click App "https://github.com/jrvgr/portfolio/blob/v5/src/App.svelte"
    click MainTS "https://github.com/jrvgr/portfolio/blob/v5/src/main.ts"
    click GlobalStyles "https://github.com/jrvgr/portfolio/blob/v5/src/app.scss"
    click Hero "https://github.com/jrvgr/portfolio/blob/v5/src/sections/Hero.svelte"
    click About "https://github.com/jrvgr/portfolio/blob/v5/src/sections/About.svelte"
    click Projects "https://github.com/jrvgr/portfolio/blob/v5/src/sections/Projects.svelte"
    click Skills "https://github.com/jrvgr/portfolio/blob/v5/src/sections/Skills.svelte"
    click Marquee "https://github.com/jrvgr/portfolio/blob/v5/src/components/Marquee.svelte"
    click ProjectItem "https://github.com/jrvgr/portfolio/blob/v5/src/components/ProjectItem.svelte"
    click SkillsTab "https://github.com/jrvgr/portfolio/blob/v5/src/components/SkillsTabSwitcher.svelte"
    click GitHubAPI "https://github.com/jrvgr/portfolio/blob/v5/src/api/github.ts"
    click TypeDefs "https://github.com/jrvgr/portfolio/blob/v5/src/api/github.d.ts"
    click Vite "https://github.com/jrvgr/portfolio/blob/v5/vite.config.ts"
    click TSConfig "https://github.com/jrvgr/portfolio/blob/v5/tsconfig.json"
    click SvelteConfig "https://github.com/jrvgr/portfolio/blob/v5/svelte.config.js"
```
