Tradesperson hero with quick quote request
Headline, service area, Google rating and job-site photo, with a direct call button and a short callback form (name, phone, need).
- Tailwind
- React
- CSS
- WordPress
Description
For plumbers, electricians, roofers and any tradesperson whose customers want to talk to someone fast. The "Call" button opens the phone dialer (tel: link), and the callback form fits in three fields: name, phone with autocomplete tel, and type of work. Errors appear under each field, linked with aria-describedby and aria-invalid, focus moves to the first field to fix, and the number is checked against the French format (spaces, dots and +33 accepted). Without JavaScript, browser validation takes over and the form posts to its action attribute; to send it yourself, cancel the had:submit event, then dispatch had:done (a confirmation message that receives focus) or had:error (an alert read by screen readers). The job-site illustration is an SVG to replace with your own photo; its corners are set with the --had-photo-radius variable, for instance 62% 38% 46% 54% / 48% 56% 44% 52% for an organic shape. Colours as --had-* variables, sizes in rem with body text at 16 px minimum, light and dark themes, usable from 360 px, transitions off with prefers-reduced-motion. About 80 lines of script, no dependency.
Code
Loading the code…
The code of this component in
Archive contents
hero-artisan-devis-rapide-html-tailwind.zip3 files · 8 Ko
- index.html18 Ko
- README.md4 Ko
- LICENSE.md1 Ko
Tags
Updated on December 2, 2026.
Reviews
No reviews yet.
In the same spirit

A dark hero where very large words, outlined or at low opacity, pass behind a two-column text. The animation is CSS only, with no script and no image.
- Tailwind
- React
- CSS
- WordPress

A festival or fair header: dates, venue, featured artists, a real countdown to opening and ticket options.
- Tailwind
- React
- CSS
- WordPress

A bright, warm hero: highlighted promise, two buttons, an avatar stack with a rating out of 5, and on the right a customer quote surrounded by result chips.
- Tailwind
- React
- CSS
- WordPress

Full-screen hero
Coming soonA visual filling the whole screen, the headline set bottom-left over a gradient veil.
- Tailwind
- React
- CSS
- WordPress