Hero with illustration in HTML and CSS
Headline, promise and two actions on the left, vector illustration on the right.
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>Section d'accueil avec illustration</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main class="demo">
<section class="split-hero">
<div class="split-hero__text">:root {
--hero-bg: #fff7ed;
--hero-text: #431407;
--hero-muted: #7c2d12;
--hero-accent: #c2410c;
--hero-accent-text: #ffffff;
--hero-art: #ea580c;
--hero-badge: #ffedd5;
--hero-ring: #9a3412;
--demo-bg: #fff7ed;
--demo-text: #431407;
}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

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

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

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