How aiclubvsa/greenstay-immersive-site works
The Green Stay is an immersive homestay website that guides prospective guests from discovering the estate and its rooms, activities, food and local attractions to sending a non-binding stay enquiry. The main experience is a scroll-led home page, alongside gallery, journal and nearby-attractions pages; booking enquiries are validated and appended to a local NDJSON file, with WhatsApp as a guest fallback. The README documents the scene choreography and reduced-motion behavior. Unsampled page and component internals are represented only where the tree and README identify their roles.
Main entry points: page.tsx Immersive home · scroll.ts Scroll progress · site.ts Property and rates · Booking.tsx Booking form
Components 23
Stay experience
- Immersive home
app/app/page.tsx - Arrival scene
app/components/Hero.tsx - House approach
app/components/Approach.tsx - Room journey
app/components/RoomJourney.tsx - Estate pullback
app/components/Pullback.tsx - Forest experiences
app/components/Forest.tsx - Meals and tariff
app/components/Table.tsx - Stay details
app/components/Stay.tsx - Scroll progress
app/lib/scroll.ts - Motion provider
app/components/MotionProvider.tsx
Explore information
- Photo gallery
app/app/gallery/page.tsx - Nearby attractions
app/app/nearby-attractions/page.tsx - Field journal
app/app/blogs/page.tsx - Page shell
app/components/PageShell.tsx
Stay enquiries
- Booking form
app/components/Booking.tsx - Enquiry endpoint
app/app/api/bookings/route.ts - Enquiry records
- WhatsApp fallback
- Contact details
app/app/contacts/page.tsx
Property content
- Explore content
app/lib/explore.ts - Property and rates
app/lib/site.ts
Other components
- Prospective guest
- Published photo source
Connections 37
- Prospective guest → Immersive home: views
- Immersive home → Arrival scene: renders
- Immersive home → House approach: renders
- Immersive home → Room journey: renders
- Immersive home → Estate pullback: renders
- Immersive home → Forest experiences: renders
- Immersive home → Meals and tariff: renders
- Immersive home → Stay details: renders
- Immersive home → Booking form: renders
- Scroll progress → Arrival scene: updates progress
- Scroll progress → House approach: updates progress
- Scroll progress → Room journey: updates progress
- Scroll progress → Estate pullback: updates progress
- Scroll progress → Forest experiences: updates progress
- Room journey → Property and rates: reads rooms
- Forest experiences → Property and rates: reads activities
- Meals and tariff → Property and rates: reads inclusions
- Stay details → Property and rates: reads property
- Booking form → Property and rates: reads rates and rooms
- Booking form → Enquiry endpoint: posts enquiry
- Booking form → WhatsApp fallback: offers fallback
- Enquiry endpoint → Property and rates: checks rooms
- Enquiry endpoint → Enquiry records: appends enquiry
- Prospective guest → Photo gallery: opens
- Prospective guest → Nearby attractions: opens
- Prospective guest → Field journal: opens
- Prospective guest → Contact details: opens
- Contact details → Page shell: uses
- Photo gallery → Page shell: uses
- Nearby attractions → Page shell: uses
- Field journal → Page shell: uses
- Photo gallery → Explore content: reads gallery
- Nearby attractions → Explore content: reads attractions
- Field journal → Explore content: reads posts
- Contact details → Booking form: renders form
- Explore content → Published photo source: references photos
- Motion provider → Immersive home: provides motion context