# nikelora/v13_buildingblocs2025 architecture

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

- Interactive diagram: https://gitdiagram.com/nikelora/v13_buildingblocs2025
- Repository: https://github.com/nikelora/v13_buildingblocs2025

## Overview

SerenityHub is a static mental-health awareness and clinic-discovery website. Visitors can navigate from the homepage to mental-health information or search clinics by name, address, doctor, and region; a quick-reply chatbot links to those pages and About Us. The README documents page capabilities, while the sampled JavaScript shows clinic-data loading and chatbot behavior. HTML wiring and some page details were not sampled, so those links rely on README statements rather than inspected page source.

Main entry points: [`Pages/Clinics.html`](https://github.com/nikelora/v13_buildingblocs2025/blob/main/Pages/Clinics.html) (Clinic Finder Page), [`js/Chatbox.js`](https://github.com/nikelora/v13_buildingblocs2025/blob/main/js/Chatbox.js) (Quick-Reply Chatbot), [`index.html`](https://github.com/nikelora/v13_buildingblocs2025/blob/main/index.html) (Homepage), [`js/Clinics.js`](https://github.com/nikelora/v13_buildingblocs2025/blob/main/js/Clinics.js) (Clinic Search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Awareness Content"]
  node_home["Homepage<br/>[index.html]"]
  node_information["Mental Health Info<br/>[Information.html]"]
  node_about["About SerenityHub<br/>[AboutUs.html]"]
end

subgraph group_discovery["Clinic Discovery"]
  node_clinics_page["Clinic Finder Page<br/>[Clinics.html]"]
  node_clinic_search["Clinic Search<br/>[Clinics.js]"]
  node_clinic_data[("Clinic Records<br/>[ClinicData.json]")]
end

subgraph group_shared["Shared Interaction"]
  node_chatbot["Quick-Reply Chatbot<br/>[Chatbox.js]"]
  node_navigation["Navigation and Footer<br/>[NavBarFooter.css]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"links to"| node_information
node_home -->|"links to"| node_clinics_page
node_visitor -->|"searches clinics"| node_clinics_page
node_clinics_page -->|"uses finder"| node_clinic_search
node_clinic_search -->|"fetches records"| node_clinic_data
node_chatbot -->|"links to"| node_information
node_chatbot -->|"links to"| node_about
node_chatbot -->|"links to"| node_clinics_page

click node_home "https://github.com/nikelora/v13_buildingblocs2025/blob/main/index.html"
click node_information "https://github.com/nikelora/v13_buildingblocs2025/blob/main/Pages/Information.html"
click node_about "https://github.com/nikelora/v13_buildingblocs2025/blob/main/Pages/AboutUs.html"
click node_clinics_page "https://github.com/nikelora/v13_buildingblocs2025/blob/main/Pages/Clinics.html"
click node_clinic_search "https://github.com/nikelora/v13_buildingblocs2025/blob/main/js/Clinics.js"
click node_clinic_data "https://github.com/nikelora/v13_buildingblocs2025/blob/main/Data/ClinicData.json"
click node_chatbot "https://github.com/nikelora/v13_buildingblocs2025/blob/main/js/Chatbox.js"
click node_navigation "https://github.com/nikelora/v13_buildingblocs2025/blob/main/CSS/NavBarFooter.css"

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_information,node_about toneBlue
class node_clinics_page,node_clinic_search,node_clinic_data toneAmber
class node_chatbot,node_navigation toneMint
class node_visitor toneIndigo
```

## Components

### Awareness Content

- [Homepage](https://github.com/nikelora/v13_buildingblocs2025/blob/main/index.html): `index.html`
- [Mental Health Info](https://github.com/nikelora/v13_buildingblocs2025/blob/main/Pages/Information.html): `Pages/Information.html`
- [About SerenityHub](https://github.com/nikelora/v13_buildingblocs2025/blob/main/Pages/AboutUs.html): `Pages/AboutUs.html`

### Clinic Discovery

- [Clinic Finder Page](https://github.com/nikelora/v13_buildingblocs2025/blob/main/Pages/Clinics.html): `Pages/Clinics.html`
- [Clinic Search](https://github.com/nikelora/v13_buildingblocs2025/blob/main/js/Clinics.js): `js/Clinics.js`
- [Clinic Records](https://github.com/nikelora/v13_buildingblocs2025/blob/main/Data/ClinicData.json): `Data/ClinicData.json`

### Shared Interaction

- [Quick-Reply Chatbot](https://github.com/nikelora/v13_buildingblocs2025/blob/main/js/Chatbox.js): `js/Chatbox.js`
- [Navigation and Footer](https://github.com/nikelora/v13_buildingblocs2025/blob/main/CSS/NavBarFooter.css): `CSS/NavBarFooter.css`

### Other components

- **Visitor**

## Connections

- Visitor → Homepage: opens (evidence: `README.md`)
- Homepage → Mental Health Info: links to (evidence: `README.md`)
- Homepage → Clinic Finder Page: links to (evidence: `README.md`)
- Visitor → Clinic Finder Page: searches clinics (evidence: `README.md`)
- Clinic Finder Page → Clinic Search: uses finder (evidence: `README.md`)
- Clinic Search → Clinic Records: fetches records (evidence: `js/Clinics.js`)
- Quick-Reply Chatbot → Mental Health Info: links to (evidence: `js/Chatbox.js`)
- Quick-Reply Chatbot → About SerenityHub: links to (evidence: `js/Chatbox.js`)
- Quick-Reply Chatbot → Clinic Finder Page: links to (evidence: `js/Chatbox.js`)
