How moamentorky8/eclub-project works
E club is a student-club website for exploring activities and club information, then acting on that interest through recommendations or registration. The principal flow is visitor → routed page → catalog-backed discovery or recommendation → event details or registration; contact and gallery are separate capabilities. Registration and contact only validate inputs, and the README says authentication/database setup is pending. Edges are limited to relationships shown in excerpts, the SOURCE INDEX, or README; unsampled route implementations are represented without guessed internal calls.
Main entry points: data.ts Club catalog · recommendations.tsx Recommendation form · register.tsx Registration form · contact.tsx Contact form
Components 22
Site and routing
- Router
src/router.tsx - Route registry
src/routeTree.gen.ts - Root route
src/routes/__root.tsx - Site layout
src/components/site/SiteLayout.tsx
Club discovery
- Home page
src/routes/index.tsx - Event listing
src/routes/events.index.tsx - Event details
src/routes/events.$eventId.tsx - Club pages
src/routes - Gallery filtering
src/routes/gallery.tsx - Club catalog
src/lib/data.ts - Event card
src/components/site/EventCard.tsx
Recommendations and forms
- Recommendation form
src/routes/recommendations.tsx - Recommendation engine
src/lib/recommendations.ts - Registration form
src/routes/register.tsx - Contact form
src/routes/contact.tsx - Input validation
src/lib/validation.ts - Input schemas
src/lib/input.ts
Shared runtime
- Page header
src/components/site/PageHeader.tsx - SEO metadata
src/lib/seo.ts - Error page
src/lib/error-page.ts - Preview auth storage
src/integrations/supabase/previewAuthStorage.ts
Other components
- Visitor
Connections 20
- Visitor → Router: opens pages
- Router → Route registry: uses routes
src/router.tsx - Route registry → Root route: registers route
src/routeTree.gen.ts - Root route → Site layout: renders layout
src/routes/__root.tsx - Home page → Club catalog: reads catalog
src/routes/index.tsx - Home page → Event card: renders events
src/routes/index.tsx - Event card → Club catalog: formats event
src/components/site/EventCard.tsx - Event details → Club catalog: reads event
src/routes/events.$eventId.tsx - Recommendation form → Recommendation engine: requests matches
src/routes/recommendations.tsx - Recommendation engine → Club catalog: scores activities
src/lib/recommendations.ts - Recommendation engine → Input schemas: validates text
src/lib/recommendations.ts - Registration form → Input validation: validates details
src/routes/register.tsx - Contact form → Input validation: validates details
src/routes/contact.tsx - Contact form → Page header: renders header
src/routes/contact.tsx - Registration form → Page header: renders header
src/routes/register.tsx - Recommendation form → Page header: renders header
src/routes/recommendations.tsx - Contact form → SEO metadata: sets metadata
src/routes/contact.tsx - Registration form → SEO metadata: sets metadata
src/routes/register.tsx - Recommendation form → SEO metadata: sets metadata
src/routes/recommendations.tsx - Root route → Error page: handles errors