How arifaritempus/codeicon works
This is a Next.js marketing site for CODEICON’s MICE agency system, with an admin content and media management workflow. Visitors receive configurable landing-page sections; administrators authenticate, edit content, and upload/list media. The main page and sampled routes show these entry points and their storage/security helpers. Other landing sections and admin-page internals are retained as product components based on the source index and tree; unsampled internals are not inferred. Supabase Storage and local files are documented in sampled storage code.
Main entry points: app/page.tsx Landing page · admin/page.tsx Admin console · contentStore.ts Content and media store · route.ts Media upload endpoint
Components 27
Public website
- Landing page
src/app/page.tsx - Navigation
src/components/grovia/Navbar.tsx - Hero showcase
src/components/grovia/Hero.tsx - Process steps
src/components/grovia/ProcessSteps.tsx - Feature tabs
src/components/grovia/FeatureTabs.tsx - Integrations
src/components/grovia/Integrations.tsx - Pricing
src/components/grovia/Pricing.tsx - Case studies
src/components/grovia/CaseStudies.tsx - FAQ
src/components/grovia/Faq.tsx - Contact CTA
src/components/grovia/ContactCta.tsx - Footer
src/components/grovia/Footer.tsx - Smooth scrolling
src/components/grovia/SmoothScroll.tsx
Content administration
- Admin console
src/app/admin/page.tsx
API and services
- Authentication routes
src/app/api/auth/login/route.ts - Login endpoint
src/app/api/auth/login/route.ts - Logout endpoint
src/app/api/auth/logout/route.ts - Session check
src/app/api/auth/check/route.ts - Session security
src/lib/auth.ts - Content endpoint
src/app/api/content/route.ts - Media listing endpoint
src/app/api/media/route.ts - Media upload endpoint
src/app/api/upload/route.ts - Image validation
src/lib/fileValidation.ts
Content and media storage
- Content and media store
src/lib/contentStore.ts - Supabase Storage
- Local content file
src/data/siteContent.json - Local uploads
public/uploads
Other components
- Site visitor
Connections 33
- Site visitor → Landing page: requests page
- Landing page → Content and media store: loads content
src/app/page.tsx - Landing page → Navigation: renders
src/app/page.tsx - Landing page → Hero showcase: renders
src/app/page.tsx - Landing page → Process steps: renders
src/app/page.tsx - Landing page → Feature tabs: renders
src/app/page.tsx - Landing page → Integrations: renders
src/app/page.tsx - Landing page → Pricing: renders
src/app/page.tsx - Landing page → Case studies: renders
src/app/page.tsx - Landing page → FAQ: renders
src/app/page.tsx - Landing page → Contact CTA: renders
src/app/page.tsx - Landing page → Footer: renders
src/app/page.tsx - Landing page → Smooth scrolling: renders
src/app/page.tsx - Admin console → Login endpoint: uses login
- Admin console → Logout endpoint: uses logout
- Admin console → Session check: checks session
- Admin console → Content endpoint: edits content
- Admin console → Media listing endpoint: lists media
- Admin console → Media upload endpoint: uploads media
- Login endpoint → Session security: validates credentials
src/app/api/auth/login/route.ts - Logout endpoint → Session security: uses cookie name
src/app/api/auth/logout/route.ts - Session check → Session security: checks session
src/app/api/auth/check/route.ts - Content endpoint → Session security: checks session
src/app/api/content/route.ts - Content endpoint → Content and media store: reads or saves
src/app/api/content/route.ts - Media listing endpoint → Content and media store: lists stored media
src/app/api/media/route.ts - Media upload endpoint → Session security: checks session
src/app/api/upload/route.ts - Media upload endpoint → Image validation: validates image
src/app/api/upload/route.ts - Media upload endpoint → Content and media store: uploads media
src/app/api/upload/route.ts - Content and media store → Supabase Storage: reads and writes
src/lib/contentStore.ts - Content and media store → Local content file: reads and writes fallback
src/lib/contentStore.ts - Media upload endpoint → Local uploads: writes fallback
src/app/api/upload/route.ts - Media listing endpoint → Local uploads: lists local files
src/app/api/media/route.ts - Media listing endpoint → Supabase Storage: lists media via store
src/app/api/media/route.ts