Why Free 1
Why is it free: answers the free event's one objection before the visitor raises it, in the host's own voice,
Use it in a prompt
Use content/why-free 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/why-free.tsx. - Import it and pass your copy and images (Props tab):
import { WhyFree } from "@/components/funneldna/content/why-free"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/why-free/component.tsx 191 lines
// layout: presenter-cutout
// Why is it free: answers the free event's one objection before the visitor raises it, in the host's own voice,
// beside a cut-out of the host on a lit stage, then repeats the page's one action.
import * as React from "react";
import { Handshake } from "lucide-react";
import { Spotlight, FX_HOST } from "../fx/fx";
export type WhyFreeProps = {
// The objection in the visitor's words, shown as the headline.
question?: React.ReactNode;
// The candid answer: how the host earns and why giving this away makes sense for both sides.
answer?: React.ReactNode[];
// One phrase inside the answer (or the closing line) to swipe with the marker highlight.
highlight?: string;
// The line set in the accent rule box.
winWin?: React.ReactNode;
// The final sincere line under the box.
closing?: React.ReactNode;
// Optional sign-off under the closing line (host name and role).
signOff?: React.ReactNode;
label?: string;
// Plain line under the button.
secondaryLine?: React.ReactNode;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
// Host cut-out on a transparent background (slot: presenter-cutout).
presenterImage?: string;
presenterAlt?: string;
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
const DEFAULT_ANSWER: React.ReactNode[] = [
"Fair question, and you deserve a straight answer.",
"This training is how most people meet my work. Some of them later choose my paid program, and that’s how I earn.",
];
export function WhyFree(props: WhyFreeProps) {
const {
question = "“If this is so good, why is it free?”",
answer = DEFAULT_ANSWER,
highlight = "that’s how I earn",
winWin = "It’s a win-win for both of us.",
closing = "When you get results, my business grows. So I have every reason to make this as good as it can possibly be.",
signOff,
label = "Save My Free Seat",
secondaryLine = "or keep reading to see what’s inside",
href,
onAction,
presenterImage,
presenterAlt = "Your host",
state = "default",
className,
} = props;
const headingId = React.useId();
const hasFigure = Boolean(presenterImage);
const disabled = state === "disabled";
const used = { done: false };
const buttonClass = [
"cf-why-free__btn",
state === "hover" ? "is-hover" : "",
state === "active" ? "is-active" : "",
]
.filter(Boolean)
.join(" ");
const button =
href && !disabled ? (
<a className={buttonClass} href={href} onClick={onAction}>
{label}
</a>
) : (
<button type="button" className={buttonClass} onClick={onAction} disabled={disabled}>
{label}
</button>
);
return (
<section className={["cf-why-free", className].filter(Boolean).join(" ")} aria-labelledby={headingId}>
<style>{CSS}</style>
<div className={["cf-why-free__wrap", hasFigure ? "" : "is-solo"].filter(Boolean).join(" ")}>
<div className="cf-why-free__panel" style={FX_HOST} aria-hidden="true">
<div className="cf-why-free__light">
<Spotlight />
</div>
</div>
{hasFigure ? (
<figure className="cf-why-free__figure">
<img src={presenterImage} alt={presenterAlt} loading="lazy" decoding="async" />
</figure>
) : null}
<div className="cf-why-free__copy">
<h2 id={headingId} className="cf-why-free__h">
{question}
</h2>
{answer.map((paragraph, i) => (
<p key={i} className="cf-why-free__p">
{markOnce(paragraph, highlight, used)}
</p>
))}
<div className="cf-why-free__winwin">
<span className="cf-why-free__disc" aria-hidden="true">
<Handshake size={20} strokeWidth={2.5} />
</span>
<p>{winWin}</p>
</div>
{closing ? <p className="cf-why-free__p cf-why-free__closing">{markOnce(closing, highlight, used)}</p> : null}
{signOff ? <p className="cf-why-free__sign">{signOff}</p> : null}
<div className="cf-why-free__action">
{button}
{secondaryLine ? <p className="cf-why-free__quiet">{secondaryLine}</p> : null}
</div>
</div>
</div>
</section>
);
}
export default WhyFree;
// Swipes the first occurrence of the phrase (in plain-string copy) with the marker, once per block.
function markOnce(node: React.ReactNode, phrase: string | undefined, used: { done: boolean }): React.ReactNode {
if (used.done || !phrase || typeof node !== "string") return node;
const at = node.indexOf(phrase);
if (at < 0) return node;
used.done = true;
return (
<>
{node.slice(0, at)}
<mark className="cf-why-free__mark">{phrase}</mark>
{node.slice(at + phrase.length)}
</>
);
}
const CSS = `
.cf-why-free{--wf-lift:clamp(40px,6vw,80px);--wf-pad:clamp(28px,4vw,56px);--wf-shadow:var(--shadow, oklch(0.22 0.03 260));--wf-text:color-mix(in oklch, var(--band-ink, #fff) 86%, var(--band, #1b2a4a));position:relative;box-sizing:border-box;background:var(--surface, #fff);color:var(--ink, #1a2233);font-family:var(--font-body, system-ui, sans-serif);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);}
.cf-why-free *,.cf-why-free *::before,.cf-why-free *::after{box-sizing:border-box;}
.cf-why-free__wrap{position:relative;max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);}
.cf-why-free__wrap.is-solo{grid-template-columns:minmax(0,1fr);}
.cf-why-free__panel{position:relative;grid-column:1 / -1;grid-row:1;margin-top:var(--wf-lift);overflow:hidden;background:var(--band, #1b2a4a);border-radius:var(--card-radius, var(--radius, 14px));box-shadow:inset 0 1px 0 oklch(from var(--band-ink, #fff) l c h / 0.08), var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 260 / 0.22), 0 12px 24px -8px oklch(0.22 0.03 260 / 0.32)));}
.cf-why-free__wrap.is-solo .cf-why-free__panel{margin-top:0;}
.cf-why-free__light{position:absolute;top:0;bottom:0;left:0;width:50%;pointer-events:none;}
.cf-why-free__wrap.is-solo .cf-why-free__light{width:100%;}
.cf-why-free__light::after{content:"";position:absolute;left:8%;right:8%;bottom:-10%;height:28%;background:radial-gradient(closest-side, oklch(from var(--wf-shadow) calc(l - 0.08) c h / 0.6), transparent);}
.cf-why-free__figure{position:relative;z-index:1;grid-column:1;grid-row:1;min-height:440px;margin:0;animation:cf-why-free-rise .45s cubic-bezier(.2,.7,.2,1) both;}
.cf-why-free__figure img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0%;filter:drop-shadow(0 2px 3px oklch(from var(--wf-shadow) l c h / 0.35)) drop-shadow(0 14px 18px oklch(from var(--wf-shadow) l c h / 0.3));}
.cf-why-free__copy{position:relative;z-index:2;grid-column:2;grid-row:1;padding:calc(var(--wf-lift) + var(--wf-pad)) var(--wf-pad) var(--wf-pad) clamp(16px,2vw,28px);color:var(--band-ink, #fff);background-color:var(--band, #1b2a4a);background-clip:content-box;}
.cf-why-free__wrap.is-solo .cf-why-free__copy{grid-column:1;width:100%;max-width:46rem;margin:0 auto;padding:var(--wf-pad);background-color:transparent;}
.cf-why-free__copy > *{animation:cf-why-free-rise .45s cubic-bezier(.2,.7,.2,1) both;}
.cf-why-free__copy > :nth-child(2){animation-delay:.07s;}
.cf-why-free__copy > :nth-child(3){animation-delay:.14s;}
.cf-why-free__copy > :nth-child(4){animation-delay:.21s;}
.cf-why-free__copy > :nth-child(n+5){animation-delay:.28s;}
.cf-why-free__h{margin:0 0 16px;font-family:var(--font-display, inherit);font-weight:var(--display-weight, 800);letter-spacing:var(--display-tracking, -0.025em);text-transform:var(--display-case, none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;color:var(--band-ink, #fff);text-wrap:balance;hanging-punctuation:first;}
.cf-why-free__p{margin:0 0 16px;max-width:62ch;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.55;color:var(--wf-text);text-wrap:pretty;}
.cf-why-free__closing{color:var(--band-ink, #fff);font-weight:500;}
.cf-why-free__mark{padding:.04em .22em;margin:0 -.04em;border-radius:.28em .45em .32em .5em / .5em .32em .45em .3em;background:oklch(from var(--marker, #fae37c) l c h / 1);color:oklch(from var(--marker, #fae37c) clamp(0.24, (0.6 - l) * 1000, 0.97) 0.04 h);font-weight:700;-webkit-box-decoration-break:clone;box-decoration-break:clone;}
.cf-why-free__winwin{display:flex;align-items:center;gap:14px;margin:24px 0;padding:12px 20px 12px 12px;border-radius:var(--radius, 12px);background:oklch(from var(--accent-fill, var(--accent, #2f6fdb)) l c h / 0.16);border:1px solid oklch(from var(--accent-fill, var(--accent, #2f6fdb)) l c h / 0.5);}
.cf-why-free__disc{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:999px;background:var(--accent-fill, var(--accent, #2f6fdb));color:var(--accent-fill-ink, var(--card, #fff));}
.cf-why-free__winwin p{margin:0;font-family:var(--font-display, inherit);font-weight:var(--display-weight, 800);letter-spacing:-0.01em;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;color:var(--band-ink, #fff);text-wrap:balance;}
.cf-why-free__sign{margin:0 0 16px;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--wf-text);}
.cf-why-free__action{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:16px;}
.cf-why-free__btn{--wf-bg:var(--button-bg, var(--cta, #d92d20));--wf-bg-2:var(--button-bg-2, var(--cta-2, var(--wf-bg)));display:inline-flex;align-items:center;justify-content:center;min-height:64px;min-width:min(100%,300px);max-width:100%;padding:0 32px;border:0;border-radius:var(--button-radius, var(--radius, 12px));background:linear-gradient(oklch(from var(--wf-bg) calc(l + 0.04) c h), oklch(from var(--wf-bg-2) calc(l - 0.02) c h));color:var(--button-ink, var(--cta-ink, #fff));font-family:var(--button-font, var(--font-display, inherit));font-weight:var(--button-weight, 800);text-transform:var(--button-case, none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:start;text-decoration:none;text-shadow:var(--button-text-shadow, none);cursor:pointer;box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--wf-bg) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--wf-bg) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--wf-shadow) l c h / 0.4), 0 8px 16px -6px oklch(from var(--wf-shadow) l c h / 0.5));transition:transform .16s ease, box-shadow .16s ease, background .16s ease;}
.cf-why-free__btn:hover:not(:disabled),.cf-why-free__btn.is-hover{background:linear-gradient(oklch(from var(--wf-bg) calc(l - 0.01) c h), oklch(from var(--wf-bg-2) calc(l - 0.07) c h));transform:translateY(-1px);box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--wf-bg) calc(l + 0.1) c h / 0.7), inset 0 -3px 0 oklch(from var(--wf-bg) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--wf-shadow) l c h / 0.45), 0 12px 20px -6px oklch(from var(--wf-shadow) l c h / 0.6));}
.cf-why-free__btn:active:not(:disabled),.cf-why-free__btn.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--wf-bg) calc(l - 0.04) c h), oklch(from var(--wf-bg-2) calc(l - 0.08) c h));box-shadow:inset 0 2px 4px oklch(from var(--wf-bg) calc(l - 0.22) c h / 0.5), inset 0 -2px 0 oklch(from var(--wf-bg) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--wf-shadow) l c h / 0.4);}
.cf-why-free__btn:focus-visible{outline:3px solid var(--band-ink, #fff);outline-offset:3px;}
.cf-why-free__btn:disabled{cursor:not-allowed;background:color-mix(in oklch, var(--band-ink, #fff) 14%, var(--band, #1b2a4a));color:color-mix(in oklch, var(--band-ink, #fff) 80%, var(--band, #1b2a4a));box-shadow:none;text-shadow:none;transform:none;}
.cf-why-free__quiet{margin:0;font-size:.9375rem;font-weight:500;line-height:1.4;color:color-mix(in oklch, var(--band-ink, #fff) 78%, var(--band, #1b2a4a));text-wrap:pretty;}
@keyframes cf-why-free-rise{from{opacity:.82;transform:translateY(8px);}to{opacity:1;transform:none;}}
@media (max-width: 880px){
.cf-why-free{--wf-lift:clamp(32px,9vw,56px);--wf-pad:22px;}
.cf-why-free__wrap{grid-template-columns:minmax(0,1fr);}
.cf-why-free__wrap:not(.is-solo) .cf-why-free__panel{grid-column:1;grid-row:1 / 3;}
.cf-why-free__light{right:0;bottom:auto;width:100%;height:clamp(240px,66vw,380px);}
.cf-why-free__figure{grid-column:1;grid-row:1;min-height:0;height:clamp(240px,66vw,380px);overflow:hidden;-webkit-mask-image:linear-gradient(to bottom, black 74%, transparent);mask-image:linear-gradient(to bottom, black 74%, transparent);}
.cf-why-free__figure img{left:-18%;right:-18%;width:136%;}
.cf-why-free__copy{grid-column:1;grid-row:2;padding:4px var(--wf-pad) var(--wf-pad);}
.cf-why-free__action{align-items:stretch;}
.cf-why-free__btn{width:100%;min-width:0;text-align:center;}
.cf-why-free__quiet{text-align:center;}
}
@media (prefers-reduced-motion: reduce){
.cf-why-free__copy > *,.cf-why-free__figure{animation:none;}
.cf-why-free__btn{transition:none;}
.cf-why-free__btn:hover:not(:disabled),.cf-why-free__btn.is-hover,.cf-why-free__btn:active:not(:disabled),.cf-why-free__btn.is-active{transform:none;}
}
`;
pieces/content/why-free/specimen.tsx 32 lines
import __studioImagea6c27272 from "../assets/9688c28ca71e40d9.webp";
// Specimen: Fieldnote, a free 3-day phone photography workshop, answers "why is it free?" in the host's own voice.
import { WhyFree } from "../why-free";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled"];
type SpecimenState = "default" | "hover" | "active" | "disabled";
export default function WhyFreeSpecimen({ state = "default" }: { state?: SpecimenState }) {
return (
<WhyFree
state={state}
question="“If this workshop is so good, why is it free?”"
answer={[
"I teach phone photography for a living. This free workshop is how most people find me, and my paid course is where I go deeper.",
"If the 3 days help you, some of you will want more and join the course. If not, you keep every lesson and owe me nothing.",
]}
highlight="my paid course is where I go deeper"
winWin="It’s a win-win for both of us."
closing="My business only grows when your photos get better. So I have every reason to make these 3 days genuinely useful."
signOff="Maya Okafor, host of the Fieldnote workshop"
label="Save My Free Seat"
secondaryLine="or keep reading to see what each day covers"
presenterImage={slot(
"presenter-cutout",
__studioImagea6c27272
)}
presenterAlt="Maya Okafor, host of the Fieldnote phone photography workshop"
/>
);
}
| Name | Type | Details |
|---|---|---|
question OptionalWhyFree |
React.ReactNode |
|
answer OptionalWhyFree |
React.ReactNode[] |
|
highlight OptionalWhyFree |
string |
|
winWin OptionalWhyFree |
React.ReactNode |
|
closing OptionalWhyFree |
React.ReactNode |
|
signOff OptionalWhyFree |
React.ReactNode |
|
label OptionalWhyFree |
string |
|
secondaryLine OptionalWhyFree |
React.ReactNode |
|
href OptionalWhyFree |
string |
|
onAction OptionalWhyFree |
(event: React.MouseEvent<HTMLElement>) => void |
|
presenterImage OptionalWhyFree |
string |
|
presenterAlt OptionalWhyFree |
string |
|
state OptionalWhyFree |
"default" | "hover" | "active" | "disabled" |
|
className OptionalWhyFree |
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.
--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter-cutout- The presenter on a transparent background.
-
9688c28ca71e40d9.webp
image/webp · 69.8 KB