How sandeep-square2706/accredian-enterprise-clone works
This is an enterprise-learning marketing site whose main workflow presents workforce-learning programs and organizational credibility, then lets a prospective client submit an enquiry. The page composes the documented section components; the enquiry path runs from the shared modal form to a Next.js API route, which connects to MongoDB and creates an enquiry record. The README is only the stock Next.js starter, so product capabilities are identified from the component names and sampled code. Source for several sections, layout, and database connection is unsampled; their internal behavior and wiring are not asserted.
Main entry points: page.tsx Home page · EnquiryProvider.tsx Enquiry state · route.ts Enquiry API · Faq.tsx FAQs
Components 23
Marketing site
- Home page
app/page.tsx - Navigation
components/layout/Navbar.tsx - Footer
components/layout/Footer.tsx - Navigation and hero data
lib/data.ts
Learning content
- Hero
components/sections/Hero.tsx - Impact stats
components/sections/Stats.tsx - Client partnerships
components/sections/Clients.tsx - Accredian Edge
components/sections/AccredianEdge.tsx - Domain expertise
components/sections/DomainExpertise.tsx - Programs
components/sections/Programs.tsx - Who should join
components/sections/WhoShouldJoin.tsx - CAT offering
components/sections/Cat.tsx - How it works
components/sections/HowItWorks.tsx - FAQs
components/sections/Faq.tsx - Testimonials
components/sections/Testimonials.tsx - Contact CTA
components/sections/ContactCTA.tsx
Enquiry workflow
- Enquiry state
components/providers/EnquiryProvider.tsx - Enquiry form
components/forms/EnquiryForm.tsx - Enquiry API
app/api/enquiries/route.ts
Persistence
- Database connection
lib/mongodb.ts - Enquiry model
models/Enquiry.ts - MongoDB
Other components
- Prospective client
Connections 22
- Prospective client → Home page: opens
- Home page → Hero: renders
- Home page → Impact stats: renders
- Home page → Client partnerships: renders
- Home page → Accredian Edge: renders
- Home page → Domain expertise: renders
- Home page → Programs: renders
- Home page → Who should join: renders
- Home page → CAT offering: renders
- Home page → How it works: renders
- Home page → FAQs: renders
- Home page → Testimonials: renders
- Home page → Contact CTA: renders
- Navigation → Navigation and hero data: reads links
- Prospective client → Enquiry state: opens enquiry
- Footer → Enquiry state: opens enquiry
- FAQs → Enquiry state: opens enquiry
- Enquiry state → Enquiry form: renders
- Enquiry form → Enquiry API: POSTs form data
- Enquiry API → Database connection: connects
- Enquiry API → Enquiry model: creates record
- Enquiry model → MongoDB: persists