StealThis .dev
Pages Medium

Coworking — Meeting Room Booking

A warm industrial coworking meeting-room booking screen. Browse room cards showing capacity, AV gear, hourly price and live availability, switch between days, then drag across a 30-minute timeline to pick a slot with built-in conflict checking. Choose a duration, add attendees against the room seat limit, watch a running price and credits meter update, and confirm to lock the slot. Pure HTML, CSS and vanilla JavaScript with toast feedback.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Meeting Room Booking

A meeting-room reservation screen for a fictional loft coworking space, built in the warm-industrial Foundry & Co. style — concrete tones, an amber accent and a plant-green member badge. A grid of room cards leads the layout, each with a gradient photo block, capacity and AV chips, an hourly rate and a live Open / Limited availability flag that recalculates per day. Selecting a card highlights it and re-points the booking panel beside it.

The booking panel pairs a three-day pill switcher with a draggable 08:00–18:00 timeline split into 30-minute slots. Available slots glow green, booked slots show a hatched red fill, and pressing and dragging paints your selection in amber — sized by the active duration picker (30m to 2h). Selections are conflict-checked in real time, so you can never overlap an existing booking, and arrow keys offer a keyboard-friendly path to the next free range.

A running summary tracks room, time, duration and total price, while the attendees field adds removable member pills and warns when you exceed the room’s seat count. Confirming a booking deducts from the monthly credits meter, marks those slots as taken, and fires a toast — all state handled in plain vanilla JavaScript with no dependencies.

Illustrative UI only — fictional coworking space, not a real booking system.