StealThis .dev
页面 中等

Hotel Booking — Checkout

Booking checkout page: guest details, arrival time and requests, a card payment form with live number / expiry formatting and inline validation, plus a sticky order summary and a success confirmation state.

在 Lab 開啟
html css vanilla-js
目標: JS HTML

程式碼

Booking Checkout

The final step of the booking funnel. The left column collects guest details (name, email, phone), an estimated arrival time and special requests, then card payment with live formatting — card number grouped in fours, expiry as MM/YY, numeric CVC. Inline validation flags missing or malformed fields on submit. The right column is a sticky order summary echoing the room, dates and price breakdown. Confirming runs a short processing state, then swaps in a success panel with a booking reference — all in vanilla JS.