# rahul-at-dev/portfolio-website architecture

> Architecture diagram of the GitHub repository rahul-at-dev/portfolio-website, 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/rahul-at-dev/portfolio-website
- Repository: https://github.com/rahul-at-dev/portfolio-website

## Overview

This repository implements a single-page personal portfolio site. A visitor enters through the React app, which routes the home page to a composed portfolio of profile, skills, projects, certificates, and contact sections; a catch-all route handles unknown paths. The page also triggers scroll-reveal behavior. Shared UI components provide notifications and other interface primitives. The README is a placeholder, so the portfolio’s purpose and capabilities are inferred from the page components; several UI modules are represented by their source paths without claiming unsampled behavior.

Main entry points: [`src/pages/Index.tsx`](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/pages/Index.tsx) (Portfolio page), [`src/App.tsx`](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/App.tsx) (App and routes), [`src/components/portfolio/SectionHeading.tsx`](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/SectionHeading.tsx) (Section heading), [`src/components/ui/sidebar.tsx`](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/ui/sidebar.tsx) (Sidebar primitive)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["App and routing"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["App and routes<br/>[App.tsx]"]
  node_notfound["Not found page<br/>[NotFound.tsx]"]
end

subgraph group_portfolio["Portfolio content"]
  node_home["Portfolio page<br/>[Index.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_hero["Introduction<br/>[Hero.tsx]"]
  node_about["About<br/>[About.tsx]"]
  node_skills["Skills<br/>[Skills.tsx]"]
  node_projects["Projects<br/>[Projects.tsx]"]
  node_certificates["Certificates<br/>[Certificates.tsx]"]
  node_contact["Contact<br/>[Contact.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_heading["Section heading<br/>[SectionHeading.tsx]"]
end

subgraph group_interaction["Page interaction"]
  node_reveal["Scroll reveal<br/>[useReveal.ts]"]
end

subgraph group_ui["Shared UI"]
  node_button["Button primitive<br/>[button.tsx]"]
  node_toaststate["Toast state<br/>[use-toast.ts]"]
  node_toastview["Toast view<br/>[toast.tsx]"]
  node_toaster["Toast renderer<br/>[toaster.tsx]"]
  node_sonner["Sonner renderer<br/>[sonner.tsx]"]
  node_tooltip["Tooltip primitives<br/>[tooltip.tsx]"]
  node_sidebar["Sidebar primitive<br/>[sidebar.tsx]"]
  node_sheet["Sheet primitive<br/>[sheet.tsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"routes home"| node_home
node_app -->|"routes fallback"| node_notfound
node_app -->|"renders"| node_toaster
node_app -->|"renders"| node_sonner
node_app -->|"provides"| node_tooltip
node_home -->|"renders"| node_navbar
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_about
node_home -->|"renders"| node_skills
node_home -->|"renders"| node_projects
node_home -->|"renders"| node_certificates
node_home -->|"renders"| node_contact
node_home -->|"renders"| node_footer
node_home -->|"invokes"| node_reveal
node_about -->|"renders"| node_heading
node_skills -->|"renders"| node_heading
node_projects -->|"renders"| node_heading
node_certificates -->|"renders"| node_heading
node_contact -->|"renders"| node_heading
node_hero -->|"uses"| node_button
node_toaster -->|"subscribes"| node_toaststate
node_toaster -->|"renders"| node_toastview
node_toaststate -->|"types with"| node_toastview
node_sidebar -->|"uses"| node_sheet
node_sidebar -->|"uses"| node_button
node_sidebar -->|"uses"| node_tooltip

click node_entry "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/main.tsx"
click node_app "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/App.tsx"
click node_home "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/pages/Index.tsx"
click node_notfound "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/pages/NotFound.tsx"
click node_navbar "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/Navbar.tsx"
click node_hero "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/Hero.tsx"
click node_about "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/About.tsx"
click node_skills "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/Skills.tsx"
click node_projects "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/Projects.tsx"
click node_certificates "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/Certificates.tsx"
click node_contact "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/Contact.tsx"
click node_footer "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/Footer.tsx"
click node_heading "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/SectionHeading.tsx"
click node_reveal "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/hooks/useReveal.ts"
click node_button "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/ui/button.tsx"
click node_toaststate "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/hooks/use-toast.ts"
click node_toastview "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/ui/toast.tsx"
click node_toaster "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/ui/toaster.tsx"
click node_sonner "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/ui/sonner.tsx"
click node_tooltip "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/ui/tooltip.tsx"
click node_sidebar "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/ui/sidebar.tsx"
click node_sheet "https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/ui/sheet.tsx"

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_notfound toneBlue
class node_home,node_navbar,node_hero,node_about,node_skills,node_projects,node_certificates,node_contact,node_footer,node_heading toneAmber
class node_reveal toneMint
class node_button,node_toaststate,node_toastview,node_toaster,node_sonner,node_tooltip,node_sidebar,node_sheet toneRose
class node_visitor toneIndigo
```

## Components

### App and routing

- [React entry](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/main.tsx): `src/main.tsx`
- [App and routes](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/App.tsx): `src/App.tsx`
- [Not found page](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/pages/NotFound.tsx): `src/pages/NotFound.tsx`

### Portfolio content

- [Portfolio page](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/pages/Index.tsx): `src/pages/Index.tsx`
- [Navigation](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/Navbar.tsx): `src/components/portfolio/Navbar.tsx`
- [Introduction](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/Hero.tsx): `src/components/portfolio/Hero.tsx`
- [About](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/About.tsx): `src/components/portfolio/About.tsx`
- [Skills](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/Skills.tsx): `src/components/portfolio/Skills.tsx`
- [Projects](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/Projects.tsx): `src/components/portfolio/Projects.tsx`
- [Certificates](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/Certificates.tsx): `src/components/portfolio/Certificates.tsx`
- [Contact](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/Contact.tsx): `src/components/portfolio/Contact.tsx`
- [Footer](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/Footer.tsx): `src/components/portfolio/Footer.tsx`
- [Section heading](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/portfolio/SectionHeading.tsx): `src/components/portfolio/SectionHeading.tsx`

### Page interaction

- [Scroll reveal](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/hooks/useReveal.ts): `src/hooks/useReveal.ts`

### Shared UI

- [Button primitive](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/ui/button.tsx): `src/components/ui/button.tsx`
- [Toast state](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/hooks/use-toast.ts): `src/hooks/use-toast.ts`
- [Toast view](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/ui/toast.tsx): `src/components/ui/toast.tsx`
- [Toast renderer](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/ui/toaster.tsx): `src/components/ui/toaster.tsx`
- [Sonner renderer](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/ui/sonner.tsx): `src/components/ui/sonner.tsx`
- [Tooltip primitives](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/ui/tooltip.tsx): `src/components/ui/tooltip.tsx`
- [Sidebar primitive](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/ui/sidebar.tsx): `src/components/ui/sidebar.tsx`
- [Sheet primitive](https://github.com/rahul-at-dev/portfolio-website/blob/main/src/components/ui/sheet.tsx): `src/components/ui/sheet.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → React entry: opens site (evidence: `src/main.tsx`)
- React entry → App and routes: renders (evidence: `src/main.tsx`)
- App and routes → Portfolio page: routes home (evidence: `src/App.tsx`)
- App and routes → Not found page: routes fallback (evidence: `src/App.tsx`)
- App and routes → Toast renderer: renders (evidence: `src/App.tsx`)
- App and routes → Sonner renderer: renders (evidence: `src/App.tsx`)
- App and routes → Tooltip primitives: provides (evidence: `src/App.tsx`)
- Portfolio page → Navigation: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Introduction: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → About: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Skills: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Projects: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Certificates: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Contact: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Footer: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Scroll reveal: invokes (evidence: `src/pages/Index.tsx`)
- About → Section heading: renders (evidence: `src/components/portfolio/About.tsx`)
- Skills → Section heading: renders (evidence: `src/components/portfolio/Skills.tsx`)
- Projects → Section heading: renders (evidence: `src/components/portfolio/Projects.tsx`)
- Certificates → Section heading: renders (evidence: `src/components/portfolio/Certificates.tsx`)
- Contact → Section heading: renders (evidence: `src/components/portfolio/Contact.tsx`)
- Introduction → Button primitive: uses (evidence: `src/components/portfolio/Hero.tsx`)
- Toast renderer → Toast state: subscribes (evidence: `src/components/ui/toaster.tsx`)
- Toast renderer → Toast view: renders (evidence: `src/components/ui/toaster.tsx`)
- Toast state → Toast view: types with (evidence: `src/hooks/use-toast.ts`)
- Sidebar primitive → Sheet primitive: uses (evidence: `src/components/ui/sidebar.tsx`)
- Sidebar primitive → Button primitive: uses (evidence: `src/components/ui/sidebar.tsx`)
- Sidebar primitive → Tooltip primitives: uses (evidence: `src/components/ui/sidebar.tsx`)
