# aldrinpm/luxury-hotels architecture

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

- Interactive diagram: https://gitdiagram.com/aldrinpm/luxury-hotels
- Repository: https://github.com/aldrinpm/luxury-hotels

## Overview

This is a React hotel-booking showcase: visitors explore an interactive landing scene, search and browse rooms, request a reservation, or send an inquiry. The reservation and inquiry flows are frontend-only stubs; no booking backend or persistent store is shown. The graph preserves the documented amenities and contact capabilities, plus the room catalog and date utilities. Relationships are based on the supplied excerpts and SOURCE INDEX; the landing-page document is documented as first-party content, but its internal implementation was not sampled.

Main entry points: [`src/App.tsx`](https://github.com/aldrinpm/luxury-hotels/blob/master/src/App.tsx) (Page composition), [`src/components/SearchBar.tsx`](https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/SearchBar.tsx) (Availability search), [`src/components/BookingSection.tsx`](https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/BookingSection.tsx) (Booking form), [`src/data/rooms.ts`](https://github.com/aldrinpm/luxury-hotels/blob/master/src/data/rooms.ts) (Room catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Hotel experience"]
  node_app["Page composition<br/>[App.tsx]"]
  node_header["Site header<br/>[SiteHeader.tsx]"]
  node_landing["Interactive landing"]
  node_landing_doc["Kibori scene<br/>[kibori.html]"]
  node_amenities["Amenities<br/>[Amenities.tsx]"]
  node_contact["Contact &amp; inquiry<br/>[ContactSection.tsx]"]
  node_footer["Site footer<br/>[SiteFooter.tsx]"]
  node_react_root["React entry<br/>[index.tsx]"]
end

subgraph group_discovery["Room discovery"]
  node_search["Availability search<br/>[SearchBar.tsx]"]
  node_rooms_section["Room results<br/>[RoomsSection.tsx]"]
  node_room_card["Room card<br/>[RoomCard.tsx]"]
end

subgraph group_booking["Reservations"]
  node_booking_form["Booking form<br/>[BookingSection.tsx]"]
  node_booking_api["Booking stubs<br/>[bookingApi.ts]"]
  node_inquiry_service["Inquiry stub<br/>[bookingApi.ts]"]
end

subgraph group_shared["Shared data"]
  node_room_catalog["Room catalog<br/>[rooms.ts]"]
  node_date_utils["Date utilities<br/>[dates.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"uses"| node_app
node_react_root -->|"renders"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_landing
node_landing -->|"loads iframe"| node_landing_doc
node_app -->|"renders"| node_search
node_app -->|"renders"| node_rooms_section
node_app -->|"renders"| node_amenities
node_app -->|"renders"| node_booking_form
node_app -->|"renders"| node_contact
node_app -->|"renders"| node_footer
node_search -->|"submits criteria"| node_app
node_rooms_section -->|"renders cards"| node_room_card
node_rooms_section -->|"filters rooms"| node_room_catalog
node_search -->|"uses room types"| node_room_catalog
node_search -->|"gets dates"| node_date_utils
node_booking_form -->|"creates booking"| node_booking_api
node_booking_form -->|"selects room"| node_room_catalog
node_booking_form -->|"calculates nights"| node_date_utils
node_contact -->|"sends inquiry"| node_inquiry_service
node_booking_api -->|"looks up room"| node_room_catalog
node_booking_api -->|"calculates nights"| node_date_utils

click node_app "https://github.com/aldrinpm/luxury-hotels/blob/master/src/App.tsx"
click node_header "https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/SiteHeader.tsx"
click node_landing "https://github.com/aldrinpm/luxury-hotels/blob/master/src/shaders/kibori-landing-page/KiboriLandingPage.tsx"
click node_landing_doc "https://github.com/aldrinpm/luxury-hotels/blob/master/public/landing-pages/kibori.html"
click node_amenities "https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/Amenities.tsx"
click node_contact "https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/ContactSection.tsx"
click node_footer "https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/SiteFooter.tsx"
click node_search "https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/SearchBar.tsx"
click node_rooms_section "https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/RoomsSection.tsx"
click node_room_card "https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/RoomCard.tsx"
click node_booking_form "https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/BookingSection.tsx"
click node_booking_api "https://github.com/aldrinpm/luxury-hotels/blob/master/src/lib/bookingApi.ts"
click node_room_catalog "https://github.com/aldrinpm/luxury-hotels/blob/master/src/data/rooms.ts"
click node_date_utils "https://github.com/aldrinpm/luxury-hotels/blob/master/src/lib/dates.ts"
click node_inquiry_service "https://github.com/aldrinpm/luxury-hotels/blob/master/src/lib/bookingApi.ts"
click node_react_root "https://github.com/aldrinpm/luxury-hotels/blob/master/src/index.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_app,node_header,node_landing,node_landing_doc,node_amenities,node_contact,node_footer,node_react_root toneBlue
class node_search,node_rooms_section,node_room_card toneAmber
class node_booking_form,node_booking_api,node_inquiry_service toneMint
class node_room_catalog,node_date_utils toneRose
class node_visitor toneIndigo
```

## Components

### Hotel experience

- [Page composition](https://github.com/aldrinpm/luxury-hotels/blob/master/src/App.tsx): `src/App.tsx`
- [Site header](https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/SiteHeader.tsx): `src/components/SiteHeader.tsx`
- [Interactive landing](https://github.com/aldrinpm/luxury-hotels/blob/master/src/shaders/kibori-landing-page/KiboriLandingPage.tsx): `src/shaders/kibori-landing-page/KiboriLandingPage.tsx`
- [Kibori scene](https://github.com/aldrinpm/luxury-hotels/blob/master/public/landing-pages/kibori.html): `public/landing-pages/kibori.html`
- [Amenities](https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/Amenities.tsx): `src/components/Amenities.tsx`
- [Contact & inquiry](https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/ContactSection.tsx): `src/components/ContactSection.tsx`
- [Site footer](https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/SiteFooter.tsx): `src/components/SiteFooter.tsx`
- [React entry](https://github.com/aldrinpm/luxury-hotels/blob/master/src/index.tsx): `src/index.tsx`

### Room discovery

- [Availability search](https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/SearchBar.tsx): `src/components/SearchBar.tsx`
- [Room results](https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/RoomsSection.tsx): `src/components/RoomsSection.tsx`
- [Room card](https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/RoomCard.tsx): `src/components/RoomCard.tsx`

### Reservations

- [Booking form](https://github.com/aldrinpm/luxury-hotels/blob/master/src/components/BookingSection.tsx): `src/components/BookingSection.tsx`
- [Booking stubs](https://github.com/aldrinpm/luxury-hotels/blob/master/src/lib/bookingApi.ts): `src/lib/bookingApi.ts`
- [Inquiry stub](https://github.com/aldrinpm/luxury-hotels/blob/master/src/lib/bookingApi.ts): `src/lib/bookingApi.ts`

### Shared data

- [Room catalog](https://github.com/aldrinpm/luxury-hotels/blob/master/src/data/rooms.ts): `src/data/rooms.ts`
- [Date utilities](https://github.com/aldrinpm/luxury-hotels/blob/master/src/lib/dates.ts): `src/lib/dates.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Page composition: uses (evidence: `README.md`)
- React entry → Page composition: renders (evidence: `src/index.tsx`)
- Page composition → Site header: renders (evidence: `src/App.tsx`)
- Page composition → Interactive landing: renders (evidence: `src/App.tsx`)
- Interactive landing → Kibori scene: loads iframe (evidence: `src/shaders/kibori-landing-page/KiboriLandingPage.tsx`)
- Page composition → Availability search: renders (evidence: `src/App.tsx`)
- Page composition → Room results: renders (evidence: `src/App.tsx`)
- Page composition → Amenities: renders (evidence: `src/App.tsx`)
- Page composition → Booking form: renders (evidence: `src/App.tsx`)
- Page composition → Contact & inquiry: renders (evidence: `src/App.tsx`)
- Page composition → Site footer: renders (evidence: `src/App.tsx`)
- Availability search → Page composition: submits criteria (evidence: `src/components/SearchBar.tsx`)
- Room results → Room card: renders cards (evidence: `src/components/RoomsSection.tsx`)
- Room results → Room catalog: filters rooms (evidence: `src/components/RoomsSection.tsx`)
- Availability search → Room catalog: uses room types (evidence: `src/components/SearchBar.tsx`)
- Availability search → Date utilities: gets dates (evidence: `src/components/SearchBar.tsx`)
- Booking form → Booking stubs: creates booking (evidence: `src/components/BookingSection.tsx`)
- Booking form → Room catalog: selects room (evidence: `src/components/BookingSection.tsx`)
- Booking form → Date utilities: calculates nights (evidence: `src/components/BookingSection.tsx`)
- Contact & inquiry → Inquiry stub: sends inquiry (evidence: `src/components/ContactSection.tsx`)
- Booking stubs → Room catalog: looks up room (evidence: `src/lib/bookingApi.ts`)
- Booking stubs → Date utilities: calculates nights (evidence: `src/lib/bookingApi.ts`)
