# kl-thanuja/doscience_website architecture

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

- Interactive diagram: https://gitdiagram.com/kl-thanuja/doscience_website
- Repository: https://github.com/kl-thanuja/doscience_website

## Overview

This is a static DO-SCI Science Centre website: visitors use a shared navigation menu to reach the centre, science exhibits, project showcases, and organisation pages. The navigation script maps menu actions to page paths and handles active-link, logo, and mobile-menu behavior. The tree also shows separate science-centre pages for installations and astronomy, plus a local field-visit guide. Page contents and their internal links were not sampled, so those relationships are not inferred.

Main entry points: [`js/navigation.js`](https://github.com/kl-thanuja/doscience_website/blob/main/js/navigation.js) (Navigation logic), [`components/navbar.js`](https://github.com/kl-thanuja/doscience_website/blob/main/components/navbar.js) (Shared navbar), [`sciencecenter/index.html`](https://github.com/kl-thanuja/doscience_website/blob/main/sciencecenter/index.html) (Science centre), [`science-installations/index.html`](https://github.com/kl-thanuja/doscience_website/blob/main/science-installations/index.html) (Science installations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Site navigation"]
  node_navbar["Shared navbar<br/>[navbar.js]"]
  node_navigation_logic["Navigation logic<br/>[navigation.js]"]
end

subgraph group_centre["Science centre"]
  node_science_centre["Science centre<br/>[index.html]"]
  node_science_installations["Science installations<br/>[index.html]"]
  node_centre_installations["Centre installations"]
  node_astronomy["VR astronomy<br/>[vrastronomy.html]"]
  node_visit_guide["Field visit guide"]
end

subgraph group_showcases["Project showcases"]
  node_story_box["Story box<br/>[index.html]"]
  node_rolling_ball["Rolling ball sculptures<br/>[index.html]"]
  node_wind_sculptures["Wind sculptures<br/>[index.html]"]
end

subgraph group_organisation["Organisation"]
  node_home["Home page<br/>[index.html]"]
  node_about["About<br/>[aboutus.html]"]
  node_contact["Contact<br/>[contactUs.html]"]
end

node_visitor(("Visitor"))

node_visitor -->|"uses menu"| node_navbar
node_navbar -->|"calls navigation"| node_navigation_logic
node_navigation_logic -->|"routes to"| node_home
node_navigation_logic -->|"routes to"| node_science_centre
node_navigation_logic -->|"routes to"| node_science_installations
node_navigation_logic -->|"routes to"| node_story_box
node_navigation_logic -->|"routes to"| node_rolling_ball
node_navigation_logic -->|"routes to"| node_wind_sculptures
node_navigation_logic -->|"routes to"| node_about
node_navigation_logic -->|"routes to"| node_contact

click node_navbar "https://github.com/kl-thanuja/doscience_website/blob/main/components/navbar.js"
click node_navigation_logic "https://github.com/kl-thanuja/doscience_website/blob/main/js/navigation.js"
click node_home "https://github.com/kl-thanuja/doscience_website/blob/main/index.html"
click node_science_centre "https://github.com/kl-thanuja/doscience_website/blob/main/sciencecenter/index.html"
click node_science_installations "https://github.com/kl-thanuja/doscience_website/blob/main/science-installations/index.html"
click node_centre_installations "https://github.com/kl-thanuja/doscience_website/blob/main/sciencecenter/scienceinstallations.html"
click node_astronomy "https://github.com/kl-thanuja/doscience_website/blob/main/sciencecenter/vrastronomy.html"
click node_visit_guide "https://github.com/kl-thanuja/doscience_website/blob/main/sciencecenter/assets/DoScience-Field-Visit-Guide.pdf"
click node_story_box "https://github.com/kl-thanuja/doscience_website/blob/main/story-box/index.html"
click node_rolling_ball "https://github.com/kl-thanuja/doscience_website/blob/main/rolling-ball-sculptures/index.html"
click node_wind_sculptures "https://github.com/kl-thanuja/doscience_website/blob/main/wind-sculptures/index.html"
click node_about "https://github.com/kl-thanuja/doscience_website/blob/main/aboutus.html"
click node_contact "https://github.com/kl-thanuja/doscience_website/blob/main/contactUs.html"

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_navbar,node_navigation_logic toneBlue
class node_science_centre,node_science_installations,node_centre_installations,node_astronomy,node_visit_guide toneAmber
class node_story_box,node_rolling_ball,node_wind_sculptures toneMint
class node_home,node_about,node_contact toneRose
class node_visitor toneIndigo
```

## Components

### Site navigation

- [Shared navbar](https://github.com/kl-thanuja/doscience_website/blob/main/components/navbar.js): `components/navbar.js`
- [Navigation logic](https://github.com/kl-thanuja/doscience_website/blob/main/js/navigation.js): `js/navigation.js`

### Science centre

- [Science centre](https://github.com/kl-thanuja/doscience_website/blob/main/sciencecenter/index.html): `sciencecenter/index.html`
- [Science installations](https://github.com/kl-thanuja/doscience_website/blob/main/science-installations/index.html): `science-installations/index.html`
- [Centre installations](https://github.com/kl-thanuja/doscience_website/blob/main/sciencecenter/scienceinstallations.html): `sciencecenter/scienceinstallations.html`
- [VR astronomy](https://github.com/kl-thanuja/doscience_website/blob/main/sciencecenter/vrastronomy.html): `sciencecenter/vrastronomy.html`
- [Field visit guide](https://github.com/kl-thanuja/doscience_website/blob/main/sciencecenter/assets/DoScience-Field-Visit-Guide.pdf): `sciencecenter/assets/DoScience-Field-Visit-Guide.pdf`

### Project showcases

- [Story box](https://github.com/kl-thanuja/doscience_website/blob/main/story-box/index.html): `story-box/index.html`
- [Rolling ball sculptures](https://github.com/kl-thanuja/doscience_website/blob/main/rolling-ball-sculptures/index.html): `rolling-ball-sculptures/index.html`
- [Wind sculptures](https://github.com/kl-thanuja/doscience_website/blob/main/wind-sculptures/index.html): `wind-sculptures/index.html`

### Organisation

- [Home page](https://github.com/kl-thanuja/doscience_website/blob/main/index.html): `index.html`
- [About](https://github.com/kl-thanuja/doscience_website/blob/main/aboutus.html): `aboutus.html`
- [Contact](https://github.com/kl-thanuja/doscience_website/blob/main/contactUs.html): `contactUs.html`

### Other components

- **Visitor**

## Connections

- Visitor → Shared navbar: uses menu (evidence: `components/navbar.js`)
- Shared navbar → Navigation logic: calls navigation (evidence: `components/navbar.js`)
- Navigation logic → Home page: routes to (evidence: `js/navigation.js`)
- Navigation logic → Science centre: routes to (evidence: `js/navigation.js`)
- Navigation logic → Science installations: routes to (evidence: `js/navigation.js`)
- Navigation logic → Story box: routes to (evidence: `js/navigation.js`)
- Navigation logic → Rolling ball sculptures: routes to (evidence: `js/navigation.js`)
- Navigation logic → Wind sculptures: routes to (evidence: `js/navigation.js`)
- Navigation logic → About: routes to (evidence: `js/navigation.js`)
- Navigation logic → Contact: routes to (evidence: `js/navigation.js`)
