# shriwa/portfolio architecture

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

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

## Overview

This repository is a single-page personal portfolio. A browser loads the React entry point, which mounts the page composition; visitors then browse profile, experience, skills and project sections, and can use contact links or submit a message. The contact form validates fields before sending through EmailJS. Hireme is present but commented out of the page composition. The graph reflects sampled source and the SOURCE INDEX; it does not infer behavior for unsampled files.

Main entry points: [`src/App.jsx`](https://github.com/shriwa/portfolio/blob/main/src/App.jsx) (Page composition), [`src/main.jsx`](https://github.com/shriwa/portfolio/blob/main/src/main.jsx) (React entry), [`src/components/About.jsx`](https://github.com/shriwa/portfolio/blob/main/src/components/About.jsx) (About and CV), [`src/components/Contact.jsx`](https://github.com/shriwa/portfolio/blob/main/src/components/Contact.jsx) (Contact form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Page runtime"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app["Page composition<br/>[App.jsx]"]
end

subgraph group_portfolio["Portfolio content"]
  node_hero["Introduction<br/>[Hero.jsx]"]
  node_about["About and CV<br/>[About.jsx]"]
  node_resume["Resume PDF"]
  node_experience["Experience<br/>[Experience.jsx]"]
  node_skills["Skills<br/>[Skills.jsx]"]
  node_projects["Projects<br/>[Project.jsx]"]
end

subgraph group_engagement["Visitor engagement"]
  node_navbar["Navigation<br/>[Navbar.jsx]"]
  node_bot["WhatsApp shortcut<br/>[Bot.jsx]"]
  node_hireme["Hire me<br/>[Hireme.jsx]"]
  node_contact["Contact form<br/>[Contact.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

node_visitor(("Visitor"))
node_browser(("Browser"))
node_emailjs(("EmailJS"))

node_visitor -.->|"browses"| node_browser
node_browser -.->|"loads"| node_entry
node_entry -->|"mounts"| node_app
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_bot
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_about
node_app -->|"renders"| node_experience
node_app -->|"renders"| node_skills
node_app -->|"renders"| node_projects
node_app -->|"renders"| node_contact
node_app -->|"renders"| node_footer
node_about -->|"links"| node_resume
node_contact -->|"sends form"| node_emailjs

click node_entry "https://github.com/shriwa/portfolio/blob/main/src/main.jsx"
click node_app "https://github.com/shriwa/portfolio/blob/main/src/App.jsx"
click node_navbar "https://github.com/shriwa/portfolio/blob/main/src/components/Navbar.jsx"
click node_bot "https://github.com/shriwa/portfolio/blob/main/src/components/Bot.jsx"
click node_hero "https://github.com/shriwa/portfolio/blob/main/src/components/Hero.jsx"
click node_about "https://github.com/shriwa/portfolio/blob/main/src/components/About.jsx"
click node_resume "https://github.com/shriwa/portfolio/blob/main/src/assets/docs/Resume_Shriwarthan.pdf"
click node_experience "https://github.com/shriwa/portfolio/blob/main/src/components/Experience.jsx"
click node_skills "https://github.com/shriwa/portfolio/blob/main/src/components/Skills.jsx"
click node_projects "https://github.com/shriwa/portfolio/blob/main/src/components/Project.jsx"
click node_hireme "https://github.com/shriwa/portfolio/blob/main/src/components/Hireme.jsx"
click node_contact "https://github.com/shriwa/portfolio/blob/main/src/components/Contact.jsx"
click node_footer "https://github.com/shriwa/portfolio/blob/main/src/components/Footer.jsx"

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_app,node_browser toneBlue
class node_hero,node_about,node_resume,node_experience,node_skills,node_projects toneAmber
class node_navbar,node_bot,node_hireme,node_contact,node_footer toneMint
class node_visitor,node_emailjs toneIndigo
```

## Components

### Page runtime

- [React entry](https://github.com/shriwa/portfolio/blob/main/src/main.jsx): `src/main.jsx`
- [Page composition](https://github.com/shriwa/portfolio/blob/main/src/App.jsx): `src/App.jsx`

### Portfolio content

- [Introduction](https://github.com/shriwa/portfolio/blob/main/src/components/Hero.jsx): `src/components/Hero.jsx`
- [About and CV](https://github.com/shriwa/portfolio/blob/main/src/components/About.jsx): `src/components/About.jsx`
- [Resume PDF](https://github.com/shriwa/portfolio/blob/main/src/assets/docs/Resume_Shriwarthan.pdf): `src/assets/docs/Resume_Shriwarthan.pdf`
- [Experience](https://github.com/shriwa/portfolio/blob/main/src/components/Experience.jsx): `src/components/Experience.jsx`
- [Skills](https://github.com/shriwa/portfolio/blob/main/src/components/Skills.jsx): `src/components/Skills.jsx`
- [Projects](https://github.com/shriwa/portfolio/blob/main/src/components/Project.jsx): `src/components/Project.jsx`

### Visitor engagement

- [Navigation](https://github.com/shriwa/portfolio/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [WhatsApp shortcut](https://github.com/shriwa/portfolio/blob/main/src/components/Bot.jsx): `src/components/Bot.jsx`
- [Hire me](https://github.com/shriwa/portfolio/blob/main/src/components/Hireme.jsx): `src/components/Hireme.jsx`
- [Contact form](https://github.com/shriwa/portfolio/blob/main/src/components/Contact.jsx): `src/components/Contact.jsx`
- [Footer](https://github.com/shriwa/portfolio/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`

### Other components

- **Visitor**
- **Browser**
- **EmailJS**

## Connections

- Visitor → Browser: browses
- Browser → React entry: loads
- React entry → Page composition: mounts (evidence: `src/main.jsx`)
- Page composition → Navigation: renders (evidence: `src/App.jsx`)
- Page composition → WhatsApp shortcut: renders (evidence: `src/App.jsx`)
- Page composition → Introduction: renders (evidence: `src/App.jsx`)
- Page composition → About and CV: renders (evidence: `src/App.jsx`)
- Page composition → Experience: renders (evidence: `src/App.jsx`)
- Page composition → Skills: renders (evidence: `src/App.jsx`)
- Page composition → Projects: renders (evidence: `src/App.jsx`)
- Page composition → Contact form: renders (evidence: `src/App.jsx`)
- Page composition → Footer: renders (evidence: `src/App.jsx`)
- About and CV → Resume PDF: links (evidence: `src/components/About.jsx`)
- Contact form → EmailJS: sends form (evidence: `src/components/Contact.jsx`)
