How zodiax-core/ads works
This is a React website for a creative agency, with a public marketing site, project gallery, login, and an authenticated admin area for managing site content. Visitors enter through the routed app, browse the landing-page sections or gallery, and can submit contact inquiries; administrators sign in and manage gallery images, clients, and site settings. Supabase supplies authentication and persistent content. The graph reflects documented imports and sampled calls; unsampled page details and database schema behavior are not inferred.
Main entry points: Index.tsx Landing page · client.ts Supabase client · App.tsx App routes · useAuth.tsx Auth provider
Components 17
App and routing
- App routes
src/App.tsx
Public website
- Landing page
src/pages/Index.tsx - Project gallery
src/pages/Gallery.tsx - Hero section
src/components/HeroSection.tsx - About section
src/components/AboutSection.tsx - Services section
src/components/ServicesSection.tsx - Portfolio section
src/components/PortfolioSection.tsx - Client showcase
src/components/ClientsSection.tsx - Testimonials
src/components/TestimonialsSection.tsx - Contact inquiries
src/components/ContactSection.tsx - Navigation and footer
src/components/Navbar.tsx
Administration
- Login page
src/pages/Login.tsx - Admin console
src/pages/Admin.tsx
Auth and persistence
- Auth provider
src/hooks/useAuth.tsx - Supabase client
src/integrations/supabase/client.ts - Supabase service
Other components
- Visitor
Connections 24
- Visitor → App routes: opens site
- App routes → Landing page: routes to
src/App.tsx - App routes → Project gallery: routes to
src/App.tsx - App routes → Login page: routes to
src/App.tsx - App routes → Admin console: routes to
src/App.tsx - App routes → Auth provider: provides auth
src/App.tsx - Landing page → Hero section: renders
src/pages/Index.tsx - Landing page → About section: renders
src/pages/Index.tsx - Landing page → Services section: renders
src/pages/Index.tsx - Landing page → Portfolio section: renders
src/pages/Index.tsx - Landing page → Client showcase: renders
src/pages/Index.tsx - Landing page → Testimonials: renders
src/pages/Index.tsx - Landing page → Contact inquiries: renders
src/pages/Index.tsx - Landing page → Navigation and footer: renders
src/pages/Index.tsx - Project gallery → Navigation and footer: renders
src/pages/Gallery.tsx - Client showcase → Supabase client: reads client data
src/components/ClientsSection.tsx - Contact inquiries → Supabase client: uses backend
src/components/ContactSection.tsx - Hero section → Supabase client: uses backend
src/components/HeroSection.tsx - Project gallery → Supabase client: reads gallery data
src/pages/Gallery.tsx - Admin console → Auth provider: checks access
src/pages/Admin.tsx - Login page → Auth provider: signs in
src/pages/Login.tsx - Auth provider → Supabase client: calls auth and roles
src/hooks/useAuth.tsx - Admin console → Supabase client: manages content
src/pages/Admin.tsx - Supabase client → Supabase service: connects to
src/integrations/supabase/client.ts