# vishalkumawatx/portfolio architecture

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

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

## Overview

This is a React portfolio site centered on a visitor’s journey through an animated, sectioned profile, with a separate resume-download route and contact form. The main page composes the portfolio sections and provides dark-first theme state; the resume page invokes separate DOCX and TXT generators. Contact submissions also use an external form endpoint. The graph follows documented capabilities and visible imports/calls; several UI primitives and section implementations were not sampled, so their internal behavior is not expanded.

Main entry points: [`src/pages/Index.tsx`](https://github.com/vishalkumawatx/portfolio/blob/main/src/pages/Index.tsx) (Portfolio page), [`src/App.tsx`](https://github.com/vishalkumawatx/portfolio/blob/main/src/App.tsx) (App routing), [`src/components/ContactSection.tsx`](https://github.com/vishalkumawatx/portfolio/blob/main/src/components/ContactSection.tsx) (Contact form), [`src/pages/Resume.tsx`](https://github.com/vishalkumawatx/portfolio/blob/main/src/pages/Resume.tsx) (Resume page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio experience"]
  node_app["App routing<br/>[App.tsx]"]
  node_landing["Portfolio page<br/>[Index.tsx]"]
  node_preloader["Animated preloader<br/>[Preloader.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_hero["Hero<br/>[HeroSection.tsx]"]
  node_about["About<br/>[AboutSection.tsx]"]
  node_skills["Skills<br/>[SkillsSection.tsx]"]
  node_projects["Projects"]
  node_education["Education"]
  node_certifications["Certifications"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

subgraph group_resume["Resume downloads"]
  node_resume["Resume page<br/>[Resume.tsx]"]
  node_docgen["DOCX generator<br/>[resumeGenerator.ts]"]
  node_txtgen["TXT generator"]
end

subgraph group_shared["Shared presentation"]
  node_theme["Theme state<br/>[ThemeContext.tsx]"]
  node_ui["UI primitives"]
  node_toaststate["Toast state<br/>[use-toast.ts]"]
  node_toastui["Toast display<br/>[toast.tsx]"]
end

subgraph group_contact["Contact"]
  node_contact["Contact form<br/>[ContactSection.tsx]"]
  node_formservice["Form endpoint"]
end

node_visitor(("Site visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"routes to /"| node_landing
node_app -->|"routes to /resume"| node_resume
node_landing -->|"renders"| node_preloader
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_contact
node_landing -->|"renders"| node_footer
node_landing -->|"provides context"| node_theme
node_navbar -->|"uses theme"| node_theme
node_app -->|"sets up tooltips"| node_ui
node_app -->|"renders toaster"| node_toaststate
node_toaststate -->|"types and displays"| node_toastui
node_contact -->|"shows notifications"| node_toaststate
node_contact -.->|"submits form"| node_formservice
node_resume -->|"generates DOCX"| node_docgen
node_resume -->|"generates TXT"| node_txtgen
node_visitor -->|"sends inquiry"| node_contact

click node_app "https://github.com/vishalkumawatx/portfolio/blob/main/src/App.tsx"
click node_landing "https://github.com/vishalkumawatx/portfolio/blob/main/src/pages/Index.tsx"
click node_preloader "https://github.com/vishalkumawatx/portfolio/blob/main/src/components/Preloader.tsx"
click node_navbar "https://github.com/vishalkumawatx/portfolio/blob/main/src/components/Navbar.tsx"
click node_hero "https://github.com/vishalkumawatx/portfolio/blob/main/src/components/HeroSection.tsx"
click node_about "https://github.com/vishalkumawatx/portfolio/blob/main/src/components/AboutSection.tsx"
click node_skills "https://github.com/vishalkumawatx/portfolio/blob/main/src/components/SkillsSection.tsx"
click node_projects "https://github.com/vishalkumawatx/portfolio/blob/main/src/components/ProjectsSection.tsx"
click node_education "https://github.com/vishalkumawatx/portfolio/blob/main/src/components/EducationSection.tsx"
click node_certifications "https://github.com/vishalkumawatx/portfolio/blob/main/src/components/CertificationSection.tsx"
click node_footer "https://github.com/vishalkumawatx/portfolio/blob/main/src/components/Footer.tsx"
click node_theme "https://github.com/vishalkumawatx/portfolio/blob/main/src/contexts/ThemeContext.tsx"
click node_ui "https://github.com/vishalkumawatx/portfolio/tree/main/src/components/ui"
click node_toaststate "https://github.com/vishalkumawatx/portfolio/blob/main/src/hooks/use-toast.ts"
click node_toastui "https://github.com/vishalkumawatx/portfolio/blob/main/src/components/ui/toast.tsx"
click node_resume "https://github.com/vishalkumawatx/portfolio/blob/main/src/pages/Resume.tsx"
click node_docgen "https://github.com/vishalkumawatx/portfolio/blob/main/src/lib/resumeGenerator.ts"
click node_txtgen "https://github.com/vishalkumawatx/portfolio/blob/main/src/lib/resumeGeneratorTxt.ts"
click node_contact "https://github.com/vishalkumawatx/portfolio/blob/main/src/components/ContactSection.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_preloader,node_navbar,node_hero,node_about,node_skills,node_projects,node_education,node_certifications,node_footer toneBlue
class node_resume,node_docgen,node_txtgen toneAmber
class node_theme,node_ui,node_toaststate,node_toastui toneMint
class node_contact,node_formservice toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio experience

- [App routing](https://github.com/vishalkumawatx/portfolio/blob/main/src/App.tsx): `src/App.tsx`
- [Portfolio page](https://github.com/vishalkumawatx/portfolio/blob/main/src/pages/Index.tsx): `src/pages/Index.tsx`
- [Animated preloader](https://github.com/vishalkumawatx/portfolio/blob/main/src/components/Preloader.tsx): `src/components/Preloader.tsx`
- [Navigation](https://github.com/vishalkumawatx/portfolio/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Hero](https://github.com/vishalkumawatx/portfolio/blob/main/src/components/HeroSection.tsx): `src/components/HeroSection.tsx`
- [About](https://github.com/vishalkumawatx/portfolio/blob/main/src/components/AboutSection.tsx): `src/components/AboutSection.tsx`
- [Skills](https://github.com/vishalkumawatx/portfolio/blob/main/src/components/SkillsSection.tsx): `src/components/SkillsSection.tsx`
- [Projects](https://github.com/vishalkumawatx/portfolio/blob/main/src/components/ProjectsSection.tsx): `src/components/ProjectsSection.tsx`
- [Education](https://github.com/vishalkumawatx/portfolio/blob/main/src/components/EducationSection.tsx): `src/components/EducationSection.tsx`
- [Certifications](https://github.com/vishalkumawatx/portfolio/blob/main/src/components/CertificationSection.tsx): `src/components/CertificationSection.tsx`
- [Footer](https://github.com/vishalkumawatx/portfolio/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`

### Resume downloads

- [Resume page](https://github.com/vishalkumawatx/portfolio/blob/main/src/pages/Resume.tsx): `src/pages/Resume.tsx`
- [DOCX generator](https://github.com/vishalkumawatx/portfolio/blob/main/src/lib/resumeGenerator.ts): `src/lib/resumeGenerator.ts`
- [TXT generator](https://github.com/vishalkumawatx/portfolio/blob/main/src/lib/resumeGeneratorTxt.ts): `src/lib/resumeGeneratorTxt.ts`

### Shared presentation

- [Theme state](https://github.com/vishalkumawatx/portfolio/blob/main/src/contexts/ThemeContext.tsx): `src/contexts/ThemeContext.tsx`
- [UI primitives](https://github.com/vishalkumawatx/portfolio/tree/main/src/components/ui): `src/components/ui`
- [Toast state](https://github.com/vishalkumawatx/portfolio/blob/main/src/hooks/use-toast.ts): `src/hooks/use-toast.ts`
- [Toast display](https://github.com/vishalkumawatx/portfolio/blob/main/src/components/ui/toast.tsx): `src/components/ui/toast.tsx`

### Contact

- [Contact form](https://github.com/vishalkumawatx/portfolio/blob/main/src/components/ContactSection.tsx): `src/components/ContactSection.tsx`
- **Form endpoint**

### Other components

- **Site visitor**

## Connections

- Site visitor → App routing: opens
- App routing → Portfolio page: routes to / (evidence: `src/App.tsx`)
- App routing → Resume page: routes to /resume (evidence: `src/App.tsx`)
- Portfolio page → Animated preloader: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Navigation: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Hero: 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 → Education: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Certifications: 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`)
- Portfolio page → Theme state: provides context (evidence: `src/pages/Index.tsx`)
- Navigation → Theme state: uses theme (evidence: `src/components/Navbar.tsx`)
- App routing → UI primitives: sets up tooltips (evidence: `src/App.tsx`)
- App routing → Toast state: renders toaster (evidence: `src/App.tsx`)
- Toast state → Toast display: types and displays (evidence: `src/hooks/use-toast.ts`)
- Contact form → Toast state: shows notifications (evidence: `src/components/ContactSection.tsx`)
- Contact form → Form endpoint: submits form (evidence: `src/components/ContactSection.tsx`)
- Resume page → DOCX generator: generates DOCX (evidence: `src/pages/Resume.tsx`)
- Resume page → TXT generator: generates TXT (evidence: `src/pages/Resume.tsx`)
- Site visitor → Contact form: sends inquiry
