# ren23813/web_portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/ren23813/web_portfolio
- Repository: https://github.com/ren23813/web_portfolio

## Overview

##### Project type and purpose
- This is a single‐page portfolio application built with React (JSX), Vite, and Bun.
- It’s purely a front-end SPA: no separate backend or database.

##### File structure
- Top-level files:
- index.html – SPA entry point
- vite.config.js, bun.lock – build configuration
- package.json – dependencies (React, i18n, etc.)
- Public/static assets under `public`
- Source under `src`:
- main.jsx – React root bootstrapper
- App.jsx – top-level React component
- components/ – each “section” (About Me, Skills, Projects, Contact, Achievements, etc.)
- assets/ – images or other static files used by components
- i18n.js – localization setup
- CSS files co-located with their components

##### README for additional insights
- It’s a university class project meant to be deployed as a static site.
- Run with Bun (JS) and Vite in dev mode; eventual goal is to host on a personal domain.
- No references to APIs or backends—pure static SPA.

##### Detailed capturing of architecture
1. Entry Point (index.html)
2. Root Mount (main.jsx → ReactDOM.render)
3. Top Component (App.jsx)
4. Section Components (AboutMe, Skills, Projects, Achievements, Contact)
5. Shared Services (i18n.js)
- How CSS and image assets flow into the bundle.

## Diagram (Mermaid)

```mermaid
flowchart TD
    Developer["Developer"]:::dev
    GitRepo[(Git Repository)]:::store
    BunCLI["Bun CLI"]:::dev
    ViteDev["Vite Dev Server"]:::dev
    StaticHost["Static Host (GitHub Pages/Netlify)"]:::host

    subgraph "Static Assets"
        HTML["index.html"]:::static
        Public["public/"]:::static
        Assets["src/assets/"]:::static
        CSSGlobal["src/index.css"]:::static
    end

    Browser["Browser"]:::runtime

    ReactApp["React App"]:::runtime
    Main["src/main.jsx"]:::component
    AppComp["src/App.jsx"]:::component
    I18n["src/i18n.js"]:::component

    subgraph "Components"
        Container["container.jsx"]:::component
        About["aboutmeSection.jsx"]:::component
        Skills["skillsSection.jsx"]:::component
        Projects["projectsSection.jsx"]:::component
        Achievements["achievementsSection.jsx"]:::component
        Contact["contactSection.jsx"]:::component
        Line["lineaHorizontal.jsx"]:::component
    end

    Developer -->|clone/push| GitRepo
    Developer -->|run dev| BunCLI
    BunCLI --> ViteDev
    ViteDev -->|build output| StaticHost
    ViteDev -->|serves| Browser
    Browser -->|executes| ReactApp

    ReactApp --> Main
    Main --> AppComp
    AppComp --> I18n
    AppComp --> Container
    AppComp --> About
    AppComp --> Skills
    AppComp --> Projects
    AppComp --> Achievements
    AppComp --> Contact
    AppComp --> Line

    click HTML "https://github.com/ren23813/web_portfolio/blob/main/index.html"
    click Public "https://github.com/ren23813/web_portfolio/tree/main/public/"
    click Assets "https://github.com/ren23813/web_portfolio/tree/main/src/assets/"
    click CSSGlobal "https://github.com/ren23813/web_portfolio/blob/main/src/index.css"
    click Main "https://github.com/ren23813/web_portfolio/blob/main/src/main.jsx"
    click AppComp "https://github.com/ren23813/web_portfolio/blob/main/src/App.jsx"
    click I18n "https://github.com/ren23813/web_portfolio/blob/main/src/i18n.js"
    click Container "https://github.com/ren23813/web_portfolio/blob/main/src/components/container.jsx"
    click Container "https://github.com/ren23813/web_portfolio/blob/main/src/components/container.css"
    click About "https://github.com/ren23813/web_portfolio/blob/main/src/components/aboutmeSection.jsx"
    click About "https://github.com/ren23813/web_portfolio/blob/main/src/components/aboutmeSection.css"
    click Skills "https://github.com/ren23813/web_portfolio/blob/main/src/components/skillsSection.jsx"
    click Skills "https://github.com/ren23813/web_portfolio/blob/main/src/components/skillsSection.css"
    click Projects "https://github.com/ren23813/web_portfolio/blob/main/src/components/projectsSection.jsx"
    click Projects "https://github.com/ren23813/web_portfolio/blob/main/src/components/projectsSection.css"
    click Achievements "https://github.com/ren23813/web_portfolio/blob/main/src/components/achievementsSection.jsx"
    click Achievements "https://github.com/ren23813/web_portfolio/blob/main/src/components/achievementsSection.css"
    click Contact "https://github.com/ren23813/web_portfolio/blob/main/src/components/contactSection.jsx"
    click Contact "https://github.com/ren23813/web_portfolio/blob/main/src/components/contactSection.css"
    click Line "https://github.com/ren23813/web_portfolio/blob/main/src/components/lineaHorizontal.jsx"
    click ViteConfig "https://github.com/ren23813/web_portfolio/blob/main/vite.config.js"
    click BunLock "https://github.com/ren23813/web_portfolio/blob/main/bun.lock"
    click Package "https://github.com/ren23813/web_portfolio/blob/main/package.json"

    classDef dev fill:#ADD8E6,stroke:#000
    classDef store fill:#E0FFFF,stroke:#000
    classDef static fill:#98FB98,stroke:#000
    classDef runtime fill:#FFA500,stroke:#000
    classDef component fill:#FFEFD5,stroke:#000
    classDef host fill:#90EE90,stroke:#000
    classDef config fill:#87CEFA,stroke:#000
```
