StealThis .dev

Gym — Equipment Status

A live equipment status board for a performance gym floor. Items are grouped by category — treadmills, squat racks, benches, rowers and cable machines — each with a status pill for free, in use or out of order. In-use units show who has them, elapsed time and an ETA progress bar. Summary counters, a status filter and instant search keep the floor scannable, while a report-issue dialog flips any unit out of order with a reason.

فتح في المختبر
html css vanilla-js
الأهداف: JS HTML

الكود

Equipment Status

A high-energy status board for a gym floor at a glance. Equipment is grouped by category — Treadmills, Squat Racks, Benches, Rowers and Cable Machines — and every unit carries a colour-coded status pill: green for Free, orange for In use, red for Out of order. In-use cards name the member holding the unit, show elapsed minutes and render an ETA progress bar estimating how long is left in the session.

Four summary tiles across the top count the totals for each status and double as quick filters. Combine them with the pill filter chips and the instant search box to narrow the board to, say, only free racks or anything mentioning a particular trainer. A built-in Report issue dialog lets staff flip a unit out of order with a categorised reason and optional notes; out-of-order cards then expose a Mark fixed action to return them to service.

The board feels alive: a small interval advances active sessions, frees units when their time runs out, and occasionally spins up a new session on a free machine — all reflected in the counters and ETA bars in real time. It is built with vanilla HTML, CSS and JavaScript, is keyboard-usable with visible focus rings, respects reduced-motion preferences, and collapses to a single column on screens down to ~360px.