# henriquegalimberti1/simple-beauty-salon architecture

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

- Interactive diagram: https://gitdiagram.com/henriquegalimberti1/simple-beauty-salon
- Repository: https://github.com/henriquegalimberti1/simple-beauty-salon

## Overview

This is a single-page salon appointment-request app. A customer browses services and opening hours, selects a service, date, and available time, then submits contact details and receives an on-page confirmation. Scheduling and validation run in the browser; the sampled code shows no backend or persistent booking store. The graph reflects the responsibilities visible in the script excerpt; the HTML and CSS were not sampled.

Main entry points: [`script.js`](https://github.com/henriquegalimberti1/simple-beauty-salon/blob/master/script.js) (Page initialization), [`index.html`](https://github.com/henriquegalimberti1/simple-beauty-salon/blob/master/index.html) (Booking page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_booking["Booking experience"]
  node_page["Booking page<br/>[index.html]"]
  node_init["Page initialization<br/>[script.js]"]
  node_services["Services and hours<br/>[script.js]"]
  node_validation["Form validation<br/>[script.js]"]
  node_submit["Request confirmation<br/>[script.js]"]
end

subgraph group_scheduling["Scheduling logic"]
  node_availability["Date and time slots<br/>[script.js]"]
end

node_customer(("Customer"))

node_customer -.->|"uses"| node_page
node_init -->|"renders"| node_services
node_init -->|"initializes"| node_availability
node_init -->|"registers submit"| node_submit
node_submit -->|"validates fields"| node_validation
node_submit -->|"shows confirmation"| node_page
node_availability -->|"updates time options"| node_page

click node_page "https://github.com/henriquegalimberti1/simple-beauty-salon/blob/master/index.html"
click node_init "https://github.com/henriquegalimberti1/simple-beauty-salon/blob/master/script.js"
click node_services "https://github.com/henriquegalimberti1/simple-beauty-salon/blob/master/script.js"
click node_availability "https://github.com/henriquegalimberti1/simple-beauty-salon/blob/master/script.js"
click node_validation "https://github.com/henriquegalimberti1/simple-beauty-salon/blob/master/script.js"
click node_submit "https://github.com/henriquegalimberti1/simple-beauty-salon/blob/master/script.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_page,node_init,node_services,node_validation,node_submit toneBlue
class node_availability toneAmber
class node_customer toneIndigo
```

## Components

### Booking experience

- [Booking page](https://github.com/henriquegalimberti1/simple-beauty-salon/blob/master/index.html): `index.html`
- [Page initialization](https://github.com/henriquegalimberti1/simple-beauty-salon/blob/master/script.js): `script.js`
- [Services and hours](https://github.com/henriquegalimberti1/simple-beauty-salon/blob/master/script.js): `script.js`
- [Form validation](https://github.com/henriquegalimberti1/simple-beauty-salon/blob/master/script.js): `script.js`
- [Request confirmation](https://github.com/henriquegalimberti1/simple-beauty-salon/blob/master/script.js): `script.js`

### Scheduling logic

- [Date and time slots](https://github.com/henriquegalimberti1/simple-beauty-salon/blob/master/script.js): `script.js`

### Other components

- **Customer**

## Connections

- Customer → Booking page: uses
- Page initialization → Services and hours: renders (evidence: `script.js`)
- Page initialization → Date and time slots: initializes (evidence: `script.js`)
- Page initialization → Request confirmation: registers submit (evidence: `script.js`)
- Request confirmation → Form validation: validates fields (evidence: `script.js`)
- Request confirmation → Booking page: shows confirmation (evidence: `script.js`)
- Date and time slots → Booking page: updates time options (evidence: `script.js`)
