# mrtysn/cv architecture

> Architecture diagram of the GitHub repository mrtysn/cv, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mrtysn/cv
- Repository: https://github.com/mrtysn/cv

## Overview

##### Project Type Analysis
This is a single-page React application serving as a CV/Resume template, with GitHub Pages deployment capabilities and PDF export functionality.

##### Main Components

A. Frontend Architecture Layer:
- React Application Core
- Component Layer
- Container Layer
- Utilities Layer

B. Build & Deployment Layer:
- GitHub Pages Deployment
- PDF Generation System
- GitHub Actions Workflows

##### Core Application Layer (Center

a. Components Layer (Left Section):
- SectionItem
- SectionTitle
- SkillRow

b. Containers Layer (Middle Section):
- Header
- Experience
- Education
- Skills
- Achievements
- Footer

c. Utils Layer (Right Section):
- Window Size Handler
- Constants Manager

##### External Integration Layer (Top
- GitHub Pages Hosting
- GitHub Actions

##### Output Formats Layer (Bottom
- Web View Output
- PDF Export System

Styling Guidelines:
- Use green for containers
- Use yellow for utilities
- Use gray for external services

Important Elements to Highlight:
##### Component Hierarchy
- How containers use basic components
- Parent-child relationships

##### Data Flow
- How content flows from constants to components
- Window size utility's influence on layout

##### Build & Deploy Flow
- Path from source to GitHub Pages
- PDF generation process

Special Considerations:
##### Build process flow

Abstraction Level:
- Architectural components rather than individual files
- Related functionality (e.g., all CV sections together)
- Main interaction patterns

##### The multiple output formats (web and PDF)

- The tech stack (React, Semantic UI)
- The deployment process
- The PDF generation mechanism
- The customization points

This will provide a clear understanding of both the static structure and the dynamic behavior of the CV template system.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "External Integration Layer"
        GHP["GitHub Pages Hosting"]
        GHA[".github/workflows/"]:::file
        click GHA "https://github.com/mrtysn/cv/tree/master/.github/workflows/"
    end

    subgraph "React Application Core"
        APP["App.js"]:::file
        click APP "https://github.com/mrtysn/cv/blob/master/src/App.js"

        subgraph "Components Layer"
            SI["SectionItem.js"]:::file
            ST["SectionTitle.js"]:::file
            SR["SkillRow.js"]:::file
            click SI "https://github.com/mrtysn/cv/blob/master/src/components/SectionItem.js"
            click ST "https://github.com/mrtysn/cv/blob/master/src/components/SectionTitle.js"
            click SR "https://github.com/mrtysn/cv/blob/master/src/components/SkillRow.js"
        end

        subgraph "Containers Layer"
            HD["Header.js"]:::file
            EX["Experience.js"]:::file
            ED["Education.js"]:::file
            SK["Skills.js"]:::file
            AC["Achievements.js"]:::file
            FT["Footer.js"]:::file
            click HD "https://github.com/mrtysn/cv/blob/master/src/containers/Header.js"
            click EX "https://github.com/mrtysn/cv/blob/master/src/containers/Experience.js"
            click ED "https://github.com/mrtysn/cv/blob/master/src/containers/Education.js"
            click SK "https://github.com/mrtysn/cv/blob/master/src/containers/Skills.js"
            click AC "https://github.com/mrtysn/cv/blob/master/src/containers/Achievements.js"
            click FT "https://github.com/mrtysn/cv/blob/master/src/containers/Footer.js"
        end

        subgraph "Utils Layer"
            WS["Window Size Handler"]:::file
            CM["Constants Manager"]:::file
            click WS "https://github.com/mrtysn/cv/blob/master/src/utils/useWindowSize.js"
            click CM "https://github.com/mrtysn/cv/blob/master/src/constants.js"
        end
    end

    subgraph "Public Assets"
        HTML["index.html"]:::file
        MAN["manifest.json"]:::file
        click HTML "https://github.com/mrtysn/cv/blob/master/public/index.html"
        click MAN "https://github.com/mrtysn/cv/blob/master/public/manifest.json"
    end

    subgraph "Output Formats Layer"
        WEB["Web View Output"]
        PDF["PDF Export System"]
    end

    %% Relationships
    GHA --> APP
    APP --> WEB
    APP --> PDF
    GHP --> WEB

    %% Component Relationships
    APP --> HD
    APP --> EX
    APP --> ED
    APP --> SK
    APP --> AC
    APP --> FT

    HD --> SI
    EX --> SI
    ED --> SI
    SK --> SR
    AC --> SI

    HD --> ST
    EX --> ST
    ED --> ST
    SK --> ST
    AC --> ST

    WS --> APP
    CM --> APP

    HTML --> APP
    MAN --> APP

    %% Styling
    classDef file fill:#f9f,stroke:#333,stroke-width:2px
    classDef component fill:#bbf,stroke:#333,stroke-width:2px
    classDef container fill:#bfb,stroke:#333,stroke-width:2px
    classDef util fill:#ffb,stroke:#333,stroke-width:2px
    classDef external fill:#ddd,stroke:#333,stroke-width:2px

    %% Legend
    subgraph Legend
        L1["Files"]:::file
        L2["Components"]:::component
        L3["Containers"]:::container
        L4["Utils"]:::util
        L5["External Services"]:::external
    end
```
