# imranto/ezrahita architecture

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

- Interactive diagram: https://gitdiagram.com/imranto/ezrahita
- Repository: https://github.com/imranto/ezrahita

## Overview

Ezrahita is a responsive choir website. Visitors enter through the shared router and browse the home, choir, member, event, news, video, gallery and contact experiences; the site also provides a login and member-dashboard route. Page components use shared layout and reusable UI, with demonstration content sourced from a central data module. Gallery likes are stored locally, while page-view tracking and the public footer counter use optional GoatCounter configuration. Unsampled routes are grouped by documented capability; their internal behavior is not inferred.

Main entry points: [`src/App.tsx`](https://github.com/imranto/ezrahita/blob/main/src/App.tsx) (Route dispatcher), [`src/components/Layout.tsx`](https://github.com/imranto/ezrahita/blob/main/src/components/Layout.tsx) (Shared page layout), [`src/data.ts`](https://github.com/imranto/ezrahita/blob/main/src/data.ts) (Demonstration content), [`src/components/Footer.tsx`](https://github.com/imranto/ezrahita/blob/main/src/components/Footer.tsx) (Footer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Routing and shell"]
  node_app["Route dispatcher<br/>[App.tsx]"]
  node_layout["Shared page layout<br/>[Layout.tsx]"]
  node_header["Header navigation<br/>[Header.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_viewcount["View counter display"]
  node_navdata["Navigation definitions<br/>[nav.ts]"]
  node_notfound["Not found page<br/>[NotFound.tsx]"]
end

subgraph group_choir["Choir information"]
  node_home["Home page<br/>[Home.tsx]"]
  node_about["Choir introduction<br/>[About.tsx]"]
  node_voices["Voice sections<br/>[Voices.tsx]"]
  node_members["Member directory<br/>[Members.tsx]"]
  node_memberdetail["Member profile<br/>[MemberDetail.tsx]"]
  node_contact["Contact page<br/>[Contact.tsx]"]
end

subgraph group_stories["Events and stories"]
  node_events["Event listing<br/>[Events.tsx]"]
  node_eventdetail["Event detail<br/>[EventDetail.tsx]"]
  node_news["News listing<br/>[News.tsx]"]
  node_newsdetail["News article<br/>[NewsDetail.tsx]"]
end

subgraph group_media["Media and gallery"]
  node_videos["Video library<br/>[Videos.tsx]"]
  node_videodetail["Video detail<br/>[VideoDetail.tsx]"]
  node_gallery["Photo gallery<br/>[Gallery.tsx]"]
  node_lightbox["Photo lightbox<br/>[Lightbox.tsx]"]
end

subgraph group_member["Member access"]
  node_login["Member login<br/>[Login.tsx]"]
  node_dashboard["Member dashboard"]
end

node_visitor(("Site visitor"))
node_data["Demonstration content<br/>[data.ts]"]
node_goat["GoatCounter service"]

node_visitor -->|"opens routes"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_members
node_app -->|"routes to"| node_memberdetail
node_app -->|"routes to"| node_voices
node_app -->|"routes to"| node_events
node_app -->|"routes to"| node_eventdetail
node_app -->|"routes to"| node_news
node_app -->|"routes to"| node_newsdetail
node_app -->|"routes to"| node_videos
node_app -->|"routes to"| node_videodetail
node_app -->|"routes to"| node_gallery
node_app -->|"routes to"| node_contact
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_dashboard
node_app -->|"fallback route"| node_notfound
node_app -->|"tracks page views"| node_goat
node_home -->|"renders"| node_layout
node_about -->|"renders"| node_layout
node_members -->|"renders"| node_layout
node_memberdetail -->|"renders"| node_layout
node_voices -.->|"renders"| node_layout
node_events -.->|"renders"| node_layout
node_eventdetail -->|"renders"| node_layout
node_news -->|"renders"| node_layout
node_newsdetail -->|"renders"| node_layout
node_videos -->|"renders"| node_layout
node_videodetail -->|"renders"| node_layout
node_gallery -->|"renders"| node_layout
node_contact -->|"renders"| node_layout
node_notfound -->|"renders"| node_layout
node_login -.->|"links to"| node_dashboard
node_layout -->|"renders"| node_header
node_layout -->|"renders"| node_footer
node_header -->|"reads navigation"| node_navdata
node_footer -->|"reads navigation"| node_navdata
node_footer -->|"reads contact details"| node_data
node_footer -->|"renders"| node_viewcount
node_viewcount -->|"fetches public total"| node_goat
node_home -->|"reads content"| node_data
node_members -->|"filters members"| node_data
node_memberdetail -->|"reads profile"| node_data
node_voices -.->|"reads voice data"| node_data
node_events -.->|"reads event data"| node_data
node_eventdetail -->|"reads event"| node_data
node_news -->|"reads articles"| node_data
node_newsdetail -->|"reads article"| node_data

click node_app "https://github.com/imranto/ezrahita/blob/main/src/App.tsx"
click node_layout "https://github.com/imranto/ezrahita/blob/main/src/components/Layout.tsx"
click node_header "https://github.com/imranto/ezrahita/blob/main/src/components/Header.tsx"
click node_footer "https://github.com/imranto/ezrahita/blob/main/src/components/Footer.tsx"
click node_viewcount "https://github.com/imranto/ezrahita/blob/main/src/components/FooterViewCount.tsx"
click node_home "https://github.com/imranto/ezrahita/blob/main/src/pages/Home.tsx"
click node_about "https://github.com/imranto/ezrahita/blob/main/src/pages/About.tsx"
click node_voices "https://github.com/imranto/ezrahita/blob/main/src/pages/Voices.tsx"
click node_members "https://github.com/imranto/ezrahita/blob/main/src/pages/Members.tsx"
click node_memberdetail "https://github.com/imranto/ezrahita/blob/main/src/pages/MemberDetail.tsx"
click node_contact "https://github.com/imranto/ezrahita/blob/main/src/pages/Contact.tsx"
click node_events "https://github.com/imranto/ezrahita/blob/main/src/pages/Events.tsx"
click node_eventdetail "https://github.com/imranto/ezrahita/blob/main/src/pages/EventDetail.tsx"
click node_news "https://github.com/imranto/ezrahita/blob/main/src/pages/News.tsx"
click node_newsdetail "https://github.com/imranto/ezrahita/blob/main/src/pages/NewsDetail.tsx"
click node_videos "https://github.com/imranto/ezrahita/blob/main/src/pages/Videos.tsx"
click node_videodetail "https://github.com/imranto/ezrahita/blob/main/src/pages/VideoDetail.tsx"
click node_gallery "https://github.com/imranto/ezrahita/blob/main/src/pages/Gallery.tsx"
click node_lightbox "https://github.com/imranto/ezrahita/blob/main/src/components/Lightbox.tsx"
click node_data "https://github.com/imranto/ezrahita/blob/main/src/data.ts"
click node_navdata "https://github.com/imranto/ezrahita/blob/main/src/nav.ts"
click node_login "https://github.com/imranto/ezrahita/blob/main/src/pages/Login.tsx"
click node_dashboard "https://github.com/imranto/ezrahita/blob/main/src/pages/MemberDashboard.tsx"
click node_notfound "https://github.com/imranto/ezrahita/blob/main/src/pages/NotFound.tsx"

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_header,node_footer,node_viewcount,node_navdata,node_notfound toneBlue
class node_home,node_about,node_voices,node_members,node_memberdetail,node_contact toneAmber
class node_events,node_eventdetail,node_news,node_newsdetail toneMint
class node_videos,node_videodetail,node_gallery,node_lightbox toneRose
class node_login,node_dashboard,node_visitor,node_goat toneIndigo
class node_data toneTeal
```

## Components

### Routing and shell

- [Route dispatcher](https://github.com/imranto/ezrahita/blob/main/src/App.tsx): `src/App.tsx`
- [Shared page layout](https://github.com/imranto/ezrahita/blob/main/src/components/Layout.tsx): `src/components/Layout.tsx`
- [Header navigation](https://github.com/imranto/ezrahita/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Footer](https://github.com/imranto/ezrahita/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`
- [View counter display](https://github.com/imranto/ezrahita/blob/main/src/components/FooterViewCount.tsx): `src/components/FooterViewCount.tsx`
- [Navigation definitions](https://github.com/imranto/ezrahita/blob/main/src/nav.ts): `src/nav.ts`
- [Not found page](https://github.com/imranto/ezrahita/blob/main/src/pages/NotFound.tsx): `src/pages/NotFound.tsx`

### Choir information

- [Home page](https://github.com/imranto/ezrahita/blob/main/src/pages/Home.tsx): `src/pages/Home.tsx`
- [Choir introduction](https://github.com/imranto/ezrahita/blob/main/src/pages/About.tsx): `src/pages/About.tsx`
- [Voice sections](https://github.com/imranto/ezrahita/blob/main/src/pages/Voices.tsx): `src/pages/Voices.tsx`
- [Member directory](https://github.com/imranto/ezrahita/blob/main/src/pages/Members.tsx): `src/pages/Members.tsx`
- [Member profile](https://github.com/imranto/ezrahita/blob/main/src/pages/MemberDetail.tsx): `src/pages/MemberDetail.tsx`
- [Contact page](https://github.com/imranto/ezrahita/blob/main/src/pages/Contact.tsx): `src/pages/Contact.tsx`

### Events and stories

- [Event listing](https://github.com/imranto/ezrahita/blob/main/src/pages/Events.tsx): `src/pages/Events.tsx`
- [Event detail](https://github.com/imranto/ezrahita/blob/main/src/pages/EventDetail.tsx): `src/pages/EventDetail.tsx`
- [News listing](https://github.com/imranto/ezrahita/blob/main/src/pages/News.tsx): `src/pages/News.tsx`
- [News article](https://github.com/imranto/ezrahita/blob/main/src/pages/NewsDetail.tsx): `src/pages/NewsDetail.tsx`

### Media and gallery

- [Video library](https://github.com/imranto/ezrahita/blob/main/src/pages/Videos.tsx): `src/pages/Videos.tsx`
- [Video detail](https://github.com/imranto/ezrahita/blob/main/src/pages/VideoDetail.tsx): `src/pages/VideoDetail.tsx`
- [Photo gallery](https://github.com/imranto/ezrahita/blob/main/src/pages/Gallery.tsx): `src/pages/Gallery.tsx`
- [Photo lightbox](https://github.com/imranto/ezrahita/blob/main/src/components/Lightbox.tsx): `src/components/Lightbox.tsx`

### Member access

- [Member login](https://github.com/imranto/ezrahita/blob/main/src/pages/Login.tsx): `src/pages/Login.tsx`
- [Member dashboard](https://github.com/imranto/ezrahita/blob/main/src/pages/MemberDashboard.tsx): `src/pages/MemberDashboard.tsx`

### Other components

- **Site visitor**
- [Demonstration content](https://github.com/imranto/ezrahita/blob/main/src/data.ts): `src/data.ts`
- **GoatCounter service**

## Connections

- Site visitor → Route dispatcher: opens routes (evidence: `src/App.tsx`)
- Route dispatcher → Home page: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Choir introduction: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Member directory: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Member profile: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Voice sections: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Event listing: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Event detail: routes to (evidence: `src/App.tsx`)
- Route dispatcher → News listing: routes to (evidence: `src/App.tsx`)
- Route dispatcher → News article: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Video library: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Video detail: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Photo gallery: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Contact page: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Member login: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Member dashboard: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Not found page: fallback route (evidence: `src/App.tsx`)
- Route dispatcher → GoatCounter service: tracks page views (evidence: `src/App.tsx`)
- Home page → Shared page layout: renders (evidence: `src/pages/Home.tsx`)
- Choir introduction → Shared page layout: renders (evidence: `src/pages/About.tsx`)
- Member directory → Shared page layout: renders (evidence: `src/pages/Members.tsx`)
- Member profile → Shared page layout: renders (evidence: `src/pages/MemberDetail.tsx`)
- Voice sections → Shared page layout: renders (evidence: `src/pages/Voices.tsx`)
- Event listing → Shared page layout: renders
- Event detail → Shared page layout: renders (evidence: `src/pages/EventDetail.tsx`)
- News listing → Shared page layout: renders (evidence: `src/pages/News.tsx`)
- News article → Shared page layout: renders (evidence: `src/pages/NewsDetail.tsx`)
- Video library → Shared page layout: renders (evidence: `src/pages/Videos.tsx`)
- Video detail → Shared page layout: renders (evidence: `src/pages/VideoDetail.tsx`)
- Photo gallery → Shared page layout: renders (evidence: `src/pages/Gallery.tsx`)
- Contact page → Shared page layout: renders (evidence: `src/pages/Contact.tsx`)
- Not found page → Shared page layout: renders (evidence: `src/pages/NotFound.tsx`)
- Member login → Member dashboard: links to
- Shared page layout → Header navigation: renders (evidence: `src/components/Layout.tsx`)
- Shared page layout → Footer: renders (evidence: `src/components/Layout.tsx`)
- Header navigation → Navigation definitions: reads navigation (evidence: `src/components/Header.tsx`)
- Footer → Navigation definitions: reads navigation (evidence: `src/components/Footer.tsx`)
- Footer → Demonstration content: reads contact details (evidence: `src/components/Footer.tsx`)
- Footer → View counter display: renders (evidence: `src/components/Footer.tsx`)
- View counter display → GoatCounter service: fetches public total (evidence: `README.md`)
- Home page → Demonstration content: reads content (evidence: `src/pages/Home.tsx`)
- Member directory → Demonstration content: filters members (evidence: `src/pages/Members.tsx`)
- Member profile → Demonstration content: reads profile (evidence: `src/pages/MemberDetail.tsx`)
- Voice sections → Demonstration content: reads voice data (evidence: `src/pages/Voices.tsx`)
- Event listing → Demonstration content: reads event data
- Event detail → Demonstration content: reads event (evidence: `src/pages/EventDetail.tsx`)
- News listing → Demonstration content: reads articles (evidence: `src/pages/News.tsx`)
- News article → Demonstration content: reads article (evidence: `src/pages/NewsDetail.tsx`)
