StealThis .dev
Strony Średni

Gym — Class Booking Flow

A bold, athletic four-step class booking flow for a performance gym. Members swipe a horizontal date strip, choose from real-feeling sessions with spots-left counters and intensity badges, claim a position on a small floor map of bikes or stations, then confirm and pay with class credits or a saved card. A persistent summary rail tracks every choice, validation gates each step, and confirming reveals a success panel with a generated booking code.

Otwórz w Lab
html css vanilla-js
Targety: JS HTML

Kod

Class Booking Flow

A high-energy, dark-themed booking wizard for a fictional performance studio, PulseHaus. A four-part step indicator (Date → Class → Your spot → Confirm) sits above the panels, with completed steps marked done and a neon progress bar that fills as you advance. Step one is a swipeable date strip with a Today badge; step two lists classes such as Power Ride and Inferno HIIT, each with a coach, duration and intensity badges, plus per-time-slot buttons that show spots-left and disable full or low slots. Step three draws a small floor map where you tap an open bike, rack or station — taken positions are deterministically greyed out — and step four reviews everything and lets you pay by credits or card.

A persistent summary rail mirrors every selection in real time and recomputes the total as 1 credit or the card price. Next/Back navigation is validation-gated: Continue stays disabled (with a contextual hint and an error toast) until the current step has a valid choice. Confirming swaps in a success panel with a generated booking code, an add-to-calendar affordance, a decremented credit balance and a Book another reset. Everything is vanilla JS — no frameworks, no build step.

Illustrative UI only — names, classes and trainers are fictional.