# swarupcreates/spine-research-foundation-india-website architecture

> Architecture diagram of the GitHub repository swarupcreates/spine-research-foundation-india-website, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/swarupcreates/spine-research-foundation-india-website
- Repository: https://github.com/swarupcreates/spine-research-foundation-india-website

## Overview

This repository is the SRF India public-facing website: a React single-page site presenting the foundation and its work. A visitor enters through the browser router, lands on the home page, and explores its hero, foundation information, events, care promises, education, trustee message, impact metrics, and misconceptions content. Navigation also routes to placeholder section pages and a not-found page. The app includes an interactive welcome journey and participation/feedback actions; their details are only partly visible in the excerpts, so those connections are shown only where supported.

Main entry points: [`src/App.tsx`](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/App.tsx) (App shell and routes), [`src/pages/HomePage.tsx`](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/pages/HomePage.tsx) (Home page), [`src/pages/WorkInProgressPage.tsx`](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/pages/WorkInProgressPage.tsx) (Work-in-progress pages), [`src/pages/NotFoundPage.tsx`](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/pages/NotFoundPage.tsx) (Not-found page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["App and routing"]
  node_browser["Browser app entry<br/>[main.tsx]"]
  node_app["App shell and routes<br/>[App.tsx]"]
  node_placeholder_page["Work-in-progress pages"]
  node_not_found["Not-found page<br/>[NotFoundPage.tsx]"]
end

subgraph group_home["Home experience"]
  node_home_page["Home page<br/>[HomePage.tsx]"]
  node_hero["Homepage hero<br/>[Hero.tsx]"]
  node_foundation_card["Foundation overview<br/>[GlassCard.tsx]"]
  node_events["Events section<br/>[EventSection.tsx]"]
  node_care_promise["Care promise<br/>[PromiseCard.tsx]"]
  node_education["Education and research<br/>[EducationCard.tsx]"]
  node_trustee["Trustee message<br/>[TrusteeMessage.tsx]"]
  node_impact["Impact metrics<br/>[ImpactMetrics.tsx]"]
  node_misconceptions["Treatment misconceptions"]
end

subgraph group_engagement["Visitor interactions"]
  node_navbar["Site navigation<br/>[Navbar.tsx]"]
  node_floating_actions["Floating actions"]
  node_action_modals["Action dialogs<br/>[ActionModals.tsx]"]
  node_welcome_journey["Welcome journey<br/>[WelcomeJourney.tsx]"]
  node_journey_replay["Journey replay control"]
end

subgraph group_presentation["Visual components"]
  node_scroll_controls["Scroll controls"]
  node_blur_effect["Gradual blur effect<br/>[GradualBlur.tsx]"]
  node_animated_list["Animated list<br/>[AnimatedList.tsx]"]
  node_animated_content["Mount animations"]
  node_blur_text["Blur text<br/>[BlurText.tsx]"]
  node_error_art["404 artwork<br/>[serverErrorArt.tsx]"]
  node_wip_art["Placeholder artwork"]
end

node_visitor(("Website visitor"))

node_visitor -->|"opens site"| node_browser
node_browser -->|"renders"| node_app
node_app -->|"routes to"| node_home_page
node_app -->|"routes to"| node_placeholder_page
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_floating_actions
node_app -->|"renders"| node_scroll_controls
node_app -.->|"renders"| node_blur_effect
node_app -->|"uses"| node_action_modals
node_app -->|"renders"| node_welcome_journey
node_app -->|"uses"| node_journey_replay
node_app -.->|"routes to"| node_not_found
node_home_page -->|"renders"| node_hero
node_home_page -->|"renders"| node_foundation_card
node_home_page -->|"renders"| node_events
node_home_page -->|"renders"| node_care_promise
node_home_page -->|"renders"| node_education
node_home_page -->|"renders"| node_trustee
node_home_page -->|"renders"| node_impact
node_home_page -->|"renders"| node_misconceptions
node_hero -->|"renders"| node_blur_text
node_navbar -->|"uses"| node_animated_list
node_welcome_journey -->|"renders"| node_blur_text
node_welcome_journey -->|"renders"| node_blur_effect
node_placeholder_page -->|"renders"| node_animated_content
node_placeholder_page -->|"renders"| node_wip_art
node_not_found -->|"renders"| node_animated_content
node_not_found -->|"renders"| node_error_art
node_floating_actions -.->|"opens"| node_action_modals

click node_browser "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/main.tsx"
click node_app "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/App.tsx"
click node_home_page "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/pages/HomePage.tsx"
click node_placeholder_page "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/pages/WorkInProgressPage.tsx"
click node_not_found "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/pages/NotFoundPage.tsx"
click node_hero "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/Hero.tsx"
click node_foundation_card "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/GlassCard.tsx"
click node_events "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/EventSection.tsx"
click node_care_promise "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/PromiseCard.tsx"
click node_education "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/EducationCard.tsx"
click node_trustee "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/TrusteeMessage.tsx"
click node_impact "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/ImpactMetrics.tsx"
click node_misconceptions "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/MisconceptionsCard.tsx"
click node_navbar "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/Navbar.tsx"
click node_floating_actions "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/FloatingActions.tsx"
click node_action_modals "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/ActionModals.tsx"
click node_welcome_journey "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/WelcomeJourney.tsx"
click node_journey_replay "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/JourneyReplayButton.tsx"
click node_scroll_controls "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/CustomScrollbar.tsx"
click node_blur_effect "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/GradualBlur.tsx"
click node_animated_list "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/AnimatedList.tsx"
click node_animated_content "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/AnimatedContent.tsx"
click node_blur_text "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/BlurText.tsx"
click node_error_art "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/icons/serverErrorArt.tsx"
click node_wip_art "https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/icons/workInProgressArt.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_browser,node_app,node_placeholder_page,node_not_found toneBlue
class node_home_page,node_hero,node_foundation_card,node_events,node_care_promise,node_education,node_trustee,node_impact,node_misconceptions toneAmber
class node_navbar,node_floating_actions,node_action_modals,node_welcome_journey,node_journey_replay toneMint
class node_scroll_controls,node_blur_effect,node_animated_list,node_animated_content,node_blur_text,node_error_art,node_wip_art toneRose
class node_visitor toneIndigo
```

## Components

### App and routing

- [Browser app entry](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/main.tsx): `src/main.tsx`
- [App shell and routes](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/App.tsx): `src/App.tsx`
- [Work-in-progress pages](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/pages/WorkInProgressPage.tsx): `src/pages/WorkInProgressPage.tsx`
- [Not-found page](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/pages/NotFoundPage.tsx): `src/pages/NotFoundPage.tsx`

### Home experience

- [Home page](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/pages/HomePage.tsx): `src/pages/HomePage.tsx`
- [Homepage hero](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`
- [Foundation overview](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/GlassCard.tsx): `src/components/GlassCard.tsx`
- [Events section](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/EventSection.tsx): `src/components/EventSection.tsx`
- [Care promise](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/PromiseCard.tsx): `src/components/PromiseCard.tsx`
- [Education and research](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/EducationCard.tsx): `src/components/EducationCard.tsx`
- [Trustee message](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/TrusteeMessage.tsx): `src/components/TrusteeMessage.tsx`
- [Impact metrics](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/ImpactMetrics.tsx): `src/components/ImpactMetrics.tsx`
- [Treatment misconceptions](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/MisconceptionsCard.tsx): `src/components/MisconceptionsCard.tsx`

### Visitor interactions

- [Site navigation](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Floating actions](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/FloatingActions.tsx): `src/components/FloatingActions.tsx`
- [Action dialogs](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/ActionModals.tsx): `src/components/ActionModals.tsx`
- [Welcome journey](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/WelcomeJourney.tsx): `src/components/WelcomeJourney.tsx`
- [Journey replay control](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/JourneyReplayButton.tsx): `src/components/JourneyReplayButton.tsx`

### Visual components

- [Scroll controls](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/CustomScrollbar.tsx): `src/components/CustomScrollbar.tsx`
- [Gradual blur effect](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/GradualBlur.tsx): `src/components/GradualBlur.tsx`
- [Animated list](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/AnimatedList.tsx): `src/components/AnimatedList.tsx`
- [Mount animations](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/AnimatedContent.tsx): `src/components/AnimatedContent.tsx`
- [Blur text](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/BlurText.tsx): `src/components/BlurText.tsx`
- [404 artwork](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/icons/serverErrorArt.tsx): `src/components/icons/serverErrorArt.tsx`
- [Placeholder artwork](https://github.com/swarupcreates/spine-research-foundation-india-website/blob/main/src/components/icons/workInProgressArt.tsx): `src/components/icons/workInProgressArt.tsx`

### Other components

- **Website visitor**

## Connections

- Website visitor → Browser app entry: opens site (evidence: `src/main.tsx`)
- Browser app entry → App shell and routes: renders (evidence: `src/main.tsx`)
- App shell and routes → Home page: routes to (evidence: `src/App.tsx`)
- App shell and routes → Work-in-progress pages: routes to (evidence: `src/App.tsx`)
- App shell and routes → Site navigation: renders (evidence: `src/App.tsx`)
- App shell and routes → Floating actions: renders (evidence: `src/App.tsx`)
- App shell and routes → Scroll controls: renders (evidence: `src/App.tsx`)
- App shell and routes → Gradual blur effect: renders (evidence: `src/App.tsx`)
- App shell and routes → Action dialogs: uses (evidence: `src/App.tsx`)
- App shell and routes → Welcome journey: renders (evidence: `src/App.tsx`)
- App shell and routes → Journey replay control: uses (evidence: `src/App.tsx`)
- App shell and routes → Not-found page: routes to
- Home page → Homepage hero: renders (evidence: `src/pages/HomePage.tsx`)
- Home page → Foundation overview: renders (evidence: `src/pages/HomePage.tsx`)
- Home page → Events section: renders (evidence: `src/pages/HomePage.tsx`)
- Home page → Care promise: renders (evidence: `src/pages/HomePage.tsx`)
- Home page → Education and research: renders (evidence: `src/pages/HomePage.tsx`)
- Home page → Trustee message: renders (evidence: `src/pages/HomePage.tsx`)
- Home page → Impact metrics: renders (evidence: `src/pages/HomePage.tsx`)
- Home page → Treatment misconceptions: renders (evidence: `src/pages/HomePage.tsx`)
- Homepage hero → Blur text: renders (evidence: `src/components/Hero.tsx`)
- Site navigation → Animated list: uses (evidence: `src/components/Navbar.tsx`)
- Welcome journey → Blur text: renders (evidence: `src/components/WelcomeJourney.tsx`)
- Welcome journey → Gradual blur effect: renders (evidence: `src/components/WelcomeJourney.tsx`)
- Work-in-progress pages → Mount animations: renders (evidence: `src/pages/WorkInProgressPage.tsx`)
- Work-in-progress pages → Placeholder artwork: renders (evidence: `src/pages/WorkInProgressPage.tsx`)
- Not-found page → Mount animations: renders (evidence: `src/pages/NotFoundPage.tsx`)
- Not-found page → 404 artwork: renders (evidence: `src/pages/NotFoundPage.tsx`)
- Floating actions → Action dialogs: opens
