# rselva1202/aurelia-hotel architecture

> Architecture diagram of the GitHub repository rselva1202/aurelia-hotel, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rselva1202/aurelia-hotel
- Repository: https://github.com/rselva1202/aurelia-hotel

## Overview

Aurelia Hotel is a demo boutique-resort marketing site, not a booking portal. A visitor enters the React single-page experience, explores the resort’s hero and editorial sections, then can use the enquiry/contact paths to reach the hotel via WhatsApp. The graph preserves the documented rooms, amenities, dining, gallery/lightbox, reviews, location, FAQ and contact branches. Relationships are limited to the App composition and sampled calls; several component behaviors are documented but their source was not sampled.

Main entry points: [`src/App.jsx`](https://github.com/rselva1202/aurelia-hotel/blob/main/src/App.jsx) (Page composition), [`src/data/siteConfig.js`](https://github.com/rselva1202/aurelia-hotel/blob/main/src/data/siteConfig.js) (Site content config), [`src/components/Gallery.jsx`](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Gallery.jsx) (Gallery), [`src/components/Booking.jsx`](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Booking.jsx) (Booking enquiry form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Page experience"]
  node_app["Page composition<br/>[App.jsx]"]
  node_curtain["Loading curtain<br/>[LoadingCurtain.jsx]"]
  node_navbar["Navigation<br/>[Navbar.jsx]"]
  node_hero["Scroll-driven hero<br/>[Hero.jsx]"]
  node_footer["Footer and preferences<br/>[Footer.jsx]"]
end

subgraph group_content["Resort content"]
  node_about["About resort<br/>[About.jsx]"]
  node_rooms["Rooms<br/>[Rooms.jsx]"]
  node_amenities["Amenities<br/>[Amenities.jsx]"]
  node_dining["Dining<br/>[Dining.jsx]"]
  node_gallery["Gallery<br/>[Gallery.jsx]"]
  node_lightbox["Gallery lightbox<br/>[Gallery.jsx]"]
  node_reviews["Guest reviews<br/>[Reviews.jsx]"]
  node_location["Location<br/>[Location.jsx]"]
  node_faq["FAQ<br/>[FAQ.jsx]"]
end

subgraph group_enquiry["Enquiry and contact"]
  node_booking["Booking enquiry form<br/>[Booking.jsx]"]
  node_contact["Contact details<br/>[Contact.jsx]"]
  node_whatsapp["WhatsApp contact"]
end

subgraph group_shared["Shared runtime"]
  node_mount["React mount<br/>[main.jsx]"]
  node_config["Site content config<br/>[siteConfig.js]"]
  node_scroll["Smooth scroll<br/>[useLenis.js]"]
  node_reveal["Scroll reveal<br/>[useScrollReveal.js]"]
end

node_visitor(("Visitor"))
node_whatsapp_service(("WhatsApp"))

node_visitor -->|"opens site"| node_mount
node_mount -->|"renders"| node_app
node_app -->|"reads settings"| node_config
node_app -->|"renders"| node_curtain
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_hero
node_app -->|"initializes"| node_scroll
node_app -->|"initializes"| node_reveal
node_app -->|"renders"| node_about
node_app -->|"renders"| node_rooms
node_app -->|"renders"| node_amenities
node_app -->|"renders"| node_dining
node_app -->|"renders"| node_gallery
node_app -->|"renders"| node_reviews
node_app -->|"renders"| node_location
node_app -->|"renders"| node_faq
node_app -->|"renders"| node_booking
node_app -->|"renders"| node_contact
node_app -->|"renders"| node_footer
node_config -->|"provides listings"| node_rooms
node_config -->|"provides details"| node_dining
node_config -->|"provides images"| node_gallery
node_gallery -->|"opens"| node_lightbox
node_visitor -->|"submits enquiry"| node_booking
node_booking -->|"opens message"| node_whatsapp_service
node_visitor -.->|"selects contact"| node_whatsapp
node_whatsapp -.->|"opens contact"| node_whatsapp_service
node_visitor -.->|"navigates sections"| node_navbar
node_visitor -.->|"browses photos"| node_gallery
node_hero -.->|"uses scroll state"| node_scroll

click node_mount "https://github.com/rselva1202/aurelia-hotel/blob/main/src/main.jsx"
click node_app "https://github.com/rselva1202/aurelia-hotel/blob/main/src/App.jsx"
click node_config "https://github.com/rselva1202/aurelia-hotel/blob/main/src/data/siteConfig.js"
click node_curtain "https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/LoadingCurtain.jsx"
click node_navbar "https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Navbar.jsx"
click node_hero "https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Hero.jsx"
click node_scroll "https://github.com/rselva1202/aurelia-hotel/blob/main/src/hooks/useLenis.js"
click node_reveal "https://github.com/rselva1202/aurelia-hotel/blob/main/src/hooks/useScrollReveal.js"
click node_about "https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/About.jsx"
click node_rooms "https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Rooms.jsx"
click node_amenities "https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Amenities.jsx"
click node_dining "https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Dining.jsx"
click node_gallery "https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Gallery.jsx"
click node_lightbox "https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Gallery.jsx"
click node_reviews "https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Reviews.jsx"
click node_location "https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Location.jsx"
click node_faq "https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/FAQ.jsx"
click node_booking "https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Booking.jsx"
click node_contact "https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Contact.jsx"
click node_whatsapp "https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/FloatingWhatsApp.jsx"
click node_footer "https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Footer.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_curtain,node_navbar,node_hero,node_footer toneBlue
class node_about,node_rooms,node_amenities,node_dining,node_gallery,node_lightbox,node_reviews,node_location,node_faq toneAmber
class node_booking,node_contact,node_whatsapp toneMint
class node_mount,node_config,node_scroll,node_reveal toneRose
class node_visitor,node_whatsapp_service toneIndigo
```

## Components

### Page experience

- [Page composition](https://github.com/rselva1202/aurelia-hotel/blob/main/src/App.jsx): `src/App.jsx`
- [Loading curtain](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/LoadingCurtain.jsx): `src/components/LoadingCurtain.jsx`
- [Navigation](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Scroll-driven hero](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Hero.jsx): `src/components/Hero.jsx`
- [Footer and preferences](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`

### Resort content

- [About resort](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/About.jsx): `src/components/About.jsx`
- [Rooms](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Rooms.jsx): `src/components/Rooms.jsx`
- [Amenities](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Amenities.jsx): `src/components/Amenities.jsx`
- [Dining](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Dining.jsx): `src/components/Dining.jsx`
- [Gallery](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Gallery.jsx): `src/components/Gallery.jsx`
- [Gallery lightbox](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Gallery.jsx): `src/components/Gallery.jsx`
- [Guest reviews](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Reviews.jsx): `src/components/Reviews.jsx`
- [Location](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Location.jsx): `src/components/Location.jsx`
- [FAQ](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/FAQ.jsx): `src/components/FAQ.jsx`

### Enquiry and contact

- [Booking enquiry form](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Booking.jsx): `src/components/Booking.jsx`
- [Contact details](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/Contact.jsx): `src/components/Contact.jsx`
- [WhatsApp contact](https://github.com/rselva1202/aurelia-hotel/blob/main/src/components/FloatingWhatsApp.jsx): `src/components/FloatingWhatsApp.jsx`

### Shared runtime

- [React mount](https://github.com/rselva1202/aurelia-hotel/blob/main/src/main.jsx): `src/main.jsx`
- [Site content config](https://github.com/rselva1202/aurelia-hotel/blob/main/src/data/siteConfig.js): `src/data/siteConfig.js`
- [Smooth scroll](https://github.com/rselva1202/aurelia-hotel/blob/main/src/hooks/useLenis.js): `src/hooks/useLenis.js`
- [Scroll reveal](https://github.com/rselva1202/aurelia-hotel/blob/main/src/hooks/useScrollReveal.js): `src/hooks/useScrollReveal.js`

### Other components

- **Visitor**
- **WhatsApp**

## Connections

- Visitor → React mount: opens site (evidence: `README.md`)
- React mount → Page composition: renders (evidence: `src/main.jsx`)
- Page composition → Site content config: reads settings (evidence: `src/App.jsx`)
- Page composition → Loading curtain: renders (evidence: `src/App.jsx`)
- Page composition → Navigation: renders (evidence: `src/App.jsx`)
- Page composition → Scroll-driven hero: renders (evidence: `src/App.jsx`)
- Page composition → Smooth scroll: initializes (evidence: `src/App.jsx`)
- Page composition → Scroll reveal: initializes (evidence: `src/App.jsx`)
- Page composition → About resort: renders (evidence: `src/App.jsx`)
- Page composition → Rooms: renders (evidence: `src/App.jsx`)
- Page composition → Amenities: renders (evidence: `README.md`)
- Page composition → Dining: renders (evidence: `src/App.jsx`)
- Page composition → Gallery: renders (evidence: `src/App.jsx`)
- Page composition → Guest reviews: renders (evidence: `src/App.jsx`)
- Page composition → Location: renders (evidence: `README.md`)
- Page composition → FAQ: renders (evidence: `README.md`)
- Page composition → Booking enquiry form: renders (evidence: `README.md`)
- Page composition → Contact details: renders (evidence: `src/App.jsx`)
- Page composition → Footer and preferences: renders (evidence: `README.md`)
- Site content config → Rooms: provides listings (evidence: `src/App.jsx`)
- Site content config → Dining: provides details (evidence: `src/App.jsx`)
- Site content config → Gallery: provides images (evidence: `src/App.jsx`)
- Gallery → Gallery lightbox: opens (evidence: `src/components/Gallery.jsx`)
- Visitor → Booking enquiry form: submits enquiry (evidence: `README.md`)
- Booking enquiry form → WhatsApp: opens message (evidence: `README.md`)
- Visitor → WhatsApp contact: selects contact
- WhatsApp contact → WhatsApp: opens contact
- Visitor → Navigation: navigates sections
- Visitor → Gallery: browses photos
- Scroll-driven hero → Smooth scroll: uses scroll state
