StealThis .dev
Pages Hard

Auto — Vehicle Detail

A dealership vehicle-detail page for a certified 2022 Toyota 4Runner, pairing a gradient photo gallery with a sticky pricing rail. A spec section flips between overview, engine and history tabs, a key-features grid lists equipment, and a live payment estimator recomputes the monthly figure from down payment, term and APR sliders. A sticky CTA bar surfaces on scroll, while test-drive and trade-in modals validate input and return a fictional trade valuation.

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

Code

Vehicle Detail

A full vehicle-detail page for Westgate Motors, built around a certified pre-owned 2022 Toyota 4Runner TRD Off-Road. A gradient photo gallery anchors the layout with a large stage, prev/next controls (also driven by the arrow keys), a six-shot thumbnail strip and a certified badge. Below it sit the title block with a save-to-garage heart, a six-cell quick-facts grid of odometer, drivetrain, fuel, transmission, MPG and owner count, and a tabbed spec panel that swaps between Overview, Engine and History views. A key-features grid lists equipment with custom checkmarks.

A sticky pricing rail carries the sale price, struck-through MSRP and a finance-from line. Its payment estimator recomputes the monthly figure live as you drag the down-payment and APR sliders or change the loan term, and the rail also exposes the dealer contact card with reassurance points. Scrolling the price card off-screen reveals a fixed CTA bar at the bottom; both it and the rail open test-drive and trade-in modals. The test-drive form validates name, phone and date, and the trade-in form returns a ballpark valuation from a small fictional pricing model.

Everything is vanilla HTML, CSS and JavaScript with no frameworks, build step or assets beyond the Inter font. Prices, the VIN and the odometer use tabular figures, modals trap initial focus and close on Escape or backdrop click, and the layout collapses the rail beneath the gallery and restacks the grids for screens down to about 360px.

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