StealThis .dev
Halaman Medium

Hotel Booking — Room Detail

Room detail page with a switchable image gallery, amenities grid and selectable rate plans (flexible / non-refundable / bed & breakfast) feeding a sticky booking summary that recalculates the stay total live.

Buka di Lab
html css vanilla-js
Targets: JS HTML

Code

Room Detail

The room page a guest lands on after picking a result. A gallery with a large hero and clickable thumbnails sits beside the room title, size and sleeping arrangement. Below, an amenities grid and a description. The heart of the page is the rate plan selector — flexible, non-refundable saver, and bed & breakfast — each a radio card with its own nightly price and policy. Selecting a plan updates the sticky booking summary (nightly rate × nights + taxes) and the reserve button in vanilla JS.