Heroes & banners
Hero with Stat Row
A hero section that pairs a headline and subtext with a row of three key numbers to build quick credibility.
<section class="herostats-hero">
<h1 class="herostats-title">Trusted by beginners around the world</h1>
<p class="herostats-subtitle">Join a community that has already taken its first steps into code.</p>
<div class="herostats-row">
<div class="herostats-stat">
<div class="herostats-number">120k</div>
<div class="herostats-label">Learners</div>
</div>
<div class="herostats-stat">
<div class="herostats-number">640</div>
<div class="herostats-label">Lessons</div>
</div>
<div class="herostats-stat">
<div class="herostats-number">98%</div>
<div class="herostats-label">Would recommend</div>
</div>
</div>
</section>
.herostats-hero {
box-sizing: border-box;
width: 100%;
max-width: 720px;
margin: 0 auto;
text-align: center;
padding: 50px 24px;
background-color: #f9fafb;
border-radius: 20px;
font-family: system-ui, -apple-system, sans-serif;
}
.herostats-title {
margin: 0 0 12px;
font-size: 30px;
font-weight: 800;
color: #111827;
}
.herostats-subtitle {
margin: 0 0 36px;
font-size: 15px;
color: #6b7280;
}
.herostats-row {
display: flex;
justify-content: center;
gap: 40px;
}
.herostats-stat {
padding: 0 20px;
}
.herostats-stat:not(:first-child) {
border-left: 1px solid #e5e7eb;
}
.herostats-number {
font-size: 30px;
font-weight: 800;
color: #3b82f6;
}
.herostats-label {
margin-top: 4px;
font-size: 13px;
color: #6b7280;
font-weight: 600;
}