Redacted Teaser 1
Redacted teaser: a dark curiosity band. The promise and the action stay pinned beside a document card that
Use it in a prompt
Use content/redacted-teaser 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/redacted-teaser.tsx. - Import it and pass your copy and images (Props tab):
import { RedactedTeaser } from "@/components/funneldna/content/redacted-teaser"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/redacted-teaser/component.tsx 523 lines
// layout: sticky-offer-side
// Redacted teaser: a dark curiosity band. The promise and the action stay pinned beside a document card that
// un-redacts the story line by line, then ends in solid redaction bars that only open live or inside.
import * as React from "react";
import { Lock, ShieldCheck } from "lucide-react";
export type RedactedTeaserLine = {
text: string;
/** Phrase inside `text` set in the accent colour. */
emphasis?: string;
};
export type RedactedTeaserParagraph = {
/** Bold lead-in phrase that opens the paragraph. */
lead: string;
text: string;
};
export type RedactedTeaserProps = {
headline?: string;
/** Phrase inside `headline` that gets the highlighter stroke. */
headlineEmphasis?: string;
/** Short paragraphs under the headline, each opening with a bold lead-in. */
paragraphs?: RedactedTeaserParagraph[];
/** Reveal lines on the document card, read top to bottom. */
lines?: RedactedTeaserLine[];
/** Widths (percent of the line) of the solid redaction bars that close the card. 2 or 3 read best. */
sealedBars?: number[];
/** Screen-reader text standing in for the redaction bars. */
sealedLabel?: string;
/** One line under the bars: where the redacted part is revealed. */
note?: string;
label?: string;
sublabel?: string;
/** Reassurance line under the button. */
privacy?: string;
/** Slot: presenter. Small round portrait of the host. */
presenterImage?: string;
presenterImageAlt?: string;
presenterName?: string;
presenterRole?: string;
/** Words shown before the host's name. */
hostLabel?: string;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
disabled?: boolean;
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
const DEFAULT_PARAGRAPHS: RedactedTeaserParagraph[] = [
{ lead: "Shown inside only.", text: "The full page is opened up line by line, with the reason behind every sentence." },
{ lead: "Nothing to prepare.", text: "Bring the page you are working on and follow along." },
];
const DEFAULT_LINES: RedactedTeaserLine[] = [
{ text: "Every funnel has one page that does most of the selling.", emphasis: "one page" },
{ text: "Most people scroll right past it." },
{ text: "They copy the layout and miss the words that make it work.", emphasis: "the words that make it work" },
{ text: "Inside, we open that page up line by line" },
{ text: "and show you the part nobody explains." },
];
export function RedactedTeaser(props: RedactedTeaserProps) {
const {
headline = "The page that does the selling, read to you word for word",
headlineEmphasis = "word for word",
paragraphs = DEFAULT_PARAGRAPHS,
lines = DEFAULT_LINES,
sealedBars = [100, 86, 54],
sealedLabel = "The rest of this page stays redacted until you are inside.",
note = "The full page, word for word, is only shown inside.",
label = "Send Me The Full Breakdown",
sublabel = "Free on-demand workshop \u00b7 Watch online",
privacy = "We respect your inbox. Unsubscribe anytime.",
presenterImage,
presenterImageAlt,
presenterName,
presenterRole,
hostLabel = "Hosted by",
href,
onAction,
disabled = false,
state = "default",
className,
} = props;
const headingId = React.useId();
const listRef = React.useRef<HTMLOListElement>(null);
const [armed, setArmed] = React.useState(false);
const [open, setOpen] = React.useState<Record<number, number>>({});
const rowCount = lines.length + sealedBars.length;
React.useEffect(() => {
const list = listRef.current;
if (!list || typeof window === "undefined") return;
if (window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
if (!("IntersectionObserver" in window)) return;
const rows = Array.from(list.querySelectorAll<HTMLElement>("[data-rt-row]"));
const limit = window.innerHeight * 0.82;
const initial: Record<number, number> = {};
rows.forEach((row) => {
if (row.getBoundingClientRect().top < limit) initial[Number(row.dataset.rtRow)] = 0;
});
setOpen(initial);
setArmed(true);
const io = new IntersectionObserver(
(entries) => {
const hits = entries
.filter((entry) => entry.isIntersecting || entry.boundingClientRect.top < 0)
.map((entry) => {
io.unobserve(entry.target);
return Number((entry.target as HTMLElement).dataset.rtRow);
})
.sort((a, b) => a - b);
if (!hits.length) return;
setOpen((prev) => {
const next = { ...prev };
hits.forEach((index, order) => {
if (next[index] === undefined) next[index] = order * 110;
});
return next;
});
},
{ rootMargin: "0px 0px -22% 0px" },
);
rows.forEach((row) => {
if (initial[Number(row.dataset.rtRow)] === undefined) io.observe(row);
});
return () => io.disconnect();
}, [rowCount]);
const rowClass = (index: number, extra = "") =>
["rt-row", extra, open[index] !== undefined ? "is-open" : ""].filter(Boolean).join(" ");
const rowStyle = (index: number) =>
open[index] !== undefined ? ({ "--rt-d": `${open[index]}ms` } as React.CSSProperties) : undefined;
const isDisabled = disabled || state === "disabled";
const btnClass = [
"rt-btn",
state === "hover" ? "is-hover" : "",
state === "active" ? "is-active" : "",
isDisabled ? "is-disabled" : "",
]
.filter(Boolean)
.join(" ");
const btnInner = (
<>
<span className="rt-btn-label">{label}</span>
{sublabel ? <span className="rt-btn-sub">{sublabel}</span> : null}
</>
);
const button =
href && !isDisabled ? (
<a className={btnClass} href={href} onClick={onAction}>
{btnInner}
</a>
) : (
<button type="button" className={btnClass} onClick={isDisabled ? undefined : onAction} disabled={isDisabled}>
{btnInner}
</button>
);
const rootClass = ["cf-redacted-teaser", armed ? "is-armed" : "", className].filter(Boolean).join(" ");
return (
<section className={rootClass} aria-labelledby={headingId}>
<style>{CSS}</style>
<RedactionPattern />
<div className="rt-inner">
<div className="rt-offer">
<div className="rt-head">
<h2 id={headingId} className="rt-h">
{withEmphasis(headline, headlineEmphasis, (phrase) => (
<mark className="rt-mark">{phrase}</mark>
))}
</h2>
{paragraphs.map((paragraph, i) => (
<p key={i} className="rt-p">
<strong>{paragraph.lead}</strong> {paragraph.text}
</p>
))}
{presenterName ? (
<div className="rt-host">
{presenterImage ? (
<img
src={presenterImage}
alt={presenterImageAlt || presenterName}
width={56}
height={56}
loading="lazy"
/>
) : null}
<span className="rt-host-text">
<span className="rt-host-name">
<span className="rt-host-by">{hostLabel}</span> {presenterName}
</span>
{presenterRole ? <span className="rt-host-role">{presenterRole}</span> : null}
</span>
</div>
) : null}
</div>
<div className="rt-cta">
{button}
{privacy ? (
<p className="rt-privacy">
<ShieldCheck className="rt-ico" aria-hidden="true" />
{privacy}
</p>
) : null}
</div>
</div>
<div className="rt-doc">
<div className="rt-sheet">
<ol className="rt-lines" ref={listRef}>
{lines.map((line, i) => (
<li key={i} data-rt-row={i} className={rowClass(i)} style={rowStyle(i)}>
<span className="rt-num" aria-hidden="true">
{pad(i + 1)}
</span>
<span className="rt-copy">
<span className="rt-text">
{withEmphasis(line.text, line.emphasis, (phrase) => (
<strong className="rt-em">{phrase}</strong>
))}
</span>
</span>
</li>
))}
{sealedBars.map((width, k) => {
const index = lines.length + k;
return (
<li
key={`sealed-${k}`}
data-rt-row={index}
className={rowClass(index, "rt-row--sealed")}
style={rowStyle(index)}
aria-hidden={k > 0 ? true : undefined}
>
<span className="rt-num" aria-hidden="true">
{pad(index + 1)}
</span>
<span className="rt-copy">
<span
className="rt-bar"
aria-hidden="true"
style={{ "--w": String(Math.max(20, Math.min(100, width))) } as React.CSSProperties}
/>
{k === 0 ? <span className="rt-sr">{sealedLabel}</span> : null}
</span>
</li>
);
})}
</ol>
{note ? (
<p className="rt-note">
<Lock className="rt-ico" aria-hidden="true" />
{note}
</p>
) : null}
</div>
</div>
</div>
</section>
);
}
export default RedactedTeaser;
function withEmphasis(text: string, phrase: string | undefined, wrap: (phrase: string) => React.ReactNode) {
if (!phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
{wrap(phrase)}
{text.slice(at + phrase.length)}
</>
);
}
function pad(n: number) {
return String(n).padStart(2, "0");
}
// private: faint rows of redaction bars behind the band
function RedactionPattern() {
return (
<div className="rt-pattern" aria-hidden="true">
{Array.from({ length: 16 }, (_, r) => (
<div key={r} className="rt-pattern-row" style={{ marginLeft: `${-((r * 5) % 9) - 2}rem` }}>
{Array.from({ length: 10 }, (_, b) => (
<span key={b} style={{ width: `${5 + ((r * 7 + b * 11) % 10)}rem` }} />
))}
</div>
))}
</div>
);
}
const CSS = `
.cf-redacted-teaser {
--rt-gutter: 2.6rem;
--rt-shadow: var(--shadow, oklch(0.22 0.03 260));
/* The marker sits on a band, so it is made opaque (a translucent theme marker turns muddy over a dark band),
and its ink flips dark/light from the marker's own lightness so the phrase reads on every theme. */
--rt-marker: oklch(from var(--marker, #fae37c) l c h / 1);
--rt-marker-ink: var(--marker-ink, oklch(from var(--rt-marker) clamp(0.17, calc((0.64 - l) * 100), 0.985) 0.02 h));
position: relative;
isolation: isolate;
overflow-x: clip;
background: var(--band, oklch(0.27 0.067 256));
color: var(--band-ink, oklch(1 0 0));
font-family: var(--font-body);
padding: clamp(4rem, 9vw, 7.5rem) clamp(1.25rem, 4vw, 3rem);
}
.cf-redacted-teaser *, .cf-redacted-teaser *::before, .cf-redacted-teaser *::after { box-sizing: border-box; }
.cf-redacted-teaser .rt-pattern {
position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
display: flex; flex-direction: column; justify-content: space-between; padding: 3rem 0;
}
.cf-redacted-teaser .rt-pattern-row { display: flex; gap: 1.1rem; }
.cf-redacted-teaser .rt-pattern-row span {
flex: none; height: 1.05rem; border-radius: 999px;
background: oklch(from var(--band-ink, oklch(1 0 0)) l c h / 0.05);
}
.cf-redacted-teaser .rt-inner {
position: relative; max-width: 75rem; margin: 0 auto;
display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
grid-template-areas: "doc offer"; column-gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
/* Offer side: promise + action, pinned while the card reads down */
.cf-redacted-teaser .rt-offer {
grid-area: offer; position: sticky; top: clamp(1.5rem, 5vh, 3.5rem);
display: flex; flex-direction: column; gap: clamp(1.75rem, 3vw, 2.4rem); padding-top: .5rem;
}
.cf-redacted-teaser .rt-h {
margin: 0 0 clamp(1rem, 1.5vw, 1.35rem);
font-family: var(--font-display); font-weight: var(--display-weight, 900);
text-transform: var(--display-case, none); letter-spacing: var(--display-tracking, -0.028em);
font-size: clamp(2.35rem, 4.3vw, 4rem); line-height: 1.06; color: var(--band-ink, oklch(1 0 0));
text-wrap: balance;
}
.cf-redacted-teaser .rt-mark {
background: var(--rt-marker); color: var(--rt-marker-ink); text-shadow: none;
padding: .02em .14em .05em; margin: 0 -.04em; border-radius: .12em .34em .16em .3em;
-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.cf-redacted-teaser .rt-p {
margin: 0; max-width: 34rem; font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.55;
font-weight: 500; color: color-mix(in oklch, var(--band-ink, oklch(1 0 0)) 86%, var(--band, oklch(0.27 0.067 256)));
text-wrap: pretty;
}
.cf-redacted-teaser .rt-p + .rt-p { margin-top: .7rem; }
.cf-redacted-teaser .rt-p strong { color: var(--band-ink, oklch(1 0 0)); font-weight: 800; }
.cf-redacted-teaser .rt-host { display: flex; align-items: center; gap: .85rem; margin-top: 1.6rem; }
.cf-redacted-teaser .rt-host img {
flex: none; width: 3.4rem; height: 3.4rem; border-radius: 50%; object-fit: cover; object-position: 50% 22%;
outline: 2px solid oklch(from var(--band-ink, oklch(1 0 0)) l c h / 0.3); outline-offset: 2px;
background: color-mix(in oklch, var(--band-ink, oklch(1 0 0)) 10%, var(--band, oklch(0.27 0.067 256)));
}
.cf-redacted-teaser .rt-host-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.cf-redacted-teaser .rt-host-name { font-size: 1rem; line-height: 1.3; font-weight: 800; color: var(--band-ink, oklch(1 0 0)); }
.cf-redacted-teaser .rt-host-by, .cf-redacted-teaser .rt-host-role {
font-weight: 500; color: color-mix(in oklch, var(--band-ink, oklch(1 0 0)) 80%, var(--band, oklch(0.27 0.067 256)));
}
.cf-redacted-teaser .rt-host-role { font-size: .9375rem; line-height: 1.35; }
/* Button: two-line Belcher in the theme's action colour */
.cf-redacted-teaser .rt-btn {
--rt-bb: var(--button-bg, var(--cta));
--rt-bb2: var(--button-bg-2, var(--cta-2, var(--rt-bb)));
position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
gap: .3rem; width: 100%; max-width: none; min-height: 4.6rem; margin: 0; padding: 1rem 1.6rem 1.15rem;
border: 1px solid oklch(from var(--rt-bb2) calc(l - 0.08) c h);
border-radius: var(--button-radius, var(--radius, 12px));
background: linear-gradient(180deg, oklch(from var(--rt-bb) calc(l + 0.05) c h), var(--rt-bb2));
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(--rt-bb) calc(l + 0.16) c h / 0.6),
inset 0 -3px 0 oklch(from var(--rt-bb2) calc(l - 0.12) c h),
0 1px 2px oklch(from var(--rt-shadow) calc(l - 0.08) c h / 0.45),
0 10px 18px -8px oklch(from var(--rt-shadow) calc(l - 0.08) c h / 0.6));
transition: transform .16s ease, box-shadow .16s ease;
-webkit-tap-highlight-color: transparent;
}
.cf-redacted-teaser .rt-btn-label { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.cf-redacted-teaser .rt-btn-sub {
font-family: var(--font-body); font-size: .9375rem; font-weight: 600; line-height: 1.3;
text-transform: none; letter-spacing: 0; text-wrap: pretty;
}
.cf-redacted-teaser .rt-btn:hover, .cf-redacted-teaser .rt-btn.is-hover {
transform: translateY(-2px);
background: linear-gradient(180deg, oklch(from var(--rt-bb) calc(l + 0.01) c h), oklch(from var(--rt-bb2) calc(l - 0.05) c h));
box-shadow: var(--button-shadow,
inset 0 1px 0 oklch(from var(--rt-bb) calc(l + 0.16) c h / 0.6),
inset 0 -3px 0 oklch(from var(--rt-bb2) calc(l - 0.14) c h),
0 2px 3px oklch(from var(--rt-shadow) calc(l - 0.08) c h / 0.5),
0 14px 22px -10px oklch(from var(--rt-shadow) calc(l - 0.08) c h / 0.7));
}
.cf-redacted-teaser .rt-btn:active, .cf-redacted-teaser .rt-btn.is-active {
transform: translateY(1px);
background: linear-gradient(180deg, var(--rt-bb2), oklch(from var(--rt-bb2) calc(l - 0.05) c h));
box-shadow:
inset 0 2px 3px oklch(from var(--rt-bb2) calc(l - 0.18) c h / 0.55),
inset 0 -1px 0 oklch(from var(--rt-bb2) calc(l - 0.12) c h),
0 1px 2px oklch(from var(--rt-shadow) calc(l - 0.08) c h / 0.4);
}
.cf-redacted-teaser .rt-btn:focus-visible { outline: 3px solid var(--band-ink, oklch(1 0 0)); outline-offset: 3px; }
.cf-redacted-teaser .rt-btn:disabled, .cf-redacted-teaser .rt-btn.is-disabled {
cursor: not-allowed; transform: none; border-color: transparent; text-shadow: none;
background: var(--button-2-bg, var(--secondary)); color: var(--button-2-ink, var(--secondary-ink));
box-shadow: var(--button-2-shadow, var(--shadow-sm));
}
/* The action block shares the paragraph measure; the button fills it so its centre is the block's centre */
.cf-redacted-teaser .rt-cta { width: 100%; max-width: 34rem; }
.cf-redacted-teaser .rt-privacy {
margin: .9rem 0 0; text-align: center; font-size: .9375rem; line-height: 1.45; font-weight: 500;
color: color-mix(in oklch, var(--band-ink, oklch(1 0 0)) 82%, var(--band, oklch(0.27 0.067 256))); text-wrap: pretty;
}
.cf-redacted-teaser .rt-ico { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.16em; margin-inline-end: .4em; }
/* Document card */
.cf-redacted-teaser .rt-doc { grid-area: doc; position: relative; }
.cf-redacted-teaser .rt-doc::before {
content: ""; position: absolute; inset: 1.1rem -0.75rem -1.1rem 0.75rem;
border-radius: var(--card-radius, var(--radius, 14px));
background: color-mix(in oklch, var(--ink) 12%, var(--card, #ffffff)); transform: rotate(2deg);
box-shadow: var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2));
}
.cf-redacted-teaser .rt-sheet {
--rt-bar: var(--ink);
position: relative; background: var(--card, #ffffff); color: var(--ink);
border: 1px solid var(--card-border, color-mix(in oklch, var(--ink) 12%, transparent));
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: 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)));
padding: clamp(1.75rem, 3.6vw, 3rem) clamp(1.35rem, 3.2vw, 2.75rem);
}
.cf-redacted-teaser .rt-lines {
list-style: none; margin: 0; padding: 0;
font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.42; font-weight: 500;
}
.cf-redacted-teaser .rt-row { display: grid; grid-template-columns: var(--rt-gutter) minmax(0, 1fr); align-items: baseline; }
.cf-redacted-teaser .rt-row + .rt-row { margin-top: clamp(1.1rem, 2vw, 1.6rem); }
.cf-redacted-teaser .rt-row--sealed { align-items: center; }
.cf-redacted-teaser .rt-row--sealed + .rt-row--sealed { margin-top: .55rem; }
.cf-redacted-teaser .rt-num {
font-size: .875rem; font-weight: 700; line-height: 1.2; color: var(--muted);
font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.cf-redacted-teaser .rt-copy { display: block; min-width: 0; text-wrap: balance; }
.cf-redacted-teaser .rt-text {
padding: .04em .14em; margin: 0 -.14em; border-radius: 3px;
-webkit-box-decoration-break: clone; box-decoration-break: clone;
background-image: linear-gradient(var(--rt-bar), var(--rt-bar)); background-repeat: no-repeat;
background-position: 100% 50%; background-size: 0% 100%;
}
.cf-redacted-teaser .rt-em { color: var(--accent); font-weight: 700; }
.cf-redacted-teaser .rt-bar {
display: block; width: calc(var(--w, 100) * 1%); height: 1.12em; border-radius: 4px;
background: linear-gradient(180deg, oklch(from var(--rt-bar) calc(l + 0.07) c h), var(--rt-bar));
box-shadow: inset 0 1px 0 oklch(from var(--rt-bar) calc(l + 0.16) c h / 0.45);
transform-origin: 0 50%;
}
.cf-redacted-teaser .rt-sr {
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cf-redacted-teaser .rt-note {
margin: clamp(1.5rem, 2.6vw, 2.1rem) 0 0; padding-left: var(--rt-gutter);
font-size: .9375rem; line-height: 1.5; font-weight: 600; color: var(--muted); text-wrap: pretty;
}
/* Reveal: lines start under a bar and un-redact as they scroll in; the closing bars redact themselves */
.cf-redacted-teaser.is-armed .rt-row:not(.is-open) .rt-text { background-size: 100% 100%; color: transparent; }
.cf-redacted-teaser.is-armed .rt-row:not(.is-open) .rt-em { color: transparent; }
.cf-redacted-teaser.is-armed .rt-row.is-open .rt-text {
transition: background-size .7s cubic-bezier(.7, 0, .3, 1) var(--rt-d, 0ms), color .25s ease calc(var(--rt-d, 0ms) + 160ms);
}
.cf-redacted-teaser.is-armed .rt-row.is-open .rt-em { transition: color .25s ease calc(var(--rt-d, 0ms) + 160ms); }
.cf-redacted-teaser.is-armed .rt-row--sealed:not(.is-open) .rt-bar { transform: scaleX(0); }
.cf-redacted-teaser.is-armed .rt-row--sealed.is-open .rt-bar { transition: transform .6s cubic-bezier(.2, .75, .2, 1) var(--rt-d, 0ms); }
@keyframes rt-nudge {
0%, 100% { transform: translateX(0) scaleX(1); }
30% { transform: translateX(3px) scaleX(1); }
60% { transform: translateX(-2px) scaleX(1); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
.cf-redacted-teaser .rt-row--sealed:hover .rt-bar { animation: rt-nudge .42s ease; }
}
@media (prefers-reduced-motion: reduce) {
.cf-redacted-teaser .rt-btn, .cf-redacted-teaser .rt-btn:hover, .cf-redacted-teaser .rt-btn.is-hover,
.cf-redacted-teaser .rt-btn:active, .cf-redacted-teaser .rt-btn.is-active { transition: none; transform: none; }
}
@media (min-width: 960px) and (max-height: 700px) {
.cf-redacted-teaser .rt-offer { position: static; }
}
/* Phone: hook first, then the redacted card, then the action */
@media (max-width: 959px) {
.cf-redacted-teaser { --rt-gutter: 2.1rem; }
.cf-redacted-teaser .rt-inner {
max-width: 38rem; grid-template-columns: minmax(0, 1fr);
grid-template-areas: "head" "doc" "cta"; row-gap: 2.75rem;
}
.cf-redacted-teaser .rt-offer { display: contents; }
.cf-redacted-teaser .rt-head { grid-area: head; }
.cf-redacted-teaser .rt-cta { grid-area: cta; }
.cf-redacted-teaser .rt-doc::before { inset: .7rem -.4rem -.7rem .4rem; transform: rotate(1.4deg); }
.cf-redacted-teaser .rt-cta { max-width: none; }
}
@media (max-width: 480px) {
.cf-redacted-teaser { --rt-gutter: 1.85rem; }
.cf-redacted-teaser .rt-h { font-size: clamp(2.15rem, 9.4vw, 2.6rem); }
.cf-redacted-teaser .rt-lines { font-size: 1.125rem; line-height: 1.45; }
.cf-redacted-teaser .rt-sheet { padding: 1.5rem 1.2rem 1.6rem; }
.cf-redacted-teaser .rt-btn { padding-inline: 1.1rem; }
}
`;
pieces/content/redacted-teaser/specimen.tsx 44 lines
import __studioImage1dfbe3ab from "../assets/7fc062eb6889f773.webp";
import * as React from "react";
import { RedactedTeaser } from "../redacted-teaser";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled"] as const;
type SpecimenState = (typeof states)[number];
export default function RedactedTeaserSpecimen({ state = "default" }: { state?: SpecimenState }) {
const registration = defaults.sample.registration;
return (
<RedactedTeaser
state={state}
headline="The page plan behind your first funnel, word for word"
headlineEmphasis="word for word"
paragraphs={[
{ lead: "Free and on demand.", text: `Watch the ${registration.name} online, whenever it suits you.` },
{ lead: "Bring your offer.", text: "You'll walk through your offer, your page copy and your next steps." },
]}
lines={[
{ text: "Most first funnels stall on one page.", emphasis: "one page" },
{ text: "Not the ad. Not the checkout." },
{ text: "The page that has to turn a stranger into a lead.", emphasis: "turn a stranger into a lead" },
{ text: "In the workshop, we open that page up." },
{ text: "Then we map it line by line, in plain English." },
]}
sealedBars={[100, 84, 52]}
sealedLabel="The page map itself stays redacted until you join the workshop."
note="The full page map, word for word, is only shown inside the workshop."
label="Send Me The Workshop"
sublabel={registration.sublabel}
privacy={registration.privacy}
presenterImage={slot(
"presenter",
__studioImage1dfbe3ab,
)}
presenterImageAlt="Maya Carter, workshop host"
presenterName="Maya Carter"
presenterRole="Funnel strategist"
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalRedactedTeaser |
string |
|
headlineEmphasis OptionalRedactedTeaser |
string |
|
paragraphs OptionalRedactedTeaser |
RedactedTeaserParagraph[] |
|
lines OptionalRedactedTeaser |
RedactedTeaserLine[] |
|
sealedBars OptionalRedactedTeaser |
number[] |
|
sealedLabel OptionalRedactedTeaser |
string |
|
note OptionalRedactedTeaser |
string |
|
label OptionalRedactedTeaser |
string |
|
sublabel OptionalRedactedTeaser |
string |
|
privacy OptionalRedactedTeaser |
string |
|
presenterImage OptionalRedactedTeaser |
string |
|
presenterImageAlt OptionalRedactedTeaser |
string |
|
presenterName OptionalRedactedTeaser |
string |
|
presenterRole OptionalRedactedTeaser |
string |
|
hostLabel OptionalRedactedTeaser |
string |
|
href OptionalRedactedTeaser |
string |
|
onAction OptionalRedactedTeaser |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalRedactedTeaser |
boolean |
|
state OptionalRedactedTeaser |
"default" | "hover" | "active" | "disabled" |
|
className OptionalRedactedTeaser |
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--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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter- A photo of the host, coach or founder.
-
7fc062eb6889f773.webp
image/webp · 167 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB