StealThis .dev

Construction — Construction FAQ

A rugged contractor FAQ with a live search box, accordion questions grouped into Estimates, Permits, Timeline, Payment and Warranty, full keyboard support with arrow keys and home/end, an empty-search state, a live result count and a hi-vis contact CTA card.

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

Code

Construction FAQ

A sturdy, job-site-flavoured help section for a general contractor. Questions are grouped into five labelled sections — Estimates, Permits, Timeline, Payment and Warranty — each rendered as an accessible disclosure accordion built on real <button> triggers with aria-expanded and aria-controls.

A live search filters questions and answers as you type, highlights the matched section headings, keeps a running result count and shows a friendly empty state with a one-tap clear button. The accordion is fully keyboard operable: Up/Down move between questions, Home/End jump to the first or last, and Enter/Space toggle the panel.

The hi-vis contact CTA card at the bottom routes anyone whose question is not covered to call, email or request an estimate. Everything is vanilla JS with no libraries.

Illustrative UI only — not for real construction, permitting or contractual use.