# zain-kagzi/portfolio1 architecture

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

- Interactive diagram: https://gitdiagram.com/zain-kagzi/portfolio1
- Repository: https://github.com/zain-kagzi/portfolio1

## Overview

This is a React portfolio website presenting a designer/developer’s profile, services, skills, projects, testimonials and contact options. A visitor enters through the app mount, reaches the home page, and browses its sections; sections that use portfolio content read it through shared React context, while contact and newsletter affordances are presented as page sections. The README describes only a generic Vite template, so capability details come from the source index and excerpts; the excerpted Home does not render StatsBar or Testimonials, so their inclusion as components is not evidence they appear in the page workflow.

Main entry points: [`src/pages/Home.tsx`](https://github.com/zain-kagzi/portfolio1/blob/main/src/pages/Home.tsx) (Home page), [`src/context/useApp.ts`](https://github.com/zain-kagzi/portfolio1/blob/main/src/context/useApp.ts) (Context hook), [`src/hooks/useReveal.ts`](https://github.com/zain-kagzi/portfolio1/blob/main/src/hooks/useReveal.ts) (Reveal behavior), [`src/components/About.tsx`](https://github.com/zain-kagzi/portfolio1/blob/main/src/components/About.tsx) (About section)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_mount["React mount<br/>[main.tsx]"]
  node_app["App shell<br/>[App.tsx]"]
  node_home["Home page<br/>[Home.tsx]"]
end

subgraph group_presentation["Portfolio sections"]
  node_globalstyle["Global styles<br/>[GlobalStyle.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_hero["Hero profile<br/>[Hero.tsx]"]
  node_about["About section<br/>[About.tsx]"]
  node_services["Services section<br/>[Services.tsx]"]
  node_skills["Skills section<br/>[Skills.tsx]"]
  node_projects["Projects section<br/>[Projects.tsx]"]
  node_contact["Contact section<br/>[Contact.tsx]"]
  node_newsletter["Newsletter section<br/>[Newsletter.tsx]"]
  node_stats["Stats bar<br/>[StatsBar.tsx]"]
  node_testimonials["Testimonials<br/>[Testimonials.tsx]"]
  node_servicecard["Service card<br/>[ServiceCard.tsx]"]
  node_skillbar["Skill bar<br/>[SkillBar.tsx]"]
  node_star["Star graphic<br/>[Star.tsx]"]
end

subgraph group_shared["Shared presentation data"]
  node_provider["Data provider<br/>[AppContext.tsx]"]
  node_context["Context type<br/>[context.ts]"]
  node_useapp["Context hook<br/>[useApp.ts]"]
  node_portfolio["Portfolio content<br/>[portfolioData.ts]"]
  node_reveal["Reveal behavior<br/>[useReveal.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_mount
node_mount -->|"renders"| node_app
node_app -->|"wraps with"| node_provider
node_app -->|"renders"| node_home
node_provider -->|"provides value"| node_context
node_provider -->|"loads data"| node_portfolio
node_useapp -->|"reads context"| node_context
node_home -->|"renders"| node_globalstyle
node_home -->|"renders"| node_navbar
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_about
node_home -->|"renders"| node_services
node_home -->|"renders"| node_skills
node_home -->|"renders"| node_projects
node_home -->|"renders"| node_contact
node_home -->|"renders"| node_newsletter
node_navbar -->|"reads data via"| node_useapp
node_hero -->|"reads data via"| node_useapp
node_about -->|"reads data via"| node_useapp
node_services -->|"reads data via"| node_useapp
node_skills -->|"reads data via"| node_useapp
node_projects -->|"reads data via"| node_useapp
node_newsletter -->|"reads data via"| node_useapp
node_services -->|"renders"| node_servicecard
node_skills -->|"renders"| node_skillbar
node_hero -->|"renders"| node_star
node_about -->|"renders"| node_star
node_testimonials -->|"uses"| node_star
node_about -->|"uses"| node_reveal
node_contact -->|"uses"| node_reveal
node_projects -->|"uses"| node_reveal
node_services -->|"uses"| node_reveal
node_skills -->|"uses"| node_reveal

click node_mount "https://github.com/zain-kagzi/portfolio1/blob/main/src/main.tsx"
click node_app "https://github.com/zain-kagzi/portfolio1/blob/main/src/App.tsx"
click node_home "https://github.com/zain-kagzi/portfolio1/blob/main/src/pages/Home.tsx"
click node_globalstyle "https://github.com/zain-kagzi/portfolio1/blob/main/src/css/GlobalStyle.tsx"
click node_navbar "https://github.com/zain-kagzi/portfolio1/blob/main/src/components/Navbar.tsx"
click node_hero "https://github.com/zain-kagzi/portfolio1/blob/main/src/components/Hero.tsx"
click node_about "https://github.com/zain-kagzi/portfolio1/blob/main/src/components/About.tsx"
click node_services "https://github.com/zain-kagzi/portfolio1/blob/main/src/components/Services.tsx"
click node_skills "https://github.com/zain-kagzi/portfolio1/blob/main/src/components/Skills.tsx"
click node_projects "https://github.com/zain-kagzi/portfolio1/blob/main/src/components/Projects.tsx"
click node_contact "https://github.com/zain-kagzi/portfolio1/blob/main/src/components/Contact.tsx"
click node_newsletter "https://github.com/zain-kagzi/portfolio1/blob/main/src/components/Newsletter.tsx"
click node_stats "https://github.com/zain-kagzi/portfolio1/blob/main/src/components/StatsBar.tsx"
click node_testimonials "https://github.com/zain-kagzi/portfolio1/blob/main/src/components/Testimonials.tsx"
click node_provider "https://github.com/zain-kagzi/portfolio1/blob/main/src/context/AppContext.tsx"
click node_context "https://github.com/zain-kagzi/portfolio1/blob/main/src/context/context.ts"
click node_useapp "https://github.com/zain-kagzi/portfolio1/blob/main/src/context/useApp.ts"
click node_portfolio "https://github.com/zain-kagzi/portfolio1/blob/main/src/data/portfolioData.ts"
click node_reveal "https://github.com/zain-kagzi/portfolio1/blob/main/src/hooks/useReveal.ts"
click node_servicecard "https://github.com/zain-kagzi/portfolio1/blob/main/src/assets/ServiceCard.tsx"
click node_skillbar "https://github.com/zain-kagzi/portfolio1/blob/main/src/assets/SkillBar.tsx"
click node_star "https://github.com/zain-kagzi/portfolio1/blob/main/src/assets/Star.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_mount,node_app,node_home toneBlue
class node_globalstyle,node_navbar,node_hero,node_about,node_services,node_skills,node_projects,node_contact,node_newsletter,node_stats,node_testimonials,node_servicecard,node_skillbar,node_star toneAmber
class node_provider,node_context,node_useapp,node_portfolio,node_reveal toneMint
class node_visitor toneIndigo
```

## Components

### App entry

- [React mount](https://github.com/zain-kagzi/portfolio1/blob/main/src/main.tsx): `src/main.tsx`
- [App shell](https://github.com/zain-kagzi/portfolio1/blob/main/src/App.tsx): `src/App.tsx`
- [Home page](https://github.com/zain-kagzi/portfolio1/blob/main/src/pages/Home.tsx): `src/pages/Home.tsx`

### Portfolio sections

- [Global styles](https://github.com/zain-kagzi/portfolio1/blob/main/src/css/GlobalStyle.tsx): `src/css/GlobalStyle.tsx`
- [Navigation](https://github.com/zain-kagzi/portfolio1/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Hero profile](https://github.com/zain-kagzi/portfolio1/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`
- [About section](https://github.com/zain-kagzi/portfolio1/blob/main/src/components/About.tsx): `src/components/About.tsx`
- [Services section](https://github.com/zain-kagzi/portfolio1/blob/main/src/components/Services.tsx): `src/components/Services.tsx`
- [Skills section](https://github.com/zain-kagzi/portfolio1/blob/main/src/components/Skills.tsx): `src/components/Skills.tsx`
- [Projects section](https://github.com/zain-kagzi/portfolio1/blob/main/src/components/Projects.tsx): `src/components/Projects.tsx`
- [Contact section](https://github.com/zain-kagzi/portfolio1/blob/main/src/components/Contact.tsx): `src/components/Contact.tsx`
- [Newsletter section](https://github.com/zain-kagzi/portfolio1/blob/main/src/components/Newsletter.tsx): `src/components/Newsletter.tsx`
- [Stats bar](https://github.com/zain-kagzi/portfolio1/blob/main/src/components/StatsBar.tsx): `src/components/StatsBar.tsx`
- [Testimonials](https://github.com/zain-kagzi/portfolio1/blob/main/src/components/Testimonials.tsx): `src/components/Testimonials.tsx`
- [Service card](https://github.com/zain-kagzi/portfolio1/blob/main/src/assets/ServiceCard.tsx): `src/assets/ServiceCard.tsx`
- [Skill bar](https://github.com/zain-kagzi/portfolio1/blob/main/src/assets/SkillBar.tsx): `src/assets/SkillBar.tsx`
- [Star graphic](https://github.com/zain-kagzi/portfolio1/blob/main/src/assets/Star.tsx): `src/assets/Star.tsx`

### Shared presentation data

- [Data provider](https://github.com/zain-kagzi/portfolio1/blob/main/src/context/AppContext.tsx): `src/context/AppContext.tsx`
- [Context type](https://github.com/zain-kagzi/portfolio1/blob/main/src/context/context.ts): `src/context/context.ts`
- [Context hook](https://github.com/zain-kagzi/portfolio1/blob/main/src/context/useApp.ts): `src/context/useApp.ts`
- [Portfolio content](https://github.com/zain-kagzi/portfolio1/blob/main/src/data/portfolioData.ts): `src/data/portfolioData.ts`
- [Reveal behavior](https://github.com/zain-kagzi/portfolio1/blob/main/src/hooks/useReveal.ts): `src/hooks/useReveal.ts`

### Other components

- **Visitor**

## Connections

- Visitor → React mount: opens site
- React mount → App shell: renders (evidence: `src/main.tsx`)
- App shell → Data provider: wraps with (evidence: `src/App.tsx`)
- App shell → Home page: renders (evidence: `src/App.tsx`)
- Data provider → Context type: provides value (evidence: `src/context/AppContext.tsx`)
- Data provider → Portfolio content: loads data (evidence: `src/context/AppContext.tsx`)
- Context hook → Context type: reads context (evidence: `src/context/useApp.ts`)
- Home page → Global styles: renders (evidence: `src/pages/Home.tsx`)
- Home page → Navigation: renders (evidence: `src/pages/Home.tsx`)
- Home page → Hero profile: renders (evidence: `src/pages/Home.tsx`)
- Home page → About section: renders (evidence: `src/pages/Home.tsx`)
- Home page → Services section: renders (evidence: `src/pages/Home.tsx`)
- Home page → Skills section: renders (evidence: `src/pages/Home.tsx`)
- Home page → Projects section: renders (evidence: `src/pages/Home.tsx`)
- Home page → Contact section: renders (evidence: `src/pages/Home.tsx`)
- Home page → Newsletter section: renders (evidence: `src/pages/Home.tsx`)
- Navigation → Context hook: reads data via (evidence: `src/components/Navbar.tsx`)
- Hero profile → Context hook: reads data via (evidence: `src/components/Hero.tsx`)
- About section → Context hook: reads data via (evidence: `src/components/About.tsx`)
- Services section → Context hook: reads data via (evidence: `src/components/Services.tsx`)
- Skills section → Context hook: reads data via (evidence: `src/components/Skills.tsx`)
- Projects section → Context hook: reads data via (evidence: `src/components/Projects.tsx`)
- Newsletter section → Context hook: reads data via (evidence: `src/components/Newsletter.tsx`)
- Services section → Service card: renders (evidence: `src/components/Services.tsx`)
- Skills section → Skill bar: renders (evidence: `src/components/Skills.tsx`)
- Hero profile → Star graphic: renders (evidence: `src/components/Hero.tsx`)
- About section → Star graphic: renders (evidence: `src/components/About.tsx`)
- Testimonials → Star graphic: uses (evidence: `src/components/Testimonials.tsx`)
- About section → Reveal behavior: uses (evidence: `src/components/About.tsx`)
- Contact section → Reveal behavior: uses (evidence: `src/components/Contact.tsx`)
- Projects section → Reveal behavior: uses (evidence: `src/components/Projects.tsx`)
- Services section → Reveal behavior: uses (evidence: `src/components/Services.tsx`)
- Skills section → Reveal behavior: uses (evidence: `src/components/Skills.tsx`)
