# davetechk/gateway_ltd architecture

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

- Interactive diagram: https://gitdiagram.com/davetechk/gateway_ltd
- Repository: https://github.com/davetechk/gateway_ltd

## Overview

Gateway is a multi-part web presence: a corporate landing site alongside Academy, Communications, Photography, Spaces, and Studios experiences. Visitors browse service-specific content and media; Academy also exposes account, password-recovery, and payment pages. The sampled behavior and data modules support the content-to-interface links shown below. The README is empty, and several pages and payment-related files were not sampled, so their internal behavior and connections are not asserted.

Main entry points: [`academy/index.html`](https://github.com/davetechk/gateway_ltd/blob/main/academy/index.html) (Academy site), [`photography/js/main.js`](https://github.com/davetechk/gateway_ltd/blob/main/photography/js/main.js) (Photography home), [`photography/js/gallery.js`](https://github.com/davetechk/gateway_ltd/blob/main/photography/js/gallery.js) (Gallery and lightbox), [`academy/auth/auth.js`](https://github.com/davetechk/gateway_ltd/blob/main/academy/auth/auth.js) (Account flows)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_corporate["Corporate presence"]
  node_home["Corporate home<br/>[index.html]"]
  node_contact["Contact page<br/>[contact.html]"]
end

subgraph group_academy["Academy"]
  node_academy_site["Academy site<br/>[index.html]"]
  node_academy_auth["Account flows<br/>[auth.js]"]
  node_academy_payment["Academy payment<br/>[payment.js]"]
end

subgraph group_comms["Communications"]
  node_comms_ui["Case studies<br/>[main.js]"]
  node_comms_content["Case content<br/>[data.js]"]
end

subgraph group_photo["Photography"]
  node_photo_home["Photography home<br/>[main.js]"]
  node_photo_content["Album content<br/>[data.js]"]
  node_photo_gallery["Gallery and lightbox<br/>[gallery.js]"]
end

subgraph group_spaces["Spaces"]
  node_spaces_ui["Space listings<br/>[main.js]"]
  node_spaces_content["Space content<br/>[data.js]"]
end

subgraph group_studios["Studios"]
  node_studios_ui["Studio portfolio<br/>[main.js]"]
  node_studios_content["Project content<br/>[data.js]"]
end

node_visitor(("Visitor"))
node_supabase{{"Supabase Auth"}}

node_visitor -.->|"visits"| node_home
node_visitor -.->|"browses"| node_academy_site
node_visitor -.->|"browses"| node_comms_ui
node_visitor -.->|"browses"| node_photo_home
node_visitor -.->|"browses"| node_spaces_ui
node_visitor -.->|"browses"| node_studios_ui
node_comms_ui -->|"reads cases"| node_comms_content
node_photo_home -->|"reads albums"| node_photo_content
node_photo_gallery -->|"uses helpers"| node_photo_home
node_photo_gallery -->|"reads albums"| node_photo_content
node_spaces_ui -->|"reads spaces"| node_spaces_content
node_studios_ui -->|"reads works"| node_studios_content
node_academy_site -.->|"offers account pages"| node_academy_auth
node_academy_auth -->|"calls auth API"| node_supabase
node_academy_site -.->|"offers payment page"| node_academy_payment

click node_home "https://github.com/davetechk/gateway_ltd/blob/main/index.html"
click node_contact "https://github.com/davetechk/gateway_ltd/blob/main/contact.html"
click node_academy_site "https://github.com/davetechk/gateway_ltd/blob/main/academy/index.html"
click node_academy_auth "https://github.com/davetechk/gateway_ltd/blob/main/academy/auth/auth.js"
click node_academy_payment "https://github.com/davetechk/gateway_ltd/blob/main/assets/js/payment.js"
click node_comms_ui "https://github.com/davetechk/gateway_ltd/blob/main/comms/js/main.js"
click node_comms_content "https://github.com/davetechk/gateway_ltd/blob/main/comms/js/data.js"
click node_photo_home "https://github.com/davetechk/gateway_ltd/blob/main/photography/js/main.js"
click node_photo_content "https://github.com/davetechk/gateway_ltd/blob/main/photography/js/data.js"
click node_photo_gallery "https://github.com/davetechk/gateway_ltd/blob/main/photography/js/gallery.js"
click node_spaces_ui "https://github.com/davetechk/gateway_ltd/blob/main/spaces/js/main.js"
click node_spaces_content "https://github.com/davetechk/gateway_ltd/blob/main/spaces/js/data.js"
click node_studios_ui "https://github.com/davetechk/gateway_ltd/blob/main/studios/js/main.js"
click node_studios_content "https://github.com/davetechk/gateway_ltd/blob/main/studios/js/data.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_contact toneBlue
class node_academy_site,node_academy_auth,node_academy_payment toneAmber
class node_comms_ui,node_comms_content toneMint
class node_photo_home,node_photo_content,node_photo_gallery toneRose
class node_spaces_ui,node_spaces_content,node_visitor,node_supabase toneIndigo
class node_studios_ui,node_studios_content toneTeal
```

## Components

### Corporate presence

- [Corporate home](https://github.com/davetechk/gateway_ltd/blob/main/index.html): `index.html`
- [Contact page](https://github.com/davetechk/gateway_ltd/blob/main/contact.html): `contact.html`

### Academy

- [Academy site](https://github.com/davetechk/gateway_ltd/blob/main/academy/index.html): `academy/index.html`
- [Account flows](https://github.com/davetechk/gateway_ltd/blob/main/academy/auth/auth.js): `academy/auth/auth.js`
- [Academy payment](https://github.com/davetechk/gateway_ltd/blob/main/assets/js/payment.js): `assets/js/payment.js`

### Communications

- [Case studies](https://github.com/davetechk/gateway_ltd/blob/main/comms/js/main.js): `comms/js/main.js`
- [Case content](https://github.com/davetechk/gateway_ltd/blob/main/comms/js/data.js): `comms/js/data.js`

### Photography

- [Photography home](https://github.com/davetechk/gateway_ltd/blob/main/photography/js/main.js): `photography/js/main.js`
- [Album content](https://github.com/davetechk/gateway_ltd/blob/main/photography/js/data.js): `photography/js/data.js`
- [Gallery and lightbox](https://github.com/davetechk/gateway_ltd/blob/main/photography/js/gallery.js): `photography/js/gallery.js`

### Spaces

- [Space listings](https://github.com/davetechk/gateway_ltd/blob/main/spaces/js/main.js): `spaces/js/main.js`
- [Space content](https://github.com/davetechk/gateway_ltd/blob/main/spaces/js/data.js): `spaces/js/data.js`

### Studios

- [Studio portfolio](https://github.com/davetechk/gateway_ltd/blob/main/studios/js/main.js): `studios/js/main.js`
- [Project content](https://github.com/davetechk/gateway_ltd/blob/main/studios/js/data.js): `studios/js/data.js`

### Other components

- **Visitor**
- **Supabase Auth**

## Connections

- Visitor → Corporate home: visits
- Visitor → Academy site: browses
- Visitor → Case studies: browses
- Visitor → Photography home: browses
- Visitor → Space listings: browses
- Visitor → Studio portfolio: browses
- Case studies → Case content: reads cases (evidence: `comms/js/main.js`)
- Photography home → Album content: reads albums (evidence: `photography/js/main.js`)
- Gallery and lightbox → Photography home: uses helpers (evidence: `photography/js/gallery.js`)
- Gallery and lightbox → Album content: reads albums (evidence: `photography/js/gallery.js`)
- Space listings → Space content: reads spaces (evidence: `spaces/js/main.js`)
- Studio portfolio → Project content: reads works (evidence: `studios/js/main.js`)
- Academy site → Account flows: offers account pages
- Account flows → Supabase Auth: calls auth API (evidence: `academy/auth/auth.js`)
- Academy site → Academy payment: offers payment page
