Editorial hero in React
A large serif composition, sober and composed, for liberal professions.
Here is an excerpt of this component's code in React. The full code is free for members, ready to copy into your project.
This component also comes in
The code in React
export function EditorialHero() {
return (
<section className="mx-auto max-w-6xl px-5 py-16">
<p className="mb-12 flex flex-wrap justify-between gap-2 border-b border-current pb-4 text-sm text-[#55504a] dark:text-[#bcb6aa]">
<span className="font-bold text-[#1d1b16] dark:text-[#f2efe7]">Cabinet Vasseur</span>
<span>Avocats au barreau de Paris depuis 1998</span>
</p>
<h1 className="max-w-[15ch] font-serif text-5xl leading-[0.98] tracking-[-0.02em] md:text-8xl">
Le droit des affaires, expliqué et défendu
</h1>
<div className="mt-12 grid gap-6 md:ml-[33%] md:grid-cols-[1fr_auto]">
<p className="max-w-120 text-lg leading-relaxed text-[#55504a] dark:text-[#bcb6aa]">Free component: copy it freely, including for commercial projects.
Other hero sections components in React
Hero sections components in React
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

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

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