CTA banner

A closing call to action: one panel in your accent colour that breaks into dots towards the bottom, with a headline, one line, a raised white button and a quieter second one.

Ready when you are

Start free for 14 days. No card needed, and you can leave whenever you like.

14 days free No card Cancel in two clicks

Options

Screen
Colour

Code

import "./cta-banner.css";

/* <CtaBanner title="Ready when you are" text="Start free for 14 days." action="Start free" href="/sign-up" other="Talk to us" otherHref="/contact" notes={["14 days free", "No card"]} /> */
export function CtaBanner({ title, text, action, href = "#", other, otherHref = "#", notes = [] }) {
  return (
    <section className="dh-cta">
      <div className="dh-cta-panel">
        <div className="dh-cta-fill" aria-hidden="true" />
        <div className="dh-cta-text">
          <h2>{title}</h2>
          <p>{text}</p>
        </div>
        <div className="dh-cta-actions">
          <a className="dh-cta-main" href={href}>
            {action}
            <svg viewBox="0 0 16 16" aria-hidden="true">
              <path d="M3.5 8h9M8.5 4l4 4-4 4" />
            </svg>
          </a>
          {other && (
            <a className="dh-cta-other" href={otherHref}>
              {other}
            </a>
          )}
        </div>
        {notes.length > 0 && (
          <p className="dh-cta-note">
            {notes.map((note, index) => [index > 0 && <i key={"dot" + index} />, " ", note, " "])}
          </p>
        )}
      </div>
    </section>
  );
}

export function Example() {
  return (
    <CtaBanner
      title="Ready when you are"
      text="Start free for 14 days. No card needed, and you can leave whenever you like."
      action="Start free"
      other="Talk to us"
      notes={["14 days free", "No card", "Cancel in two clicks"]}
    />
  );
}

Ready when you are

Start free for 14 days. No card needed, and you can leave whenever you like.

14 days free No card Cancel in two clicks