# dasari123-nirosha/nirosha-portfolio architecture

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

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

## Overview

This is a React single-page portfolio presenting its owner’s profile, skills, projects, work experience, education, and contact options. The visitor workflow is to enter the page, navigate or scroll through those sections, explore project demos, and optionally start a conversation through the contact form. The sampled App component confirms the page composition; the contact form confirms mail-client handoff. Some data and UI modules are indexed but not excerpted, so their usage relationships are not asserted.

Main entry points: [`src/App.jsx`](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/App.jsx) (Page composition), [`src/main.jsx`](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/main.jsx) (React mount), [`src/sections/Contact.jsx`](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/sections/Contact.jsx) (Contact), [`src/sections/Projects.jsx`](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/sections/Projects.jsx) (Projects)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Page entry"]
  node_mount["React mount<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 profile<br/>[About.jsx]"]
  node_skills["Skills<br/>[Skills.jsx]"]
  node_projects["Projects<br/>[Projects.jsx]"]
  node_experience["Experience<br/>[Experience.jsx]"]
  node_education["Education<br/>[Education.jsx]"]
  node_experiencedata["Experience content<br/>[experience.js]"]
  node_projectdata["Project content<br/>[projects.js]"]
  node_skillsdata["Skills content<br/>[skills.js]"]
end

subgraph group_visitor["Visitor interaction"]
  node_contact["Contact<br/>[Contact.jsx]"]
  node_navbar["Navigation<br/>[Navbar.jsx]"]
  node_footer["Footer links<br/>[Footer.jsx]"]
  node_scrolltop["Back to top<br/>[ScrollToTop.jsx]"]
end

subgraph group_shared["Shared presentation"]
  node_button["Button<br/>[Button.jsx]"]
  node_projectcard["Project card<br/>[ProjectCard.jsx]"]
  node_heading["Section heading<br/>[SectionHeading.jsx]"]
  node_activehook["Active section hook"]
end

node_browser(("Visitor"))
node_email["Email application"]

node_browser -->|"opens page"| node_mount
node_mount -->|"renders"| node_app
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_about
node_app -->|"renders"| node_skills
node_app -->|"renders"| node_projects
node_app -->|"renders"| node_experience
node_app -->|"renders"| node_education
node_app -->|"renders"| node_contact
node_app -->|"renders"| node_footer
node_app -->|"renders"| node_scrolltop
node_contact -->|"opens mail"| node_email
node_browser -.->|"navigates"| node_navbar
node_browser -.->|"views demos"| node_projects

click node_mount "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/main.jsx"
click node_app "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/App.jsx"
click node_hero "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/sections/Hero.jsx"
click node_about "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/sections/About.jsx"
click node_skills "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/sections/Skills.jsx"
click node_projects "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/sections/Projects.jsx"
click node_experience "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/sections/Experience.jsx"
click node_education "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/sections/Education.jsx"
click node_contact "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/sections/Contact.jsx"
click node_navbar "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/components/layout/Navbar.jsx"
click node_footer "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/components/layout/Footer.jsx"
click node_scrolltop "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/components/layout/ScrollToTop.jsx"
click node_button "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/components/ui/Button.jsx"
click node_projectcard "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/components/ui/ProjectCard.jsx"
click node_heading "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/components/ui/SectionHeading.jsx"
click node_activehook "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/hooks/useActiveSection.js"
click node_experiencedata "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/data/experience.js"
click node_projectdata "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/data/projects.js"
click node_skillsdata "https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/data/skills.js"

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_mount,node_app toneBlue
class node_hero,node_about,node_skills,node_projects,node_experience,node_education,node_experiencedata,node_projectdata,node_skillsdata toneAmber
class node_contact,node_navbar,node_footer,node_scrolltop toneMint
class node_button,node_projectcard,node_heading,node_activehook toneRose
class node_browser,node_email toneIndigo
```

## Components

### Page entry

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

### Portfolio content

- [Introduction](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/sections/Hero.jsx): `src/sections/Hero.jsx`
- [About profile](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/sections/About.jsx): `src/sections/About.jsx`
- [Skills](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/sections/Skills.jsx): `src/sections/Skills.jsx`
- [Projects](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/sections/Projects.jsx): `src/sections/Projects.jsx`
- [Experience](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/sections/Experience.jsx): `src/sections/Experience.jsx`
- [Education](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/sections/Education.jsx): `src/sections/Education.jsx`
- [Experience content](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/data/experience.js): `src/data/experience.js`
- [Project content](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/data/projects.js): `src/data/projects.js`
- [Skills content](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/data/skills.js): `src/data/skills.js`

### Visitor interaction

- [Contact](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/sections/Contact.jsx): `src/sections/Contact.jsx`
- [Navigation](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/components/layout/Navbar.jsx): `src/components/layout/Navbar.jsx`
- [Footer links](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/components/layout/Footer.jsx): `src/components/layout/Footer.jsx`
- [Back to top](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/components/layout/ScrollToTop.jsx): `src/components/layout/ScrollToTop.jsx`

### Shared presentation

- [Button](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/components/ui/Button.jsx): `src/components/ui/Button.jsx`
- [Project card](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/components/ui/ProjectCard.jsx): `src/components/ui/ProjectCard.jsx`
- [Section heading](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/components/ui/SectionHeading.jsx): `src/components/ui/SectionHeading.jsx`
- [Active section hook](https://github.com/dasari123-nirosha/nirosha-portfolio/blob/main/src/hooks/useActiveSection.js): `src/hooks/useActiveSection.js`

### Other components

- **Visitor**
- **Email application**

## Connections

- Visitor → React mount: opens page (evidence: `src/main.jsx`)
- React mount → Page composition: renders (evidence: `src/main.jsx`)
- Page composition → Navigation: renders (evidence: `src/App.jsx`)
- Page composition → Introduction: renders (evidence: `src/App.jsx`)
- Page composition → About profile: renders (evidence: `src/App.jsx`)
- Page composition → Skills: renders (evidence: `src/App.jsx`)
- Page composition → Projects: renders (evidence: `src/App.jsx`)
- Page composition → Experience: renders (evidence: `src/App.jsx`)
- Page composition → Education: renders (evidence: `src/App.jsx`)
- Page composition → Contact: renders (evidence: `src/App.jsx`)
- Page composition → Footer links: renders (evidence: `src/App.jsx`)
- Page composition → Back to top: renders (evidence: `src/App.jsx`)
- Contact → Email application: opens mail (evidence: `src/sections/Contact.jsx`)
- Visitor → Navigation: navigates
- Visitor → Projects: views demos
