StealThis .dev

Job Board — Filter Rail

A faceted job-search filter rail with collapsible groups for role, job type, experience and remote mode, plus a minimum-salary slider, a location input that turns cities into removable chips, and segmented controls. Every interaction updates a live results count and a row of active-filter chips with one-tap removal and clear-all. On narrow screens the rail becomes an accessible slide-in drawer, and job cards carry salary, location and remote badges with a bookmark toggle.

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

Code

Filter Rail

A scannable faceted sidebar for a job board. Filters are grouped into collapsible sections — role, job type, experience, remote mode, minimum salary and location — each with per-option counts so candidates can see how many roles sit behind every choice. The remote mode uses a segmented radio set, salary is a live range slider, and locations are typed (or picked from suggestions) and rendered as removable chips.

Every control feeds a single state object that re-filters the listing and updates the headline results count in real time. Applied filters surface as a row of active chips above the results, each with its own remove button, alongside a clear-all action. Job cards show company initials as a colored logo, salary, location and remote badges, a “New” tag, posting age and a bookmark toggle that fires a toast.

The layout is a sticky two-column grid on desktop. Below ~920px the rail collapses into a focus-trappable slide-in drawer opened from a Filters button in the top bar, with a scrim, Escape-to-close, and a sticky footer for clear-all and apply. Everything is keyboard-usable and built with semantic landmarks and vanilla JS only.

Illustrative UI only — fictional jobs & companies, not a real hiring platform.