Stats Section 1

PreviousNext

Statistics showcase with dual-column layout and metrics

Docs
shadcndesigncomponent

Preview

Loading preview…
components/pro-blocks/landing-page/stats-sections/stats-section-1.tsx
"use client";

import { AspectRatio } from "@/components/ui/aspect-ratio";
import Image from "next/image";
import { Tagline } from "@/components/pro-blocks/landing-page/tagline";

export function StatsSection1() {
  return (
    <section className="bg-background section-padding-y">
      <div className="container-padding-x container mx-auto flex flex-col items-center gap-12 lg:flex-row lg:gap-16">
        <div className="flex flex-1 flex-col gap-10 md:gap-12">
          <div className="section-title-gap-lg flex flex-col">
            <Tagline>Stats section</Tagline>
            <h2 className="heading-lg text-foreground">
              Data-driven highlights that showcase impact
            </h2>
            <p className="text-muted-foreground">
              Add a concise value statement that explains how your metrics
              demonstrate success and growth. Focus on transformation and
              measurable outcomes while keeping it under 2 lines. Align with
              your statistical data display.
            </p>
          </div>
          <div className="grid grid-cols-1 gap-5 md:grid-cols-2 md:gap-8">
            <div className="flex flex-col gap-3">
              <h3 className="text-foreground text-2xl font-bold md:text-3xl">
                42,263
              </h3>
              <p className="text-muted-foreground">
                Each stat should include a bold numerical figure followed by a
                brief, compelling description.
              </p>
            </div>
            <div className="flex flex-col gap-3">
              <h3 className="text-foreground text-2xl font-bold md:text-3xl">
                $23M
              </h3>
              <p className="text-muted-foreground">
                Each stat should include a bold numerical figure followed by a
                brief, compelling description.
              </p>
            </div>
          </div>
        </div>

        <div className="w-full flex-1 lg:max-w-lg">
          <AspectRatio ratio={1}>
            <Image
              src="https://ui.shadcn.com/placeholder.svg"
              alt="Hero image"
              fill
              className="h-full w-full rounded-xl object-cover"
            />
          </AspectRatio>
        </div>
      </div>
    </section>
  );
}

Installation

npx shadcn@latest add @shadcndesign/stats-section-1

Usage

import { StatsSection1 } from "@/components/stats-section-1"
<StatsSection1 />