# khatiwada-alish/website architecture

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

- Interactive diagram: https://gitdiagram.com/khatiwada-alish/website
- Repository: https://github.com/khatiwada-alish/website

## Overview

This is a React portfolio site: visitors enter the landing page, browse the portfolio sections, and can submit a contact message. The graph also shows the app’s routing and shared UI/animation layers. Source excerpts establish the page composition, contact submission, and selected component dependencies; other section connections are based on the SOURCE INDEX, so unsampled section internals are not inferred.

Main entry points: [`src/pages/Index.tsx`](https://github.com/khatiwada-alish/website/blob/main/src/pages/Index.tsx) (Portfolio page), [`src/components/ScrollReveal.tsx`](https://github.com/khatiwada-alish/website/blob/main/src/components/ScrollReveal.tsx) (Scroll reveal animations), [`src/App.tsx`](https://github.com/khatiwada-alish/website/blob/main/src/App.tsx) (App providers and routes), [`src/components/portfolio/Contact.tsx`](https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Contact.tsx) (Contact form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and routing"]
  node_app["App providers and routes<br/>[App.tsx]"]
  node_landing["Portfolio page<br/>[Index.tsx]"]
  node_notfound["Not found page<br/>[NotFound.tsx]"]
end

subgraph group_portfolio["Portfolio content"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_hero["Hero section<br/>[Hero.tsx]"]
  node_about["About section<br/>[About.tsx]"]
  node_skills["Skills section<br/>[Skills.tsx]"]
  node_projects["Projects section<br/>[Projects.tsx]"]
  node_education["Education section<br/>[Education.tsx]"]
  node_certifications["Certifications section<br/>[Certifications.tsx]"]
  node_experience["Experience section<br/>[Experience.tsx]"]
  node_testimonials["Testimonials section<br/>[Testimonials.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

subgraph group_presentation["Presentation layer"]
  node_welcome["Welcome screen<br/>[WelcomeScreen.tsx]"]
  node_stars["Star background<br/>[StarBackground.tsx]"]
  node_reveal["Scroll reveal animations<br/>[ScrollReveal.tsx]"]
  node_scrollhook["Project visibility hook<br/>[useScrollReveal.ts]"]
  node_button["Button component<br/>[button.tsx]"]
  node_input["Input component<br/>[input.tsx]"]
  node_sheet["Sheet component<br/>[sheet.tsx]"]
  node_tooltip["Tooltip component<br/>[tooltip.tsx]"]
end

subgraph group_contact["Contact flow"]
  node_contact["Contact form<br/>[Contact.tsx]"]
  node_emailjs{{"EmailJS service"}}
  node_toast_hook["Toast state hook<br/>[use-toast.ts]"]
  node_toast_ui["Toast display<br/>[toast.tsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_app
node_app -->|"routes to /"| node_landing
node_app -->|"routes unmatched paths"| node_notfound
node_landing -->|"shows initially"| node_welcome
node_landing -->|"renders"| node_stars
node_landing -->|"renders"| node_navbar
node_landing -->|"renders"| node_hero
node_landing -->|"renders"| node_about
node_landing -->|"renders"| node_skills
node_landing -->|"renders"| node_projects
node_landing -->|"renders"| node_education
node_landing -->|"renders"| node_certifications
node_landing -->|"renders"| node_experience
node_landing -->|"renders"| node_contact
node_landing -->|"renders"| node_footer
node_welcome -->|"signals completion"| node_landing
node_about -->|"uses"| node_reveal
node_skills -->|"uses"| node_reveal
node_education -->|"uses"| node_reveal
node_certifications -->|"uses"| node_reveal
node_experience -->|"uses"| node_reveal
node_footer -->|"uses"| node_reveal
node_projects -->|"uses"| node_scrollhook
node_hero -->|"uses"| node_button
node_navbar -->|"uses"| node_button
node_contact -->|"uses"| node_button
node_contact -->|"uses"| node_input
node_contact -->|"requests notifications"| node_toast_hook
node_toast_hook -->|"uses toast types"| node_toast_ui
node_contact -->|"sends message"| node_emailjs
node_app -->|"provides"| node_tooltip
node_app -.-> node_sheet

click node_app "https://github.com/khatiwada-alish/website/blob/main/src/App.tsx"
click node_landing "https://github.com/khatiwada-alish/website/blob/main/src/pages/Index.tsx"
click node_notfound "https://github.com/khatiwada-alish/website/blob/main/src/pages/NotFound.tsx"
click node_welcome "https://github.com/khatiwada-alish/website/blob/main/src/components/WelcomeScreen.tsx"
click node_stars "https://github.com/khatiwada-alish/website/blob/main/src/components/StarBackground.tsx"
click node_reveal "https://github.com/khatiwada-alish/website/blob/main/src/components/ScrollReveal.tsx"
click node_scrollhook "https://github.com/khatiwada-alish/website/blob/main/src/hooks/useScrollReveal.ts"
click node_navbar "https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Navbar.tsx"
click node_hero "https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Hero.tsx"
click node_about "https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/About.tsx"
click node_skills "https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Skills.tsx"
click node_projects "https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Projects.tsx"
click node_education "https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Education.tsx"
click node_certifications "https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Certifications.tsx"
click node_experience "https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Experience.tsx"
click node_testimonials "https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Testimonials.tsx"
click node_footer "https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Footer.tsx"
click node_contact "https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Contact.tsx"
click node_toast_hook "https://github.com/khatiwada-alish/website/blob/main/src/hooks/use-toast.ts"
click node_toast_ui "https://github.com/khatiwada-alish/website/blob/main/src/components/ui/toast.tsx"
click node_button "https://github.com/khatiwada-alish/website/blob/main/src/components/ui/button.tsx"
click node_input "https://github.com/khatiwada-alish/website/blob/main/src/components/ui/input.tsx"
click node_sheet "https://github.com/khatiwada-alish/website/blob/main/src/components/ui/sheet.tsx"
click node_tooltip "https://github.com/khatiwada-alish/website/blob/main/src/components/ui/tooltip.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_app,node_landing,node_notfound toneBlue
class node_navbar,node_hero,node_about,node_skills,node_projects,node_education,node_certifications,node_experience,node_testimonials,node_footer toneAmber
class node_welcome,node_stars,node_reveal,node_scrollhook,node_button,node_input,node_sheet,node_tooltip toneMint
class node_contact,node_emailjs,node_toast_hook,node_toast_ui toneRose
class node_visitor toneIndigo
```

## Components

### App and routing

- [App providers and routes](https://github.com/khatiwada-alish/website/blob/main/src/App.tsx): `src/App.tsx`
- [Portfolio page](https://github.com/khatiwada-alish/website/blob/main/src/pages/Index.tsx): `src/pages/Index.tsx`
- [Not found page](https://github.com/khatiwada-alish/website/blob/main/src/pages/NotFound.tsx): `src/pages/NotFound.tsx`

### Portfolio content

- [Navigation](https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Navbar.tsx): `src/components/portfolio/Navbar.tsx`
- [Hero section](https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Hero.tsx): `src/components/portfolio/Hero.tsx`
- [About section](https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/About.tsx): `src/components/portfolio/About.tsx`
- [Skills section](https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Skills.tsx): `src/components/portfolio/Skills.tsx`
- [Projects section](https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Projects.tsx): `src/components/portfolio/Projects.tsx`
- [Education section](https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Education.tsx): `src/components/portfolio/Education.tsx`
- [Certifications section](https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Certifications.tsx): `src/components/portfolio/Certifications.tsx`
- [Experience section](https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Experience.tsx): `src/components/portfolio/Experience.tsx`
- [Testimonials section](https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Testimonials.tsx): `src/components/portfolio/Testimonials.tsx`
- [Footer](https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Footer.tsx): `src/components/portfolio/Footer.tsx`

### Presentation layer

- [Welcome screen](https://github.com/khatiwada-alish/website/blob/main/src/components/WelcomeScreen.tsx): `src/components/WelcomeScreen.tsx`
- [Star background](https://github.com/khatiwada-alish/website/blob/main/src/components/StarBackground.tsx): `src/components/StarBackground.tsx`
- [Scroll reveal animations](https://github.com/khatiwada-alish/website/blob/main/src/components/ScrollReveal.tsx): `src/components/ScrollReveal.tsx`
- [Project visibility hook](https://github.com/khatiwada-alish/website/blob/main/src/hooks/useScrollReveal.ts): `src/hooks/useScrollReveal.ts`
- [Button component](https://github.com/khatiwada-alish/website/blob/main/src/components/ui/button.tsx): `src/components/ui/button.tsx`
- [Input component](https://github.com/khatiwada-alish/website/blob/main/src/components/ui/input.tsx): `src/components/ui/input.tsx`
- [Sheet component](https://github.com/khatiwada-alish/website/blob/main/src/components/ui/sheet.tsx): `src/components/ui/sheet.tsx`
- [Tooltip component](https://github.com/khatiwada-alish/website/blob/main/src/components/ui/tooltip.tsx): `src/components/ui/tooltip.tsx`

### Contact flow

- [Contact form](https://github.com/khatiwada-alish/website/blob/main/src/components/portfolio/Contact.tsx): `src/components/portfolio/Contact.tsx`
- **EmailJS service**
- [Toast state hook](https://github.com/khatiwada-alish/website/blob/main/src/hooks/use-toast.ts): `src/hooks/use-toast.ts`
- [Toast display](https://github.com/khatiwada-alish/website/blob/main/src/components/ui/toast.tsx): `src/components/ui/toast.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → App providers and routes: opens site
- App providers and routes → Portfolio page: routes to / (evidence: `src/App.tsx`)
- App providers and routes → Not found page: routes unmatched paths (evidence: `src/App.tsx`)
- Portfolio page → Welcome screen: shows initially (evidence: `src/pages/Index.tsx`)
- Portfolio page → Star background: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Navigation: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Hero section: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → About section: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Skills section: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Projects section: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Education section: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Certifications section: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Experience section: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Contact form: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Footer: renders (evidence: `src/pages/Index.tsx`)
- Welcome screen → Portfolio page: signals completion (evidence: `src/pages/Index.tsx`)
- About section → Scroll reveal animations: uses (evidence: `src/components/portfolio/About.tsx`)
- Skills section → Scroll reveal animations: uses (evidence: `src/components/portfolio/Skills.tsx`)
- Education section → Scroll reveal animations: uses (evidence: `src/components/portfolio/Education.tsx`)
- Certifications section → Scroll reveal animations: uses (evidence: `src/components/portfolio/Certifications.tsx`)
- Experience section → Scroll reveal animations: uses (evidence: `src/components/portfolio/Experience.tsx`)
- Footer → Scroll reveal animations: uses (evidence: `src/components/portfolio/Footer.tsx`)
- Projects section → Project visibility hook: uses (evidence: `src/components/portfolio/Projects.tsx`)
- Hero section → Button component: uses (evidence: `src/components/portfolio/Hero.tsx`)
- Navigation → Button component: uses (evidence: `src/components/portfolio/Navbar.tsx`)
- Contact form → Button component: uses (evidence: `src/components/portfolio/Contact.tsx`)
- Contact form → Input component: uses (evidence: `src/components/portfolio/Contact.tsx`)
- Contact form → Toast state hook: requests notifications (evidence: `src/components/portfolio/Contact.tsx`)
- Toast state hook → Toast display: uses toast types (evidence: `src/hooks/use-toast.ts`)
- Contact form → EmailJS service: sends message (evidence: `src/components/portfolio/Contact.tsx`)
- App providers and routes → Tooltip component: provides (evidence: `src/App.tsx`)
- App providers and routes → Sheet component
