Skip to content

Stat Row Hero

A copy-paste hero sections component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Hero SectionsHTMLCSSany framework

Trusted by teams

1.2krepos
87%retention
99.9%uptime

Copy into your project

HTML
<!-- Stat Row Hero -->
<section class="nuda-statrh">
  <h2 class="nuda-statrh__title">Trusted by teams</h2>
  <div class="nuda-statrh__stats">
    <div><b>1.2k</b><i>repos</i></div>
    <div><b>87%</b><i>retention</i></div>
    <div><b>99.9%</b><i>uptime</i></div>
  </div>
</section>
CSS
/* Stat Row Hero
   Headline above three big numbers; whole block fades up.
   Customize: --sr-accent, stat values. */

.nuda-statrh {
  --sr-accent: #e4ff54;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 80px 24px;
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  animation: nuda-sr-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.nuda-statrh__title {
  font: 800 clamp(1.75rem, 4vw, 2.75rem) ui-sans-serif, system-ui, sans-serif;
  color: #fafafa;
  margin: 0;
  letter-spacing: -0.02em;
}

.nuda-statrh__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.nuda-statrh__stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.nuda-statrh__stats b {
  font: 800 clamp(2rem, 5vw, 3.5rem) ui-sans-serif, system-ui, sans-serif;
  color: var(--sr-accent);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--sr-accent), #a8c93a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nuda-statrh__stats i {
  font: 600 0.7rem ui-sans-serif, system-ui, sans-serif;
  font-style: normal;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

@keyframes nuda-sr-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .nuda-statrh { animation: none; }
}

How to use Stat Row Hero

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More hero sections components

← Browse all NudaUI components