Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Hero sections

9 examples. Resize any preview to see it at phone and tablet widths.

Split Type Specimen

Pro

A split editorial hero with a switchable type specimen and a downloadable sample.

The source for this block is part of Truffle Pro.

Console Hero

Free

A split hero whose terminal types a deploy command and prints each step, with a replay button and a fixed height so nothing shifts.

Editorial Hero

Pro

Oversized studio type with a serif word that rotates in place over a field of registration crosses, and a client row underneath.

The source for this block is part of Truffle Pro.

Aurora Hero

Pro

A centered hero with an aurora backdrop, a revealing headline and a shimmer call to action.

The source for this block is part of Truffle Pro.

Hero with Screenshot

Free

A centered hero: an announcement pill, a headline, two buttons and a product window that rises from below and is cut off by the edge of the section.

Hide code
components/blocks/hero-screenshot.tsx
import { ArrowRight, Play } from "lucide-react";
import { Button } from "@/components/viewport/button";

export default function HeroScreenshot() {
  return (
    <section aria-labelledby="hero-shot-title" className="w-full overflow-hidden px-6 pt-16 sm:px-10 sm:pt-24">
      <div className="mx-auto flex max-w-5xl flex-col items-center text-center">
        <a href="#whats-new" className="group inline-flex items-center gap-2 rounded-full border border-border bg-card py-1 pe-3 ps-1 text-[13px] outline-none transition-colors duration-150 motion-reduce:transition-none hover:border-foreground/30 focus-visible:ring-2 focus-visible:ring-ring">
          <span className="rounded-full bg-foreground px-2 py-0.5 text-[11px] font-medium text-background">New</span>
          Sequences now pause when a meeting is booked
          <ArrowRight className="size-3.5 text-muted-foreground transition-transform duration-150 ease-out group-hover:translate-x-0.5 motion-reduce:transition-none rtl:-scale-x-100" aria-hidden />
        </a>
        <h1 id="hero-shot-title" className="mt-6 max-w-3xl text-balance text-5xl font-semibold tracking-[-0.04em] sm:text-6xl">
          The CRM your team will actually keep up to date.
        </h1>
        <p className="mt-5 max-w-xl text-pretty text-lg leading-relaxed text-muted-foreground">It files every email, call and meeting on its own, so the pipeline is right without anyone typing it in.</p>
        <div className="mt-8 flex flex-wrap items-center justify-center gap-3">
          <Button size="lg">Start free</Button>
          <Button size="lg" variant="outline">
            <Play aria-hidden />
            Watch the 2-minute tour
          </Button>
        </div>
        <p className="mt-4 text-[13px] text-muted-foreground">Free for three seats. No card needed.</p>
      </div>

      {/* The picture is cut off by the section's edge, so the page reads as continuing below it. */}
      <div aria-hidden className="relative mx-auto mt-14 max-w-5xl motion-safe:animate-[row-in_500ms_cubic-bezier(0.215,0.61,0.355,1)_150ms_both]">
        <div className="absolute -inset-x-10 -top-10 bottom-0 -z-10 bg-[radial-gradient(60%_60%_at_50%_0%,color-mix(in_oklab,var(--foreground)_10%,transparent),transparent)]" />
        <div className="overflow-hidden rounded-t-2xl border border-b-0 border-border bg-card shadow-[0_-20px_60px_-30px_rgb(0_0_0/0.4)]">
          <div className="flex items-center gap-1.5 border-b border-border px-4 py-3">
            <span className="size-2.5 rounded-full bg-foreground/15" />
            <span className="size-2.5 rounded-full bg-foreground/15" />
            <span className="size-2.5 rounded-full bg-foreground/15" />
            <span className="mx-auto h-5 w-56 max-w-[50%] rounded-md bg-foreground/[0.06]" />
          </div>
          <div className="grid grid-cols-[3.5rem_minmax(0,1fr)] sm:grid-cols-[11rem_minmax(0,1fr)]">
            <div className="flex flex-col gap-2.5 border-e border-border p-3">
              {[70, 55, 80, 45, 62, 50].map((width, i) => (
                <span key={i} className={`flex h-7 items-center gap-2 rounded-md px-2 ${i === 1 ? "bg-foreground/[0.07]" : ""}`}>
                  <span className="size-3.5 shrink-0 rounded bg-foreground/15" />
                  <span className="h-2 rounded-full bg-foreground/10 max-sm:hidden" style={{ width: `${width}%` }} />
                </span>
              ))}
            </div>
            <div className="grid grid-cols-2 gap-3 p-4 sm:grid-cols-4">
              {[3, 2, 4, 2].map((cards, column) => (
                <div key={column} className={`flex flex-col gap-2 rounded-xl bg-foreground/[0.03] p-2 ${column > 1 ? "max-sm:hidden" : ""}`}>
                  <span className="flex items-center justify-between px-1">
                    <span className="h-2 w-14 rounded-full bg-foreground/15" />
                    <span className="h-2 w-6 rounded-full bg-foreground/10" />
                  </span>
                  {Array.from({ length: cards }, (_, i) => (
                    <span key={i} className={`flex flex-col gap-2 rounded-lg border bg-card p-2.5 ${column === 2 && i === 0 ? "border-sky-500/60 shadow-[0_8px_20px_-10px_rgb(0_0_0/0.4)]" : "border-border"}`}>
                      <span className="h-2 w-4/5 rounded-full bg-foreground/15" />
                      <span className="h-1.5 w-3/5 rounded-full bg-foreground/[0.08]" />
                      <span className="mt-1 flex items-center justify-between">
                        <span className="h-2 w-10 rounded-full bg-foreground/20" />
                        <span className="size-4 rounded-full bg-foreground/10" />
                      </span>
                    </span>
                  ))}
                </div>
              ))}
            </div>
          </div>
        </div>
      </div>
    </section>
  );
}

Hero with Form

Pro

A hero with a demo request beside the pitch: a rating, three promises, and a short form that validates, sends and confirms in place.

The source for this block is part of Truffle Pro.

Hero with Video

Pro

A full-width hero over a background film that starts paused on its poster, with play and sound controls, a scrim that keeps the headline readable, and two buttons.

The source for this block is part of Truffle Pro.

App Download

Pro

A section for a mobile app: three reasons, store badges, a QR code for people on a computer and a phone drawn in the page.

The source for this block is part of Truffle Pro.

App Landing Page

Pro

A page for a mobile app: the icon, a headline, store badges and store facts beside a phone, a carousel of screenshots, the platforms it runs on, a privacy label with compliance pills, and the version history.

The source for this block is part of Truffle Pro.