Tradesperson hero with quick quote request in HTML and CSS
Headline, service area, Google rating and job-site photo, with a direct call button and a short callback form (name, phone, need).
Here is an excerpt of this component's code in HTML and CSS. The full code is free for members, ready to copy into your project.
This component also comes in
The code in HTML and CSS
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Héros d'artisan avec demande de devis rapide</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main class="demo">
<section class="had" aria-labelledby="had-titre" data-had>
<div class="had__inner">document.querySelectorAll("[data-had]").forEach((root) => {
const form = root.querySelector("[data-had-form]");
const submit = root.querySelector("[data-had-submit]");
const failure = root.querySelector("[data-had-failure]");
const done = root.querySelector("[data-had-done]");
const checks = {
nom: (value) => (value.trim() ? "" : "Indiquez votre nom pour que nous sachions qui rappeler."),
telephone: (value) => {
if (!value.trim()) return "Indiquez votre numéro de téléphone.";
return /^(\+33|0033|0)[1-9]\d{8}$/.test(value.replace(/[\s.\-]/g, "")) ? "" : "Ce numéro semble incomplet : saisissez 10 chiffres, par exemple 06 12 34 56 78.";
},
besoin: (value) => (value ? "" : "Choisissez le type de travaux."),:root {
--had-bg: #f6f3ee;
--had-text: #1d232b;
--had-muted: #4f5863;
--had-line: #d9d2c6;
--had-card: #ffffff;
--had-field: #ffffff;
--had-field-line: #7b8590;
--had-accent: #1e3a5f;
--had-accent-hover: #152c49;
--had-accent-text: #ffffff;
--had-ring: rgb(30 58 95 / 0.2);Free component: copy it freely, including for commercial projects.
Other hero sections components in HTML and CSS
Hero sections components in HTML and CSS
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

Headline, promise and two actions on the left, vector illustration on the right.
- Tailwind
- React
- CSS
- WordPress

Editorial hero
FreeA large serif composition, sober and composed, for liberal professions.
- Tailwind
- React
- CSS
- WordPress

A powerful headline followed by a row of three reassuring figures.
- Tailwind
- React
- CSS
- WordPress