Skip to content

Call-to-action band

The one dark band a page ends on, with a closing line that catches the light.

33 lines · React · Tailwind 4

Install

$ bunx shadcn@latest add @blocco/cta-band

Code

blocks/free/cta-band.tsx33 lines
import { buttonClass } from "@/registry/blocco/ui/button-class";

/**
 * The one dark band a page ends on. `ink-band` redefines the tokens inside
 * it, so the ordinary components work in it unchanged.
 */
export default function CtaBand() {
  return (
    <section className="mx-auto max-w-6xl px-6 py-16">
      <div className="ink-band relative overflow-hidden rounded-3xl px-6 py-16 text-center sm:px-12 sm:py-24">
        <div
          aria-hidden
          className="pointer-events-none absolute inset-0 opacity-40 [background-image:radial-gradient(var(--border)_1px,transparent_1px)] [background-size:18px_18px] [mask-image:radial-gradient(60%_70%_at_50%_0,#000,transparent)]"
        />
        <p className="text-metal relative mx-auto max-w-3xl text-4xl font-bold tracking-tight text-balance sm:text-6xl">
          Your next link is one paste away.
        </p>
        <p className="relative mx-auto mt-5 max-w-xl text-lg text-pretty text-muted">
          Free for 30 links. No card, no trial clock.
        </p>
        <div className="relative mt-9 flex flex-wrap justify-center gap-3">
          <a href="#" className={buttonClass({ variant: "primary", className: "h-11 px-6" })}>
            Start free
          </a>
          <a href="#" className={buttonClass({ variant: "outline", className: "h-11 px-6" })}>
            Talk to us
          </a>
        </div>
      </div>
    </section>
  );
}