# vaaghu/sih architecture

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

- Interactive diagram: https://gitdiagram.com/vaaghu/sih
- Repository: https://github.com/vaaghu/sih

## Overview

This repository is the React frontend for an ISRO heavy-rainfall nowcasting/XAI project. Its visible workflow is a visitor opening the home page, browsing rainfall-prediction visualizations, and opening an individual information page. The README describes prediction and explainability as product goals, but the sampled frontend shows presentation of those capabilities rather than model execution or satellite-data processing. Contact and other presentation features are included where documented in the source; the contact section is not mounted on the home page.

Main entry points: [`src/App.jsx`](https://github.com/vaaghu/sih/blob/main/src/App.jsx) (App and routes), [`src/hoc/SectionWrapper.jsx`](https://github.com/vaaghu/sih/blob/main/src/hoc/SectionWrapper.jsx) (Section wrapper), [`src/components/Experience.jsx`](https://github.com/vaaghu/sih/blob/main/src/components/Experience.jsx) (Rainfall visualizations), [`src/components/Info.jsx`](https://github.com/vaaghu/sih/blob/main/src/components/Info.jsx) (Visualization detail)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application routing"]
  node_app["App and routes<br/>[App.jsx]"]
end

subgraph group_rain["Rainfall presentation"]
  node_about["Project overview<br/>[About.jsx]"]
  node_experience["Rainfall visualizations<br/>[Experience.jsx]"]
  node_xai["XAI presentation<br/>[Xai.jsx]"]
  node_feedbacks["Rainfall metrics<br/>[Feedbacks.jsx]"]
  node_info["Visualization detail<br/>[Info.jsx]"]
  node_content["Visualization content<br/>[index.js]"]
end

subgraph group_ui["Shared interface"]
  node_navbar["Navigation<br/>[Navbar.jsx]"]
  node_hero["Landing hero<br/>[Hero.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
  node_stars["Star background<br/>[Stars.jsx]"]
  node_contact["Email contact form<br/>[Contact.jsx]"]
  node_section["Section wrapper<br/>[SectionWrapper.jsx]"]
  node_motion["Motion variants<br/>[motion.js]"]
  node_styles["Shared styles<br/>[styles.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_about
node_app -->|"renders"| node_experience
node_app -->|"renders"| node_xai
node_app -->|"renders"| node_feedbacks
node_app -->|"renders"| node_footer
node_app -->|"renders"| node_stars
node_app -->|"routes to"| node_info
node_app -->|"routes from"| node_content
node_experience -->|"displays"| node_content
node_experience -->|"links to"| node_info
node_info -->|"receives route data"| node_content
node_about -->|"uses"| node_section
node_experience -->|"uses"| node_section
node_xai -->|"uses"| node_section
node_feedbacks -->|"uses"| node_section
node_section -->|"uses variants"| node_motion
node_section -->|"uses"| node_styles
node_contact -->|"uses"| node_section

click node_app "https://github.com/vaaghu/sih/blob/main/src/App.jsx"
click node_navbar "https://github.com/vaaghu/sih/blob/main/src/components/Navbar.jsx"
click node_hero "https://github.com/vaaghu/sih/blob/main/src/components/Hero.jsx"
click node_about "https://github.com/vaaghu/sih/blob/main/src/components/About.jsx"
click node_experience "https://github.com/vaaghu/sih/blob/main/src/components/Experience.jsx"
click node_xai "https://github.com/vaaghu/sih/blob/main/src/components/Xai.jsx"
click node_feedbacks "https://github.com/vaaghu/sih/blob/main/src/components/Feedbacks.jsx"
click node_info "https://github.com/vaaghu/sih/blob/main/src/components/Info.jsx"
click node_content "https://github.com/vaaghu/sih/blob/main/src/constants/index.js"
click node_footer "https://github.com/vaaghu/sih/blob/main/src/components/Footer.jsx"
click node_stars "https://github.com/vaaghu/sih/blob/main/src/components/canvas/Stars.jsx"
click node_contact "https://github.com/vaaghu/sih/blob/main/src/components/Contact.jsx"
click node_section "https://github.com/vaaghu/sih/blob/main/src/hoc/SectionWrapper.jsx"
click node_motion "https://github.com/vaaghu/sih/blob/main/src/utils/motion.js"
click node_styles "https://github.com/vaaghu/sih/blob/main/src/styles.js"

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 toneBlue
class node_about,node_experience,node_xai,node_feedbacks,node_info,node_content toneAmber
class node_navbar,node_hero,node_footer,node_stars,node_contact,node_section,node_motion,node_styles toneMint
class node_visitor toneIndigo
```

## Components

### Application routing

- [App and routes](https://github.com/vaaghu/sih/blob/main/src/App.jsx): `src/App.jsx`

### Rainfall presentation

- [Project overview](https://github.com/vaaghu/sih/blob/main/src/components/About.jsx): `src/components/About.jsx`
- [Rainfall visualizations](https://github.com/vaaghu/sih/blob/main/src/components/Experience.jsx): `src/components/Experience.jsx`
- [XAI presentation](https://github.com/vaaghu/sih/blob/main/src/components/Xai.jsx): `src/components/Xai.jsx`
- [Rainfall metrics](https://github.com/vaaghu/sih/blob/main/src/components/Feedbacks.jsx): `src/components/Feedbacks.jsx`
- [Visualization detail](https://github.com/vaaghu/sih/blob/main/src/components/Info.jsx): `src/components/Info.jsx`
- [Visualization content](https://github.com/vaaghu/sih/blob/main/src/constants/index.js): `src/constants/index.js`

### Shared interface

- [Navigation](https://github.com/vaaghu/sih/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Landing hero](https://github.com/vaaghu/sih/blob/main/src/components/Hero.jsx): `src/components/Hero.jsx`
- [Footer](https://github.com/vaaghu/sih/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`
- [Star background](https://github.com/vaaghu/sih/blob/main/src/components/canvas/Stars.jsx): `src/components/canvas/Stars.jsx`
- [Email contact form](https://github.com/vaaghu/sih/blob/main/src/components/Contact.jsx): `src/components/Contact.jsx`
- [Section wrapper](https://github.com/vaaghu/sih/blob/main/src/hoc/SectionWrapper.jsx): `src/hoc/SectionWrapper.jsx`
- [Motion variants](https://github.com/vaaghu/sih/blob/main/src/utils/motion.js): `src/utils/motion.js`
- [Shared styles](https://github.com/vaaghu/sih/blob/main/src/styles.js): `src/styles.js`

### Other components

- **Visitor**

## Connections

- Visitor → App and routes: opens (evidence: `src/App.jsx`)
- App and routes → Navigation: renders (evidence: `src/App.jsx`)
- App and routes → Landing hero: renders (evidence: `src/App.jsx`)
- App and routes → Project overview: renders (evidence: `src/App.jsx`)
- App and routes → Rainfall visualizations: renders (evidence: `src/App.jsx`)
- App and routes → XAI presentation: renders (evidence: `src/App.jsx`)
- App and routes → Rainfall metrics: renders (evidence: `src/App.jsx`)
- App and routes → Footer: renders (evidence: `src/App.jsx`)
- App and routes → Star background: renders (evidence: `src/App.jsx`)
- App and routes → Visualization detail: routes to (evidence: `src/App.jsx`)
- App and routes → Visualization content: routes from (evidence: `src/App.jsx`)
- Rainfall visualizations → Visualization content: displays (evidence: `src/components/Experience.jsx`)
- Rainfall visualizations → Visualization detail: links to (evidence: `src/components/Experience.jsx`)
- Visualization detail → Visualization content: receives route data
- Project overview → Section wrapper: uses (evidence: `src/components/About.jsx`)
- Rainfall visualizations → Section wrapper: uses (evidence: `src/components/Experience.jsx`)
- XAI presentation → Section wrapper: uses (evidence: `src/components/Xai.jsx`)
- Rainfall metrics → Section wrapper: uses (evidence: `src/components/Feedbacks.jsx`)
- Section wrapper → Motion variants: uses variants (evidence: `src/hoc/SectionWrapper.jsx`)
- Section wrapper → Shared styles: uses (evidence: `src/hoc/SectionWrapper.jsx`)
- Email contact form → Section wrapper: uses (evidence: `src/components/Contact.jsx`)
