# mubashira991/service-agency architecture

> Architecture diagram of the GitHub repository mubashira991/service-agency, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mubashira991/service-agency
- Repository: https://github.com/mubashira991/service-agency

## Overview

ZELLVERSE is an ecommerce agency website offering services, courses, editorial content, and contact pathways. Visitors browse service or course details, then can request a service or start course enrollment; the repository also includes payment API routes and Sanity-managed content. The graph preserves these product areas and the CMS schema layer. Some routes and integrations were not excerpted, so uncertain connections are omitted rather than inferred.

Main entry points: [`src/components/RequestAService.jsx`](https://github.com/mubashira991/service-agency/blob/master/src/components/RequestAService.jsx) (Service Request), [`src/app/services/[slug]/ServiceClient.jsx`](https://github.com/mubashira991/service-agency/blob/master/src/app/services/%5Bslug%5D/ServiceClient.jsx) (Service Detail), [`src/app/courses/[slug]/_components/ClientCourse.jsx`](https://github.com/mubashira991/service-agency/blob/master/src/app/courses/%5Bslug%5D/_components/ClientCourse.jsx) (Course Detail), [`src/app/layout.js`](https://github.com/mubashira991/service-agency/blob/master/src/app/layout.js) (Site Layout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Public Experience"]
  node_site["Site Layout<br/>[layout.js]"]
  node_home["Homepage<br/>[page.js]"]
  node_contact["Contact Page<br/>[page.jsx]"]
end

subgraph group_services["Agency Services"]
  node_service_list["Service Listings<br/>[page.jsx]"]
  node_service_cards["Service Cards<br/>[Services.jsx]"]
  node_service_card["Service Card<br/>[ServiceCard.jsx]"]
  node_service_detail["Service Detail<br/>[ServiceClient.jsx]"]
  node_service_hero["Service Hero<br/>[ServiceHero.jsx]"]
  node_service_request["Service Request"]
end

subgraph group_learning["Courses &amp; Enrollment"]
  node_course_list["Course Listings<br/>[page.jsx]"]
  node_course_detail["Course Detail<br/>[ClientCourse.jsx]"]
  node_course_description["Course Description"]
  node_enroll_button["Enrollment Button"]
  node_enroll_modal["Enrollment Modal<br/>[EnrollModal.jsx]"]
  node_checkout_api["Checkout Session API<br/>[route.js]"]
  node_payment_api["Payment Intent API<br/>[route.js]"]
  node_enroll_api["Enrollment API<br/>[route.js]"]
  node_stripe_webhook["Stripe Webhook<br/>[route.js]"]
  node_payment_result["Payment Result Pages<br/>[page.jsx]"]
end

subgraph group_content["Editorial Content"]
  node_blog_pages["Blog Pages<br/>[page.jsx]"]
  node_case_pages["Case Studies<br/>[page.jsx]"]
end

subgraph group_cms["Sanity CMS"]
  node_sanity_client["Sanity Client<br/>[sanity.js]"]
  node_sanity_schemas["Content Schemas<br/>[service.js]"]
  node_sanity_queries["Content Queries<br/>[queries.js]"]
  node_sanity_store[("Sanity Content Store")]
end

node_visitor(("Visitor"))

node_visitor -->|"visits"| node_site
node_site -.->|"serves"| node_home
node_service_list -.->|"renders"| node_service_cards
node_service_cards -->|"renders"| node_service_card
node_service_card -->|"renders"| node_service_request
node_service_detail -->|"renders"| node_service_hero
node_service_detail -->|"renders"| node_service_request
node_service_hero -->|"renders"| node_service_request
node_course_detail -->|"renders"| node_course_description
node_course_detail -->|"renders"| node_enroll_button
node_enroll_button -->|"opens"| node_enroll_modal
node_visitor -.->|"requests contact"| node_contact
node_visitor -.->|"requests service"| node_service_request
node_visitor -.->|"browses courses"| node_course_list
node_sanity_client -.->|"queries"| node_sanity_store
node_sanity_schemas -.->|"defines content"| node_sanity_store
node_sanity_queries -.->|"queries"| node_sanity_store

click node_site "https://github.com/mubashira991/service-agency/blob/master/src/app/layout.js"
click node_home "https://github.com/mubashira991/service-agency/blob/master/src/app/page.js"
click node_contact "https://github.com/mubashira991/service-agency/blob/master/src/app/contact/page.jsx"
click node_service_list "https://github.com/mubashira991/service-agency/blob/master/src/app/services/page.jsx"
click node_service_cards "https://github.com/mubashira991/service-agency/blob/master/src/components/Services.jsx"
click node_service_card "https://github.com/mubashira991/service-agency/blob/master/src/components/ServiceCard.jsx"
click node_service_detail "https://github.com/mubashira991/service-agency/blob/master/src/app/services/%5Bslug%5D/ServiceClient.jsx"
click node_service_hero "https://github.com/mubashira991/service-agency/blob/master/src/app/services/%5Bslug%5D/_components/ServiceHero.jsx"
click node_service_request "https://github.com/mubashira991/service-agency/blob/master/src/components/RequestAService.jsx"
click node_course_list "https://github.com/mubashira991/service-agency/blob/master/src/app/courses/page.jsx"
click node_course_detail "https://github.com/mubashira991/service-agency/blob/master/src/app/courses/%5Bslug%5D/_components/ClientCourse.jsx"
click node_course_description "https://github.com/mubashira991/service-agency/blob/master/src/app/courses/%5Bslug%5D/_components/CourseDescription.jsx"
click node_enroll_button "https://github.com/mubashira991/service-agency/blob/master/src/app/courses/%5Bslug%5D/_components/EnrollModalButton.jsx"
click node_enroll_modal "https://github.com/mubashira991/service-agency/blob/master/src/components/EnrollModal.jsx"
click node_checkout_api "https://github.com/mubashira991/service-agency/blob/master/src/app/api/create-checkout-session/route.js"
click node_payment_api "https://github.com/mubashira991/service-agency/blob/master/src/app/api/create-payment-intent/route.js"
click node_enroll_api "https://github.com/mubashira991/service-agency/blob/master/src/app/api/enroll/route.js"
click node_stripe_webhook "https://github.com/mubashira991/service-agency/blob/master/src/app/api/stripe-webhook/route.js"
click node_payment_result "https://github.com/mubashira991/service-agency/blob/master/src/app/payment-success/page.jsx"
click node_blog_pages "https://github.com/mubashira991/service-agency/blob/master/src/app/blogs/page.jsx"
click node_case_pages "https://github.com/mubashira991/service-agency/blob/master/src/app/case-studies/page.jsx"
click node_sanity_client "https://github.com/mubashira991/service-agency/blob/master/src/lib/sanity.js"
click node_sanity_schemas "https://github.com/mubashira991/service-agency/blob/master/sanity/schemaTypes/service.js"
click node_sanity_queries "https://github.com/mubashira991/service-agency/blob/master/sanity/lib/queries/queries.js"

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_site,node_home,node_contact toneBlue
class node_service_list,node_service_cards,node_service_card,node_service_detail,node_service_hero,node_service_request toneAmber
class node_course_list,node_course_detail,node_course_description,node_enroll_button,node_enroll_modal,node_checkout_api,node_payment_api,node_enroll_api,node_stripe_webhook,node_payment_result toneMint
class node_blog_pages,node_case_pages toneRose
class node_sanity_client,node_sanity_schemas,node_sanity_queries,node_sanity_store,node_visitor toneIndigo
```

## Components

### Public Experience

- [Site Layout](https://github.com/mubashira991/service-agency/blob/master/src/app/layout.js): `src/app/layout.js`
- [Homepage](https://github.com/mubashira991/service-agency/blob/master/src/app/page.js): `src/app/page.js`
- [Contact Page](https://github.com/mubashira991/service-agency/blob/master/src/app/contact/page.jsx): `src/app/contact/page.jsx`

### Agency Services

- [Service Listings](https://github.com/mubashira991/service-agency/blob/master/src/app/services/page.jsx): `src/app/services/page.jsx`
- [Service Cards](https://github.com/mubashira991/service-agency/blob/master/src/components/Services.jsx): `src/components/Services.jsx`
- [Service Card](https://github.com/mubashira991/service-agency/blob/master/src/components/ServiceCard.jsx): `src/components/ServiceCard.jsx`
- [Service Detail](https://github.com/mubashira991/service-agency/blob/master/src/app/services/%5Bslug%5D/ServiceClient.jsx): `src/app/services/[slug]/ServiceClient.jsx`
- [Service Hero](https://github.com/mubashira991/service-agency/blob/master/src/app/services/%5Bslug%5D/_components/ServiceHero.jsx): `src/app/services/[slug]/_components/ServiceHero.jsx`
- [Service Request](https://github.com/mubashira991/service-agency/blob/master/src/components/RequestAService.jsx): `src/components/RequestAService.jsx`

### Courses & Enrollment

- [Course Listings](https://github.com/mubashira991/service-agency/blob/master/src/app/courses/page.jsx): `src/app/courses/page.jsx`
- [Course Detail](https://github.com/mubashira991/service-agency/blob/master/src/app/courses/%5Bslug%5D/_components/ClientCourse.jsx): `src/app/courses/[slug]/_components/ClientCourse.jsx`
- [Course Description](https://github.com/mubashira991/service-agency/blob/master/src/app/courses/%5Bslug%5D/_components/CourseDescription.jsx): `src/app/courses/[slug]/_components/CourseDescription.jsx`
- [Enrollment Button](https://github.com/mubashira991/service-agency/blob/master/src/app/courses/%5Bslug%5D/_components/EnrollModalButton.jsx): `src/app/courses/[slug]/_components/EnrollModalButton.jsx`
- [Enrollment Modal](https://github.com/mubashira991/service-agency/blob/master/src/components/EnrollModal.jsx): `src/components/EnrollModal.jsx`
- [Checkout Session API](https://github.com/mubashira991/service-agency/blob/master/src/app/api/create-checkout-session/route.js): `src/app/api/create-checkout-session/route.js`
- [Payment Intent API](https://github.com/mubashira991/service-agency/blob/master/src/app/api/create-payment-intent/route.js): `src/app/api/create-payment-intent/route.js`
- [Enrollment API](https://github.com/mubashira991/service-agency/blob/master/src/app/api/enroll/route.js): `src/app/api/enroll/route.js`
- [Stripe Webhook](https://github.com/mubashira991/service-agency/blob/master/src/app/api/stripe-webhook/route.js): `src/app/api/stripe-webhook/route.js`
- [Payment Result Pages](https://github.com/mubashira991/service-agency/blob/master/src/app/payment-success/page.jsx): `src/app/payment-success/page.jsx`

### Editorial Content

- [Blog Pages](https://github.com/mubashira991/service-agency/blob/master/src/app/blogs/page.jsx): `src/app/blogs/page.jsx`
- [Case Studies](https://github.com/mubashira991/service-agency/blob/master/src/app/case-studies/page.jsx): `src/app/case-studies/page.jsx`

### Sanity CMS

- [Sanity Client](https://github.com/mubashira991/service-agency/blob/master/src/lib/sanity.js): `src/lib/sanity.js`
- [Content Schemas](https://github.com/mubashira991/service-agency/blob/master/sanity/schemaTypes/service.js): `sanity/schemaTypes/service.js`
- [Content Queries](https://github.com/mubashira991/service-agency/blob/master/sanity/lib/queries/queries.js): `sanity/lib/queries/queries.js`
- **Sanity Content Store**

### Other components

- **Visitor**

## Connections

- Visitor → Site Layout: visits
- Site Layout → Homepage: serves
- Service Listings → Service Cards: renders
- Service Cards → Service Card: renders (evidence: `src/components/Services.jsx`)
- Service Card → Service Request: renders (evidence: `src/components/ServiceCard.jsx`)
- Service Detail → Service Hero: renders (evidence: `src/app/services/[slug]/ServiceClient.jsx`)
- Service Detail → Service Request: renders (evidence: `src/app/services/[slug]/ServiceClient.jsx`)
- Service Hero → Service Request: renders (evidence: `src/app/services/[slug]/_components/ServiceHero.jsx`)
- Course Detail → Course Description: renders (evidence: `src/app/courses/[slug]/_components/ClientCourse.jsx`)
- Course Detail → Enrollment Button: renders (evidence: `src/app/courses/[slug]/_components/ClientCourse.jsx`)
- Enrollment Button → Enrollment Modal: opens (evidence: `src/app/courses/[slug]/_components/EnrollModalButton.jsx`)
- Visitor → Contact Page: requests contact
- Visitor → Service Request: requests service
- Visitor → Course Listings: browses courses
- Sanity Client → Sanity Content Store: queries
- Content Schemas → Sanity Content Store: defines content
- Content Queries → Sanity Content Store: queries
