# coderujwal3/portfolio architecture

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

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

## Overview

This is a React portfolio: visitors browse routed pages for profile, skills, projects, experience, credentials, and contact details. The frontend route tree composes page-specific sections inside a shared layout; those sections present portfolio data and certificates. For enquiries, the contact form sends a POST to the API, whose local and production handlers use shared validation and email logic to deliver through Resend. The graph follows documented imports and the excerpts; some page-to-section and API relationships are supported by the SOURCE INDEX or README rather than inspected implementation.

Main entry points: [`src/App.jsx`](https://github.com/coderujwal3/portfolio/blob/main/src/App.jsx) (Route application), [`src/components/layout/SiteLayout.jsx`](https://github.com/coderujwal3/portfolio/blob/main/src/components/layout/SiteLayout.jsx) (Shared site layout), [`src/pages/ExperiencePage.jsx`](https://github.com/coderujwal3/portfolio/blob/main/src/pages/ExperiencePage.jsx) (Experience page), [`src/components/sections/SkillsSection.jsx`](https://github.com/coderujwal3/portfolio/blob/main/src/components/sections/SkillsSection.jsx) (Skills section)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Portfolio frontend"]
  node_app["Route application<br/>[App.jsx]"]
  node_layout["Shared site layout<br/>[SiteLayout.jsx]"]
  node_header["Site header<br/>[SiteHeader.jsx]"]
  node_footer["Site footer<br/>[SiteFooter.jsx]"]
  node_home["Home page<br/>[HomePage.jsx]"]
  node_about["About page<br/>[AboutPage.jsx]"]
  node_skills["Skills page<br/>[SkillsPage.jsx]"]
  node_experience["Experience page<br/>[ExperiencePage.jsx]"]
  node_projects["Projects page<br/>[ProjectsPage.jsx]"]
  node_contactpage["Contact page<br/>[ContactPage.jsx]"]
  node_notfound["Not-found page<br/>[NotFoundPage.jsx]"]
  node_theme["Theme persistence<br/>[useTheme.js]"]
end

subgraph group_content["Portfolio content"]
  node_profile["Profile section<br/>[AboutSection.jsx]"]
  node_hero["Hero section<br/>[HeroSection.jsx]"]
  node_skillsection["Skills section<br/>[SkillsSection.jsx]"]
  node_experiencecontent["Experience section"]
  node_credentials["Credentials section"]
  node_projectsection["Projects section"]
  node_portfolio_data["Portfolio data<br/>[portfolio.js]"]
  node_carousel["Certificate carousel"]
end

subgraph group_messaging["Contact messaging"]
  node_contactform["Contact form<br/>[ContactSection.jsx]"]
  node_contact_service["Contact API client<br/>[contactService.js]"]
  node_api["Production contact endpoint<br/>[contact.js]"]
  node_devapi["Local contact endpoint<br/>[dev-server.js]"]
  node_service["Validation and email<br/>[contact-service.js]"]
  node_resend["Resend email service"]
end

node_visitor(("Visitor"))

node_visitor -->|"browses routes"| node_app
node_app -->|"wraps routes"| node_layout
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_skills
node_app -->|"routes to"| node_experience
node_app -->|"routes to"| node_projects
node_app -->|"routes to"| node_contactpage
node_app -->|"routes to"| node_notfound
node_layout -->|"renders"| node_header
node_layout -->|"renders"| node_footer
node_layout -->|"uses theme"| node_theme
node_home -->|"renders"| node_hero
node_about -->|"renders"| node_profile
node_skills -->|"renders"| node_skillsection
node_experience -->|"renders"| node_experiencecontent
node_experience -->|"renders"| node_credentials
node_projects -->|"renders"| node_projectsection
node_contactpage -->|"renders"| node_contactform
node_skillsection -->|"reads content"| node_portfolio_data
node_experiencecontent -->|"reads content"| node_portfolio_data
node_projectsection -->|"reads content"| node_portfolio_data
node_skillsection -->|"renders"| node_carousel
node_contactform -->|"submits form"| node_contact_service
node_contact_service -->|"posts to"| node_api
node_api -->|"delegates to"| node_service
node_devapi -->|"delegates to"| node_service
node_service -->|"sends email"| node_resend

click node_app "https://github.com/coderujwal3/portfolio/blob/main/src/App.jsx"
click node_layout "https://github.com/coderujwal3/portfolio/blob/main/src/components/layout/SiteLayout.jsx"
click node_header "https://github.com/coderujwal3/portfolio/blob/main/src/components/layout/SiteHeader.jsx"
click node_footer "https://github.com/coderujwal3/portfolio/blob/main/src/components/layout/SiteFooter.jsx"
click node_home "https://github.com/coderujwal3/portfolio/blob/main/src/pages/HomePage.jsx"
click node_about "https://github.com/coderujwal3/portfolio/blob/main/src/pages/AboutPage.jsx"
click node_skills "https://github.com/coderujwal3/portfolio/blob/main/src/pages/SkillsPage.jsx"
click node_experience "https://github.com/coderujwal3/portfolio/blob/main/src/pages/ExperiencePage.jsx"
click node_projects "https://github.com/coderujwal3/portfolio/blob/main/src/pages/ProjectsPage.jsx"
click node_contactpage "https://github.com/coderujwal3/portfolio/blob/main/src/pages/ContactPage.jsx"
click node_notfound "https://github.com/coderujwal3/portfolio/blob/main/src/pages/NotFoundPage.jsx"
click node_profile "https://github.com/coderujwal3/portfolio/blob/main/src/components/sections/AboutSection.jsx"
click node_hero "https://github.com/coderujwal3/portfolio/blob/main/src/components/sections/HeroSection.jsx"
click node_skillsection "https://github.com/coderujwal3/portfolio/blob/main/src/components/sections/SkillsSection.jsx"
click node_experiencecontent "https://github.com/coderujwal3/portfolio/blob/main/src/components/sections/ExperienceSection.jsx"
click node_credentials "https://github.com/coderujwal3/portfolio/blob/main/src/components/sections/CredentialsSection.jsx"
click node_projectsection "https://github.com/coderujwal3/portfolio/blob/main/src/components/sections/ProjectsSection.jsx"
click node_contactform "https://github.com/coderujwal3/portfolio/blob/main/src/components/sections/ContactSection.jsx"
click node_portfolio_data "https://github.com/coderujwal3/portfolio/blob/main/src/data/portfolio.js"
click node_carousel "https://github.com/coderujwal3/portfolio/blob/main/src/components/ui/CertificateCarousel.jsx"
click node_theme "https://github.com/coderujwal3/portfolio/blob/main/src/hooks/useTheme.js"
click node_contact_service "https://github.com/coderujwal3/portfolio/blob/main/src/services/contactService.js"
click node_api "https://github.com/coderujwal3/portfolio/blob/main/api/contact.js"
click node_devapi "https://github.com/coderujwal3/portfolio/blob/main/server/dev-server.js"
click node_service "https://github.com/coderujwal3/portfolio/blob/main/server/contact-service.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_app,node_layout,node_header,node_footer,node_home,node_about,node_skills,node_experience,node_projects,node_contactpage,node_notfound,node_theme toneBlue
class node_profile,node_hero,node_skillsection,node_experiencecontent,node_credentials,node_projectsection,node_portfolio_data,node_carousel toneAmber
class node_contactform,node_contact_service,node_api,node_devapi,node_service,node_resend toneMint
class node_visitor toneIndigo
```

## Components

### Portfolio frontend

- [Route application](https://github.com/coderujwal3/portfolio/blob/main/src/App.jsx): `src/App.jsx`
- [Shared site layout](https://github.com/coderujwal3/portfolio/blob/main/src/components/layout/SiteLayout.jsx): `src/components/layout/SiteLayout.jsx`
- [Site header](https://github.com/coderujwal3/portfolio/blob/main/src/components/layout/SiteHeader.jsx): `src/components/layout/SiteHeader.jsx`
- [Site footer](https://github.com/coderujwal3/portfolio/blob/main/src/components/layout/SiteFooter.jsx): `src/components/layout/SiteFooter.jsx`
- [Home page](https://github.com/coderujwal3/portfolio/blob/main/src/pages/HomePage.jsx): `src/pages/HomePage.jsx`
- [About page](https://github.com/coderujwal3/portfolio/blob/main/src/pages/AboutPage.jsx): `src/pages/AboutPage.jsx`
- [Skills page](https://github.com/coderujwal3/portfolio/blob/main/src/pages/SkillsPage.jsx): `src/pages/SkillsPage.jsx`
- [Experience page](https://github.com/coderujwal3/portfolio/blob/main/src/pages/ExperiencePage.jsx): `src/pages/ExperiencePage.jsx`
- [Projects page](https://github.com/coderujwal3/portfolio/blob/main/src/pages/ProjectsPage.jsx): `src/pages/ProjectsPage.jsx`
- [Contact page](https://github.com/coderujwal3/portfolio/blob/main/src/pages/ContactPage.jsx): `src/pages/ContactPage.jsx`
- [Not-found page](https://github.com/coderujwal3/portfolio/blob/main/src/pages/NotFoundPage.jsx): `src/pages/NotFoundPage.jsx`
- [Theme persistence](https://github.com/coderujwal3/portfolio/blob/main/src/hooks/useTheme.js): `src/hooks/useTheme.js`

### Portfolio content

- [Profile section](https://github.com/coderujwal3/portfolio/blob/main/src/components/sections/AboutSection.jsx): `src/components/sections/AboutSection.jsx`
- [Hero section](https://github.com/coderujwal3/portfolio/blob/main/src/components/sections/HeroSection.jsx): `src/components/sections/HeroSection.jsx`
- [Skills section](https://github.com/coderujwal3/portfolio/blob/main/src/components/sections/SkillsSection.jsx): `src/components/sections/SkillsSection.jsx`
- [Experience section](https://github.com/coderujwal3/portfolio/blob/main/src/components/sections/ExperienceSection.jsx): `src/components/sections/ExperienceSection.jsx`
- [Credentials section](https://github.com/coderujwal3/portfolio/blob/main/src/components/sections/CredentialsSection.jsx): `src/components/sections/CredentialsSection.jsx`
- [Projects section](https://github.com/coderujwal3/portfolio/blob/main/src/components/sections/ProjectsSection.jsx): `src/components/sections/ProjectsSection.jsx`
- [Portfolio data](https://github.com/coderujwal3/portfolio/blob/main/src/data/portfolio.js): `src/data/portfolio.js`
- [Certificate carousel](https://github.com/coderujwal3/portfolio/blob/main/src/components/ui/CertificateCarousel.jsx): `src/components/ui/CertificateCarousel.jsx`

### Contact messaging

- [Contact form](https://github.com/coderujwal3/portfolio/blob/main/src/components/sections/ContactSection.jsx): `src/components/sections/ContactSection.jsx`
- [Contact API client](https://github.com/coderujwal3/portfolio/blob/main/src/services/contactService.js): `src/services/contactService.js`
- [Production contact endpoint](https://github.com/coderujwal3/portfolio/blob/main/api/contact.js): `api/contact.js`
- [Local contact endpoint](https://github.com/coderujwal3/portfolio/blob/main/server/dev-server.js): `server/dev-server.js`
- [Validation and email](https://github.com/coderujwal3/portfolio/blob/main/server/contact-service.js): `server/contact-service.js`
- **Resend email service**

### Other components

- **Visitor**

## Connections

- Visitor → Route application: browses routes (evidence: `README.md`)
- Route application → Shared site layout: wraps routes (evidence: `src/App.jsx`)
- Route application → Home page: routes to (evidence: `src/App.jsx`)
- Route application → About page: routes to (evidence: `src/App.jsx`)
- Route application → Skills page: routes to (evidence: `src/App.jsx`)
- Route application → Experience page: routes to (evidence: `src/App.jsx`)
- Route application → Projects page: routes to (evidence: `src/App.jsx`)
- Route application → Contact page: routes to (evidence: `src/App.jsx`)
- Route application → Not-found page: routes to (evidence: `src/App.jsx`)
- Shared site layout → Site header: renders (evidence: `src/components/layout/SiteLayout.jsx`)
- Shared site layout → Site footer: renders (evidence: `src/components/layout/SiteLayout.jsx`)
- Shared site layout → Theme persistence: uses theme (evidence: `src/components/layout/SiteLayout.jsx`)
- Home page → Hero section: renders (evidence: `src/pages/HomePage.jsx`)
- About page → Profile section: renders (evidence: `src/pages/AboutPage.jsx`)
- Skills page → Skills section: renders (evidence: `src/pages/SkillsPage.jsx`)
- Experience page → Experience section: renders (evidence: `src/pages/ExperiencePage.jsx`)
- Experience page → Credentials section: renders (evidence: `src/pages/ExperiencePage.jsx`)
- Projects page → Projects section: renders (evidence: `src/pages/ProjectsPage.jsx`)
- Contact page → Contact form: renders (evidence: `src/pages/ContactPage.jsx`)
- Skills section → Portfolio data: reads content (evidence: `src/components/sections/SkillsSection.jsx`)
- Experience section → Portfolio data: reads content (evidence: `src/components/sections/ExperienceSection.jsx`)
- Projects section → Portfolio data: reads content (evidence: `src/components/sections/ProjectsSection.jsx`)
- Skills section → Certificate carousel: renders (evidence: `src/components/sections/SkillsSection.jsx`)
- Contact form → Contact API client: submits form (evidence: `src/components/sections/ContactSection.jsx`)
- Contact API client → Production contact endpoint: posts to (evidence: `src/services/contactService.js`)
- Production contact endpoint → Validation and email: delegates to (evidence: `api/contact.js`)
- Local contact endpoint → Validation and email: delegates to (evidence: `server/dev-server.js`)
- Validation and email → Resend email service: sends email (evidence: `server/contact-service.js`)
