Ruixen Pro is now live.50+ premium components, templates, blocks, and lifetime updates.

Command Palette

Search for a command to run...

Docs
Split Hero Section

Split Hero Section

A split-layout hero section with left-aligned headline, key metrics, app screenshot showcase, and trusted-by logo strip.

Installation

Usage

import { SplitHeroSection } from "@/components/ruixen/split-hero-section";
 
export default function App() {
  return (
    <SplitHeroSection
      title="Payments infrastructure for SaaS"
      description="One tool that does it all. Search, generate, analyze, and chat."
      primaryAction={{ href: "/get-started", label: "Start Building" }}
      secondaryAction={{ href: "/demo", label: "Request demo" }}
      stats={[
        {
          value: "99.9",
          unit: "%",
          label: (
            <>
              <strong className="font-medium text-foreground">
                Uptime guarantee
              </strong>{" "}
              for all our services.
            </>
          ),
        },
        {
          value: "12",
          unit: "X",
          label: (
            <>
              <strong className="font-medium text-foreground">12X</strong>{" "}
              faster processing.
            </>
          ),
        },
      ]}
      trustedBy={{
        logos: [
          <span key="stripe">Stripe</span>,
          <span key="openai">OpenAI</span>,
        ],
      }}
    />
  );
}

Props

PropTypeDefaultDescription
titleReactNodeRequiredMain headline text (left-aligned)
descriptionstring-Subtitle / description paragraph
primaryActionAction-Primary CTA button
secondaryActionAction-Secondary CTA button
statsStat[]-Key metrics displayed below CTAs
trustedByTrustedBySection-Trusted-by logo strip section
classNamestring-Additional CSS classes

Action Type

type Action = {
  href: string;
  label: string;
};

Stat Type

interface Stat {
  value: string;
  unit?: string;
  label: React.ReactNode;
}

TrustedBySection Type

interface TrustedBySection {
  logos: React.ReactNode[];
}

Features

  • Split Layout: Two-column grid with headline on the left, 3D showcase cards on the right
  • Key Metrics: Stats section with value, unit, and descriptive label
  • Overlapping Cards: Perspective-transformed cards with radial mask and tilt effects
  • Trusted-By Strip: Brand logo grid below the fold
  • Dual CTAs: Primary (filled) and secondary (outlined) action buttons
  • Responsive: Stacks cleanly on mobile, split layout on desktop
  • Semantic Tokens: Uses foreground/background/primary tokens for theme compatibility
  • Zero Dependencies: No external animation libraries required