This Or That 1
This or That: a head-to-head scoreboard that sets the old way against the kit, row by row, so the reader
Use it in a prompt
Use content/this-or-that from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/content/this-or-that.tsx. - Import it and pass your copy and images (Props tab):
import { ThisOrThat } from "@/components/funneldna/content/this-or-that"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/this-or-that/component.tsx 671 lines
// layout: fact-scoreboard
// This or That: a head-to-head scoreboard that sets the old way against the kit, row by row, so the reader
// feels the trade at a glance. It closes on a dark final tile: the price tag, one question and one answer button.
import * as React from "react"
import { Check, X } from "lucide-react"
import { motion, useReducedMotion, type MotionProps } from "motion/react"
import { Mark } from "../marks/marks"
export type ThisOrThatItem = {
text: React.ReactNode
/** Optional item photo (slot item-n), shown at the end of a row. */
image?: string
imageAlt?: string
}
export type ThisOrThatState = "default" | "hover" | "active" | "disabled"
export type ThisOrThatProps = {
withoutTitle?: string
/** Short line under the left title. */
withoutNote?: string
withoutItems?: ThisOrThatItem[]
withTitle?: string
/** Short line under the right title. */
withNote?: string
withItems?: ThisOrThatItem[]
/** Text in the medallion between the two sides. */
versusLabel?: string
/** The question the button answers. */
question?: string
/** Button label, written as the reader's answer. */
label?: string
/** One short reassurance line under the button. */
note?: string
priceLabel?: string
/** Today's price. The hang tag only shows when this is set. */
price?: string
/** Regular price, crossed out in marker on the tag. */
regularPrice?: string
/** Screen-reader words before the regular price. */
regularPriceText?: string
/** Screen-reader words before today's price. */
todayPriceText?: string
href?: string
onAction?: () => void
disabled?: boolean
state?: ThisOrThatState
className?: string
}
const DEFAULT_WITHOUT: ThisOrThatItem[] = [
{ text: "Plan from a blank page" },
{ text: "Write your copy from scratch" },
{ text: "Check launch steps by memory" },
]
const DEFAULT_WITH: ThisOrThatItem[] = [
{ text: "Map it with a planning guide" },
{ text: "Draft with a copy workbook" },
{ text: "Review with a launch checklist" },
]
export function ThisOrThat({
withoutTitle = "Without the kit",
withoutNote = "",
withoutItems = DEFAULT_WITHOUT,
withTitle = "With the kit",
withNote = "",
withItems = DEFAULT_WITH,
versusLabel = "VS",
question = "Ready to map your first funnel?",
label = "I'm ready, show me how",
note = "",
priceLabel = "The price",
price = "",
regularPrice = "",
regularPriceText = "Regular price",
todayPriceText = "Today",
href,
onAction,
disabled = false,
state = "default",
className,
}: ThisOrThatProps) {
const reduce = useReducedMotion()
const uid = React.useId()
const [hovered, setHovered] = React.useState<number | null>(null)
const active = hovered ?? (state === "hover" ? 0 : null)
const rows = Math.max(withoutItems.length, withItems.length, 1)
const isDisabled = disabled || state === "disabled"
const rise = (i: number): MotionProps =>
reduce
? {}
: {
initial: { opacity: 0.82, y: 8 },
whileInView: { opacity: 1, y: 0 },
viewport: { once: true, margin: "0px 0px -8% 0px" },
transition: { duration: 0.45, delay: Math.min(i * 0.07, 0.28), ease: [0.22, 1, 0.36, 1] },
}
const medal: MotionProps = reduce
? {}
: {
initial: { scale: 0.72, rotate: -24 },
whileInView: { scale: 1, rotate: 0 },
viewport: { once: true },
transition: { type: "spring", stiffness: 320, damping: 16, delay: 0.12 },
}
const button =
href && !isDisabled ? (
<a className="cf-tot__btn" href={href} onClick={onAction ? () => onAction() : undefined}>
{label}
</a>
) : (
<button type="button" className="cf-tot__btn" disabled={isDisabled} onClick={() => onAction?.()}>
{label}
</button>
)
const showClose = Boolean(label || price || question)
return (
<div className={className ? `cf-tot ${className}` : "cf-tot"} data-state={state}>
<style>{CSS}</style>
<div className="cf-tot__board" style={{ ["--tot-rows" as string]: rows } as React.CSSProperties}>
<Side
kind="without"
headingId={`${uid}-without`}
title={withoutTitle}
note={withoutNote}
items={withoutItems}
active={active}
onHover={setHovered}
rise={rise}
/>
<span className="cf-tot__vs" aria-hidden="true">
<motion.span className="cf-tot__medal" {...medal}>
{versusLabel}
</motion.span>
</span>
<Side
kind="with"
headingId={`${uid}-with`}
title={withTitle}
note={withNote}
items={withItems}
active={active}
onHover={setHovered}
rise={rise}
/>
</div>
{showClose ? (
<div className={price ? "cf-tot__close" : "cf-tot__close cf-tot__close--notag"}>
{price ? (
<div className="cf-tot__tagwrap">
<svg className="cf-tot__string" viewBox="0 0 40 46" width="40" height="46" aria-hidden="true" focusable="false">
<path d="M20 0 C 29 14, 12 28, 20 45" fill="none" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round" />
</svg>
<div className="cf-tot__swing">
<div className="cf-tot__tag">
<span className="cf-tot__caps">{priceLabel}</span>
<p className="cf-tot__price">
{regularPrice ? (
<span className="cf-tot__was">
<span className="cf-tot__sr">{regularPriceText} </span>
<s>{regularPrice}</s>
<span className="cf-tot__strike" aria-hidden="true">
<Mark name="cross" width={58} height={40} />
</span>
</span>
) : null}
<span className="cf-tot__now">
<span className="cf-tot__sr">{todayPriceText} </span>
{price}
</span>
</p>
</div>
</div>
</div>
) : null}
{question ? <p className="cf-tot__q">{question}</p> : null}
{label ? (
<div className="cf-tot__ask">
{button}
{note ? <p className="cf-tot__reassure">{note}</p> : null}
</div>
) : null}
</div>
) : null}
</div>
)
}
export default ThisOrThat
// private
function Side({
kind,
headingId,
title,
note,
items,
active,
onHover,
rise,
}: {
kind: "without" | "with"
headingId: string
title: string
note: string
items: ThisOrThatItem[]
active: number | null
onHover: (i: number | null) => void
rise: (i: number) => MotionProps
}) {
const Icon = kind === "with" ? Check : X
const offset = kind === "with" ? 1 : 0
return (
<section className={`cf-tot__side cf-tot__side--${kind}`} aria-labelledby={headingId}>
<div className="cf-tot__head">
<h3 id={headingId} className="cf-tot__title">
{title}
</h3>
{note ? <p className="cf-tot__note">{note}</p> : null}
</div>
<ul className="cf-tot__list" onMouseLeave={() => onHover(null)}>
{items.map((item, i) => (
<motion.li
key={i}
className="cf-tot__row"
data-active={active === i ? "" : undefined}
onMouseEnter={() => onHover(i)}
{...rise(i + offset)}
>
<span className="cf-tot__chip" aria-hidden="true">
<Icon size={17} strokeWidth={3} />
</span>
<span className="cf-tot__text">{item.text}</span>
{item.image ? (
<img
className="cf-tot__thumb"
src={item.image}
alt={item.imageAlt ?? ""}
width={52}
height={52}
loading="lazy"
decoding="async"
/>
) : null}
</motion.li>
))}
</ul>
</section>
)
}
const CSS = `
.cf-tot{
--tot-ink:var(--ink,oklch(0.21 0.034 263.4));
--tot-muted:var(--muted,oklch(0.446 0.03 257.7));
--tot-surface:var(--surface,oklch(1 0 0));
--tot-card:var(--card,oklch(1 0 0));
--tot-band:var(--band,oklch(0.273 0.067 256.5));
--tot-band-ink:var(--band-ink,oklch(1 0 0));
--tot-accent:var(--accent-fill,var(--accent,oklch(0.5 0.171 257.4)));
--tot-shadow:var(--shadow,oklch(0.22 0.03 256.5));
--tot-ok:var(--success,oklch(0.5 0.138 150));
--tot-no:var(--danger,oklch(0.5 0.17 27));
/* Solid status badges: the status hue held dark enough (L <= 0.5) that the white glyph always reads, on light and dark themes. */
--tot-ok-badge:oklch(from var(--tot-ok) min(l,0.5) c h);
--tot-no-badge:oklch(from var(--tot-no) min(l,0.5) c h);
--tot-badge-ink:var(--status-badge-ink,#fff);
--tot-btn:var(--button-bg,var(--cta,oklch(0.576 0.209 29.5)));
--tot-btn-2:var(--button-bg-2,var(--cta-2,oklch(0.506 0.206 29.5)));
--tot-btn-ink:var(--button-ink,var(--cta-ink,oklch(1 0 0)));
--tot-radius:var(--card-radius,var(--radius,16px));
--tot-hair:oklch(from var(--tot-ink) l c h / 0.12);
--tot-shadow-md:var(--shadow-md,0 1px 2px oklch(from var(--tot-shadow) l c h / 0.22),0 4px 10px -2px oklch(from var(--tot-shadow) l c h / 0.2));
--tot-shadow-lg:var(--shadow-lg,0 2px 4px oklch(from var(--tot-shadow) l c h / 0.22),0 12px 24px -8px oklch(from var(--tot-shadow) l c h / 0.32));
--tot-pad:clamp(20px,2.6vw,30px);
--tot-close-pad:clamp(20px,2.6vw,30px);
position:relative;
box-sizing:border-box;
display:grid;
gap:clamp(18px,2.4vw,26px);
width:100%;
max-width:960px;
margin-inline:auto;
font-family:var(--font-body,system-ui,sans-serif);
color:var(--tot-ink);
}
.cf-tot *,.cf-tot *::before,.cf-tot *::after{box-sizing:border-box}
.cf-tot :where(h3,p,ul,s){margin:0;padding:0}
.cf-tot :where(ul){list-style:none}
.cf-tot__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
/* ---- scoreboard: two sides share row tracks through subgrid ---- */
.cf-tot__board{
position:relative;
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
grid-template-rows:auto repeat(var(--tot-rows),auto);
column-gap:clamp(22px,3.2vw,36px);
}
.cf-tot__side{
position:relative;
isolation:isolate;
grid-row:1 / -1;
display:grid;
grid-template-rows:subgrid;
min-width:0;
padding-block:30px 18px;
border-radius:var(--tot-radius);
}
.cf-tot__side--without::before{
content:"";
position:absolute;
z-index:-1;
inset:10px 0;
border-radius:var(--tot-radius);
background:color-mix(in oklch,var(--tot-ink) 5%,var(--tot-surface));
border:1px solid var(--tot-hair);
}
.cf-tot__side--with{
background:var(--tot-card);
border:1px solid var(--card-border,color-mix(in oklch,var(--tot-ink) 12%,transparent));
box-shadow:var(--card-shadow,var(--tot-shadow-lg)),inset 0 1px 0 oklch(from var(--tot-card) calc(l + 0.04) c h / 0.6);
}
.cf-tot__head{
grid-row:1;
display:grid;
align-content:end;
gap:8px;
padding:0 var(--tot-pad) 14px;
min-width:0;
}
.cf-tot__title{
font-family:var(--font-display,system-ui,sans-serif);
font-weight:var(--display-weight,800);
text-transform:var(--display-case,none);
letter-spacing:var(--display-tracking,-0.02em);
font-size:clamp(1.625rem,3.1vw,2.375rem);
line-height:1.05;
text-wrap:balance;
}
.cf-tot__note{
font-size:1rem;
font-weight:600;
line-height:1.35;
color:var(--tot-muted);
text-wrap:pretty;
}
.cf-tot__list{
grid-row:2 / -1;
display:grid;
grid-template-rows:subgrid;
min-width:0;
}
.cf-tot__row{
position:relative;
display:grid;
grid-template-columns:auto minmax(0,1fr) auto;
align-items:center;
gap:14px;
margin-inline:12px;
padding:14px calc(var(--tot-pad) - 12px);
border-radius:12px;
transition:background-color .2s ease;
}
.cf-tot__row + .cf-tot__row::before{
content:"";
position:absolute;
top:0;
left:calc(var(--tot-pad) - 12px);
right:calc(var(--tot-pad) - 12px);
height:1px;
background:var(--tot-hair);
transition:opacity .2s ease;
}
.cf-tot__row[data-active]::before,.cf-tot__row[data-active] + .cf-tot__row::before{opacity:0}
.cf-tot__side--without .cf-tot__row[data-active]{background:color-mix(in oklch,var(--tot-ink) 6%,transparent)}
.cf-tot__side--with .cf-tot__row[data-active]{background:color-mix(in oklch,var(--tot-accent) 9%,var(--tot-card))}
.cf-tot__chip{
display:grid;
place-items:center;
width:30px;
height:30px;
border-radius:50%;
flex:none;
color:var(--tot-badge-ink);
}
.cf-tot__chip svg{display:block}
.cf-tot__side--without .cf-tot__chip{
background:linear-gradient(oklch(from var(--tot-no-badge) calc(l + 0.04) c h),oklch(from var(--tot-no-badge) calc(l - 0.04) c h));
box-shadow:inset 0 1px 0 oklch(from var(--tot-no-badge) calc(l + 0.14) c h / 0.6),inset 0 -2px 0 oklch(from var(--tot-no-badge) calc(l - 0.12) c h),0 1px 2px oklch(from var(--tot-shadow) l c h / 0.3);
}
.cf-tot__side--with .cf-tot__chip{
background:linear-gradient(oklch(from var(--tot-ok-badge) calc(l + 0.04) c h),oklch(from var(--tot-ok-badge) calc(l - 0.04) c h));
box-shadow:inset 0 1px 0 oklch(from var(--tot-ok-badge) calc(l + 0.14) c h / 0.6),inset 0 -2px 0 oklch(from var(--tot-ok-badge) calc(l - 0.12) c h),0 1px 2px oklch(from var(--tot-shadow) l c h / 0.3);
}
.cf-tot__text{
min-width:0;
font-size:clamp(1rem,1.4vw,1.125rem);
line-height:1.35;
font-weight:600;
text-wrap:pretty;
}
.cf-tot__side--without .cf-tot__text{color:color-mix(in oklch,var(--tot-ink) 86%,var(--tot-surface))}
.cf-tot__side--with .cf-tot__text{font-weight:700}
.cf-tot__text strong{font-weight:800}
.cf-tot__thumb{
display:block;
width:52px;
height:52px;
flex:none;
object-fit:cover;
object-position:center;
border-radius:10px;
border:1px solid var(--tot-hair);
background:var(--tot-card);
}
/* ---- VS medallion on the seam ---- */
.cf-tot__vs{
position:absolute;
left:50%;
top:50%;
z-index:3;
transform:translate(-50%,-50%);
}
.cf-tot__medal{
display:grid;
place-items:center;
width:68px;
height:68px;
border-radius:50%;
border:4px solid var(--tot-surface);
background:linear-gradient(oklch(from var(--tot-band) calc(l + 0.06) c h),oklch(from var(--tot-band) calc(l - 0.03) c h));
color:var(--tot-band-ink);
font-family:var(--font-display,system-ui,sans-serif);
font-weight:var(--display-weight,800);
font-size:1.375rem;
letter-spacing:.02em;
line-height:1;
box-shadow:var(--tot-shadow-md),inset 0 1px 0 oklch(from var(--tot-band) calc(l + 0.16) c h / 0.7);
}
/* ---- final tile: tag, question, answer button ---- */
.cf-tot__close{
position:relative;
display:grid;
grid-template-columns:auto minmax(0,1fr) auto;
grid-template-areas:"tag q btn";
align-items:center;
column-gap:clamp(20px,3vw,36px);
row-gap:12px;
padding:var(--tot-close-pad) clamp(20px,3vw,34px);
border-radius:var(--tot-radius);
background:var(--tot-band);
color:var(--tot-band-ink);
box-shadow:var(--tot-shadow-md),inset 0 1px 0 oklch(from var(--tot-band) calc(l + 0.08) c h);
}
.cf-tot__close--notag{
grid-template-columns:minmax(0,1fr) auto;
grid-template-areas:"q btn";
}
.cf-tot__tagwrap{
grid-area:tag;
position:relative;
align-self:start;
display:grid;
justify-items:center;
width:148px;
margin-top:calc(var(--tot-close-pad) * -1);
padding-top:26px;
}
.cf-tot__string{
position:absolute;
top:0;
left:50%;
z-index:2;
margin-left:-20px;
color:oklch(from var(--tot-band-ink) l c h / 0.6);
}
.cf-tot__swing{
width:100%;
transform:rotate(-5deg);
transform-origin:50% 19px;
transition:transform .5s cubic-bezier(.3,1.4,.5,1);
animation:cf-tot-swing .9s ease-out;
filter:drop-shadow(0 2px 2px oklch(from var(--tot-shadow) l c h / 0.4)) drop-shadow(0 8px 8px oklch(from var(--tot-shadow) l c h / 0.28));
}
.cf-tot__tagwrap:hover .cf-tot__swing{transform:rotate(-1deg)}
.cf-tot__tag{
position:relative;
display:grid;
justify-items:center;
gap:12px;
padding:36px 14px 18px;
background:var(--tot-card);
color:var(--tot-ink);
text-align:center;
clip-path:polygon(24% 0,76% 0,100% 15%,100% 100%,0 100%,0 15%);
}
.cf-tot__tag::before{
content:"";
position:absolute;
top:11px;
left:50%;
width:16px;
height:16px;
margin-left:-8px;
border-radius:50%;
background:var(--tot-band);
border:3px solid color-mix(in oklch,var(--tot-ink) 16%,var(--tot-card));
}
.cf-tot__caps{
font-size:.875rem;
font-weight:800;
letter-spacing:.12em;
text-transform:uppercase;
line-height:1.2;
color:var(--tot-muted);
}
.cf-tot__price{display:grid;justify-items:center;line-height:1}
.cf-tot__was{position:relative;display:inline-block;padding-inline:6px}
.cf-tot__was s{
text-decoration:none;
font-size:1.375rem;
font-weight:700;
color:var(--tot-muted);
font-variant-numeric:tabular-nums;
}
.cf-tot__strike{
position:absolute;
left:50%;
top:50%;
transform:translate(-50%,-50%);
display:block;
line-height:0;
color:var(--tot-no);
pointer-events:none;
}
.cf-tot__now{
display:block;
margin-top:-2px;
font-family:var(--font-display,system-ui,sans-serif);
font-weight:var(--display-weight,800);
font-size:2.5rem;
letter-spacing:-0.02em;
color:var(--tot-ink);
font-variant-numeric:tabular-nums;
transform:rotate(-4deg);
}
.cf-tot__q{
grid-area:q;
align-self:center;
font-family:var(--font-display,system-ui,sans-serif);
font-weight:var(--display-weight,800);
text-transform:var(--display-case,none);
letter-spacing:var(--display-tracking,-0.01em);
font-size:clamp(1.5rem,2.6vw,2rem);
line-height:1.15;
text-wrap:balance;
}
.cf-tot__ask{
grid-area:btn;
align-self:center;
display:grid;
justify-items:center;
gap:10px;
}
.cf-tot__reassure{
font-size:.9375rem;
font-weight:600;
line-height:1.35;
text-align:center;
color:color-mix(in oklch,var(--tot-band-ink) 82%,var(--tot-band));
text-wrap:pretty;
}
/* ---- the answer button ---- */
.cf-tot__btn{
appearance:none;
border:0;
cursor:pointer;
text-decoration:none;
display:inline-flex;
align-items:center;
justify-content:center;
min-height:60px;
padding:14px clamp(22px,2.6vw,30px);
border-radius:var(--button-radius,var(--radius,12px));
background:linear-gradient(oklch(from var(--tot-btn) calc(l + 0.04) c h),var(--tot-btn-2));
color:var(--tot-btn-ink);
font-family:var(--button-font,var(--font-display,system-ui,sans-serif));
font-weight:var(--button-weight,800);
text-transform:var(--button-case,none);
font-size:clamp(1.125rem,1.6vw,1.3rem);
line-height:1.15;
text-align:center;
text-wrap:balance;
text-shadow:var(--button-text-shadow,none);
box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--tot-btn) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--tot-btn) calc(l - 0.16) c h),0 1px 2px oklch(from var(--tot-shadow) l c h / 0.45),0 6px 12px -4px oklch(from var(--tot-shadow) l c h / 0.5));
transition:transform .15s ease,background .15s ease,box-shadow .15s ease;
}
.cf-tot__btn:hover:not(:disabled),.cf-tot[data-state="hover"] .cf-tot__btn:not(:disabled){
transform:translateY(-1px);
background:linear-gradient(oklch(from var(--tot-btn) calc(l - 0.02) c h),oklch(from var(--tot-btn-2) calc(l - 0.06) c h));
}
.cf-tot__btn:active:not(:disabled),.cf-tot[data-state="active"] .cf-tot__btn:not(:disabled){
transform:translateY(1px);
background:linear-gradient(oklch(from var(--tot-btn) calc(l - 0.06) c h),oklch(from var(--tot-btn-2) calc(l - 0.1) c h));
box-shadow:inset 0 2px 3px oklch(from var(--tot-btn) calc(l - 0.2) c h / 0.6),inset 0 -1px 0 oklch(from var(--tot-btn) calc(l - 0.16) c h),0 1px 1px oklch(from var(--tot-shadow) l c h / 0.4);
}
.cf-tot__btn:focus-visible{outline:3px solid var(--tot-band-ink);outline-offset:3px}
.cf-tot__btn:disabled{
cursor:not-allowed;
transform:none;
background:var(--button-2-bg,var(--secondary,oklch(0.93 0.015 263.4)));
color:var(--button-2-ink,var(--secondary-ink,oklch(0.21 0.034 263.4)));
text-shadow:none;
box-shadow:none;
}
@keyframes cf-tot-swing{
0%{transform:rotate(-14deg)}
55%{transform:rotate(-1deg)}
100%{transform:rotate(-5deg)}
}
@media (max-width:860px){
.cf-tot__close{
grid-template-columns:auto minmax(0,1fr);
grid-template-areas:"tag q" "btn btn";
}
.cf-tot__close--notag{grid-template-columns:minmax(0,1fr);grid-template-areas:"q" "btn"}
.cf-tot__ask{justify-items:stretch;margin-top:8px}
.cf-tot__btn{width:100%}
}
@media (max-width:640px){
.cf-tot{--tot-pad:20px;--tot-close-pad:20px}
.cf-tot__board{display:flex;flex-direction:column}
.cf-tot__side{display:block;padding-block:24px 12px}
.cf-tot__side--without::before{inset:0}
.cf-tot__list{display:block}
.cf-tot__vs{position:relative;left:auto;top:auto;transform:none;align-self:center;margin:-22px 0}
.cf-tot__medal{width:56px;height:56px;font-size:1.125rem}
.cf-tot__thumb{width:44px;height:44px}
.cf-tot__close{column-gap:16px}
.cf-tot__tagwrap{width:128px}
.cf-tot__tag{padding:34px 10px 16px}
.cf-tot__now{font-size:2.125rem}
.cf-tot__q{font-size:1.3125rem}
}
@media (prefers-reduced-motion:reduce){
.cf-tot__swing{animation:none;transition:none}
.cf-tot__tagwrap:hover .cf-tot__swing{transform:rotate(-5deg)}
.cf-tot__btn,.cf-tot__row,.cf-tot__row::before{transition:none}
.cf-tot__btn:hover:not(:disabled),.cf-tot__btn:active:not(:disabled),
.cf-tot[data-state="hover"] .cf-tot__btn,.cf-tot[data-state="active"] .cf-tot__btn{transform:none}
}
`
pieces/content/this-or-that/specimen.tsx 58 lines
import { ThisOrThat, type ThisOrThatState } from "../this-or-that"
import defaults from "../../studio-defaults.json"
export const states = ["default", "hover", "active", "disabled"]
export default function ThisOrThatSpecimen({ state = "default" }: { state?: ThisOrThatState }) {
const sample = defaults.sample
const [guide, workbook, checklist] = sample.items
return (
<ThisOrThat
state={state}
withoutTitle="Without the kit"
withoutNote="Starting from zero"
withoutItems={[
{ text: "Plan from a blank page" },
{ text: "Write your copy from scratch" },
{ text: "Check launch steps by memory" },
]}
withTitle="With the kit"
withNote="Guide, workbook and checklist"
withItems={[
{
text: (
<>
Map it with the <strong>{guide.name}</strong>
</>
),
image: guide.image,
imageAlt: guide.imageAlt,
},
{
text: (
<>
Draft with the <strong>{workbook.name}</strong>
</>
),
image: workbook.image,
imageAlt: workbook.imageAlt,
},
{
text: (
<>
Review with the <strong>{checklist.name}</strong>
</>
),
image: checklist.image,
imageAlt: checklist.imageAlt,
},
]}
question="Ready to map your first funnel?"
label="I'm ready, show me how"
note={sample.note}
price={sample.price}
regularPrice={sample.regularPrice}
/>
)
}
| Name | Type | Details |
|---|---|---|
withoutTitle OptionalThisOrThat |
string |
Default "Without the kit"
|
withoutNote OptionalThisOrThat |
string |
Default ""
|
withoutItems OptionalThisOrThat |
ThisOrThatItem[] |
Default DEFAULT_WITHOUT
|
withTitle OptionalThisOrThat |
string |
Default "With the kit"
|
withNote OptionalThisOrThat |
string |
Default ""
|
withItems OptionalThisOrThat |
ThisOrThatItem[] |
Default DEFAULT_WITH
|
versusLabel OptionalThisOrThat |
string |
Default "VS"
|
question OptionalThisOrThat |
string |
Default "Ready to map your first funnel?"
|
label OptionalThisOrThat |
string |
Default "I'm ready, show me how"
|
note OptionalThisOrThat |
string |
Default ""
|
priceLabel OptionalThisOrThat |
string |
Default "The price"
|
price OptionalThisOrThat |
string |
Default ""
|
regularPrice OptionalThisOrThat |
string |
Default ""
|
regularPriceText OptionalThisOrThat |
string |
Default "Regular price"
|
todayPriceText OptionalThisOrThat |
string |
Default "Today"
|
href OptionalThisOrThat |
string |
|
onAction OptionalThisOrThat |
() => void |
|
disabled OptionalThisOrThat |
boolean |
Default false
|
state OptionalThisOrThat |
ThisOrThatState |
Default "default"
|
className OptionalThisOrThat |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-ink- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
This piece reads no image slots.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB