# encryptour/encryptour-terbaru architecture

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

- Interactive diagram: https://gitdiagram.com/encryptour/encryptour-terbaru
- Repository: https://github.com/encryptour/encryptour-terbaru

## Overview

ENCRYPTOUR is a cohort website whose main workflow serves a data-backed home page, gallery, and searchable member directory, alongside a static cohort-identity page. Route components fetch data through shared query functions, which use separate Neon databases for gallery and biodata. The graph also preserves the documented birthday easter egg. Unsampled routes and some shared UI connections are included only where README or SOURCE INDEX evidence supports them.

Main entry points: [`src/app/page.tsx`](https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/page.tsx) (Home route), [`src/app/biodata/page.tsx`](https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/biodata/page.tsx) (Biodata route), [`src/components/shell.tsx`](https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/shell.tsx) (Page shell), [`src/lib/queries.ts`](https://github.com/encryptour/encryptour-terbaru/blob/main/src/lib/queries.ts) (Query layer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routes["Site routes"]
  node_home["Home route<br/>[page.tsx]"]
  node_gallery_route["Gallery route<br/>[page.tsx]"]
  node_gallery_view["Gallery browsing<br/>[gallery-view.tsx]"]
  node_biodata_route["Biodata route<br/>[page.tsx]"]
  node_biodata_view["Member directory<br/>[biodata-view.tsx]"]
  node_member_card["Member cards<br/>[mahasiswa-card.tsx]"]
  node_member_modal["Member profile modal"]
  node_secret["Birthday easter egg<br/>[page.tsx]"]
end

subgraph group_ui["Shared interface"]
  node_shell["Page shell<br/>[shell.tsx]"]
  node_navbar["Navigation<br/>[navbar.tsx]"]
  node_footer["Footer<br/>[footer.tsx]"]
  node_loading_gate["Loading gate<br/>[loading-gate.tsx]"]
  node_hero["Hero carousel<br/>[hero-carousel.tsx]"]
  node_about["About carousel<br/>[about-carousel.tsx]"]
  node_gallery_card["Gallery cards<br/>[gallery-card.tsx]"]
  node_gallery_swiper["Gallery swiper<br/>[gallery-swiper.tsx]"]
  node_mobile_gallery["Mobile gallery<br/>[mobile-gallery.tsx]"]
end

subgraph group_data["Data access"]
  node_queries["Query layer<br/>[queries.ts]"]
  node_db_client["Neon clients<br/>[db.ts]"]
  node_gallery_db[("Gallery Neon DB")]
  node_biodata_db[("Biodata Neon DB")]
  node_birthday["Birthday helper<br/>[birthday.ts]"]
end

subgraph group_identity["Cohort identity"]
  node_identity_page["Identity page<br/>[page.tsx]"]
  node_part_explorer["Artwork explorer<br/>[part-explorer.tsx]"]
  node_parts_data["Artwork parts<br/>[parts-data.ts]"]
end

node_visitor(("Site visitor"))

node_visitor -->|"opens"| node_home
node_visitor -->|"opens"| node_gallery_route
node_visitor -->|"opens"| node_biodata_route
node_visitor -->|"opens"| node_identity_page
node_home -->|"loads home data"| node_queries
node_home -->|"renders slides"| node_hero
node_home -->|"renders about"| node_about
node_home -->|"renders previews"| node_gallery_card
node_home -->|"renders mobile gallery"| node_mobile_gallery
node_gallery_route -->|"loads gallery data"| node_queries
node_gallery_route -->|"supplies results"| node_gallery_view
node_gallery_view -->|"renders items"| node_gallery_card
node_gallery_view -->|"renders carousel"| node_gallery_swiper
node_mobile_gallery -->|"renders swiper"| node_gallery_swiper
node_biodata_route -->|"loads members"| node_queries
node_biodata_route -->|"supplies members"| node_biodata_view
node_biodata_view -->|"renders members"| node_member_card
node_biodata_view -->|"opens profile"| node_member_modal
node_biodata_route -->|"redirects easter egg"| node_secret
node_secret -.->|"loads birthdays"| node_queries
node_queries -->|"calculates birthdays"| node_birthday
node_identity_page -->|"renders artwork explorer"| node_part_explorer
node_identity_page -->|"uses artwork parts"| node_parts_data
node_part_explorer -->|"reads part data"| node_parts_data
node_home -->|"uses shell"| node_shell
node_gallery_route -->|"uses shell"| node_shell
node_biodata_route -->|"uses shell"| node_shell
node_identity_page -->|"uses shell"| node_shell
node_shell -->|"renders navigation"| node_navbar
node_shell -->|"renders footer"| node_footer
node_home -->|"wraps page content"| node_loading_gate
node_gallery_route -->|"wraps page content"| node_loading_gate
node_biodata_route -->|"wraps page content"| node_loading_gate
node_identity_page -->|"wraps page content"| node_loading_gate
node_queries -->|"uses clients"| node_db_client
node_db_client -.->|"connects to"| node_gallery_db
node_db_client -.->|"connects to"| node_biodata_db

click node_home "https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/page.tsx"
click node_gallery_route "https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/gallery/page.tsx"
click node_gallery_view "https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/gallery/gallery-view.tsx"
click node_biodata_route "https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/biodata/page.tsx"
click node_biodata_view "https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/biodata/biodata-view.tsx"
click node_member_card "https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/biodata/mahasiswa-card.tsx"
click node_member_modal "https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/biodata/mahasiswa-modal.tsx"
click node_secret "https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/secret/page.tsx"
click node_identity_page "https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/identity/page.tsx"
click node_part_explorer "https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/identity/part-explorer.tsx"
click node_parts_data "https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/identity/parts-data.ts"
click node_shell "https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/shell.tsx"
click node_navbar "https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/navbar.tsx"
click node_footer "https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/footer.tsx"
click node_loading_gate "https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/loading-gate.tsx"
click node_hero "https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/hero-carousel.tsx"
click node_about "https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/about-carousel.tsx"
click node_gallery_card "https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/gallery-card.tsx"
click node_gallery_swiper "https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/gallery-swiper.tsx"
click node_mobile_gallery "https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/mobile-gallery.tsx"
click node_queries "https://github.com/encryptour/encryptour-terbaru/blob/main/src/lib/queries.ts"
click node_db_client "https://github.com/encryptour/encryptour-terbaru/blob/main/src/lib/db.ts"
click node_birthday "https://github.com/encryptour/encryptour-terbaru/blob/main/src/lib/birthday.ts"

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_gallery_route,node_gallery_view,node_biodata_route,node_biodata_view,node_member_card,node_member_modal,node_secret toneBlue
class node_shell,node_navbar,node_footer,node_loading_gate,node_hero,node_about,node_gallery_card,node_gallery_swiper,node_mobile_gallery toneAmber
class node_queries,node_db_client,node_gallery_db,node_biodata_db,node_birthday toneMint
class node_identity_page,node_part_explorer,node_parts_data toneRose
class node_visitor toneIndigo
```

## Components

### Site routes

- [Home route](https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Gallery route](https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/gallery/page.tsx): `src/app/gallery/page.tsx`
- [Gallery browsing](https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/gallery/gallery-view.tsx): `src/app/gallery/gallery-view.tsx`
- [Biodata route](https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/biodata/page.tsx): `src/app/biodata/page.tsx`
- [Member directory](https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/biodata/biodata-view.tsx): `src/app/biodata/biodata-view.tsx`
- [Member cards](https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/biodata/mahasiswa-card.tsx): `src/app/biodata/mahasiswa-card.tsx`
- [Member profile modal](https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/biodata/mahasiswa-modal.tsx): `src/app/biodata/mahasiswa-modal.tsx`
- [Birthday easter egg](https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/secret/page.tsx): `src/app/secret/page.tsx`

### Shared interface

- [Page shell](https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/shell.tsx): `src/components/shell.tsx`
- [Navigation](https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/navbar.tsx): `src/components/navbar.tsx`
- [Footer](https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/footer.tsx): `src/components/footer.tsx`
- [Loading gate](https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/loading-gate.tsx): `src/components/loading-gate.tsx`
- [Hero carousel](https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/hero-carousel.tsx): `src/components/hero-carousel.tsx`
- [About carousel](https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/about-carousel.tsx): `src/components/about-carousel.tsx`
- [Gallery cards](https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/gallery-card.tsx): `src/components/gallery-card.tsx`
- [Gallery swiper](https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/gallery-swiper.tsx): `src/components/gallery-swiper.tsx`
- [Mobile gallery](https://github.com/encryptour/encryptour-terbaru/blob/main/src/components/mobile-gallery.tsx): `src/components/mobile-gallery.tsx`

### Data access

- [Query layer](https://github.com/encryptour/encryptour-terbaru/blob/main/src/lib/queries.ts): `src/lib/queries.ts`
- [Neon clients](https://github.com/encryptour/encryptour-terbaru/blob/main/src/lib/db.ts): `src/lib/db.ts`
- **Gallery Neon DB**
- **Biodata Neon DB**
- [Birthday helper](https://github.com/encryptour/encryptour-terbaru/blob/main/src/lib/birthday.ts): `src/lib/birthday.ts`

### Cohort identity

- [Identity page](https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/identity/page.tsx): `src/app/identity/page.tsx`
- [Artwork explorer](https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/identity/part-explorer.tsx): `src/app/identity/part-explorer.tsx`
- [Artwork parts](https://github.com/encryptour/encryptour-terbaru/blob/main/src/app/identity/parts-data.ts): `src/app/identity/parts-data.ts`

### Other components

- **Site visitor**

## Connections

- Site visitor → Home route: opens (evidence: `README.md`)
- Site visitor → Gallery route: opens (evidence: `README.md`)
- Site visitor → Biodata route: opens (evidence: `README.md`)
- Site visitor → Identity page: opens (evidence: `README.md`)
- Home route → Query layer: loads home data (evidence: `src/app/page.tsx`)
- Home route → Hero carousel: renders slides (evidence: `src/app/page.tsx`)
- Home route → About carousel: renders about (evidence: `src/app/page.tsx`)
- Home route → Gallery cards: renders previews (evidence: `src/app/page.tsx`)
- Home route → Mobile gallery: renders mobile gallery (evidence: `src/app/page.tsx`)
- Gallery route → Query layer: loads gallery data (evidence: `src/app/gallery/page.tsx`)
- Gallery route → Gallery browsing: supplies results (evidence: `src/app/gallery/page.tsx`)
- Gallery browsing → Gallery cards: renders items (evidence: `src/app/gallery/gallery-view.tsx`)
- Gallery browsing → Gallery swiper: renders carousel (evidence: `src/app/gallery/gallery-view.tsx`)
- Mobile gallery → Gallery swiper: renders swiper (evidence: `src/components/mobile-gallery.tsx`)
- Biodata route → Query layer: loads members (evidence: `src/app/biodata/page.tsx`)
- Biodata route → Member directory: supplies members (evidence: `src/app/biodata/page.tsx`)
- Member directory → Member cards: renders members (evidence: `src/app/biodata/biodata-view.tsx`)
- Member directory → Member profile modal: opens profile (evidence: `src/app/biodata/biodata-view.tsx`)
- Biodata route → Birthday easter egg: redirects easter egg (evidence: `src/app/biodata/page.tsx`)
- Birthday easter egg → Query layer: loads birthdays
- Query layer → Birthday helper: calculates birthdays (evidence: `src/lib/queries.ts`)
- Identity page → Artwork explorer: renders artwork explorer (evidence: `src/app/identity/page.tsx`)
- Identity page → Artwork parts: uses artwork parts (evidence: `src/app/identity/page.tsx`)
- Artwork explorer → Artwork parts: reads part data (evidence: `src/app/identity/part-explorer.tsx`)
- Home route → Page shell: uses shell (evidence: `src/app/page.tsx`)
- Gallery route → Page shell: uses shell (evidence: `src/app/gallery/page.tsx`)
- Biodata route → Page shell: uses shell (evidence: `src/app/biodata/page.tsx`)
- Identity page → Page shell: uses shell (evidence: `src/app/identity/page.tsx`)
- Page shell → Navigation: renders navigation (evidence: `src/components/shell.tsx`)
- Page shell → Footer: renders footer (evidence: `src/components/shell.tsx`)
- Home route → Loading gate: wraps page content (evidence: `src/app/page.tsx`)
- Gallery route → Loading gate: wraps page content (evidence: `src/app/gallery/page.tsx`)
- Biodata route → Loading gate: wraps page content (evidence: `src/app/biodata/page.tsx`)
- Identity page → Loading gate: wraps page content (evidence: `src/app/identity/page.tsx`)
- Query layer → Neon clients: uses clients (evidence: `src/lib/queries.ts`)
- Neon clients → Gallery Neon DB: connects to (evidence: `README.md`)
- Neon clients → Biodata Neon DB: connects to (evidence: `README.md`)
