# daerobi-devs/web-profiel-smpn5cibubur architecture

> Architecture diagram of the GitHub repository daerobi-devs/web-profiel-smpn5cibubur, 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/daerobi-devs/web-profiel-smpn5cibubur
- Repository: https://github.com/daerobi-devs/web-profiel-smpn5cibubur

## Overview

SMP Negeri 5 Cibeber’s public school profile and information portal serves visitors seeking school information, news, activities, admissions, and contact details. Visitors browse the public pages; page-level data loaders fetch published content and settings from Supabase, with fallbacks, then render domain-specific views and interactive components. The README also documents facilities, gallery, achievements, staff, extracurriculars, and admissions capabilities. Only sampled source and README-described behavior are represented; several page implementations and data-access functions were not fully shown, so their internal connections are omitted.

Main entry points: [`lib/supabaseData.ts`](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/lib/supabaseData.ts) (Supabase data access), [`app/(public)/kontak/page.tsx`](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/kontak/page.tsx) (Contact and location), [`app/(public)/galeri/page.tsx`](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/galeri/page.tsx) (Photo gallery), [`app/(public)/agenda/page.tsx`](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/agenda/page.tsx) (Event calendar)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public portal"]
  node_home["Homepage<br/>[page.tsx]"]
  node_profile["School profile<br/>[page.tsx]"]
  node_history["School history<br/>[page.tsx]"]
  node_contact["Contact and location<br/>[page.tsx]"]
  node_contactform["Contact form<br/>[ContactForm.tsx]"]
  node_shell["Public layout<br/>[layout.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

subgraph group_content["School information"]
  node_teachers["Teacher directory"]
  node_facilities["Facilities<br/>[page.tsx]"]
  node_gallery["Photo gallery<br/>[page.tsx]"]
  node_lightbox["Gallery lightbox"]
  node_ppdb["Admissions info<br/>[page.tsx]"]
end

subgraph group_activities["Activities and news"]
  node_agenda["Event calendar<br/>[page.tsx]"]
  node_agendalist["Agenda display<br/>[AgendaList.tsx]"]
  node_news["News listing<br/>[page.tsx]"]
  node_search["News search"]
  node_article["Article detail<br/>[page.tsx]"]
  node_prestige["Achievements<br/>[page.tsx]"]
  node_achievementlist["Achievement archive"]
  node_clubs["Extracurricular directory<br/>[page.tsx]"]
  node_clublist["Activity filters<br/>[EkskulList.tsx]"]
end

subgraph group_data["Data and presentation"]
  node_staffdata["Staff records<br/>[staffData.ts]"]
  node_agendadata["Agenda fallback data<br/>[agenda-data.ts]"]
  node_clubdata["Activity fallback data<br/>[ekskul-data.ts]"]
  node_supabase["Supabase data access<br/>[supabaseData.ts]"]
  node_database[("Supabase database")]
end

node_visitor(("Website visitor"))

node_visitor -->|"opens"| node_home
node_visitor -->|"browses"| node_profile
node_visitor -->|"browses"| node_facilities
node_visitor -->|"browses"| node_gallery
node_visitor -->|"views"| node_ppdb
node_visitor -->|"views"| node_agenda
node_visitor -->|"searches"| node_news
node_visitor -->|"reads"| node_article
node_visitor -->|"browses"| node_prestige
node_visitor -->|"browses"| node_clubs
node_visitor -->|"contacts"| node_contact
node_profile -->|"renders"| node_teachers
node_teachers -->|"uses fallback"| node_staffdata
node_agenda -->|"loads agenda"| node_supabase
node_agenda -->|"renders"| node_agendalist
node_agendalist -->|"uses fallback"| node_agendadata
node_news -->|"loads articles"| node_supabase
node_news -->|"renders"| node_search
node_article -.->|"loads article"| node_supabase
node_facilities -->|"loads facilities"| node_supabase
node_gallery -->|"loads images"| node_supabase
node_gallery -->|"renders"| node_lightbox
node_prestige -->|"loads achievements"| node_supabase
node_prestige -->|"renders"| node_achievementlist
node_clubs -->|"loads activities"| node_supabase
node_clubs -->|"renders"| node_clublist
node_clublist -->|"uses fallback"| node_clubdata
node_contact -->|"loads settings"| node_supabase
node_contact -->|"renders"| node_contactform
node_home -->|"loads content"| node_supabase
node_supabase -->|"fetches records"| node_database
node_shell -.->|"includes"| node_navbar
node_shell -.->|"includes"| node_footer

click node_home "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/page.tsx"
click node_profile "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/profil/page.tsx"
click node_history "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/profil/sejarah/page.tsx"
click node_teachers "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/ui/TeacherDirectory.tsx"
click node_staffdata "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/lib/staffData.ts"
click node_facilities "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/fasilitas/page.tsx"
click node_gallery "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/galeri/page.tsx"
click node_lightbox "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/ui/GalleryLightbox.tsx"
click node_ppdb "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/ppdb/page.tsx"
click node_agenda "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/agenda/page.tsx"
click node_agendalist "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/ui/AgendaList.tsx"
click node_agendadata "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/lib/agenda-data.ts"
click node_news "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/berita/page.tsx"
click node_search "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/ui/ArticleSearchFilter.tsx"
click node_article "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/berita/%5Bslug%5D/page.tsx"
click node_prestige "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/prestasi/page.tsx"
click node_achievementlist "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/ui/PrestasiArticleList.tsx"
click node_clubs "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/ekstrakurikuler/page.tsx"
click node_clublist "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/ui/EkskulList.tsx"
click node_clubdata "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/lib/ekskul-data.ts"
click node_contact "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/kontak/page.tsx"
click node_contactform "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/ui/ContactForm.tsx"
click node_supabase "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/lib/supabaseData.ts"
click node_shell "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/layout.tsx"
click node_navbar "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/layout/Navbar.tsx"
click node_footer "https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/layout/Footer.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_home,node_profile,node_history,node_contact,node_contactform,node_shell,node_navbar,node_footer toneBlue
class node_teachers,node_facilities,node_gallery,node_lightbox,node_ppdb toneAmber
class node_agenda,node_agendalist,node_news,node_search,node_article,node_prestige,node_achievementlist,node_clubs,node_clublist toneMint
class node_staffdata,node_agendadata,node_clubdata,node_supabase,node_database toneRose
class node_visitor toneIndigo
```

## Components

### Public portal

- [Homepage](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/page.tsx): `app/(public)/page.tsx`
- [School profile](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/profil/page.tsx): `app/(public)/profil/page.tsx`
- [School history](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/profil/sejarah/page.tsx): `app/(public)/profil/sejarah/page.tsx`
- [Contact and location](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/kontak/page.tsx): `app/(public)/kontak/page.tsx`
- [Contact form](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/ui/ContactForm.tsx): `components/ui/ContactForm.tsx`
- [Public layout](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/layout.tsx): `app/(public)/layout.tsx`
- [Navigation](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/layout/Navbar.tsx): `components/layout/Navbar.tsx`
- [Footer](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/layout/Footer.tsx): `components/layout/Footer.tsx`

### School information

- [Teacher directory](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/ui/TeacherDirectory.tsx): `components/ui/TeacherDirectory.tsx`
- [Facilities](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/fasilitas/page.tsx): `app/(public)/fasilitas/page.tsx`
- [Photo gallery](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/galeri/page.tsx): `app/(public)/galeri/page.tsx`
- [Gallery lightbox](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/ui/GalleryLightbox.tsx): `components/ui/GalleryLightbox.tsx`
- [Admissions info](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/ppdb/page.tsx): `app/(public)/ppdb/page.tsx`

### Activities and news

- [Event calendar](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/agenda/page.tsx): `app/(public)/agenda/page.tsx`
- [Agenda display](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/ui/AgendaList.tsx): `components/ui/AgendaList.tsx`
- [News listing](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/berita/page.tsx): `app/(public)/berita/page.tsx`
- [News search](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/ui/ArticleSearchFilter.tsx): `components/ui/ArticleSearchFilter.tsx`
- [Article detail](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/berita/%5Bslug%5D/page.tsx): `app/(public)/berita/[slug]/page.tsx`
- [Achievements](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/prestasi/page.tsx): `app/(public)/prestasi/page.tsx`
- [Achievement archive](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/ui/PrestasiArticleList.tsx): `components/ui/PrestasiArticleList.tsx`
- [Extracurricular directory](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/app/(public)/ekstrakurikuler/page.tsx): `app/(public)/ekstrakurikuler/page.tsx`
- [Activity filters](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/components/ui/EkskulList.tsx): `components/ui/EkskulList.tsx`

### Data and presentation

- [Staff records](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/lib/staffData.ts): `lib/staffData.ts`
- [Agenda fallback data](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/lib/agenda-data.ts): `lib/agenda-data.ts`
- [Activity fallback data](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/lib/ekskul-data.ts): `lib/ekskul-data.ts`
- [Supabase data access](https://github.com/daerobi-devs/web-profiel-smpn5cibubur/blob/main/lib/supabaseData.ts): `lib/supabaseData.ts`
- **Supabase database**

### Other components

- **Website visitor**

## Connections

- Website visitor → Homepage: opens (evidence: `README.md`)
- Website visitor → School profile: browses (evidence: `README.md`)
- Website visitor → Facilities: browses (evidence: `README.md`)
- Website visitor → Photo gallery: browses (evidence: `README.md`)
- Website visitor → Admissions info: views (evidence: `README.md`)
- Website visitor → Event calendar: views (evidence: `README.md`)
- Website visitor → News listing: searches (evidence: `README.md`)
- Website visitor → Article detail: reads (evidence: `README.md`)
- Website visitor → Achievements: browses (evidence: `README.md`)
- Website visitor → Extracurricular directory: browses (evidence: `README.md`)
- Website visitor → Contact and location: contacts (evidence: `README.md`)
- School profile → Teacher directory: renders (evidence: `README.md`)
- Teacher directory → Staff records: uses fallback (evidence: `components/ui/TeacherDirectory.tsx`)
- Event calendar → Supabase data access: loads agenda (evidence: `app/(public)/agenda/page.tsx`)
- Event calendar → Agenda display: renders (evidence: `app/(public)/agenda/page.tsx`)
- Agenda display → Agenda fallback data: uses fallback (evidence: `components/ui/AgendaList.tsx`)
- News listing → Supabase data access: loads articles (evidence: `app/(public)/berita/page.tsx`)
- News listing → News search: renders (evidence: `app/(public)/berita/page.tsx`)
- Article detail → Supabase data access: loads article
- Facilities → Supabase data access: loads facilities (evidence: `app/(public)/fasilitas/page.tsx`)
- Photo gallery → Supabase data access: loads images (evidence: `app/(public)/galeri/page.tsx`)
- Photo gallery → Gallery lightbox: renders (evidence: `app/(public)/galeri/page.tsx`)
- Achievements → Supabase data access: loads achievements (evidence: `app/(public)/prestasi/page.tsx`)
- Achievements → Achievement archive: renders (evidence: `app/(public)/prestasi/page.tsx`)
- Extracurricular directory → Supabase data access: loads activities (evidence: `app/(public)/ekstrakurikuler/page.tsx`)
- Extracurricular directory → Activity filters: renders (evidence: `app/(public)/ekstrakurikuler/page.tsx`)
- Activity filters → Activity fallback data: uses fallback (evidence: `components/ui/EkskulList.tsx`)
- Contact and location → Supabase data access: loads settings (evidence: `app/(public)/kontak/page.tsx`)
- Contact and location → Contact form: renders (evidence: `app/(public)/kontak/page.tsx`)
- Homepage → Supabase data access: loads content (evidence: `app/(public)/page.tsx`)
- Supabase data access → Supabase database: fetches records (evidence: `lib/supabaseData.ts`)
- Public layout → Navigation: includes
- Public layout → Footer: includes
