# sandeep-square2706/accredian-enterprise-clone architecture

> Architecture diagram of the GitHub repository sandeep-square2706/accredian-enterprise-clone, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sandeep-square2706/accredian-enterprise-clone
- Repository: https://github.com/sandeep-square2706/accredian-enterprise-clone

## Overview

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: [`app/page.tsx`](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/app/page.tsx) (Home page), [`components/providers/EnquiryProvider.tsx`](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/providers/EnquiryProvider.tsx) (Enquiry state), [`app/api/enquiries/route.ts`](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/app/api/enquiries/route.ts) (Enquiry API), [`components/sections/Faq.tsx`](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/Faq.tsx) (FAQs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Marketing site"]
  node_home["Home page<br/>[page.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_data["Navigation and hero data<br/>[data.ts]"]
end

subgraph group_content["Learning content"]
  node_hero["Hero<br/>[Hero.tsx]"]
  node_stats["Impact stats<br/>[Stats.tsx]"]
  node_clients["Client partnerships<br/>[Clients.tsx]"]
  node_edge["Accredian Edge<br/>[AccredianEdge.tsx]"]
  node_domains["Domain expertise"]
  node_programs["Programs<br/>[Programs.tsx]"]
  node_audience["Who should join<br/>[WhoShouldJoin.tsx]"]
  node_cat["CAT offering<br/>[Cat.tsx]"]
  node_process["How it works<br/>[HowItWorks.tsx]"]
  node_faq["FAQs<br/>[Faq.tsx]"]
  node_testimonials["Testimonials<br/>[Testimonials.tsx]"]
  node_cta["Contact CTA<br/>[ContactCTA.tsx]"]
end

subgraph group_enquiry["Enquiry workflow"]
  node_provider["Enquiry state"]
  node_form["Enquiry form<br/>[EnquiryForm.tsx]"]
  node_api["Enquiry API<br/>[route.ts]"]
end

subgraph group_persistence["Persistence"]
  node_connection["Database connection<br/>[mongodb.ts]"]
  node_model["Enquiry model<br/>[Enquiry.ts]"]
  node_mongo[("MongoDB")]
end

node_visitor(("Prospective client"))

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_stats
node_home -->|"renders"| node_clients
node_home -->|"renders"| node_edge
node_home -->|"renders"| node_domains
node_home -->|"renders"| node_programs
node_home -->|"renders"| node_audience
node_home -->|"renders"| node_cat
node_home -->|"renders"| node_process
node_home -->|"renders"| node_faq
node_home -->|"renders"| node_testimonials
node_home -->|"renders"| node_cta
node_navbar -->|"reads links"| node_data
node_visitor -->|"opens enquiry"| node_provider
node_footer -->|"opens enquiry"| node_provider
node_faq -->|"opens enquiry"| node_provider
node_provider -->|"renders"| node_form
node_form -->|"POSTs form data"| node_api
node_api -->|"connects"| node_connection
node_api -->|"creates record"| node_model
node_model -->|"persists"| node_mongo

click node_home "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/app/page.tsx"
click node_navbar "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/layout/Navbar.tsx"
click node_footer "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/layout/Footer.tsx"
click node_hero "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/Hero.tsx"
click node_stats "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/Stats.tsx"
click node_clients "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/Clients.tsx"
click node_edge "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/AccredianEdge.tsx"
click node_domains "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/DomainExpertise.tsx"
click node_programs "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/Programs.tsx"
click node_audience "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/WhoShouldJoin.tsx"
click node_cat "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/Cat.tsx"
click node_process "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/HowItWorks.tsx"
click node_faq "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/Faq.tsx"
click node_testimonials "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/Testimonials.tsx"
click node_cta "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/ContactCTA.tsx"
click node_data "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/lib/data.ts"
click node_provider "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/providers/EnquiryProvider.tsx"
click node_form "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/forms/EnquiryForm.tsx"
click node_api "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/app/api/enquiries/route.ts"
click node_connection "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/lib/mongodb.ts"
click node_model "https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/models/Enquiry.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_home,node_navbar,node_footer,node_data,node_visitor toneBlue
class node_hero,node_stats,node_clients,node_edge,node_domains,node_programs,node_audience,node_cat,node_process,node_faq,node_testimonials,node_cta toneAmber
class node_provider,node_form,node_api toneMint
class node_connection,node_model,node_mongo toneRose
```

## Components

### Marketing site

- [Home page](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/app/page.tsx): `app/page.tsx`
- [Navigation](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/layout/Navbar.tsx): `components/layout/Navbar.tsx`
- [Footer](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/layout/Footer.tsx): `components/layout/Footer.tsx`
- [Navigation and hero data](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/lib/data.ts): `lib/data.ts`

### Learning content

- [Hero](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/Hero.tsx): `components/sections/Hero.tsx`
- [Impact stats](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/Stats.tsx): `components/sections/Stats.tsx`
- [Client partnerships](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/Clients.tsx): `components/sections/Clients.tsx`
- [Accredian Edge](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/AccredianEdge.tsx): `components/sections/AccredianEdge.tsx`
- [Domain expertise](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/DomainExpertise.tsx): `components/sections/DomainExpertise.tsx`
- [Programs](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/Programs.tsx): `components/sections/Programs.tsx`
- [Who should join](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/WhoShouldJoin.tsx): `components/sections/WhoShouldJoin.tsx`
- [CAT offering](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/Cat.tsx): `components/sections/Cat.tsx`
- [How it works](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/HowItWorks.tsx): `components/sections/HowItWorks.tsx`
- [FAQs](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/Faq.tsx): `components/sections/Faq.tsx`
- [Testimonials](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/Testimonials.tsx): `components/sections/Testimonials.tsx`
- [Contact CTA](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/sections/ContactCTA.tsx): `components/sections/ContactCTA.tsx`

### Enquiry workflow

- [Enquiry state](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/providers/EnquiryProvider.tsx): `components/providers/EnquiryProvider.tsx`
- [Enquiry form](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/components/forms/EnquiryForm.tsx): `components/forms/EnquiryForm.tsx`
- [Enquiry API](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/app/api/enquiries/route.ts): `app/api/enquiries/route.ts`

### Persistence

- [Database connection](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/lib/mongodb.ts): `lib/mongodb.ts`
- [Enquiry model](https://github.com/sandeep-square2706/accredian-enterprise-clone/blob/main/models/Enquiry.ts): `models/Enquiry.ts`
- **MongoDB**

### Other components

- **Prospective client**

## Connections

- 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
