# gc-mayankpun/portfolio architecture

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

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

## Overview

This is a small personal portfolio site. The browser entry mounts the React app, which renders the profile introduction, interests, social links, and contact link; it also manages a light/dark theme persisted in local storage. The excerpts show the main app and its stylesheet relationship, but no separate page or content modules, so the graph stays limited to the runtime actually evidenced.

Main entry points: [`src/app/App.jsx`](https://github.com/gc-mayankpun/portfolio/blob/main/src/app/App.jsx) (Portfolio app), [`src/main.jsx`](https://github.com/gc-mayankpun/portfolio/blob/main/src/main.jsx) (React entry), [`src/app/App.css`](https://github.com/gc-mayankpun/portfolio/blob/main/src/app/App.css) (App styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Browser app"]
  node_entry["React entry<br/>[main.jsx]"]
end

subgraph group_presentation["Portfolio presentation"]
  node_portfolio["Portfolio app<br/>[App.jsx]"]
  node_styles["App styling<br/>[App.css]"]
end

node_visitor(("Site visitor"))
node_browser["Browser runtime"]
node_localstorage[("Browser local storage")]
node_social["Social destinations"]
node_email["Email client"]

node_visitor -->|"visits"| node_browser
node_browser -.->|"loads"| node_entry
node_entry -->|"renders"| node_portfolio
node_portfolio -->|"imports styles"| node_styles
node_portfolio -->|"reads and writes theme"| node_localstorage
node_visitor -.->|"toggles theme"| node_portfolio
node_visitor -->|"opens profile links"| node_social
node_visitor -->|"opens contact link"| node_email

click node_entry "https://github.com/gc-mayankpun/portfolio/blob/main/src/main.jsx"
click node_portfolio "https://github.com/gc-mayankpun/portfolio/blob/main/src/app/App.jsx"
click node_styles "https://github.com/gc-mayankpun/portfolio/blob/main/src/app/App.css"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_browser,node_email toneBlue
class node_portfolio,node_styles,node_localstorage toneAmber
class node_visitor,node_social toneIndigo
```

## Components

### Browser app

- [React entry](https://github.com/gc-mayankpun/portfolio/blob/main/src/main.jsx): `src/main.jsx`

### Portfolio presentation

- [Portfolio app](https://github.com/gc-mayankpun/portfolio/blob/main/src/app/App.jsx): `src/app/App.jsx`
- [App styling](https://github.com/gc-mayankpun/portfolio/blob/main/src/app/App.css): `src/app/App.css`

### Other components

- **Site visitor**
- **Browser runtime**
- **Browser local storage**
- **Social destinations**
- **Email client**

## Connections

- Site visitor → Browser runtime: visits
- Browser runtime → React entry: loads
- React entry → Portfolio app: renders (evidence: `src/main.jsx`)
- Portfolio app → App styling: imports styles (evidence: `src/app/App.jsx`)
- Portfolio app → Browser local storage: reads and writes theme (evidence: `src/app/App.jsx`)
- Site visitor → Portfolio app: toggles theme
- Site visitor → Social destinations: opens profile links
- Site visitor → Email client: opens contact link
