Social proof hero in React
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.
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 SocialProofHero() {
return (
<section className="grid grid-cols-[minmax(0,1fr)] items-center gap-x-16 gap-y-14 overflow-hidden bg-[#fffbeb] px-[max(1rem,calc((100%_-_72rem)/2))] py-[clamp(3.5rem,8vw,6.5rem)] text-[#1c1917] min-[860px]:grid-cols-[minmax(0,1.1fr)_minmax(0,0.9fr)] dark:bg-[#1a1608] dark:text-[#fefce8]">
<div className="grid justify-items-start gap-6">
<p className="m-0 rounded-full bg-[#fef3c7] px-3.5 py-1.5 text-sm font-semibold text-[#713f12] dark:bg-[#3f3514] dark:text-[#fde68a]">
Comptabilité des artisans et indépendants
</p>
<h1 className="m-0 max-w-[16ch] text-[clamp(2.4rem,5.5vw,4rem)] leading-[1.04] font-extrabold tracking-[-0.03em] text-balance">
Vos comptes tenus en{" "}
<span className="bg-[linear-gradient(transparent_62%,#fde047_62%,#fde047_92%,transparent_92%)] dark:bg-[linear-gradient(transparent_62%,#a16207_62%,#a16207_92%,transparent_92%)]">
15 minutes
</span>{" "}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

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