# madhanokr/badia architecture

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

- Interactive diagram: https://gitdiagram.com/madhanokr/badia
- Repository: https://github.com/madhanokr/badia

## Overview

This is a static healthcare provider website for Badia Hand to Shoulder Center. Visitors explore care and condition information, review patient stories and international services, then use contact or appointment forms; a dedicated plan page presents educational content and event information. The JavaScript implements page interactions rather than a sampled backend: shared navigation, motion, media and content widgets live in app.js, while plan.js handles its search animation, charts and calendar filters. The README is empty and HTML/CSS and form handling were not sampled, so links between pages and form destinations are not asserted.

Main entry points: [`app.js`](https://github.com/madhanokr/badia/blob/main/app.js) (Shared interactions), [`index.html`](https://github.com/madhanokr/badia/blob/main/index.html) (Home), [`conditions.html`](https://github.com/madhanokr/badia/blob/main/conditions.html) (Conditions), [`awake-surgery.html`](https://github.com/madhanokr/badia/blob/main/awake-surgery.html) (Awake surgery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_care["Care information"]
  node_home["Home<br/>[index.html]"]
  node_conditions["Conditions<br/>[conditions.html]"]
  node_surgery["Awake surgery<br/>[awake-surgery.html]"]
  node_secondopinion["Second opinion"]
  node_about["About<br/>[about.html]"]
end

subgraph group_engagement["Visitor engagement"]
  node_stories["Patient stories<br/>[stories.html]"]
  node_international["International care<br/>[international.html]"]
  node_contact["Contact<br/>[contact.html]"]
  node_thumbnails["Media thumbnail<br/>[thumb.html]"]
end

subgraph group_site["Site experience"]
  node_appjs["Shared interactions<br/>[app.js]"]
end

subgraph group_planning["Plan page"]
  node_planpage["Plan page<br/>[plan.html]"]
  node_planjs["Plan interactions<br/>[plan.js]"]
end

node_visitor(("Visitor"))
node_youtube["YouTube video"]
node_leaflet["Leaflet map"]

node_visitor -->|"visits"| node_home
node_visitor -->|"visits"| node_conditions
node_visitor -->|"visits"| node_surgery
node_visitor -->|"visits"| node_stories
node_visitor -->|"visits"| node_international
node_visitor -->|"visits"| node_secondopinion
node_visitor -->|"visits"| node_contact
node_visitor -->|"visits"| node_about
node_visitor -->|"visits"| node_planpage
node_visitor -->|"visits"| node_thumbnails
node_home -.->|"runs interactions"| node_appjs
node_conditions -.->|"runs interactions"| node_appjs
node_surgery -.->|"runs interactions"| node_appjs
node_stories -.->|"runs interactions"| node_appjs
node_international -.->|"runs interactions"| node_appjs
node_contact -.->|"runs interactions"| node_appjs
node_planpage -->|"runs interactions"| node_planjs
node_appjs -->|"embeds video"| node_youtube
node_appjs -->|"renders map"| node_leaflet

click node_home "https://github.com/madhanokr/badia/blob/main/index.html"
click node_conditions "https://github.com/madhanokr/badia/blob/main/conditions.html"
click node_surgery "https://github.com/madhanokr/badia/blob/main/awake-surgery.html"
click node_stories "https://github.com/madhanokr/badia/blob/main/stories.html"
click node_international "https://github.com/madhanokr/badia/blob/main/international.html"
click node_secondopinion "https://github.com/madhanokr/badia/blob/main/second-opinion.html"
click node_contact "https://github.com/madhanokr/badia/blob/main/contact.html"
click node_about "https://github.com/madhanokr/badia/blob/main/about.html"
click node_planpage "https://github.com/madhanokr/badia/blob/main/plan.html"
click node_thumbnails "https://github.com/madhanokr/badia/blob/main/thumb.html"
click node_appjs "https://github.com/madhanokr/badia/blob/main/app.js"
click node_planjs "https://github.com/madhanokr/badia/blob/main/plan.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_home,node_conditions,node_surgery,node_secondopinion,node_about toneBlue
class node_stories,node_international,node_contact,node_thumbnails toneAmber
class node_appjs toneMint
class node_planpage,node_planjs toneRose
class node_visitor,node_youtube,node_leaflet toneIndigo
```

## Components

### Care information

- [Home](https://github.com/madhanokr/badia/blob/main/index.html): `index.html`
- [Conditions](https://github.com/madhanokr/badia/blob/main/conditions.html): `conditions.html`
- [Awake surgery](https://github.com/madhanokr/badia/blob/main/awake-surgery.html): `awake-surgery.html`
- [Second opinion](https://github.com/madhanokr/badia/blob/main/second-opinion.html): `second-opinion.html`
- [About](https://github.com/madhanokr/badia/blob/main/about.html): `about.html`

### Visitor engagement

- [Patient stories](https://github.com/madhanokr/badia/blob/main/stories.html): `stories.html`
- [International care](https://github.com/madhanokr/badia/blob/main/international.html): `international.html`
- [Contact](https://github.com/madhanokr/badia/blob/main/contact.html): `contact.html`
- [Media thumbnail](https://github.com/madhanokr/badia/blob/main/thumb.html): `thumb.html`

### Site experience

- [Shared interactions](https://github.com/madhanokr/badia/blob/main/app.js): `app.js`

### Plan page

- [Plan page](https://github.com/madhanokr/badia/blob/main/plan.html): `plan.html`
- [Plan interactions](https://github.com/madhanokr/badia/blob/main/plan.js): `plan.js`

### Other components

- **Visitor**
- **YouTube video**
- **Leaflet map**

## Connections

- Visitor → Home: visits
- Visitor → Conditions: visits
- Visitor → Awake surgery: visits
- Visitor → Patient stories: visits
- Visitor → International care: visits
- Visitor → Second opinion: visits
- Visitor → Contact: visits
- Visitor → About: visits
- Visitor → Plan page: visits
- Visitor → Media thumbnail: visits
- Home → Shared interactions: runs interactions
- Conditions → Shared interactions: runs interactions
- Awake surgery → Shared interactions: runs interactions
- Patient stories → Shared interactions: runs interactions
- International care → Shared interactions: runs interactions
- Contact → Shared interactions: runs interactions
- Plan page → Plan interactions: runs interactions (evidence: `plan.js`)
- Shared interactions → YouTube video: embeds video (evidence: `app.js`)
- Shared interactions → Leaflet map: renders map (evidence: `app.js`)
