# nitishchahal/myportfolio architecture

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

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

## Overview

This React portfolio presents a visitor-facing profile through a routed landing page and dedicated sections. The main workflow is: visitor opens the portfolio, App selects and renders page components, and visitors explore projects, credentials, skills, photography, and contact options. Project details are backed by project data; the gallery opens a lightbox; the contact form sends through EmailJS. The README documents additional capabilities, but unsampled implementations and route wiring are not inferred beyond the documented or indexed relationships.

Main entry points: [`src/App.jsx`](https://github.com/nitishchahal/myportfolio/blob/main/src/App.jsx) (App and routing), [`src/components/ProjectDetails.jsx`](https://github.com/nitishchahal/myportfolio/blob/main/src/components/ProjectDetails.jsx) (Project details), [`src/components/Hero.jsx`](https://github.com/nitishchahal/myportfolio/blob/main/src/components/Hero.jsx) (Hero introduction), [`src/components/About.jsx`](https://github.com/nitishchahal/myportfolio/blob/main/src/components/About.jsx) (Developer profile)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Portfolio Experience"]
  node_app["App and routing<br/>[App.jsx]"]
  node_header["Navigation and theme<br/>[Header.jsx]"]
  node_scroll["Route scroll reset<br/>[ScrollToTop.jsx]"]
  node_loader["Loading screen<br/>[Loader.jsx]"]
  node_backtop["Back to top<br/>[BackToTop.jsx]"]
end

subgraph group_showcase["Work and Profile"]
  node_hero["Hero introduction<br/>[Hero.jsx]"]
  node_about["Developer profile<br/>[About.jsx]"]
  node_services["Social reels showcase"]
  node_cta["Call-to-action links<br/>[CTAButton.jsx]"]
  node_projects["Project showcase<br/>[Projects.jsx]"]
  node_projectdetails["Project details<br/>[ProjectDetails.jsx]"]
  node_skills["Technical skills<br/>[Skills.jsx]"]
  node_certificates["Certifications<br/>[Certificates.jsx]"]
  node_gallery["Photography gallery<br/>[Gallery.jsx]"]
  node_lightbox["Image lightbox<br/>[Lightbox.jsx]"]
end

subgraph group_engagement["Visitor Engagement"]
  node_contact["Contact form<br/>[Contact.jsx]"]
  node_emailjs["EmailJS service"]
  node_footer["Footer and profiles<br/>[Footer.jsx]"]
  node_instagram["Instagram embeds"]
end

subgraph group_content["Portfolio Content"]
  node_projectdata["Project descriptions<br/>[Projectsdata.jsx]"]
  node_resume["Downloadable resume"]
end

node_visitor(("Portfolio visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_scroll
node_app -->|"shows while loading"| node_loader
node_app -->|"renders"| node_backtop
node_app -->|"routes to"| node_hero
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_projects
node_app -->|"routes to"| node_projectdetails
node_app -->|"routes to"| node_skills
node_app -->|"routes to"| node_certificates
node_app -->|"routes to"| node_gallery
node_app -->|"routes to"| node_contact
node_app -->|"renders"| node_services
node_app -->|"renders"| node_footer
node_hero -->|"renders"| node_cta
node_projects -->|"navigates to"| node_projectdetails
node_projectdetails -->|"reads"| node_projectdata
node_gallery -->|"opens"| node_lightbox
node_contact -->|"sends form"| node_emailjs
node_services -->|"loads embeds"| node_instagram
node_about -.->|"links download"| node_resume

click node_app "https://github.com/nitishchahal/myportfolio/blob/main/src/App.jsx"
click node_header "https://github.com/nitishchahal/myportfolio/blob/main/src/components/Header.jsx"
click node_scroll "https://github.com/nitishchahal/myportfolio/blob/main/src/ScrollToTop.jsx"
click node_loader "https://github.com/nitishchahal/myportfolio/blob/main/src/components/Loader.jsx"
click node_backtop "https://github.com/nitishchahal/myportfolio/blob/main/src/components/BackToTop.jsx"
click node_hero "https://github.com/nitishchahal/myportfolio/blob/main/src/components/Hero.jsx"
click node_about "https://github.com/nitishchahal/myportfolio/blob/main/src/components/About.jsx"
click node_services "https://github.com/nitishchahal/myportfolio/blob/main/src/components/ServicesShowcase.jsx"
click node_cta "https://github.com/nitishchahal/myportfolio/blob/main/src/components/CTAButton.jsx"
click node_projects "https://github.com/nitishchahal/myportfolio/blob/main/src/components/Projects.jsx"
click node_projectdetails "https://github.com/nitishchahal/myportfolio/blob/main/src/components/ProjectDetails.jsx"
click node_projectdata "https://github.com/nitishchahal/myportfolio/blob/main/src/Data/Projectsdata.jsx"
click node_skills "https://github.com/nitishchahal/myportfolio/blob/main/src/components/Skills.jsx"
click node_certificates "https://github.com/nitishchahal/myportfolio/blob/main/src/components/Certificates.jsx"
click node_gallery "https://github.com/nitishchahal/myportfolio/blob/main/src/components/Gallery.jsx"
click node_lightbox "https://github.com/nitishchahal/myportfolio/blob/main/src/components/Lightbox.jsx"
click node_contact "https://github.com/nitishchahal/myportfolio/blob/main/src/components/Contact.jsx"
click node_footer "https://github.com/nitishchahal/myportfolio/blob/main/src/components/Footer.jsx"
click node_resume "https://github.com/nitishchahal/myportfolio/blob/main/public/NitishChoudhary_SoftwareDeveloper_Resume.pdf"

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_app,node_header,node_scroll,node_loader,node_backtop toneBlue
class node_hero,node_about,node_services,node_cta,node_projects,node_projectdetails,node_skills,node_certificates,node_gallery,node_lightbox toneAmber
class node_contact,node_emailjs,node_footer,node_instagram toneMint
class node_projectdata,node_resume toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio Experience

- [App and routing](https://github.com/nitishchahal/myportfolio/blob/main/src/App.jsx): `src/App.jsx`
- [Navigation and theme](https://github.com/nitishchahal/myportfolio/blob/main/src/components/Header.jsx): `src/components/Header.jsx`
- [Route scroll reset](https://github.com/nitishchahal/myportfolio/blob/main/src/ScrollToTop.jsx): `src/ScrollToTop.jsx`
- [Loading screen](https://github.com/nitishchahal/myportfolio/blob/main/src/components/Loader.jsx): `src/components/Loader.jsx`
- [Back to top](https://github.com/nitishchahal/myportfolio/blob/main/src/components/BackToTop.jsx): `src/components/BackToTop.jsx`

### Work and Profile

- [Hero introduction](https://github.com/nitishchahal/myportfolio/blob/main/src/components/Hero.jsx): `src/components/Hero.jsx`
- [Developer profile](https://github.com/nitishchahal/myportfolio/blob/main/src/components/About.jsx): `src/components/About.jsx`
- [Social reels showcase](https://github.com/nitishchahal/myportfolio/blob/main/src/components/ServicesShowcase.jsx): `src/components/ServicesShowcase.jsx`
- [Call-to-action links](https://github.com/nitishchahal/myportfolio/blob/main/src/components/CTAButton.jsx): `src/components/CTAButton.jsx`
- [Project showcase](https://github.com/nitishchahal/myportfolio/blob/main/src/components/Projects.jsx): `src/components/Projects.jsx`
- [Project details](https://github.com/nitishchahal/myportfolio/blob/main/src/components/ProjectDetails.jsx): `src/components/ProjectDetails.jsx`
- [Technical skills](https://github.com/nitishchahal/myportfolio/blob/main/src/components/Skills.jsx): `src/components/Skills.jsx`
- [Certifications](https://github.com/nitishchahal/myportfolio/blob/main/src/components/Certificates.jsx): `src/components/Certificates.jsx`
- [Photography gallery](https://github.com/nitishchahal/myportfolio/blob/main/src/components/Gallery.jsx): `src/components/Gallery.jsx`
- [Image lightbox](https://github.com/nitishchahal/myportfolio/blob/main/src/components/Lightbox.jsx): `src/components/Lightbox.jsx`

### Visitor Engagement

- [Contact form](https://github.com/nitishchahal/myportfolio/blob/main/src/components/Contact.jsx): `src/components/Contact.jsx`
- **EmailJS service**
- [Footer and profiles](https://github.com/nitishchahal/myportfolio/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`
- **Instagram embeds**

### Portfolio Content

- [Project descriptions](https://github.com/nitishchahal/myportfolio/blob/main/src/Data/Projectsdata.jsx): `src/Data/Projectsdata.jsx`
- [Downloadable resume](https://github.com/nitishchahal/myportfolio/blob/main/public/NitishChoudhary_SoftwareDeveloper_Resume.pdf): `public/NitishChoudhary_SoftwareDeveloper_Resume.pdf`

### Other components

- **Portfolio visitor**

## Connections

- Portfolio visitor → App and routing: opens (evidence: `README.md`)
- App and routing → Navigation and theme: renders (evidence: `src/App.jsx`)
- App and routing → Route scroll reset: renders (evidence: `src/App.jsx`)
- App and routing → Loading screen: shows while loading (evidence: `src/App.jsx`)
- App and routing → Back to top: renders (evidence: `src/App.jsx`)
- App and routing → Hero introduction: routes to (evidence: `src/App.jsx`)
- App and routing → Developer profile: routes to (evidence: `src/App.jsx`)
- App and routing → Project showcase: routes to (evidence: `src/App.jsx`)
- App and routing → Project details: routes to (evidence: `README.md`)
- App and routing → Technical skills: routes to (evidence: `src/App.jsx`)
- App and routing → Certifications: routes to (evidence: `src/App.jsx`)
- App and routing → Photography gallery: routes to (evidence: `src/App.jsx`)
- App and routing → Contact form: routes to (evidence: `src/App.jsx`)
- App and routing → Social reels showcase: renders (evidence: `src/App.jsx`)
- App and routing → Footer and profiles: renders (evidence: `src/App.jsx`)
- Hero introduction → Call-to-action links: renders (evidence: `src/components/Hero.jsx`)
- Project showcase → Project details: navigates to (evidence: `README.md`)
- Project details → Project descriptions: reads (evidence: `src/Data/Projectsdata.jsx`)
- Photography gallery → Image lightbox: opens (evidence: `src/components/Gallery.jsx`)
- Contact form → EmailJS service: sends form (evidence: `src/components/Contact.jsx`)
- Social reels showcase → Instagram embeds: loads embeds (evidence: `src/components/ServicesShowcase.jsx`)
- Developer profile → Downloadable resume: links download (evidence: `README.md`)
