Free Access Card 1
Free-access offer block: counts out everything included, item by item, while a sticky accent panel strikes the regular price down to FREE, then one two-line action and a copyable claim code.
Use it in a prompt
Use offer/free-access-card 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/offer/free-access-card.tsx. - Import it and pass your copy and images (Props tab):
import { FreeAccessCard } from "@/components/funneldna/offer/free-access-card"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/free-access-card/component.tsx 386 lines
// layout: sticky-offer-side
// Free-access offer block: counts out everything included, item by item, while a sticky accent panel strikes the regular price down to FREE, then one two-line action and a copyable claim code.
import React, { useEffect, useId, useRef, useState } from "react";
import { Check, Copy } from "lucide-react";
import { motion, useReducedMotion } from "motion/react";
import { Backdrop, Divider, FX_HOST, Spotlight } from "../fx/fx";
import night from "../fx/backdrops/night";
export type FreeAccessCardState = "default" | "hover" | "active" | "disabled" | "success";
export type FreeAccessItem = {
count?: string; // bold lead count, e.g. "5+" or "Q&A"; a tick shows when empty
title: string;
note?: string; // one short muted line under the title
};
export type FreeAccessCardProps = {
headline?: string;
headlineAccent?: string; // phrase after the headline, set in the accent hue
lead?: string;
offerName?: string; // small line at the top of the accent panel
regularPrice?: string; // struck value; hidden when empty (never invent one)
regularPriceLabel?: string; // read by screen readers before the struck price
freeLabel?: string; // the huge word the price falls to
investmentLabel?: string; // small-caps label that opens the claim line
claimLine?: string; // running copy after the label; "{code}" becomes the bold code
claimLineNoCode?: string; // used when no code is supplied
includesTitle?: string;
items?: FreeAccessItem[];
label?: string; // button action line
sublabel?: string; // button reassurance line
code?: string; // claim code; the code row hides when empty
codeLabel?: string;
copyLabel?: string;
copiedLabel?: string;
copyAriaLabel?: string; // "{code}" is replaced
copiedAnnouncement?: string; // "{code}" is replaced; announced politely
psLabel?: string;
ps?: string; // P.S. line under the action; hidden when empty
signoff?: string; // optional hashtag or sign-off under the card
backdropImage?: string | null; // fx backdrop asset behind the headline (page scene slot replaces it); null hides it
productImage?: string; // "product" slot: transparent cut-out shown in the offer panel on wide screens
productImageAlt?: string;
curveEdge?: boolean; // curved hand-off into the next section
href?: string;
onAction?: () => void;
disabled?: boolean;
state?: FreeAccessCardState;
className?: string;
};
const DEFAULT_ITEMS: FreeAccessItem[] = [
{ title: "Live coaching sessions", note: "Ask your questions as you go" },
{ title: "Step-by-step workbook", note: "Fill it in alongside each lesson" },
{ title: "Ready-to-use planning templates" },
{ title: "Support from the coach", note: "Answers when you get stuck" },
];
const EASE = [0.2, 0.7, 0.2, 1] as const;
export function FreeAccessCard({
headline = "Everything inside.",
headlineAccent = "Yours free.",
lead = "Every session, tool and template is counted out below. Claim your seat today and the price drops to zero.",
offerName = "Free challenge",
regularPrice,
regularPriceLabel = "Regular price",
freeLabel = "FREE",
investmentLabel = "Your investment:",
claimLine = "nothing today. Enter code {code} at checkout to claim your free seat.",
claimLineNoCode = "nothing today. Your seat is free.",
includesTitle = "Everything you get, free",
items = DEFAULT_ITEMS,
label = "Claim My Free Seat",
sublabel = "Free today · takes 30 seconds",
code,
codeLabel = "Your code",
copyLabel = "Copy",
copiedLabel = "Copied",
copyAriaLabel = "Copy code {code}",
copiedAnnouncement = "Code {code} copied to your clipboard.",
psLabel = "P.S.",
ps = "You pay nothing to join. Show up, do the work and keep everything you build.",
signoff,
backdropImage = night,
productImage,
productImageAlt = "",
curveEdge = true,
href,
onAction,
disabled = false,
state = "default",
className,
}: FreeAccessCardProps) {
const headingId = useId();
const reduce = useReducedMotion();
const [copied, setCopied] = useState(state === "success");
const timer = useRef<number | undefined>(undefined);
useEffect(() => {
setCopied(state === "success");
}, [state]);
useEffect(
() => () => {
if (timer.current) window.clearTimeout(timer.current);
},
[]
);
const codeText = code ? code.trim() : "";
const hasCode = codeText.length > 0;
const isDisabled = disabled || state === "disabled";
const copyCode = () => {
if (!hasCode) return;
try {
void navigator.clipboard?.writeText(codeText).catch(() => undefined);
} catch {
// clipboard unavailable: the code stays selectable on the page
}
setCopied(true);
if (timer.current) window.clearTimeout(timer.current);
timer.current = window.setTimeout(() => {
if (state !== "success") setCopied(false);
}, 2200);
};
const btnClass = `cf-fac-btn${state === "hover" ? " is-hover" : ""}${state === "active" ? " is-active" : ""}`;
const btnInner = (
<>
<span className="cf-fac-btn-label">{label}</span>
{sublabel ? <span className="cf-fac-btn-sub">{sublabel}</span> : null}
</>
);
return (
<section
className={`cf-free-access-card${curveEdge ? " has-edge" : ""}${className ? ` ${className}` : ""}`}
style={{ ...FX_HOST, overflow: "clip" }}
aria-labelledby={headingId}
>
<style>{CSS}</style>
{backdropImage ? (
<div className="cf-fac-photo" aria-hidden="true">
<Backdrop src={backdropImage} treatment="scrim-dark" />
</div>
) : null}
<div className="cf-fac-stage" aria-hidden="true">
<Spotlight />
</div>
<div className="cf-fac-inner">
<header className="cf-fac-head">
<h2 id={headingId} className="cf-fac-h2">
{headline}
{headlineAccent ? (
<>
{" "}
<span className="cf-fac-em">{headlineAccent}</span>
</>
) : null}
</h2>
{lead ? <p className="cf-fac-lead">{lead}</p> : null}
</header>
<div className="cf-fac-cardwrap">
<div className="cf-fac-card">
<div className="cf-fac-offer">
<div className="cf-fac-offer-inner">
{offerName ? <p className="cf-fac-name">{keepSeparators(offerName)}</p> : null}
{regularPrice ? (
<p className="cf-fac-was">
<span className="cf-fac-sr">{regularPriceLabel} </span>
<s>{regularPrice}</s>
</p>
) : null}
<motion.p
className="cf-fac-free"
initial={reduce ? false : { opacity: 0.82, scale: 0.9 }}
whileInView={{ opacity: 1, scale: 1 }}
viewport={{ once: true, amount: 0.6 }}
transition={{ duration: 0.3, ease: EASE }}
>
{freeLabel}
</motion.p>
<p className="cf-fac-claim">
<span className="cf-fac-sc">{investmentLabel}</span>{" "}
{hasCode ? fillCode(claimLine, codeText) : claimLineNoCode}
</p>
{productImage ? (
<img
className="cf-fac-product"
src={productImage}
alt={productImageAlt}
width={320}
height={320}
loading="lazy"
decoding="async"
/>
) : null}
</div>
</div>
<div className="cf-fac-includes">
<h3 className="cf-fac-h3">{includesTitle}</h3>
<ul className="cf-fac-list">
{items.map((item, i) => (
<motion.li
key={`${item.title}-${i}`}
className="cf-fac-row"
initial={reduce ? false : { opacity: 0.82, y: 8 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, amount: 0.6 }}
transition={{ duration: 0.45, ease: EASE, delay: Math.min(i * 0.07, 0.28) }}
>
<span className="cf-fac-count" aria-hidden={item.count ? undefined : true}>
{item.count ? item.count : <Check size={20} strokeWidth={2.5} />}
</span>
<span className="cf-fac-text">
<span className="cf-fac-title">{item.title}</span>
{item.note ? <span className="cf-fac-note">{item.note}</span> : null}
</span>
</motion.li>
))}
</ul>
<div className="cf-fac-action">
{href && !isDisabled ? (
<a className={btnClass} href={href} onClick={() => onAction?.()}>
{btnInner}
</a>
) : (
<button type="button" className={btnClass} disabled={isDisabled} onClick={() => onAction?.()}>
{btnInner}
</button>
)}
</div>
{hasCode ? (
<div className="cf-fac-code">
<span className="cf-fac-code-id">
<span className="cf-fac-code-label">{codeLabel}</span>
<span className="cf-fac-code-value">{codeText}</span>
</span>
<button
type="button"
className={`cf-fac-copy${copied ? " is-copied" : ""}`}
onClick={copyCode}
aria-label={copied ? copiedLabel : copyAriaLabel.replace("{code}", codeText)}
>
{copied ? <Check size={16} strokeWidth={3} aria-hidden="true" /> : <Copy size={16} strokeWidth={2.5} aria-hidden="true" />}
<span>{copied ? copiedLabel : copyLabel}</span>
</button>
<span className="cf-fac-sr" aria-live="polite">
{copied ? copiedAnnouncement.replace("{code}", codeText) : ""}
</span>
</div>
) : null}
{ps ? (
<p className="cf-fac-ps">
<strong>{psLabel}</strong> {ps}
</p>
) : null}
</div>
</div>
<div className="cf-fac-floor" aria-hidden="true" />
</div>
{signoff ? <p className="cf-fac-signoff">{signoff}</p> : null}
</div>
{curveEdge ? (
<div className="cf-fac-edge" aria-hidden="true">
<Divider shape="curve" tone="surface" height={56} />
</div>
) : null}
</section>
);
}
export default FreeAccessCard;
// Keeps "Name · Detail" lines from breaking before the separator on phones.
function keepSeparators(text: string): React.ReactNode {
const parts = text.split(" · ");
if (parts.length < 2) return text;
return parts.map((part, i) => (
<React.Fragment key={`sep-${i}`}>
{i > 0 ? " " : null}
<span className="cf-fac-nowrap">{i < parts.length - 1 ? `${part} ·` : part}</span>
</React.Fragment>
));
}
function fillCode(template: string, code: string): React.ReactNode[] {
const parts = template.split("{code}");
return parts.flatMap((part, i) =>
i < parts.length - 1
? [part, <strong key={`code-${i}`} className="cf-fac-codeword">{code}</strong>]
: [part]
);
}
const CSS = `
.cf-free-access-card { position: relative; --fac-card: var(--card); background: var(--band); color: var(--band-ink); font-family: var(--font-body); --fac-edge: 0px; }
.cf-free-access-card.has-edge { --fac-edge: 56px; }
.cf-free-access-card *, .cf-free-access-card *::before, .cf-free-access-card *::after { box-sizing: border-box; }
.cf-fac-photo { position: absolute; inset: 0 0 auto; height: clamp(440px, 46vw, 680px); z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, var(--band) 45%, oklch(from var(--band) l c h / 0)); mask-image: linear-gradient(to bottom, var(--band) 45%, oklch(from var(--band) l c h / 0)); }
.cf-fac-stage { position: absolute; inset: 30% 0 0; z-index: 0; pointer-events: none; }
.cf-fac-inner { position: relative; z-index: 1; padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) calc(clamp(64px, 8.5vw, 120px) + var(--fac-edge)); }
.cf-fac-head { max-width: 46rem; margin: 0 auto; text-align: center; }
.cf-fac-h2 { margin: 0 0 16px; font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.06; font-weight: var(--display-weight, 800); letter-spacing: var(--display-tracking, -0.025em); text-transform: var(--display-case, none); text-wrap: balance; color: var(--band-ink); }
.cf-fac-em { color: color-mix(in oklab, var(--accent-fill, var(--accent)) 55%, var(--band-ink)); }
.cf-fac-lead { margin: 0 auto; max-width: 40rem; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; font-weight: 500; text-wrap: pretty; color: var(--band-ink); }
.cf-fac-cardwrap { position: relative; isolation: isolate; max-width: 1120px; margin: clamp(32px, 4.5vw, 56px) auto 0; }
.cf-fac-card { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: clip; background: var(--fac-card, var(--card)); color: var(--ink); border: 1px solid var(--card-border, oklch(from var(--ink) l c h / 0.12)); border-radius: var(--card-radius, var(--radius, 14px)); box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22), 0 12px 24px -8px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.32))); }
.cf-fac-floor { position: relative; z-index: 0; height: 32px; margin: -16px 6% 0; background: radial-gradient(closest-side, oklch(from var(--shadow, oklch(0.22 0.03 260)) calc(l - 0.1) c h / 0.7), oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0)); pointer-events: none; }
.cf-fac-offer { background: var(--accent-fill, var(--accent)); color: var(--accent-fill-ink, var(--card)); padding: clamp(28px, 4vw, 48px); }
.cf-fac-offer-inner { position: sticky; top: clamp(16px, 4vh, 40px); }
.cf-fac-name { margin: 0 0 16px; font-size: 0.875rem; line-height: 1.4; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; text-wrap: balance; }
.cf-fac-nowrap { white-space: nowrap; }
.cf-fac-was { margin: 0; font-family: var(--font-display); font-size: clamp(2.5rem, 4.2vw, 3.75rem); line-height: 1; font-weight: var(--display-weight, 800); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cf-fac-was s { text-decoration-line: line-through; text-decoration-thickness: 0.08em; text-decoration-color: currentColor; }
.cf-fac-free { display: block; margin: 12px 0 0; font-family: var(--font-display); font-size: clamp(4.5rem, 9vw, 8rem); line-height: 1; font-weight: var(--display-weight, 800); letter-spacing: -0.035em; transform-origin: 0 100%; }
.cf-fac-claim { margin: 28px 0 0; max-width: 30rem; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.5; font-weight: 500; text-wrap: pretty; }
.cf-fac-sc { font-variant-caps: all-small-caps; font-weight: 800; letter-spacing: 0.06em; }
.cf-fac-product { display: block; width: min(100%, 320px); height: auto; aspect-ratio: 1; object-fit: contain; margin: 40px auto 0; border-radius: 0; filter: drop-shadow(0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.35)) drop-shadow(0 14px 16px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.28)); }
.cf-fac-codeword { font-weight: 800; letter-spacing: 0.04em; }
.cf-fac-includes { min-width: 0; padding: clamp(24px, 4vw, 48px); background: var(--card); color: var(--ink); }
.cf-fac-h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.15; font-weight: var(--display-weight, 800); letter-spacing: -0.01em; text-transform: var(--display-case, none); text-wrap: balance; color: var(--ink); }
.cf-fac-list { list-style: none; margin: 0; padding: 0; }
.cf-fac-row { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; }
.cf-fac-row + .cf-fac-row { border-top: 1px solid oklch(from var(--ink) l c h / 0.12); }
.cf-fac-count { display: inline-flex; align-items: center; min-height: 1.5rem; font-family: var(--font-display); font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.05; font-weight: var(--display-weight, 800); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--accent); }
.cf-fac-text { display: block; min-width: 0; }
.cf-fac-title { display: block; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.4; font-weight: 700; color: var(--ink); text-wrap: pretty; }
.cf-fac-note { display: block; margin-top: 2px; font-size: 0.9375rem; line-height: 1.4; font-weight: 500; color: var(--muted); text-wrap: pretty; }
.cf-fac-action { margin-top: 28px; }
.cf-fac-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 72px; padding: 12px 28px; margin: 0; border: 0; border-radius: var(--button-radius, var(--radius, 12px)); background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l + 0.04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.02) c h)); color: var(--button-ink, var(--cta-ink)); font-family: var(--button-font, var(--font-display)); font-weight: var(--button-weight, 800); text-transform: var(--button-case, none); text-align: center; text-decoration: none; text-shadow: var(--button-text-shadow, none); cursor: pointer; box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.3), 0 8px 16px -6px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.45)); transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease; }
.cf-fac-btn-label { display: block; font-size: clamp(1.125rem, 1.55vw, 1.375rem); line-height: 1.15; text-wrap: balance; }
.cf-fac-btn-sub { display: block; font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.3; font-weight: 600; text-transform: none; text-wrap: balance; }
.cf-fac-btn:not(:disabled):hover, .cf-fac-btn.is-hover { transform: translateY(-1px); background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - 0.01) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.07) c h)); box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + 0.1) c h / 0.7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.32), 0 10px 18px -6px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.55)); }
.cf-fac-btn:not(:disabled):active, .cf-fac-btn.is-active { transform: translateY(1px); background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - 0.04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.08) c h)); box-shadow: inset 0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.35), inset 0 -2px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.3); }
.cf-fac-btn:focus-visible { outline: 3px solid oklch(from var(--field-focus, var(--accent)) l c h / 0.55); outline-offset: 3px; }
.cf-fac-btn:disabled { background: var(--button-2-bg, var(--secondary)); color: var(--button-2-ink, var(--secondary-ink)); text-shadow: none; box-shadow: var(--shadow-sm); cursor: not-allowed; transform: none; }
.cf-fac-code { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 6px 6px 6px 16px; border-radius: 10px; background: color-mix(in oklch, var(--ink) 5%, var(--card)); }
.cf-fac-code-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.cf-fac-code-label { font-size: 0.9375rem; line-height: 1.4; font-weight: 600; color: var(--muted); }
.cf-fac-code-value { font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.2; font-weight: 800; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--ink); user-select: all; }
.cf-fac-copy { flex: none; margin-inline-start: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--button-2-border, transparent); border-radius: max(4px, calc(var(--radius, 12px) - 4px)); background: var(--button-2-bg, var(--secondary)); color: var(--button-2-ink, var(--secondary-ink)); box-shadow: var(--button-2-shadow, var(--shadow-sm)); font-family: var(--font-body); font-size: 0.9375rem; font-weight: 800; line-height: 1; cursor: pointer; transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease; }
.cf-fac-copy:hover { background: oklch(from var(--button-2-bg, var(--secondary)) calc(l - 0.04) c h); }
.cf-fac-copy:active { transform: translateY(1px); box-shadow: none; }
.cf-fac-copy:focus-visible { outline: 3px solid oklch(from var(--field-focus, var(--accent)) l c h / 0.45); outline-offset: 2px; }
.cf-fac-copy.is-copied { background: var(--success); color: var(--success-ink, #fff); border-color: transparent; }
.cf-fac-copy.is-copied:hover { background: oklch(from var(--success) calc(l - 0.04) c h); }
.cf-fac-ps { margin: 20px 0 0; font-size: 0.9375rem; line-height: 1.5; font-weight: 500; color: var(--muted); text-wrap: pretty; }
.cf-fac-ps strong { font-weight: 800; color: var(--ink); }
.cf-fac-signoff { max-width: 1120px; margin: 32px auto 0; text-align: center; font-size: 0.9375rem; line-height: 1.4; font-weight: 700; letter-spacing: 0.02em; color: color-mix(in oklch, var(--band-ink) 80%, var(--band)); text-wrap: balance; }
.cf-fac-edge { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; z-index: 1; pointer-events: none; }
.cf-fac-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 820px) {
.cf-fac-card { grid-template-columns: minmax(0, 1fr); }
.cf-fac-offer { padding: 28px 24px 32px; }
.cf-fac-offer-inner { position: static; }
.cf-fac-free { font-size: clamp(4.5rem, 24vw, 7rem); }
.cf-fac-includes { padding: 24px 20px 28px; }
.cf-fac-row { grid-template-columns: 3.25rem minmax(0, 1fr); gap: 12px; padding: 14px 0; }
.cf-fac-btn { padding: 12px 16px; }
.cf-fac-product { display: none; }
.cf-fac-photo { height: clamp(380px, 110vw, 520px); }
}
@media (prefers-reduced-motion: reduce) {
.cf-fac-btn, .cf-fac-copy { transition: none; }
.cf-fac-btn:not(:disabled):hover, .cf-fac-btn.is-hover, .cf-fac-btn:not(:disabled):active, .cf-fac-btn.is-active, .cf-fac-copy:active { transform: none; }
}
`;
pieces/offer/free-access-card/specimen.tsx 42 lines
import __studioImage80857666 from "../assets/7b0a33c697c80c01.webp";
import React from "react";
import FreeAccessCard, { type FreeAccessCardState } from "../free-access-card";
import kitchen from "../../fx/backdrops/kitchen";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled", "success"];
export default function FreeAccessCardSpecimen({ state = "default" }: { state?: FreeAccessCardState }) {
return (
<FreeAccessCard
state={state}
headline="Look your bakery numbers"
headlineAccent="in the eye."
lead="Most bakery owners dodge the books until tax season. Give it five short mornings and you will price every bake, plan your cash and stop guessing."
offerName="Cashflow Sprint · 5-day challenge"
regularPrice="$497"
includesTitle="Everything inside the Sprint, free"
items={[
{ count: "5", title: "Live coaching calls", note: "One each morning, replays included" },
{ count: "5", title: "On-demand bakery drills", note: "Lifetime access" },
{ count: "3", title: "Pricing calculators", note: "Per loaf, per dozen, per wholesale order" },
{ count: "1", title: "Cashflow Sprint workbook" },
{ count: "1", title: "Weekly cash forecast template" },
{ count: "1", title: "30-day action plan" },
{ count: "Q&A", title: "Daily questions answered", note: "Bring your real numbers" },
]}
label="Join the Cashflow Sprint"
sublabel="Free with your code · 20 minutes a day"
code="BAKE5"
ps="Five short mornings, before the first batch is out. You will finish knowing exactly what every loaf earns you."
signoff="#BakeTheNumbers #ProfitFromTheOven"
backdropImage={kitchen}
productImage={slot(
"product",
__studioImage80857666
)}
productImageAlt="Cashflow Sprint workbook with a calculator and pencil"
onAction={() => undefined}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalFreeAccessCard |
string |
Default "Everything inside."
|
headlineAccent OptionalFreeAccessCard |
string |
Default "Yours free."
|
lead OptionalFreeAccessCard |
string |
Default "Every session, tool and template is counted out below. Claim your seat today and the price drops to zero."
|
offerName OptionalFreeAccessCard |
string |
Default "Free challenge"
|
regularPrice OptionalFreeAccessCard |
string |
|
regularPriceLabel OptionalFreeAccessCard |
string |
Default "Regular price"
|
freeLabel OptionalFreeAccessCard |
string |
Default "FREE"
|
investmentLabel OptionalFreeAccessCard |
string |
Default "Your investment:"
|
claimLine OptionalFreeAccessCard |
string |
Default "nothing today. Enter code {code} at checkout to claim your free seat."
|
claimLineNoCode OptionalFreeAccessCard |
string |
Default "nothing today. Your seat is free."
|
includesTitle OptionalFreeAccessCard |
string |
Default "Everything you get, free"
|
items OptionalFreeAccessCard |
FreeAccessItem[] |
Default DEFAULT_ITEMS
|
label OptionalFreeAccessCard |
string |
Default "Claim My Free Seat"
|
sublabel OptionalFreeAccessCard |
string |
Default "Free today · takes 30 seconds"
|
code OptionalFreeAccessCard |
string |
|
codeLabel OptionalFreeAccessCard |
string |
Default "Your code"
|
copyLabel OptionalFreeAccessCard |
string |
Default "Copy"
|
copiedLabel OptionalFreeAccessCard |
string |
Default "Copied"
|
copyAriaLabel OptionalFreeAccessCard |
string |
Default "Copy code {code}"
|
copiedAnnouncement OptionalFreeAccessCard |
string |
Default "Code {code} copied to your clipboard."
|
psLabel OptionalFreeAccessCard |
string |
Default "P.S."
|
ps OptionalFreeAccessCard |
string |
Default "You pay nothing to join. Show up, do the work and keep everything you build."
|
signoff OptionalFreeAccessCard |
string |
|
backdropImage OptionalFreeAccessCard |
string | null |
Default night
|
productImage OptionalFreeAccessCard |
string |
|
productImageAlt OptionalFreeAccessCard |
string |
Default ""
|
curveEdge OptionalFreeAccessCard |
boolean |
Default true
|
href OptionalFreeAccessCard |
string |
|
onAction OptionalFreeAccessCard |
() => void |
|
disabled OptionalFreeAccessCard |
boolean |
Default false
|
state OptionalFreeAccessCard |
FreeAccessCardState |
Default "default"
|
className OptionalFreeAccessCard |
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-border--button-2-ink--button-2-shadow- 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.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
product- The main product shot or cover (ebook, kit, bottle).
-
59f3da641341e0e5.webp
image/webp · 37.7 KB
-
7b0a33c697c80c01.webp
image/webp · 67 KB
-
7ef109748b828d4d.webp
image/webp · 22.2 KB