# senaye2003/larinesaba_website architecture

> Architecture diagram of the GitHub repository senaye2003/larinesaba_website, 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/senaye2003/larinesaba_website
- Repository: https://github.com/senaye2003/larinesaba_website

## Overview

La Reine de Saba is a restaurant website with menu and contact information, plus booking and feedback forms. Visitors use the site’s forms; shared browser code validates and submits them, and the Netlify function validates the request and emails the restaurant followed by a guest acknowledgement. The provided evidence does not include page markup, so form placement and its configured action are not verified; those connections are dashed. The README is empty.

Main entry points: [`netlify/functions/booking.mjs`](https://github.com/senaye2003/larinesaba_website/blob/main/netlify/functions/booking.mjs) (Booking and feedback handler), [`script.js`](https://github.com/senaye2003/larinesaba_website/blob/main/script.js) (Shared browser behavior), [`index.html`](https://github.com/senaye2003/larinesaba_website/blob/main/index.html) (Restaurant home), [`menu.html`](https://github.com/senaye2003/larinesaba_website/blob/main/menu.html) (Menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Restaurant website"]
  node_home["Restaurant home<br/>[index.html]"]
  node_menu["Menu<br/>[menu.html]"]
  node_contact["Contact page<br/>[contact.html]"]
  node_booking["Booking page<br/>[booking.html]"]
  node_french["French home<br/>[index.html]"]
  node_styles["Site styling<br/>[style.css]"]
end

subgraph group_browser["Browser behavior"]
  node_browser_behavior["Shared browser behavior<br/>[script.js]"]
end

subgraph group_forms["Form processing"]
  node_form_handler["Booking and feedback handler<br/>[booking.mjs]"]
  node_email_content["Email composition<br/>[booking.mjs]"]
end

subgraph group_delivery["Email delivery"]
  node_resend["Resend email API"]
end

node_visitor(("Visitor"))
node_restaurant(("Restaurant inbox"))
node_guest(("Guest inbox"))

node_visitor -.->|"browses"| node_home
node_visitor -.->|"browses"| node_menu
node_visitor -.->|"browses"| node_contact
node_visitor -.->|"requests booking"| node_booking
node_visitor -.->|"browses"| node_french
node_browser_behavior -.->|"submits form"| node_form_handler
node_visitor -.->|"submits form"| node_form_handler
node_form_handler -->|"composes emails"| node_email_content
node_form_handler -->|"sends emails"| node_resend
node_resend -->|"delivers submission"| node_restaurant
node_resend -->|"delivers acknowledgement"| node_guest

click node_home "https://github.com/senaye2003/larinesaba_website/blob/main/index.html"
click node_menu "https://github.com/senaye2003/larinesaba_website/blob/main/menu.html"
click node_contact "https://github.com/senaye2003/larinesaba_website/blob/main/contact.html"
click node_booking "https://github.com/senaye2003/larinesaba_website/blob/main/booking.html"
click node_french "https://github.com/senaye2003/larinesaba_website/blob/main/fr/index.html"
click node_styles "https://github.com/senaye2003/larinesaba_website/blob/main/style.css"
click node_browser_behavior "https://github.com/senaye2003/larinesaba_website/blob/main/script.js"
click node_form_handler "https://github.com/senaye2003/larinesaba_website/blob/main/netlify/functions/booking.mjs"
click node_email_content "https://github.com/senaye2003/larinesaba_website/blob/main/netlify/functions/booking.mjs"

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_menu,node_contact,node_booking,node_french,node_styles toneBlue
class node_browser_behavior toneAmber
class node_form_handler,node_email_content toneMint
class node_resend toneRose
class node_visitor,node_restaurant,node_guest toneIndigo
```

## Components

### Restaurant website

- [Restaurant home](https://github.com/senaye2003/larinesaba_website/blob/main/index.html): `index.html`
- [Menu](https://github.com/senaye2003/larinesaba_website/blob/main/menu.html): `menu.html`
- [Contact page](https://github.com/senaye2003/larinesaba_website/blob/main/contact.html): `contact.html`
- [Booking page](https://github.com/senaye2003/larinesaba_website/blob/main/booking.html): `booking.html`
- [French home](https://github.com/senaye2003/larinesaba_website/blob/main/fr/index.html): `fr/index.html`
- [Site styling](https://github.com/senaye2003/larinesaba_website/blob/main/style.css): `style.css`

### Browser behavior

- [Shared browser behavior](https://github.com/senaye2003/larinesaba_website/blob/main/script.js): `script.js`

### Form processing

- [Booking and feedback handler](https://github.com/senaye2003/larinesaba_website/blob/main/netlify/functions/booking.mjs): `netlify/functions/booking.mjs`
- [Email composition](https://github.com/senaye2003/larinesaba_website/blob/main/netlify/functions/booking.mjs): `netlify/functions/booking.mjs`

### Email delivery

- **Resend email API**

### Other components

- **Visitor**
- **Restaurant inbox**
- **Guest inbox**

## Connections

- Visitor → Restaurant home: browses
- Visitor → Menu: browses
- Visitor → Contact page: browses
- Visitor → Booking page: requests booking
- Visitor → French home: browses
- Shared browser behavior → Booking and feedback handler: submits form
- Visitor → Booking and feedback handler: submits form
- Booking and feedback handler → Email composition: composes emails (evidence: `netlify/functions/booking.mjs`)
- Booking and feedback handler → Resend email API: sends emails (evidence: `netlify/functions/booking.mjs`)
- Resend email API → Restaurant inbox: delivers submission
- Resend email API → Guest inbox: delivers acknowledgement
