# med-chaouki/ongliss architecture

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

- Interactive diagram: https://gitdiagram.com/med-chaouki/ongliss
- Repository: https://github.com/med-chaouki/ongliss

## Overview

Ongliss is a beauty-salon landing page with an online appointment flow. Visitors browse the salon’s story and priced services, then choose a service, date, and time and submit contact details. The booking form fetches availability and posts reservations to a Google Apps Script backend, which checks reservations in Google Sheets. The React app also presents salon branding, navigation, and social contact links. The booking excerpt omits the endpoint value, so the frontend-to-backend connection is shown as unverified; other edges follow visible imports, calls, or links.

Main entry points: [`src/App.jsx`](https://github.com/med-chaouki/ongliss/blob/main/src/App.jsx) (React app), [`src/components/BookingForm.jsx`](https://github.com/med-chaouki/ongliss/blob/main/src/components/BookingForm.jsx) (Booking form), [`scripts/google-apps-script.js`](https://github.com/med-chaouki/ongliss/blob/main/scripts/google-apps-script.js) (Booking API), [`src/components/Services.jsx`](https://github.com/med-chaouki/ongliss/blob/main/src/components/Services.jsx) (Service menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Salon website"]
  node_app["React app<br/>[App.jsx]"]
  node_header["Site navigation<br/>[Header.jsx]"]
  node_hero["Salon landing<br/>[Hero.jsx]"]
  node_story["Salon story<br/>[NotreUnivers.jsx]"]
  node_services["Service menu<br/>[Services.jsx]"]
  node_footer["Salon footer<br/>[Footer.jsx]"]
end

subgraph group_booking["Appointment booking"]
  node_bookingform["Booking form<br/>[BookingForm.jsx]"]
  node_availability["Availability lookup<br/>[BookingForm.jsx]"]
  node_selection["Service and slot selection<br/>[BookingForm.jsx]"]
  node_submission["Appointment submission<br/>[BookingForm.jsx]"]
end

subgraph group_backend["Reservation backend"]
  node_appsapi["Booking API"]
  node_maintenance["Reservation maintenance"]
  node_sheet[("Reservation sheet")]
end

subgraph group_contact["Contact channels"]
  node_floating["Floating social links"]
end

node_visitor(("Visitor"))
node_socials["Social platforms"]

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_story
node_app -->|"renders"| node_services
node_app -->|"renders"| node_bookingform
node_app -->|"renders"| node_floating
node_app -->|"renders"| node_footer
node_visitor -->|"starts booking"| node_bookingform
node_services -->|"links to booking"| node_bookingform
node_bookingform -->|"loads slots"| node_availability
node_bookingform -->|"collects choices"| node_selection
node_bookingform -->|"submits details"| node_submission
node_availability -.->|"requests availability"| node_appsapi
node_submission -.->|"posts reservation"| node_appsapi
node_appsapi -->|"reads and writes"| node_sheet
node_appsapi -->|"sorts reservations"| node_maintenance
node_maintenance -->|"cleans and sorts"| node_sheet
node_floating -->|"links to"| node_socials
node_footer -->|"links to"| node_socials

click node_app "https://github.com/med-chaouki/ongliss/blob/main/src/App.jsx"
click node_header "https://github.com/med-chaouki/ongliss/blob/main/src/components/Header.jsx"
click node_hero "https://github.com/med-chaouki/ongliss/blob/main/src/components/Hero.jsx"
click node_story "https://github.com/med-chaouki/ongliss/blob/main/src/components/NotreUnivers.jsx"
click node_services "https://github.com/med-chaouki/ongliss/blob/main/src/components/Services.jsx"
click node_footer "https://github.com/med-chaouki/ongliss/blob/main/src/components/Footer.jsx"
click node_bookingform "https://github.com/med-chaouki/ongliss/blob/main/src/components/BookingForm.jsx"
click node_availability "https://github.com/med-chaouki/ongliss/blob/main/src/components/BookingForm.jsx"
click node_selection "https://github.com/med-chaouki/ongliss/blob/main/src/components/BookingForm.jsx"
click node_submission "https://github.com/med-chaouki/ongliss/blob/main/src/components/BookingForm.jsx"
click node_appsapi "https://github.com/med-chaouki/ongliss/blob/main/scripts/google-apps-script.js"
click node_maintenance "https://github.com/med-chaouki/ongliss/blob/main/scripts/google-apps-script.js"
click node_floating "https://github.com/med-chaouki/ongliss/blob/main/src/components/FloatingSocials.jsx"

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_app,node_header,node_hero,node_story,node_services,node_footer toneBlue
class node_bookingform,node_availability,node_selection,node_submission toneAmber
class node_appsapi,node_maintenance,node_sheet toneMint
class node_floating toneRose
class node_visitor,node_socials toneIndigo
```

## Components

### Salon website

- [React app](https://github.com/med-chaouki/ongliss/blob/main/src/App.jsx): `src/App.jsx`
- [Site navigation](https://github.com/med-chaouki/ongliss/blob/main/src/components/Header.jsx): `src/components/Header.jsx`
- [Salon landing](https://github.com/med-chaouki/ongliss/blob/main/src/components/Hero.jsx): `src/components/Hero.jsx`
- [Salon story](https://github.com/med-chaouki/ongliss/blob/main/src/components/NotreUnivers.jsx): `src/components/NotreUnivers.jsx`
- [Service menu](https://github.com/med-chaouki/ongliss/blob/main/src/components/Services.jsx): `src/components/Services.jsx`
- [Salon footer](https://github.com/med-chaouki/ongliss/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`

### Appointment booking

- [Booking form](https://github.com/med-chaouki/ongliss/blob/main/src/components/BookingForm.jsx): `src/components/BookingForm.jsx`
- [Availability lookup](https://github.com/med-chaouki/ongliss/blob/main/src/components/BookingForm.jsx): `src/components/BookingForm.jsx`
- [Service and slot selection](https://github.com/med-chaouki/ongliss/blob/main/src/components/BookingForm.jsx): `src/components/BookingForm.jsx`
- [Appointment submission](https://github.com/med-chaouki/ongliss/blob/main/src/components/BookingForm.jsx): `src/components/BookingForm.jsx`

### Reservation backend

- [Booking API](https://github.com/med-chaouki/ongliss/blob/main/scripts/google-apps-script.js): `scripts/google-apps-script.js`
- [Reservation maintenance](https://github.com/med-chaouki/ongliss/blob/main/scripts/google-apps-script.js): `scripts/google-apps-script.js`
- **Reservation sheet**

### Contact channels

- [Floating social links](https://github.com/med-chaouki/ongliss/blob/main/src/components/FloatingSocials.jsx): `src/components/FloatingSocials.jsx`

### Other components

- **Visitor**
- **Social platforms**

## Connections

- Visitor → React app: opens
- React app → Site navigation: renders (evidence: `src/App.jsx`)
- React app → Salon landing: renders (evidence: `src/App.jsx`)
- React app → Salon story: renders (evidence: `src/App.jsx`)
- React app → Service menu: renders (evidence: `src/App.jsx`)
- React app → Booking form: renders (evidence: `src/App.jsx`)
- React app → Floating social links: renders (evidence: `src/App.jsx`)
- React app → Salon footer: renders (evidence: `src/App.jsx`)
- Visitor → Booking form: starts booking
- Service menu → Booking form: links to booking (evidence: `src/components/Services.jsx`)
- Booking form → Availability lookup: loads slots (evidence: `src/components/BookingForm.jsx`)
- Booking form → Service and slot selection: collects choices (evidence: `src/components/BookingForm.jsx`)
- Booking form → Appointment submission: submits details (evidence: `src/components/BookingForm.jsx`)
- Availability lookup → Booking API: requests availability
- Appointment submission → Booking API: posts reservation
- Booking API → Reservation sheet: reads and writes (evidence: `scripts/google-apps-script.js`)
- Booking API → Reservation maintenance: sorts reservations (evidence: `scripts/google-apps-script.js`)
- Reservation maintenance → Reservation sheet: cleans and sorts (evidence: `scripts/google-apps-script.js`)
- Floating social links → Social platforms: links to (evidence: `src/components/FloatingSocials.jsx`)
- Salon footer → Social platforms: links to (evidence: `src/components/Footer.jsx`)
