How daerobi-devs/web-profiel-smpn5cibubur works
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: supabaseData.ts Supabase data access · kontak/page.tsx Contact and location · galeri/page.tsx Photo gallery · agenda/page.tsx Event calendar
Components 28
Public portal
- Homepage
app/(public)/page.tsx - School profile
app/(public)/profil/page.tsx - School history
app/(public)/profil/sejarah/page.tsx - Contact and location
app/(public)/kontak/page.tsx - Contact form
components/ui/ContactForm.tsx - Public layout
app/(public)/layout.tsx - Navigation
components/layout/Navbar.tsx - Footer
components/layout/Footer.tsx
School information
- Teacher directory
components/ui/TeacherDirectory.tsx - Facilities
app/(public)/fasilitas/page.tsx - Photo gallery
app/(public)/galeri/page.tsx - Gallery lightbox
components/ui/GalleryLightbox.tsx - Admissions info
app/(public)/ppdb/page.tsx
Activities and news
- Event calendar
app/(public)/agenda/page.tsx - Agenda display
components/ui/AgendaList.tsx - News listing
app/(public)/berita/page.tsx - News search
components/ui/ArticleSearchFilter.tsx - Article detail
app/(public)/berita/[slug]/page.tsx - Achievements
app/(public)/prestasi/page.tsx - Achievement archive
components/ui/PrestasiArticleList.tsx - Extracurricular directory
app/(public)/ekstrakurikuler/page.tsx - Activity filters
components/ui/EkskulList.tsx
Data and presentation
- Staff records
lib/staffData.ts - Agenda fallback data
lib/agenda-data.ts - Activity fallback data
lib/ekskul-data.ts - Supabase data access
lib/supabaseData.ts - Supabase database
Other components
- Website visitor
Connections 33
- Website visitor → Homepage: opens
README.md - Website visitor → School profile: browses
README.md - Website visitor → Facilities: browses
README.md - Website visitor → Photo gallery: browses
README.md - Website visitor → Admissions info: views
README.md - Website visitor → Event calendar: views
README.md - Website visitor → News listing: searches
README.md - Website visitor → Article detail: reads
README.md - Website visitor → Achievements: browses
README.md - Website visitor → Extracurricular directory: browses
README.md - Website visitor → Contact and location: contacts
README.md - School profile → Teacher directory: renders
README.md - Teacher directory → Staff records: uses fallback
components/ui/TeacherDirectory.tsx - Event calendar → Supabase data access: loads agenda
app/(public)/agenda/page.tsx - Event calendar → Agenda display: renders
app/(public)/agenda/page.tsx - Agenda display → Agenda fallback data: uses fallback
components/ui/AgendaList.tsx - News listing → Supabase data access: loads articles
app/(public)/berita/page.tsx - News listing → News search: renders
app/(public)/berita/page.tsx - Article detail → Supabase data access: loads article
- Facilities → Supabase data access: loads facilities
app/(public)/fasilitas/page.tsx - Photo gallery → Supabase data access: loads images
app/(public)/galeri/page.tsx - Photo gallery → Gallery lightbox: renders
app/(public)/galeri/page.tsx - Achievements → Supabase data access: loads achievements
app/(public)/prestasi/page.tsx - Achievements → Achievement archive: renders
app/(public)/prestasi/page.tsx - Extracurricular directory → Supabase data access: loads activities
app/(public)/ekstrakurikuler/page.tsx - Extracurricular directory → Activity filters: renders
app/(public)/ekstrakurikuler/page.tsx - Activity filters → Activity fallback data: uses fallback
components/ui/EkskulList.tsx - Contact and location → Supabase data access: loads settings
app/(public)/kontak/page.tsx - Contact and location → Contact form: renders
app/(public)/kontak/page.tsx - Homepage → Supabase data access: loads content
app/(public)/page.tsx - Supabase data access → Supabase database: fetches records
lib/supabaseData.ts - Public layout → Navigation: includes
- Public layout → Footer: includes