StealThis .dev

Auto — Test Drive Booking

A polished test drive booking flow for a dealership, built with plain HTML, CSS and vanilla JavaScript. It pairs a selected vehicle card with stock, VIN and odometer details against a horizontal date picker and a grid of time slots that mark already-booked times as unavailable. Customers enter contact details, confirm a valid license, and submit to a confirmation modal that generates a downloadable calendar invite for Bay 7.

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

Code

Test Drive Booking

An industrial, status-forward booking screen for a fictional dealership. A selected vehicle card leads with a gradient photo placeholder, MSRP in tabular figures, and a spec grid of stock number, VIN, odometer and dealer plate. The booking form steps the customer through a scrollable date picker, a responsive grid of time slots, and the contact details needed to take a car out — name, phone, email and driver’s license number, plus an explicit valid-license confirmation.

Interactions are entirely vanilla JS. Selecting a date repaints the slot grid with a deterministic set of already-booked (disabled, struck-through) times, and picking a slot lights up the sticky summary panel and its status LED as it moves from “Awaiting confirmation” to “Ready to confirm”. Submitting runs inline field validation with accessible error messages; on success a confirmation modal shows a generated booking code and the appointment, and an “Add to calendar” button builds and downloads a real .ics invite for Bay 7. Toasts give lightweight feedback throughout.

The layout is mobile-first responsive down to ~360px, uses the safety-orange-on-garage-black automotive palette, and keeps buttons and inputs keyboard-usable with visible focus rings and WCAG AA contrast.

Illustrative UI only — fictional shop/dealership, not a real service system.