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

Feature sections

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

Feature Tabs

Pro

A vertical tab list that advances on a timer with a dwell indicator, pauses on hover and focus, and cross-fades a detail panel.

The source for this block is part of Truffle Pro.

Feature Grid

Free

Six features in a ruled grid that collapses from three columns to one, with icon tiles that respond to hover.

Feature Bento

Pro

A bento grid with a live globe and a progress ring as feature visuals.

The source for this block is part of Truffle Pro.

How It Works

Free

Three numbered steps joined by a rule that runs down the side on phones and across the top on wider screens, each with how long it takes.

Integrations Grid

Pro

Integrations as cards with a category filter, a search and a connect button that confirms in place.

The source for this block is part of Truffle Pro.

Practice Areas

Pro

Eight practice groups in a ruled grid, each a single link with an icon, a line on the work, the size of the team and its ranking band.

The source for this block is part of Truffle Pro.

Alternating Features

Free

Three features in rows that swap sides, each with an eyebrow, a heading, a paragraph, three checked points, a link and a product picture. The text stays first in reading order on every row.

Hide code
components/blocks/features-alternating.tsx
import { ArrowRight, Check } from "lucide-react";

const rows = [
  {
    eyebrow: "Capture",
    title: "Every conversation lands on the right record.",
    body: "Connect your inbox and calendar once. Emails, meetings and calls file themselves against the contact and the deal, so nobody logs anything by hand.",
    points: ["Two-way sync in under a minute", "Private threads stay private", "Works with shared inboxes"],
    link: "How capture works",
  },
  {
    eyebrow: "Decide",
    title: "See which deals need you today.",
    body: "The pipeline flags what has gone quiet, what is overdue and what moved, and puts the next step on every card.",
    points: ["A next step on every deal", "Stale deals called out in words", "Forecast weighted by stage"],
    link: "Tour the pipeline",
  },
  {
    eyebrow: "Follow up",
    title: "Sequences that stop when someone replies.",
    body: "Write the follow-ups once. They send from your own address, pause on a reply and never go out on a weekend.",
    points: ["Replies pause the sequence", "Send windows by time zone", "Open and reply rates per step"],
    link: "See sequences",
  },
];

/** A stand-in for a product screenshot: a window with a few rows, drawn differently for each feature. */
function Shot({ variant }: { variant: number }) {
  return (
    <div aria-hidden className="relative overflow-hidden rounded-2xl border border-border bg-card shadow-[0_24px_60px_-30px_rgb(0_0_0/0.35)]">
      <div className="flex items-center gap-1.5 border-b border-border px-3.5 py-2.5">
        <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="ms-3 h-2 w-28 rounded-full bg-foreground/10" />
      </div>
      {variant === 1 ? (
        <div className="grid grid-cols-3 gap-2.5 p-4">
          {[3, 2, 4].map((cards, column) => (
            <div key={column} className="flex flex-col gap-2 rounded-xl bg-foreground/[0.03] p-2">
              <span className="h-2 w-12 rounded-full bg-foreground/15" />
              {Array.from({ length: cards }, (_, i) => (
                <span key={i} className={`flex flex-col gap-1.5 rounded-lg border bg-card p-2 ${column === 1 && i === 0 ? "border-amber-500/60" : "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>
              ))}
            </div>
          ))}
        </div>
      ) : (
        <ul className="flex flex-col divide-y divide-border">
          {[0, 1, 2, 3, 4].map((row) => (
            <li key={row} className="flex items-center gap-3 px-4 py-3">
              <span className="size-8 shrink-0 rounded-full bg-foreground/10" />
              <span className="flex min-w-0 flex-1 flex-col gap-1.5">
                <span className="h-2 rounded-full bg-foreground/15" style={{ width: `${64 - (row % 3) * 13}%` }} />
                <span className="h-1.5 rounded-full bg-foreground/[0.08]" style={{ width: `${86 - (row % 4) * 10}%` }} />
              </span>
              <span className={`h-5 w-14 shrink-0 rounded-full ${variant === 2 && row === 1 ? "bg-emerald-500/25" : variant === 0 && row === 0 ? "bg-sky-500/25" : "bg-foreground/[0.07]"}`} />
            </li>
          ))}
        </ul>
      )}
    </div>
  );
}

export default function FeaturesAlternating() {
  return (
    <section aria-labelledby="alternating-title" className="w-full px-6 py-16 sm:px-10 sm:py-24">
      <div className="mx-auto max-w-5xl">
        <h2 id="alternating-title" className="max-w-2xl text-balance text-3xl font-semibold tracking-[-0.035em] sm:text-4xl">
          Less typing, more selling.
        </h2>
        <div className="mt-14 flex flex-col gap-20 sm:gap-28">
          {rows.map((row, i) => (
            <div key={row.title} className="grid items-center gap-10 md:grid-cols-2 md:gap-16">
              {/* Text comes first in the markup on every row; the picture changes sides with order, not with source order. */}
              <div className={i % 2 ? "md:order-2" : ""}>
                <p className="text-[13px] font-medium text-muted-foreground">{row.eyebrow}</p>
                <h3 className="mt-2 text-balance text-2xl font-semibold tracking-tight sm:text-3xl">{row.title}</h3>
                <p className="mt-4 text-pretty leading-relaxed text-muted-foreground">{row.body}</p>
                <ul className="mt-6 flex flex-col gap-2.5">
                  {row.points.map((point) => (
                    <li key={point} className="flex items-start gap-2.5 text-[15px]">
                      <Check className="mt-1 size-4 shrink-0" aria-hidden />
                      {point}
                    </li>
                  ))}
                </ul>
                <a href={`#${row.eyebrow.toLowerCase()}`} className="group mt-7 inline-flex items-center gap-1.5 rounded-sm text-[15px] font-medium underline-offset-4 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-ring">
                  {row.link}
                  <ArrowRight className="size-4 transition-transform duration-150 ease-out group-hover:translate-x-0.5 motion-reduce:transition-none rtl:-scale-x-100" aria-hidden />
                </a>
              </div>
              <Shot variant={i} />
            </div>
          ))}
        </div>
      </div>
    </section>
  );
}