StealThis .dev

Gym — Public Schedule Page

A bold, public-facing weekly class schedule for a performance gym. Members and prospects pick a location, scan day tabs with a live today highlight, and filter classes by type or trainer. Every row shows time, class name, trainer, room and an intensity tag, plus live spot counts and an in-session marker. A Reserve button opens a free-trial sign-up modal, and a one-tap print layout produces a clean handout. Built with vanilla JavaScript only.

Lab에서 열기
html css vanilla-js
Targets: JS HTML

Code

Public Schedule Page

A marketing-first weekly schedule for the fictional IRONPULSE gym, designed to convert curious visitors into trial members. A location selector at the top swaps the entire week between the Downtown and Riverside studios, updating the trainer roster and class list instantly. Seven day tabs run across the top with the current weekday auto-highlighted as TODAY, so the view always opens on the right day.

Each class is a high-contrast row showing the start time and duration, the class name, the assigned trainer, the room, the class type, and a color-coded intensity badge (low, moderate, high). Live spot counters warn when only a few places remain, full classes flip to a waitlist action, and any class currently running on today’s tab gets an “In session” marker and a neon-tinted row. Two filters — a chip row for class type and a trainer dropdown — narrow the day’s lineup in real time, with a friendly empty state when nothing matches.

Pressing Reserve on any open class opens a free-trial modal that validates name and email before confirming with a toast. Secondary actions include a hero “Claim a free trial” CTA and a Print button that triggers a dedicated print stylesheet for a clean, ink-friendly handout. Everything runs on a single vanilla JavaScript file with no dependencies, full keyboard support, visible focus rings, and a responsive layout that collapses gracefully down to 360px.