# gnanesh-12/myportfolio architecture

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

- Interactive diagram: https://gitdiagram.com/gnanesh-12/myportfolio
- Repository: https://github.com/gnanesh-12/myportfolio

## Overview

This repository is a single-page personal portfolio built with React. A visitor enters the page, browses the profile, skills, career history, education, projects and certificates, and can submit a contact form; the contact component sends it through EmailJS. The app composition and theme provider are visible in the sampled entry-point code. The README describes only the Vite template, so portfolio capabilities are inferred from the sampled components; unsampled source was not inspected.

Main entry points: [`src/App.jsx`](https://github.com/gnanesh-12/myportfolio/blob/main/src/App.jsx) (Page composition), [`src/main.jsx`](https://github.com/gnanesh-12/myportfolio/blob/main/src/main.jsx) (React entry), [`src/components/Header.jsx`](https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Header.jsx) (Site header), [`src/components/Contact.jsx`](https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Contact.jsx) (Contact form)

## Diagram (Mermaid)

```mermaid
flowchart TD

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

subgraph group_navigation["Navigation and theme"]
  node_theme["Theme provider<br/>[ThemeContext.jsx]"]
  node_header["Site header<br/>[Header.jsx]"]
end

subgraph group_profile["Portfolio content"]
  node_home["Home<br/>[Home.jsx]"]
  node_about["About<br/>[About.jsx]"]
  node_skills["Skills<br/>[Skills.jsx]"]
  node_experience["Experience<br/>[Experience.jsx]"]
  node_education["Education<br/>[Education.jsx]"]
  node_projects["Projects<br/>[Projects.jsx]"]
  node_certificates["Certificates<br/>[Certificates.jsx]"]
end

subgraph group_contact["Contact"]
  node_contact["Contact form<br/>[Contact.jsx]"]
end

node_visitor(("Visitor"))
node_emailjs["EmailJS"]

node_visitor -->|"opens page"| node_entry
node_entry -->|"wraps app"| node_theme
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_home
node_app -->|"renders"| node_about
node_app -->|"renders"| node_skills
node_app -->|"renders"| node_experience
node_app -->|"renders"| node_education
node_app -->|"renders"| node_projects
node_app -->|"renders"| node_certificates
node_app -->|"renders"| node_contact
node_app -->|"renders"| node_footer
node_header -->|"uses theme"| node_theme
node_contact -->|"sends form"| node_emailjs

click node_entry "https://github.com/gnanesh-12/myportfolio/blob/main/src/main.jsx"
click node_app "https://github.com/gnanesh-12/myportfolio/blob/main/src/App.jsx"
click node_theme "https://github.com/gnanesh-12/myportfolio/blob/main/src/context/ThemeContext.jsx"
click node_header "https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Header.jsx"
click node_home "https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Home.jsx"
click node_about "https://github.com/gnanesh-12/myportfolio/blob/main/src/components/About.jsx"
click node_skills "https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Skills.jsx"
click node_experience "https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Experience.jsx"
click node_education "https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Education.jsx"
click node_projects "https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Projects.jsx"
click node_certificates "https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Certificates.jsx"
click node_contact "https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Contact.jsx"
click node_footer "https://github.com/gnanesh-12/myportfolio/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_footer toneBlue
class node_theme,node_header toneAmber
class node_home,node_about,node_skills,node_experience,node_education,node_projects,node_certificates toneMint
class node_contact toneRose
class node_visitor,node_emailjs toneIndigo
```

## Components

### App runtime

- [React entry](https://github.com/gnanesh-12/myportfolio/blob/main/src/main.jsx): `src/main.jsx`
- [Page composition](https://github.com/gnanesh-12/myportfolio/blob/main/src/App.jsx): `src/App.jsx`
- [Site footer](https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`

### Navigation and theme

- [Theme provider](https://github.com/gnanesh-12/myportfolio/blob/main/src/context/ThemeContext.jsx): `src/context/ThemeContext.jsx`
- [Site header](https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Header.jsx): `src/components/Header.jsx`

### Portfolio content

- [Home](https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Home.jsx): `src/components/Home.jsx`
- [About](https://github.com/gnanesh-12/myportfolio/blob/main/src/components/About.jsx): `src/components/About.jsx`
- [Skills](https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Skills.jsx): `src/components/Skills.jsx`
- [Experience](https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Experience.jsx): `src/components/Experience.jsx`
- [Education](https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Education.jsx): `src/components/Education.jsx`
- [Projects](https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Projects.jsx): `src/components/Projects.jsx`
- [Certificates](https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Certificates.jsx): `src/components/Certificates.jsx`

### Contact

- [Contact form](https://github.com/gnanesh-12/myportfolio/blob/main/src/components/Contact.jsx): `src/components/Contact.jsx`

### Other components

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

## Connections

- Visitor → React entry: opens page (evidence: `src/main.jsx`)
- React entry → Theme provider: wraps app (evidence: `src/main.jsx`)
- React entry → Page composition: renders (evidence: `src/main.jsx`)
- Page composition → Site header: renders (evidence: `src/App.jsx`)
- Page composition → Home: renders (evidence: `src/App.jsx`)
- Page composition → About: renders (evidence: `src/App.jsx`)
- Page composition → Skills: renders (evidence: `src/App.jsx`)
- Page composition → Experience: renders (evidence: `src/App.jsx`)
- Page composition → Education: renders (evidence: `src/App.jsx`)
- Page composition → Projects: renders (evidence: `src/App.jsx`)
- Page composition → Certificates: renders (evidence: `src/App.jsx`)
- Page composition → Contact form: renders (evidence: `src/App.jsx`)
- Page composition → Site footer: renders (evidence: `src/App.jsx`)
- Site header → Theme provider: uses theme (evidence: `src/components/Header.jsx`)
- Contact form → EmailJS: sends form (evidence: `src/components/Contact.jsx`)
