How putrasaka/angkatan-khalid-bin-walid works
This is a public alumni-memory site for the Khalid Bin Walid cohort. Visitors enter through the login overlay, then browse a single-page experience: cohort introduction, photo moments, student biodata, graduation records, school-year comparisons, and video memories. A shared data context loads and maps cohort data from Supabase, with local dummy data available in the application. Source excerpts show the main composition and data-fetching path; some component behavior is inferred only from the source index, so unverified relationships are omitted.
Main entry points: DataContext.tsx Shared data context · UserView.tsx Page composition · App.tsx Application shell · HomeSection.tsx Cohort home
Components 22
App shell
- React entry
src/main.tsx - Application shell
src/App.tsx - Visitor login
src/components/LoginOverlay.tsx - Navigation
src/components/Navbar.tsx - Loading status
src/components/LoadingScreen.tsx
Alumni experience
- Page composition
src/components/UserView.tsx - Cohort home
src/components/HomeSection.tsx - Photo moments
src/components/MomentsSection.tsx - Student biodata
src/components/BiodataSection.tsx - Graduation records
src/components/GraduationSection.tsx - School comparison
src/components/BeforeAfterSection.tsx - Video memories
src/components/VideoMomentsSection.tsx - Cohort footer
src/components/Footer.tsx
Data access
- Shared data context
src/context/DataContext.tsx - Fallback cohort data
src/data/dummyData.ts - Row mappers
src/lib/mappers.ts - Supabase client
src/lib/supabase.ts
Media viewers
- Student detail modal
src/components/StudentDetailModal.tsx - Photo lightbox
src/components/PhotoLightboxModal.tsx - Video player
src/components/VideoPlayerModal.tsx
Other components
- Visitor
- Supabase service
Connections 32
- React entry → Application shell: renders
src/main.tsx - Application shell → Shared data context: provides data
src/App.tsx - Application shell → Visitor login: renders
src/App.tsx - Application shell → Navigation: renders
src/App.tsx - Application shell → Loading status: renders
src/App.tsx - Application shell → Page composition: renders
src/App.tsx - Visitor → Visitor login: enters details
- Visitor login → Application shell: submits visitor info
src/App.tsx - Page composition → Cohort home: renders
src/components/UserView.tsx - Page composition → Photo moments: renders
src/components/UserView.tsx - Page composition → Student biodata: renders
src/components/UserView.tsx - Page composition → Graduation records: renders
src/components/UserView.tsx - Page composition → School comparison: renders
src/components/UserView.tsx - Page composition → Video memories: renders
src/components/UserView.tsx - Page composition → Cohort footer: renders
src/components/UserView.tsx - Cohort home → Shared data context: reads cohort data
src/components/HomeSection.tsx - Cohort home → Fallback cohort data: reads cohort details
src/components/HomeSection.tsx - Photo moments → Shared data context: reads moments
src/components/MomentsSection.tsx - Photo moments → Photo lightbox: opens photo
src/components/MomentsSection.tsx - Student biodata → Shared data context: reads students
src/components/BiodataSection.tsx - Student biodata → Student detail modal: opens details
src/components/BiodataSection.tsx - Graduation records → Shared data context: reads graduation data
src/components/GraduationSection.tsx - Graduation records → Photo lightbox: opens photo
src/components/GraduationSection.tsx - School comparison → Shared data context: reads students
src/components/BeforeAfterSection.tsx - Video memories → Shared data context: reads video moments
src/components/VideoMomentsSection.tsx - Video memories → Video player: opens video
src/components/VideoMomentsSection.tsx - Cohort footer → Fallback cohort data: reads cohort details
src/components/Footer.tsx - Shared data context → Supabase client: queries through
src/context/DataContext.tsx - Shared data context → Row mappers: maps database rows
src/context/DataContext.tsx - Shared data context → Fallback cohort data: imports fallback data
src/context/DataContext.tsx - Shared data context → Supabase service: queries and subscribes
src/context/DataContext.tsx - Supabase client → Supabase service: connects to