# hamza234213/dbs-aesthetics-clinic-salon architecture

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

- Interactive diagram: https://gitdiagram.com/hamza234213/dbs-aesthetics-clinic-salon
- Repository: https://github.com/hamza234213/dbs-aesthetics-clinic-salon

## Overview

DBS Aesthetics Clinic & Salon’s product is a public clinic website: visitors discover treatments and clinic information, then can proceed to appointment booking or contact channels. Service browsing runs from the service directory to category-specific pages, while appointment booking collects a preferred service, date, and time before invoking a server action. The repository also provides about, FAQ, gallery, payment, and contact pages. Shared clinic content and presentation components support these routes. Relationships reflect the provided excerpts and source-index references; booking action internals and several route implementations were not shown.

Main entry points: [`src/data/clinic.ts`](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/data/clinic.ts) (Clinic content), [`src/app/page.tsx`](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/page.tsx) (Home page), [`src/app/services/[slug]/page.tsx`](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/services/%5Bslug%5D/page.tsx) (Service detail), [`src/app/book-appointment/page.tsx`](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/book-appointment/page.tsx) (Booking page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routes["Site routes"]
  node_home["Home page<br/>[page.tsx]"]
  node_about["About page<br/>[page.tsx]"]
  node_contact["Contact page<br/>[page.tsx]"]
  node_faqs["FAQ page<br/>[page.tsx]"]
  node_gallery["Gallery page<br/>[page.tsx]"]
  node_payment["Payment page<br/>[page.tsx]"]
end

subgraph group_discovery["Treatment discovery"]
  node_services["Service directory<br/>[page.tsx]"]
  node_servicegrid["Category search"]
  node_servicepage["Service detail<br/>[page.tsx]"]
end

subgraph group_booking["Appointment booking"]
  node_bookingpage["Booking page<br/>[page.tsx]"]
  node_appointmentform["Appointment form"]
  node_bookingaction["Booking action<br/>[actions.ts]"]
end

subgraph group_shared["Shared content"]
  node_clinicdata["Clinic content<br/>[clinic.ts]"]
  node_layout["Global layout<br/>[layout.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_whatsapp["WhatsApp contact<br/>[WhatsAppButton.tsx]"]
  node_faqaccordion["FAQ accordion<br/>[FaqAccordion.tsx]"]
  node_beforeafter["Before-after slider"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_home
node_visitor -->|"browses services"| node_services
node_visitor -->|"starts booking"| node_bookingpage
node_home -->|"reads content"| node_clinicdata
node_home -->|"renders"| node_faqaccordion
node_home -->|"links to"| node_bookingpage
node_services -->|"reads content"| node_clinicdata
node_services -->|"renders"| node_servicegrid
node_servicegrid -->|"links to"| node_servicepage
node_servicepage -->|"resolves service"| node_clinicdata
node_servicepage -.->|"renders"| node_beforeafter
node_servicepage -->|"links to"| node_bookingpage
node_bookingpage -->|"renders"| node_appointmentform
node_appointmentform -->|"reads services"| node_clinicdata
node_appointmentform -->|"submits details"| node_bookingaction
node_about -->|"reads profile"| node_clinicdata
node_contact -->|"reads contact"| node_clinicdata
node_faqs -->|"reads questions"| node_clinicdata
node_faqs -->|"renders"| node_faqaccordion
node_gallery -->|"reads gallery data"| node_clinicdata
node_payment -->|"reads clinic data"| node_clinicdata
node_layout -->|"renders"| node_navbar
node_layout -->|"renders"| node_footer
node_layout -->|"renders"| node_whatsapp
node_navbar -->|"reads content"| node_clinicdata
node_footer -->|"reads content"| node_clinicdata
node_whatsapp -->|"reads contact link"| node_clinicdata

click node_home "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/page.tsx"
click node_about "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/about/page.tsx"
click node_contact "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/contact/page.tsx"
click node_faqs "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/faqs/page.tsx"
click node_gallery "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/gallery/page.tsx"
click node_payment "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/payment/page.tsx"
click node_services "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/services/page.tsx"
click node_servicegrid "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/components/Servicecategorygrid.tsx"
click node_servicepage "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/services/%5Bslug%5D/page.tsx"
click node_bookingpage "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/book-appointment/page.tsx"
click node_appointmentform "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/components/AppointmentForm.tsx"
click node_bookingaction "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/book-appointment/actions.ts"
click node_clinicdata "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/data/clinic.ts"
click node_layout "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/layout.tsx"
click node_navbar "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/components/Navbar.tsx"
click node_footer "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/components/Footer.tsx"
click node_whatsapp "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/components/WhatsAppButton.tsx"
click node_faqaccordion "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/components/FaqAccordion.tsx"
click node_beforeafter "https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/components/BeforeAfterSlider.tsx"

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_about,node_contact,node_faqs,node_gallery,node_payment toneBlue
class node_services,node_servicegrid,node_servicepage toneAmber
class node_bookingpage,node_appointmentform,node_bookingaction toneMint
class node_clinicdata,node_layout,node_navbar,node_footer,node_whatsapp,node_faqaccordion,node_beforeafter toneRose
class node_visitor toneIndigo
```

## Components

### Site routes

- [Home page](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [About page](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/about/page.tsx): `src/app/about/page.tsx`
- [Contact page](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/contact/page.tsx): `src/app/contact/page.tsx`
- [FAQ page](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/faqs/page.tsx): `src/app/faqs/page.tsx`
- [Gallery page](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/gallery/page.tsx): `src/app/gallery/page.tsx`
- [Payment page](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/payment/page.tsx): `src/app/payment/page.tsx`

### Treatment discovery

- [Service directory](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/services/page.tsx): `src/app/services/page.tsx`
- [Category search](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/components/Servicecategorygrid.tsx): `src/components/Servicecategorygrid.tsx`
- [Service detail](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/services/%5Bslug%5D/page.tsx): `src/app/services/[slug]/page.tsx`

### Appointment booking

- [Booking page](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/book-appointment/page.tsx): `src/app/book-appointment/page.tsx`
- [Appointment form](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/components/AppointmentForm.tsx): `src/components/AppointmentForm.tsx`
- [Booking action](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/book-appointment/actions.ts): `src/app/book-appointment/actions.ts`

### Shared content

- [Clinic content](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/data/clinic.ts): `src/data/clinic.ts`
- [Global layout](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/app/layout.tsx): `src/app/layout.tsx`
- [Navigation](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Footer](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`
- [WhatsApp contact](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/components/WhatsAppButton.tsx): `src/components/WhatsAppButton.tsx`
- [FAQ accordion](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/components/FaqAccordion.tsx): `src/components/FaqAccordion.tsx`
- [Before-after slider](https://github.com/hamza234213/dbs-aesthetics-clinic-salon/blob/main/src/components/BeforeAfterSlider.tsx): `src/components/BeforeAfterSlider.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → Home page: opens site
- Visitor → Service directory: browses services
- Visitor → Booking page: starts booking
- Home page → Clinic content: reads content (evidence: `src/app/page.tsx`)
- Home page → FAQ accordion: renders (evidence: `src/app/page.tsx`)
- Home page → Booking page: links to (evidence: `src/app/page.tsx`)
- Service directory → Clinic content: reads content (evidence: `src/app/services/page.tsx`)
- Service directory → Category search: renders (evidence: `src/app/services/page.tsx`)
- Category search → Service detail: links to (evidence: `src/components/Servicecategorygrid.tsx`)
- Service detail → Clinic content: resolves service (evidence: `src/app/services/[slug]/page.tsx`)
- Service detail → Before-after slider: renders (evidence: `src/app/services/[slug]/page.tsx`)
- Service detail → Booking page: links to (evidence: `src/app/services/[slug]/page.tsx`)
- Booking page → Appointment form: renders (evidence: `src/app/book-appointment/page.tsx`)
- Appointment form → Clinic content: reads services (evidence: `src/components/AppointmentForm.tsx`)
- Appointment form → Booking action: submits details (evidence: `src/components/AppointmentForm.tsx`)
- About page → Clinic content: reads profile (evidence: `src/app/about/page.tsx`)
- Contact page → Clinic content: reads contact (evidence: `src/app/contact/page.tsx`)
- FAQ page → Clinic content: reads questions (evidence: `src/app/faqs/page.tsx`)
- FAQ page → FAQ accordion: renders (evidence: `src/app/faqs/page.tsx`)
- Gallery page → Clinic content: reads gallery data (evidence: `src/app/gallery/page.tsx`)
- Payment page → Clinic content: reads clinic data (evidence: `src/app/payment/page.tsx`)
- Global layout → Navigation: renders (evidence: `src/app/layout.tsx`)
- Global layout → Footer: renders (evidence: `src/app/layout.tsx`)
- Global layout → WhatsApp contact: renders (evidence: `src/app/layout.tsx`)
- Navigation → Clinic content: reads content (evidence: `src/components/Navbar.tsx`)
- Footer → Clinic content: reads content (evidence: `src/components/Footer.tsx`)
- WhatsApp contact → Clinic content: reads contact link (evidence: `src/components/WhatsAppButton.tsx`)
