# raahimsubhi-svg/portfolio architecture

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

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

## Overview

Raahim is a multi-page portfolio for an AI automation engineer. Visitors browse the home, work, and services pages, and can send a project enquiry through the contact form; the site also includes a 404 page. Its main product branches are page navigation, contact enquiries, portfolio graphics, and motion effects. The sampled code confirms the form’s validation, configuration, and submission behavior, plus several animation components. Page-to-component wiring and most page content were not sampled, so those relationships are left out.

Main entry points: [`src/components/ContactForm.tsx`](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/ContactForm.tsx) (Enquiry form), [`src/lib/useMagnetic.ts`](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/lib/useMagnetic.ts) (Magnetic interaction), [`src/components/Header.tsx`](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/Header.tsx) (Header navigation), [`src/pages/index.astro`](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/pages/index.astro) (Home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Portfolio pages"]
  node_home["Home<br/>[index.astro]"]
  node_work["Work<br/>[work.astro]"]
  node_services["Services<br/>[services.astro]"]
  node_contact["Contact<br/>[contact.astro]"]
  node_notfound["404 page<br/>[404.astro]"]
end

subgraph group_shared["Shared site UI"]
  node_header["Header navigation<br/>[Header.tsx]"]
  node_footer["Footer<br/>[Footer.astro]"]
  node_base["Base layout<br/>[Base.astro]"]
  node_siteconfig["Site details<br/>[site.ts]"]
end

subgraph group_enquiries["Contact enquiries"]
  node_form["Enquiry form<br/>[ContactForm.tsx]"]
  node_web3forms{{"Web3Forms API"}}
end

subgraph group_visuals["Graphics"]
  node_workflow["Workflow diagram"]
  node_contactgraphic["Contact graphic"]
  node_herosystem["Hero system graphic"]
  node_workgraphic["Work case graphic"]
  node_servicelogo["Service logo<br/>[ServiceLogo.astro]"]
end

subgraph group_motion["Motion effects"]
  node_scrollfx["Scroll effects<br/>[ScrollFx.tsx]"]
  node_scrollprogress["Scroll progress<br/>[ScrollProgress.tsx]"]
  node_depthfx["Depth effects<br/>[DepthFx.tsx]"]
  node_vantahero["Fog hero<br/>[VantaHero.tsx]"]
  node_vantanet["Network hero<br/>[VantaNet.tsx]"]
  node_magnetic["Magnetic interaction<br/>[useMagnetic.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"browses"| node_home
node_visitor -->|"browses"| node_work
node_visitor -->|"browses"| node_services
node_visitor -->|"browses"| node_contact
node_visitor -->|"may reach"| node_notfound
node_visitor -.->|"submits enquiry"| node_form
node_form -->|"reads key"| node_siteconfig
node_form -->|"posts enquiry"| node_web3forms
node_header -->|"uses hook"| node_magnetic
node_form -->|"uses hook"| node_magnetic

click node_home "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/pages/index.astro"
click node_work "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/pages/work.astro"
click node_services "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/pages/services.astro"
click node_contact "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/pages/contact.astro"
click node_notfound "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/pages/404.astro"
click node_header "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/Header.tsx"
click node_footer "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/Footer.astro"
click node_base "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/layouts/Base.astro"
click node_siteconfig "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/lib/site.ts"
click node_form "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/ContactForm.tsx"
click node_workflow "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/WorkflowDiagram.tsx"
click node_contactgraphic "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/ContactFlowGraphic.astro"
click node_herosystem "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/HeroSystemGraphic.astro"
click node_workgraphic "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/WorkCaseGraphic.astro"
click node_servicelogo "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/ServiceLogo.astro"
click node_scrollfx "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/ScrollFx.tsx"
click node_scrollprogress "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/ScrollProgress.tsx"
click node_depthfx "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/DepthFx.tsx"
click node_vantahero "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/VantaHero.tsx"
click node_vantanet "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/VantaNet.tsx"
click node_magnetic "https://github.com/raahimsubhi-svg/portfolio/blob/main/src/lib/useMagnetic.ts"

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_home,node_work,node_services,node_contact,node_notfound toneBlue
class node_header,node_footer,node_base,node_siteconfig toneAmber
class node_form,node_web3forms toneMint
class node_workflow,node_contactgraphic,node_herosystem,node_workgraphic,node_servicelogo toneRose
class node_scrollfx,node_scrollprogress,node_depthfx,node_vantahero,node_vantanet,node_magnetic,node_visitor toneIndigo
```

## Components

### Portfolio pages

- [Home](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/pages/index.astro): `src/pages/index.astro`
- [Work](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/pages/work.astro): `src/pages/work.astro`
- [Services](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/pages/services.astro): `src/pages/services.astro`
- [Contact](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/pages/contact.astro): `src/pages/contact.astro`
- [404 page](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/pages/404.astro): `src/pages/404.astro`

### Shared site UI

- [Header navigation](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Footer](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/Footer.astro): `src/components/Footer.astro`
- [Base layout](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/layouts/Base.astro): `src/layouts/Base.astro`
- [Site details](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/lib/site.ts): `src/lib/site.ts`

### Contact enquiries

- [Enquiry form](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/ContactForm.tsx): `src/components/ContactForm.tsx`
- **Web3Forms API**

### Graphics

- [Workflow diagram](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/WorkflowDiagram.tsx): `src/components/WorkflowDiagram.tsx`
- [Contact graphic](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/ContactFlowGraphic.astro): `src/components/ContactFlowGraphic.astro`
- [Hero system graphic](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/HeroSystemGraphic.astro): `src/components/HeroSystemGraphic.astro`
- [Work case graphic](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/WorkCaseGraphic.astro): `src/components/WorkCaseGraphic.astro`
- [Service logo](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/ServiceLogo.astro): `src/components/ServiceLogo.astro`

### Motion effects

- [Scroll effects](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/ScrollFx.tsx): `src/components/ScrollFx.tsx`
- [Scroll progress](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/ScrollProgress.tsx): `src/components/ScrollProgress.tsx`
- [Depth effects](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/DepthFx.tsx): `src/components/DepthFx.tsx`
- [Fog hero](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/VantaHero.tsx): `src/components/VantaHero.tsx`
- [Network hero](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/components/VantaNet.tsx): `src/components/VantaNet.tsx`
- [Magnetic interaction](https://github.com/raahimsubhi-svg/portfolio/blob/main/src/lib/useMagnetic.ts): `src/lib/useMagnetic.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Home: browses (evidence: `README.md`)
- Visitor → Work: browses (evidence: `README.md`)
- Visitor → Services: browses (evidence: `README.md`)
- Visitor → Contact: browses (evidence: `README.md`)
- Visitor → 404 page: may reach (evidence: `README.md`)
- Visitor → Enquiry form: submits enquiry
- Enquiry form → Site details: reads key (evidence: `src/components/ContactForm.tsx`)
- Enquiry form → Web3Forms API: posts enquiry (evidence: `src/components/ContactForm.tsx`)
- Header navigation → Magnetic interaction: uses hook (evidence: `src/components/Header.tsx`)
- Enquiry form → Magnetic interaction: uses hook (evidence: `src/components/ContactForm.tsx`)
