# giftenvi-ops/oiai architecture

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

- Interactive diagram: https://gitdiagram.com/giftenvi-ops/oiai
- Repository: https://github.com/giftenvi-ops/oiai

## Overview

OIAI is a client-rendered marketing and admissions site for an institute. Visitors browse programme, admissions, institute, student-voice and event information, then can proceed to application or contact forms. The forms currently validate in the browser and simulate submission; no backend is connected. The graph follows documented routes and sampled imports. Some page implementations were not sampled, so their internal behavior is represented only at page level.

Main entry points: [`src/App.jsx`](https://github.com/giftenvi-ops/oiai/blob/main/src/App.jsx) (Route table), [`src/pages/Home.jsx`](https://github.com/giftenvi-ops/oiai/blob/main/src/pages/Home.jsx) (Home), [`src/components/layout/Layout.jsx`](https://github.com/giftenvi-ops/oiai/blob/main/src/components/layout/Layout.jsx) (Site shell), [`src/components/layout/Page.jsx`](https://github.com/giftenvi-ops/oiai/blob/main/src/components/layout/Page.jsx) (Page metadata and reveal)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Routing and shell"]
  node_app["Route table<br/>[App.jsx]"]
  node_layout["Site shell<br/>[Layout.jsx]"]
  node_notfound["Not found<br/>[NotFound.jsx]"]
end

subgraph group_content["Institute content"]
  node_home["Home<br/>[Home.jsx]"]
  node_programmes["Programmes<br/>[Programmes.jsx]"]
  node_about["About and labs<br/>[About.jsx]"]
  node_voices["Student voices<br/>[Voices.jsx]"]
  node_event["AI Build Week<br/>[Event.jsx]"]
end

subgraph group_admissions["Admissions journey"]
  node_admissionspage["Admissions details<br/>[Admissions.jsx]"]
  node_apply["Application form<br/>[Apply.jsx]"]
  node_contact["Contact and visits<br/>[Contact.jsx]"]
end

subgraph group_shared["Shared experience"]
  node_navbar["Navigation<br/>[Navbar.jsx]"]
  node_footer["Footer links<br/>[Footer.jsx]"]
  node_page["Page metadata and reveal<br/>[Page.jsx]"]
  node_scroll["Scroll handling<br/>[ScrollManager.jsx]"]
  node_backtotop["Back to top<br/>[BackToTop.jsx]"]
  node_formhook["Form validation<br/>[useDemoForm.js]"]
  node_revealhook["Reveal behavior<br/>[useReveal.js]"]
  node_countup["Animated statistics<br/>[CountUp.jsx]"]
  node_i18n["Language state<br/>[I18nContext.jsx]"]
  node_dictionary["Demo Odia phrases<br/>[or.js]"]
  node_sitecontent["Navigation content<br/>[site.js]"]
  node_socials["Social links<br/>[socials.jsx]"]
end

node_visitor(("Prospective visitor"))

node_visitor -.->|"opens site"| node_app
node_app -->|"wraps routes"| node_layout
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_programmes
node_app -->|"routes to"| node_admissionspage
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_voices
node_app -->|"routes to"| node_event
node_app -->|"routes to"| node_apply
node_app -->|"routes to"| node_contact
node_app -->|"routes to"| node_notfound
node_layout -->|"renders"| node_navbar
node_layout -->|"renders"| node_footer
node_layout -->|"renders"| node_scroll
node_layout -->|"renders"| node_backtotop
node_navbar -->|"reads links"| node_sitecontent
node_navbar -->|"uses language"| node_i18n
node_footer -->|"reads links"| node_sitecontent
node_footer -->|"renders links"| node_socials
node_home -->|"renders within"| node_page
node_programmes -.->|"renders within"| node_page
node_about -->|"renders within"| node_page
node_apply -->|"renders within"| node_page
node_page -->|"uses reveal"| node_revealhook
node_home -->|"renders stats"| node_countup
node_about -->|"renders stats"| node_countup
node_home -->|"translates text"| node_i18n
node_i18n -->|"loads phrases"| node_dictionary
node_apply -->|"handles form"| node_formhook
node_contact -.->|"handles form"| node_formhook
node_home -->|"links to apply"| node_apply
node_home -->|"links to programmes"| node_programmes
node_home -->|"links to admissions"| node_admissionspage

click node_app "https://github.com/giftenvi-ops/oiai/blob/main/src/App.jsx"
click node_layout "https://github.com/giftenvi-ops/oiai/blob/main/src/components/layout/Layout.jsx"
click node_home "https://github.com/giftenvi-ops/oiai/blob/main/src/pages/Home.jsx"
click node_programmes "https://github.com/giftenvi-ops/oiai/blob/main/src/pages/Programmes.jsx"
click node_about "https://github.com/giftenvi-ops/oiai/blob/main/src/pages/About.jsx"
click node_voices "https://github.com/giftenvi-ops/oiai/blob/main/src/pages/Voices.jsx"
click node_event "https://github.com/giftenvi-ops/oiai/blob/main/src/pages/Event.jsx"
click node_admissionspage "https://github.com/giftenvi-ops/oiai/blob/main/src/pages/Admissions.jsx"
click node_apply "https://github.com/giftenvi-ops/oiai/blob/main/src/pages/Apply.jsx"
click node_contact "https://github.com/giftenvi-ops/oiai/blob/main/src/pages/Contact.jsx"
click node_notfound "https://github.com/giftenvi-ops/oiai/blob/main/src/pages/NotFound.jsx"
click node_navbar "https://github.com/giftenvi-ops/oiai/blob/main/src/components/layout/Navbar.jsx"
click node_footer "https://github.com/giftenvi-ops/oiai/blob/main/src/components/layout/Footer.jsx"
click node_page "https://github.com/giftenvi-ops/oiai/blob/main/src/components/layout/Page.jsx"
click node_scroll "https://github.com/giftenvi-ops/oiai/blob/main/src/components/layout/ScrollManager.jsx"
click node_backtotop "https://github.com/giftenvi-ops/oiai/blob/main/src/components/layout/BackToTop.jsx"
click node_formhook "https://github.com/giftenvi-ops/oiai/blob/main/src/hooks/useDemoForm.js"
click node_revealhook "https://github.com/giftenvi-ops/oiai/blob/main/src/hooks/useReveal.js"
click node_countup "https://github.com/giftenvi-ops/oiai/blob/main/src/components/ui/CountUp.jsx"
click node_i18n "https://github.com/giftenvi-ops/oiai/blob/main/src/context/I18nContext.jsx"
click node_dictionary "https://github.com/giftenvi-ops/oiai/blob/main/src/i18n/or.js"
click node_sitecontent "https://github.com/giftenvi-ops/oiai/blob/main/src/data/site.js"
click node_socials "https://github.com/giftenvi-ops/oiai/blob/main/src/data/socials.jsx"

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,node_layout,node_notfound toneBlue
class node_home,node_programmes,node_about,node_voices,node_event toneAmber
class node_admissionspage,node_apply,node_contact toneMint
class node_navbar,node_footer,node_page,node_scroll,node_backtotop,node_formhook,node_revealhook,node_countup,node_i18n,node_dictionary,node_sitecontent,node_socials toneRose
class node_visitor toneIndigo
```

## Components

### Routing and shell

- [Route table](https://github.com/giftenvi-ops/oiai/blob/main/src/App.jsx): `src/App.jsx`
- [Site shell](https://github.com/giftenvi-ops/oiai/blob/main/src/components/layout/Layout.jsx): `src/components/layout/Layout.jsx`
- [Not found](https://github.com/giftenvi-ops/oiai/blob/main/src/pages/NotFound.jsx): `src/pages/NotFound.jsx`

### Institute content

- [Home](https://github.com/giftenvi-ops/oiai/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [Programmes](https://github.com/giftenvi-ops/oiai/blob/main/src/pages/Programmes.jsx): `src/pages/Programmes.jsx`
- [About and labs](https://github.com/giftenvi-ops/oiai/blob/main/src/pages/About.jsx): `src/pages/About.jsx`
- [Student voices](https://github.com/giftenvi-ops/oiai/blob/main/src/pages/Voices.jsx): `src/pages/Voices.jsx`
- [AI Build Week](https://github.com/giftenvi-ops/oiai/blob/main/src/pages/Event.jsx): `src/pages/Event.jsx`

### Admissions journey

- [Admissions details](https://github.com/giftenvi-ops/oiai/blob/main/src/pages/Admissions.jsx): `src/pages/Admissions.jsx`
- [Application form](https://github.com/giftenvi-ops/oiai/blob/main/src/pages/Apply.jsx): `src/pages/Apply.jsx`
- [Contact and visits](https://github.com/giftenvi-ops/oiai/blob/main/src/pages/Contact.jsx): `src/pages/Contact.jsx`

### Shared experience

- [Navigation](https://github.com/giftenvi-ops/oiai/blob/main/src/components/layout/Navbar.jsx): `src/components/layout/Navbar.jsx`
- [Footer links](https://github.com/giftenvi-ops/oiai/blob/main/src/components/layout/Footer.jsx): `src/components/layout/Footer.jsx`
- [Page metadata and reveal](https://github.com/giftenvi-ops/oiai/blob/main/src/components/layout/Page.jsx): `src/components/layout/Page.jsx`
- [Scroll handling](https://github.com/giftenvi-ops/oiai/blob/main/src/components/layout/ScrollManager.jsx): `src/components/layout/ScrollManager.jsx`
- [Back to top](https://github.com/giftenvi-ops/oiai/blob/main/src/components/layout/BackToTop.jsx): `src/components/layout/BackToTop.jsx`
- [Form validation](https://github.com/giftenvi-ops/oiai/blob/main/src/hooks/useDemoForm.js): `src/hooks/useDemoForm.js`
- [Reveal behavior](https://github.com/giftenvi-ops/oiai/blob/main/src/hooks/useReveal.js): `src/hooks/useReveal.js`
- [Animated statistics](https://github.com/giftenvi-ops/oiai/blob/main/src/components/ui/CountUp.jsx): `src/components/ui/CountUp.jsx`
- [Language state](https://github.com/giftenvi-ops/oiai/blob/main/src/context/I18nContext.jsx): `src/context/I18nContext.jsx`
- [Demo Odia phrases](https://github.com/giftenvi-ops/oiai/blob/main/src/i18n/or.js): `src/i18n/or.js`
- [Navigation content](https://github.com/giftenvi-ops/oiai/blob/main/src/data/site.js): `src/data/site.js`
- [Social links](https://github.com/giftenvi-ops/oiai/blob/main/src/data/socials.jsx): `src/data/socials.jsx`

### Other components

- **Prospective visitor**

## Connections

- Prospective visitor → Route table: opens site
- Route table → Site shell: wraps routes (evidence: `src/App.jsx`)
- Route table → Home: routes to (evidence: `src/App.jsx`)
- Route table → Programmes: routes to (evidence: `src/App.jsx`)
- Route table → Admissions details: routes to (evidence: `src/App.jsx`)
- Route table → About and labs: routes to (evidence: `src/App.jsx`)
- Route table → Student voices: routes to (evidence: `src/App.jsx`)
- Route table → AI Build Week: routes to (evidence: `src/App.jsx`)
- Route table → Application form: routes to (evidence: `src/App.jsx`)
- Route table → Contact and visits: routes to (evidence: `src/App.jsx`)
- Route table → Not found: routes to (evidence: `src/App.jsx`)
- Site shell → Navigation: renders (evidence: `src/components/layout/Layout.jsx`)
- Site shell → Footer links: renders (evidence: `src/components/layout/Layout.jsx`)
- Site shell → Scroll handling: renders (evidence: `src/components/layout/Layout.jsx`)
- Site shell → Back to top: renders (evidence: `src/components/layout/Layout.jsx`)
- Navigation → Navigation content: reads links (evidence: `src/components/layout/Navbar.jsx`)
- Navigation → Language state: uses language (evidence: `src/components/layout/Navbar.jsx`)
- Footer links → Navigation content: reads links (evidence: `src/components/layout/Footer.jsx`)
- Footer links → Social links: renders links (evidence: `src/components/layout/Footer.jsx`)
- Home → Page metadata and reveal: renders within (evidence: `src/pages/Home.jsx`)
- Programmes → Page metadata and reveal: renders within (evidence: `src/pages/Programmes.jsx`)
- About and labs → Page metadata and reveal: renders within (evidence: `src/pages/About.jsx`)
- Application form → Page metadata and reveal: renders within (evidence: `src/pages/Apply.jsx`)
- Page metadata and reveal → Reveal behavior: uses reveal (evidence: `src/components/layout/Page.jsx`)
- Home → Animated statistics: renders stats (evidence: `src/pages/Home.jsx`)
- About and labs → Animated statistics: renders stats (evidence: `src/pages/About.jsx`)
- Home → Language state: translates text (evidence: `src/pages/Home.jsx`)
- Language state → Demo Odia phrases: loads phrases (evidence: `src/context/I18nContext.jsx`)
- Application form → Form validation: handles form (evidence: `src/pages/Apply.jsx`)
- Contact and visits → Form validation: handles form
- Home → Application form: links to apply (evidence: `src/pages/Home.jsx`)
- Home → Programmes: links to programmes (evidence: `src/pages/Home.jsx`)
- Home → Admissions details: links to admissions (evidence: `src/pages/Home.jsx`)
