How zain-kagzi/portfolio1 works
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: Home.tsx Home page · useApp.ts Context hook · useReveal.ts Reveal behavior · About.tsx About section
Components 23
App entry
- React mount
src/main.tsx - App shell
src/App.tsx - Home page
src/pages/Home.tsx
Portfolio sections
- Global styles
src/css/GlobalStyle.tsx - Navigation
src/components/Navbar.tsx - Hero profile
src/components/Hero.tsx - About section
src/components/About.tsx - Services section
src/components/Services.tsx - Skills section
src/components/Skills.tsx - Projects section
src/components/Projects.tsx - Contact section
src/components/Contact.tsx - Newsletter section
src/components/Newsletter.tsx - Stats bar
src/components/StatsBar.tsx - Testimonials
src/components/Testimonials.tsx - Service card
src/assets/ServiceCard.tsx - Skill bar
src/assets/SkillBar.tsx - Star graphic
src/assets/Star.tsx
Shared presentation data
- Data provider
src/context/AppContext.tsx - Context type
src/context/context.ts - Context hook
src/context/useApp.ts - Portfolio content
src/data/portfolioData.ts - Reveal behavior
src/hooks/useReveal.ts
Other components
- Visitor
Connections 33
- Visitor → React mount: opens site
- React mount → App shell: renders
src/main.tsx - App shell → Data provider: wraps with
src/App.tsx - App shell → Home page: renders
src/App.tsx - Data provider → Context type: provides value
src/context/AppContext.tsx - Data provider → Portfolio content: loads data
src/context/AppContext.tsx - Context hook → Context type: reads context
src/context/useApp.ts - Home page → Global styles: renders
src/pages/Home.tsx - Home page → Navigation: renders
src/pages/Home.tsx - Home page → Hero profile: renders
src/pages/Home.tsx - Home page → About section: renders
src/pages/Home.tsx - Home page → Services section: renders
src/pages/Home.tsx - Home page → Skills section: renders
src/pages/Home.tsx - Home page → Projects section: renders
src/pages/Home.tsx - Home page → Contact section: renders
src/pages/Home.tsx - Home page → Newsletter section: renders
src/pages/Home.tsx - Navigation → Context hook: reads data via
src/components/Navbar.tsx - Hero profile → Context hook: reads data via
src/components/Hero.tsx - About section → Context hook: reads data via
src/components/About.tsx - Services section → Context hook: reads data via
src/components/Services.tsx - Skills section → Context hook: reads data via
src/components/Skills.tsx - Projects section → Context hook: reads data via
src/components/Projects.tsx - Newsletter section → Context hook: reads data via
src/components/Newsletter.tsx - Services section → Service card: renders
src/components/Services.tsx - Skills section → Skill bar: renders
src/components/Skills.tsx - Hero profile → Star graphic: renders
src/components/Hero.tsx - About section → Star graphic: renders
src/components/About.tsx - Testimonials → Star graphic: uses
src/components/Testimonials.tsx - About section → Reveal behavior: uses
src/components/About.tsx - Contact section → Reveal behavior: uses
src/components/Contact.tsx - Projects section → Reveal behavior: uses
src/components/Projects.tsx - Services section → Reveal behavior: uses
src/components/Services.tsx - Skills section → Reveal behavior: uses
src/components/Skills.tsx