Annotated Screens 1
Annotated screens: fans the product's screens like a hand of cards and brings the chosen one to the front. A numbered legend explains each part, so the reader learns the product by looking at it. It closes with the price, a guarantee tick and the action.
Use it in a prompt
Use content/annotated-screens 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/annotated-screens.tsx. - Import it and pass your copy and images (Props tab):
import { AnnotatedScreens } from "@/components/funneldna/content/annotated-screens"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/annotated-screens/component.tsx 791 lines
// layout: card-fan
// Annotated screens: fans the product's screens like a hand of cards and brings the chosen one to the front. A numbered legend explains each part, so the reader learns the product by looking at it. It closes with the price, a guarantee tick and the action.
import React, { useId, useRef, useState } from "react";
import { Check, CircleAlert, LayoutDashboard, Lock } from "lucide-react";
import { FX_HOST, Pattern } from "../fx/fx";
export type AnnotatedScreenNote = {
title: string;
detail?: string;
};
export type AnnotatedScreen = {
/** Short name on the screen picker. */
tab: string;
/** Benefit headline shown beside the screen. */
title: string;
description?: string;
/** Screen image (slot item-n). */
image?: string;
imageAlt?: string;
/** Text in the frame's title bar; falls back to the tab name. */
frameLabel?: string;
/** Plain line under the screen. */
caption?: string;
/** Numbered legend: what each part does and why it matters. */
notes: AnnotatedScreenNote[];
};
export type AnnotatedScreensProps = {
headline?: string;
/** Phrase inside the headline that gets the marker stroke. */
highlight?: string;
lead?: string;
screens?: AnnotatedScreen[];
/** Screen on top when the block first renders (0-based). */
defaultActive?: number;
/** Accessible name of the screen picker. */
pickerLabel?: string;
/** Accessible label for the cards behind; "{title}" is replaced with that screen's title. */
showLabel?: string;
/** Accessible name of the numbered legend. */
notesLabel?: string;
offerTitle?: string;
price?: string;
/** What the price is set against, e.g. "vs. $97 combined value". */
priceAlternative?: string;
priceNote?: string;
/** Guarantee line the reader ticks above the button; empty hides it. */
commitLabel?: string;
commitError?: string;
commitDefaultChecked?: boolean;
/** Button label; empty hides the whole close. */
label?: string;
reassurance?: string;
href?: string;
onAction?: () => void;
state?: "default" | "hover" | "active" | "disabled" | "error";
className?: string;
};
const DEFAULT_SCREENS: AnnotatedScreen[] = [
{
tab: "The plan",
title: "See the whole plan on one screen",
description: "Every step laid out in order, so you always know what comes next.",
notes: [
{ title: "Every step in order", detail: "Work from the first step to the last and nothing gets skipped." },
{ title: "One job per step", detail: "Each step names the single thing it asks you to do." },
{ title: "Your next move, marked", detail: "The step you are on is always the one that stands out." },
],
},
{
tab: "The work",
title: "Do the work right where you plan it",
description: "Prompts sit beside each step, so you fill in answers instead of staring at a blank page.",
notes: [
{ title: "A prompt for every field", detail: "Answer short questions and your first draft takes shape." },
{ title: "Examples beside the prompts", detail: "See a finished answer before you write your own." },
{ title: "Your answers in one place", detail: "Everything you write sits next to the step it belongs to." },
],
},
{
tab: "The check",
title: "Check every step before you go live",
description: "A final pass that catches the small things before anyone else sees them.",
notes: [
{ title: "Every link, in order", detail: "Click through like a visitor and tick each step as it works." },
{ title: "Every form, tested", detail: "Send one test entry through each form before you share the page." },
{ title: "Your next step, ready", detail: "Know what happens after launch before you press publish." },
],
},
];
export function AnnotatedScreens(props: AnnotatedScreensProps) {
const {
headline = "Look inside before you decide",
highlight = "before you decide",
lead = "Pick a screen to see what each part does and why it matters to you.",
screens = DEFAULT_SCREENS,
defaultActive = 0,
pickerLabel = "Choose a screen",
showLabel = "Show {title}",
notesLabel = "What each part does",
offerTitle = "Get everything you just saw",
price = "",
priceAlternative = "",
priceNote = "",
commitLabel = "",
commitError = "Tick the box above to continue.",
commitDefaultChecked = true,
label = "Get instant access",
reassurance = "",
href,
onAction,
state = "default",
className,
} = props;
const uid = useId();
const count = screens.length;
const [active, setActive] = useState(() => clamp(defaultActive, 0, Math.max(count - 1, 0)));
const [checked, setChecked] = useState(commitDefaultChecked);
const [showError, setShowError] = useState(false);
const tabRefs = useRef<Array<HTMLButtonElement | null>>([]);
const commitRef = useRef<HTMLInputElement | null>(null);
const safeActive = clamp(active, 0, Math.max(count - 1, 0));
const current = screens[safeActive];
const disabled = state === "disabled";
const hasCommit = Boolean(commitLabel);
const isChecked = state === "error" ? false : checked;
const errorShown = hasCommit && (state === "error" || showError);
const errorId = `${uid}-error`;
const panelId = `${uid}-panel`;
const forced = state === "hover" || state === "active" ? state : undefined;
function onTabKey(event: React.KeyboardEvent<HTMLButtonElement>, index: number) {
let next = -1;
if (event.key === "ArrowRight" || event.key === "ArrowDown") next = (index + 1) % count;
else if (event.key === "ArrowLeft" || event.key === "ArrowUp") next = (index - 1 + count) % count;
else if (event.key === "Home") next = 0;
else if (event.key === "End") next = count - 1;
if (next < 0) return;
event.preventDefault();
setActive(next);
tabRefs.current[next]?.focus();
}
function handleAction(event: React.MouseEvent<HTMLElement>) {
if (disabled) {
event.preventDefault();
return;
}
if (hasCommit && !isChecked) {
event.preventDefault();
setShowError(true);
commitRef.current?.focus();
return;
}
onAction?.();
}
return (
<section className={["cf-annotated-screens", className].filter(Boolean).join(" ")}>
<style>{CSS}</style>
<div className="as-wrap">
<header className="as-head">
<h2 className="as-h2">{withMarker(headline, highlight)}</h2>
{lead ? <p className="as-lead">{lead}</p> : null}
</header>
{current ? (
<div className="as-main">
<figure className="as-figure">
<div className="as-fan" style={FX_HOST}>
<Pattern name="grid" fade="edges" />
<div className="as-stage">
{screens.map((screen, i) => {
const pos = fanPosition(i, safeActive, count);
const front = pos === "front";
return (
<div className="as-card" data-pos={pos} key={`${screen.tab}-${i}`}>
<div className="as-bar">
<span className="as-dots" aria-hidden="true">
<i />
<i />
<i />
</span>
<span className="as-bar-label">{screen.frameLabel || screen.tab}</span>
</div>
<div className="as-shot">
{screen.image ? (
<img
src={screen.image}
alt={front ? screen.imageAlt || screen.title : ""}
width={1600}
height={1000}
loading={front ? "eager" : "lazy"}
decoding="async"
/>
) : (
<span className="as-empty">
<LayoutDashboard size={24} strokeWidth={2.5} aria-hidden="true" />
<span>{screen.tab}</span>
</span>
)}
</div>
{!front && pos !== "hidden" ? (
<button
type="button"
className="as-peek"
tabIndex={-1}
aria-label={showLabel.replace("{title}", screen.title)}
onClick={() => setActive(i)}
/>
) : null}
</div>
);
})}
</div>
</div>
{current.caption ? <figcaption className="as-caption">{current.caption}</figcaption> : null}
</figure>
{count > 1 ? (
<div className="as-pick">
<div
className="as-tabs"
role="tablist"
aria-label={pickerLabel}
data-many={count > 4 ? "" : undefined}
style={{ "--as-n": Math.min(count, 4) } as React.CSSProperties}
>
{screens.map((screen, i) => (
<button
key={`${screen.tab}-${i}`}
ref={(el) => {
tabRefs.current[i] = el;
}}
type="button"
role="tab"
id={`${uid}-tab-${i}`}
className="as-tab"
aria-selected={i === safeActive}
aria-controls={panelId}
tabIndex={i === safeActive ? 0 : -1}
onClick={() => setActive(i)}
onKeyDown={(event) => onTabKey(event, i)}
>
{screen.tab}
</button>
))}
</div>
</div>
) : null}
<div
className="as-panel"
key={safeActive}
id={panelId}
role={count > 1 ? "tabpanel" : undefined}
aria-labelledby={count > 1 ? `${uid}-tab-${safeActive}` : undefined}
data-single={count > 1 ? undefined : ""}
>
<h3 className="as-h3">{current.title}</h3>
{current.description ? <p className="as-desc">{current.description}</p> : null}
{current.notes.length ? (
<ol className="as-notes" aria-label={notesLabel}>
{current.notes.map((note, n) => (
<li className="as-note" key={`${note.title}-${n}`}>
<span className="as-num" aria-hidden="true">
{String(n + 1).padStart(2, "0")}
</span>
<span className="as-note-body">
<strong className="as-note-title">{note.title}</strong>
{note.detail ? <span className="as-note-detail">{note.detail}</span> : null}
</span>
</li>
))}
</ol>
) : null}
</div>
</div>
) : null}
{label ? (
<div className="as-close">
<div className="as-offer">
{offerTitle ? <h3 className="as-h3">{offerTitle}</h3> : null}
{price ? (
<p className="as-price-row">
<span className="as-price">{price}</span>
{priceAlternative || priceNote ? (
<span className="as-price-side">
{priceAlternative ? <span className="as-alt">{priceAlternative}</span> : null}
{priceNote ? <span className="as-pnote">{priceNote}</span> : null}
</span>
) : null}
</p>
) : null}
</div>
<div className="as-act">
{hasCommit ? (
<>
<label className="as-commit" data-error={errorShown ? "" : undefined}>
<input
ref={commitRef}
className="as-commit-input"
type="checkbox"
checked={isChecked}
onChange={(event) => {
setChecked(event.target.checked);
if (event.target.checked) setShowError(false);
}}
aria-invalid={errorShown || undefined}
aria-describedby={errorShown ? errorId : undefined}
/>
<span className="as-box" aria-hidden="true">
<Check size={16} strokeWidth={3} />
</span>
<span className="as-commit-text">{commitLabel}</span>
</label>
{errorShown ? (
<p className="as-error" id={errorId} role="alert">
<CircleAlert size={16} strokeWidth={2.5} aria-hidden="true" />
{commitError}
</p>
) : null}
</>
) : null}
{href ? (
<a
className="as-btn"
href={href}
data-state={forced}
aria-disabled={disabled || undefined}
tabIndex={disabled ? -1 : undefined}
onClick={handleAction}
>
{label}
</a>
) : (
<button type="button" className="as-btn" data-state={forced} disabled={disabled} onClick={handleAction}>
{label}
</button>
)}
{reassurance ? (
<p className="as-reassure">
<Lock size={16} strokeWidth={2.5} aria-hidden="true" />
{reassurance}
</p>
) : null}
</div>
</div>
) : null}
</div>
</section>
);
}
export default AnnotatedScreens;
function clamp(n: number, min: number, max: number) {
return Math.min(Math.max(n, min), max);
}
function fanPosition(index: number, active: number, count: number): "front" | "right" | "left" | "hidden" {
const rel = (index - active + count) % count;
if (rel === 0) return "front";
if (rel === 1) return "right";
if (count > 2 && rel === count - 1) return "left";
return "hidden";
}
function withMarker(text: string, phrase?: string): React.ReactNode {
if (!phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className="as-mark">{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
const CSS = `
.cf-annotated-screens {
--as-ease: cubic-bezier(.2,.7,.2,1);
--as-shadow: var(--shadow, oklch(0.22 0.03 260));
--as-dx: 10%;
--as-dy: -36px;
--as-card-w: 88%;
position: relative;
overflow-x: clip;
background: var(--surface);
color: var(--ink);
font-family: var(--font-body);
padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
}
.cf-annotated-screens *, .cf-annotated-screens *::before, .cf-annotated-screens *::after { box-sizing: border-box; }
.cf-annotated-screens .as-wrap { max-width: 1120px; margin: 0 auto; }
.cf-annotated-screens .as-head { max-width: 46rem; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.cf-annotated-screens .as-h2 {
margin: 0;
font-family: var(--font-display);
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(--ink);
text-wrap: balance;
}
.cf-annotated-screens .as-mark {
color: var(--marker-ink, var(--field-ink, var(--ink)));
background-image: linear-gradient(transparent 46%, var(--marker, #fae37c) 46%, var(--marker, #fae37c) 94%, transparent 94%);
padding: 0 .12em;
margin: 0 -.04em;
border-radius: .2em .55em .3em .45em;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
.cf-annotated-screens .as-lead {
margin: 16px auto 0;
max-width: 40rem;
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
line-height: 1.4;
font-weight: 500;
color: var(--muted);
text-wrap: pretty;
}
.cf-annotated-screens .as-main {
display: grid;
grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
grid-template-areas: 'fan pick' 'fan notes';
grid-template-rows: auto 1fr;
column-gap: clamp(32px, 5vw, 72px);
align-items: start;
}
.cf-annotated-screens .as-figure { grid-area: fan; margin: 0; min-width: 0; }
.cf-annotated-screens .as-fan {
position: relative;
margin-inline: calc(-1 * clamp(8px, 2vw, 24px));
padding: 44px clamp(8px, 2vw, 24px) 12px;
}
.cf-annotated-screens .as-stage { position: relative; z-index: 1; display: grid; }
.cf-annotated-screens .as-card {
grid-area: 1 / 1;
justify-self: center;
width: var(--as-card-w);
position: relative;
overflow: hidden;
background: var(--card);
border: 1px solid var(--card-border, oklch(from var(--ink) l c h / .12));
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / .22), 0 4px 10px -2px oklch(0.22 0.03 260 / .2));
transform-origin: 50% 0;
transition: transform .45s var(--as-ease), box-shadow .3s ease, opacity .3s ease, visibility 0s linear 0s;
}
.cf-annotated-screens .as-card::after {
content: "";
position: absolute;
inset: 0;
z-index: 2;
background: oklch(from var(--surface) l c h / .42);
opacity: 0;
pointer-events: none;
transition: opacity .3s ease;
}
.cf-annotated-screens .as-card[data-pos='front'] {
z-index: 3;
transform: none;
border-color: oklch(from var(--accent) l c h / .35);
box-shadow: var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 260 / .22), 0 12px 24px -8px oklch(0.22 0.03 260 / .32));
}
.cf-annotated-screens .as-card[data-pos='right'] { z-index: 2; transform: translate(var(--as-dx), var(--as-dy)) scale(.92); }
.cf-annotated-screens .as-card[data-pos='left'] { z-index: 1; transform: translate(calc(-1 * var(--as-dx)), var(--as-dy)) scale(.92); }
.cf-annotated-screens .as-card[data-pos='hidden'] {
z-index: 0;
opacity: 0;
visibility: hidden;
transform: translateY(calc(var(--as-dy) * 1.4)) scale(.86);
transition: transform .45s var(--as-ease), opacity .3s ease, visibility 0s linear .3s;
}
.cf-annotated-screens .as-card[data-pos='right']::after,
.cf-annotated-screens .as-card[data-pos='left']::after { opacity: 1; }
@media (hover: hover) {
.cf-annotated-screens .as-card[data-pos='right']:hover { transform: translate(calc(var(--as-dx) + 2%), calc(var(--as-dy) - 6px)) scale(.92); }
.cf-annotated-screens .as-card[data-pos='left']:hover { transform: translate(calc(-1 * var(--as-dx) - 2%), calc(var(--as-dy) - 6px)) scale(.92); }
.cf-annotated-screens .as-card[data-pos='right']:hover::after,
.cf-annotated-screens .as-card[data-pos='left']:hover::after { opacity: .45; }
}
.cf-annotated-screens .as-peek {
position: absolute;
inset: 0;
z-index: 3;
margin: 0;
padding: 0;
border: 0;
background: transparent;
cursor: pointer;
}
.cf-annotated-screens .as-bar {
display: flex;
align-items: center;
gap: 12px;
height: 40px;
padding: 0 14px;
background: color-mix(in oklch, var(--ink) 5%, var(--card));
border-bottom: 1px solid oklch(from var(--ink) l c h / .1);
}
.cf-annotated-screens .as-dots { display: inline-flex; gap: 6px; flex: none; }
.cf-annotated-screens .as-dots i { width: 10px; height: 10px; border-radius: 999px; background: color-mix(in oklch, var(--ink) 22%, var(--card)); }
.cf-annotated-screens .as-bar-label {
flex: 1;
min-width: 0;
margin-right: 42px;
text-align: center;
font-size: .875rem;
font-weight: 600;
line-height: 1.2;
color: var(--ink);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.cf-annotated-screens .as-shot { aspect-ratio: 16 / 10; background: color-mix(in oklch, var(--ink) 4%, var(--card)); }
.cf-annotated-screens .as-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.cf-annotated-screens .as-empty {
display: grid;
height: 100%;
place-content: center;
justify-items: center;
gap: 8px;
color: var(--muted);
font-size: .9375rem;
font-weight: 700;
}
.cf-annotated-screens .as-caption {
margin: 16px auto 0;
max-width: 36rem;
text-align: center;
font-size: .9375rem;
font-weight: 500;
line-height: 1.4;
color: var(--muted);
text-wrap: pretty;
}
.cf-annotated-screens .as-pick { grid-area: pick; padding-top: 44px; }
.cf-annotated-screens .as-tabs {
display: grid;
grid-template-columns: repeat(var(--as-n, 3), minmax(0, 1fr));
gap: 4px;
padding: 4px;
border-radius: calc(var(--radius, 12px) + 4px);
background: color-mix(in oklch, var(--ink) 6%, var(--surface));
border: 1px solid oklch(from var(--ink) l c h / .08);
}
.cf-annotated-screens .as-tabs[data-many] { display: flex; flex-wrap: wrap; }
.cf-annotated-screens .as-tab {
display: flex;
align-items: center;
justify-content: center;
min-width: 0;
min-height: 48px;
padding: 8px 14px;
border: 1px solid transparent;
border-radius: var(--radius, 12px);
background: transparent;
color: var(--ink);
font-family: var(--font-body);
font-size: .9375rem;
font-weight: 700;
line-height: 1.2;
text-align: center;
text-wrap: balance;
cursor: pointer;
transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.cf-annotated-screens .as-tabs[data-many] .as-tab { flex: 1 1 auto; }
.cf-annotated-screens .as-tab:hover { background: color-mix(in oklch, var(--ink) 7%, var(--surface)); }
.cf-annotated-screens .as-tab:active { background: color-mix(in oklch, var(--ink) 11%, var(--surface)); }
.cf-annotated-screens .as-tab[aria-selected='true'] {
background: var(--card);
border-color: oklch(from var(--accent) l c h / .55);
box-shadow: var(--shadow-sm, 0 1px 1px oklch(0.22 0.03 260 / .18), 0 1px 3px oklch(0.22 0.03 260 / .14));
cursor: default;
}
.cf-annotated-screens .as-tab:focus-visible { outline: 3px solid oklch(from var(--field-focus, var(--accent)) l c h / .5); outline-offset: 2px; }
.cf-annotated-screens .as-panel { grid-area: notes; padding-top: 24px; animation: cf-annotated-screens-rise .45s var(--as-ease) both; }
.cf-annotated-screens .as-panel[data-single] { padding-top: 44px; }
.cf-annotated-screens .as-h3 {
margin: 0;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
letter-spacing: -0.01em;
text-transform: var(--display-case, none);
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1.15;
color: var(--ink);
text-wrap: balance;
}
.cf-annotated-screens .as-desc {
margin: 12px 0 0;
max-width: 64ch;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
color: var(--muted);
text-wrap: pretty;
}
.cf-annotated-screens .as-notes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 4px; }
.cf-annotated-screens .as-note {
display: grid;
grid-template-columns: 44px minmax(0, 1fr);
gap: 12px;
margin-inline: -12px;
padding: 12px 16px 12px 12px;
border-radius: 10px;
transition: background .16s ease;
}
.cf-annotated-screens .as-note:hover { background: color-mix(in oklch, var(--ink) 5%, var(--surface)); }
.cf-annotated-screens .as-num {
font-family: var(--font-display);
font-weight: 800;
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1.15;
letter-spacing: -0.01em;
font-variant-numeric: lining-nums tabular-nums;
color: var(--accent);
}
.cf-annotated-screens .as-note-body { min-width: 0; padding-top: 2px; }
.cf-annotated-screens .as-note-title { display: block; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); font-weight: 700; line-height: 1.35; color: var(--ink); text-wrap: pretty; }
.cf-annotated-screens .as-note-detail { display: block; margin-top: 4px; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.cf-annotated-screens .as-close {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
gap: clamp(24px, 4vw, 48px);
align-items: center;
margin-top: clamp(56px, 7vw, 88px);
padding: clamp(24px, 3.5vw, 40px);
background: var(--card);
border: 1px solid var(--card-border, oklch(from var(--ink) l c h / .12));
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / .22), 0 4px 10px -2px oklch(0.22 0.03 260 / .2)));
}
.cf-annotated-screens .as-offer { min-width: 0; }
.cf-annotated-screens .as-price-row { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cf-annotated-screens .as-price {
font-family: var(--font-display);
font-weight: 800;
font-size: clamp(2.5rem, 4.2vw, 3.75rem);
line-height: 1;
letter-spacing: -0.03em;
font-variant-numeric: lining-nums tabular-nums;
color: var(--ink);
}
.cf-annotated-screens .as-price-side { display: grid; gap: 4px; font-size: .9375rem; line-height: 1.4; }
.cf-annotated-screens .as-alt { font-weight: 700; color: var(--ink); }
.cf-annotated-screens .as-pnote { font-weight: 500; color: var(--muted); }
.cf-annotated-screens .as-act { min-width: 0; }
.cf-annotated-screens .as-commit {
position: relative;
display: flex;
align-items: flex-start;
gap: 12px;
margin: 0 0 16px;
font-size: .9375rem;
font-weight: 600;
line-height: 1.4;
color: var(--ink);
cursor: pointer;
}
.cf-annotated-screens .as-commit-input { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.cf-annotated-screens .as-box {
flex: none;
display: grid;
place-items: center;
width: 24px;
height: 24px;
border-radius: 7px;
background: var(--field, var(--card));
border: 2px solid var(--field-border, color-mix(in oklch, var(--ink) 22%, transparent));
color: var(--success-ink, #fff);
transition: background .16s ease, border-color .16s ease;
}
.cf-annotated-screens .as-box svg { opacity: 0; transition: opacity .16s ease; }
.cf-annotated-screens .as-commit-input:checked + .as-box { background: var(--success); border-color: var(--success); }
.cf-annotated-screens .as-commit-input:checked + .as-box svg { opacity: 1; }
.cf-annotated-screens .as-commit-input:focus-visible + .as-box { outline: 3px solid oklch(from var(--field-focus, var(--accent)) l c h / .45); outline-offset: 2px; }
.cf-annotated-screens .as-commit[data-error] .as-box { border-color: var(--danger); }
.cf-annotated-screens .as-commit-text { padding-top: 2px; text-wrap: balance; }
.cf-annotated-screens .as-error { margin: -4px 0 16px; font-size: .9375rem; font-weight: 600; line-height: 1.4; color: var(--danger); text-wrap: pretty; }
.cf-annotated-screens .as-error svg { display: inline-block; vertical-align: -0.15em; margin-inline-end: .4em; }
.cf-annotated-screens .as-btn {
display: flex;
width: 100%;
min-height: 64px;
padding: 0 28px;
align-items: center;
justify-content: center;
border: 0;
border-radius: var(--button-radius, var(--radius, 12px));
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l + .04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .02) c h));
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + .14) c h / .7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - .16) c h), 0 1px 2px oklch(from var(--as-shadow) l c h / .3), 0 8px 16px -6px oklch(from var(--as-shadow) l c h / .45));
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);
font-size: clamp(1.125rem, 1.55vw, 1.375rem);
line-height: 1.15;
text-align: center;
text-wrap: balance;
text-decoration: none;
text-shadow: var(--button-text-shadow, none);
cursor: pointer;
transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.cf-annotated-screens .as-btn:hover:not(:disabled):not([aria-disabled='true']),
.cf-annotated-screens .as-btn[data-state='hover'] {
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - .01) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .07) c h));
box-shadow: inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + .1) c h / .7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - .2) c h), 0 1px 2px oklch(from var(--as-shadow) l c h / .35), 0 10px 18px -6px oklch(from var(--as-shadow) l c h / .55);
transform: translateY(-1px);
}
.cf-annotated-screens .as-btn:active:not(:disabled):not([aria-disabled='true']),
.cf-annotated-screens .as-btn[data-state='active'] {
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - .05) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .08) c h));
box-shadow: inset 0 2px 4px oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .2) c h / .45), inset 0 -2px 0 oklch(from var(--button-bg, var(--cta)) calc(l - .16) c h), 0 1px 1px oklch(from var(--as-shadow) l c h / .3);
transform: translateY(1px);
}
.cf-annotated-screens .as-btn:focus-visible { outline: 3px solid oklch(from var(--field-focus, var(--accent)) l c h / .5); outline-offset: 3px; }
.cf-annotated-screens .as-btn:disabled,
.cf-annotated-screens .as-btn[aria-disabled='true'] {
background: var(--secondary);
color: var(--secondary-ink);
box-shadow: var(--button-2-shadow, var(--shadow-sm, 0 1px 1px oklch(0.22 0.03 260 / .18), 0 1px 3px oklch(0.22 0.03 260 / .14)));
text-shadow: none;
cursor: not-allowed;
transform: none;
}
.cf-annotated-screens .as-reassure { margin: 12px 0 0; text-align: center; font-size: .9375rem; font-weight: 500; line-height: 1.4; color: var(--muted); text-wrap: balance; }
.cf-annotated-screens .as-reassure svg { display: inline-block; vertical-align: -0.15em; margin-inline-end: .4em; }
@keyframes cf-annotated-screens-rise {
from { opacity: .82; transform: translateY(8px); }
to { opacity: 1; transform: none; }
}
@media (max-width: 880px) {
.cf-annotated-screens .as-main {
grid-template-columns: minmax(0, 1fr);
grid-template-areas: 'pick' 'fan' 'notes';
grid-template-rows: auto;
row-gap: 8px;
}
.cf-annotated-screens .as-pick { padding-top: 0; }
.cf-annotated-screens .as-panel[data-single] { padding-top: 24px; }
.cf-annotated-screens .as-close { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
.cf-annotated-screens { --as-dx: 8%; --as-dy: -26px; --as-card-w: 86%; }
.cf-annotated-screens .as-fan { padding-top: 34px; }
.cf-annotated-screens .as-tab { padding: 8px 10px; font-size: .875rem; }
.cf-annotated-screens .as-bar { height: 36px; padding: 0 12px; }
.cf-annotated-screens .as-dots { display: none; }
.cf-annotated-screens .as-bar-label { margin-right: 0; }
.cf-annotated-screens .as-close { padding: 24px 16px 20px; }
.cf-annotated-screens .as-btn { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
.cf-annotated-screens .as-card,
.cf-annotated-screens .as-card::after,
.cf-annotated-screens .as-tab,
.cf-annotated-screens .as-note,
.cf-annotated-screens .as-box,
.cf-annotated-screens .as-box svg,
.cf-annotated-screens .as-btn { transition: none; }
.cf-annotated-screens .as-panel { animation: none; }
.cf-annotated-screens .as-btn:hover:not(:disabled):not([aria-disabled='true']),
.cf-annotated-screens .as-btn[data-state='hover'] { transform: none; }
}
`;
pieces/content/annotated-screens/specimen.tsx 84 lines
import __studioImage6162ddba from "../assets/026e6f96b622fc4c.webp";
import __studioImageebb5392b from "../assets/e576ac1c39aff597.webp";
import __studioImage83a2c4cc from "../assets/47e88d6d5a6a09f0.webp";
import React from "react";
import { AnnotatedScreens, type AnnotatedScreensProps } from "../annotated-screens";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled", "error"];
export default function AnnotatedScreensSpecimen({ state = "default" }: { state?: AnnotatedScreensProps["state"] }) {
const sample = defaults.sample;
const [guide, workbook, checklist] = sample.items;
return (
<AnnotatedScreens
state={state}
headline="Look inside the kit that plans your first funnel"
highlight="plans your first funnel"
lead="Three tools, one clear path. Pick a screen to see what each part does and why it matters."
screens={[
{
tab: "Funnel map",
title: "See your whole funnel before you build a page",
description: guide.detail,
frameLabel: guide.name,
image: slot(
"item-1",
__studioImage6162ddba
),
imageAlt: "Funnel map screen with four connected page cards from opt-in to thank-you",
caption: "Sample screen from the Funnel Planning Guide.",
notes: [
{ title: "Every page in the right order", detail: "Opt-in, sales page, order form and thank-you page sit on one path, so none gets forgotten." },
{ title: "One job for each page", detail: "Each card names the single action that page asks for, which keeps your copy short." },
{ title: "The spot your offer lands", detail: "Know which page makes the sale before you write a single headline." },
],
},
{
tab: "Copy workbook",
title: "Write your page copy one prompt at a time",
description: workbook.detail,
frameLabel: workbook.name,
image: slot(
"item-2",
__studioImageebb5392b
),
imageAlt: "Copy workbook screen with a headline field and three fill-in prompt boxes",
caption: "Sample screen from the Page Copy Workbook.",
notes: [
{ title: "A headline from three answers", detail: "Fill in who it's for, what they get and why now, and your first headline is drafted." },
{ title: "Your offer in one sentence", detail: "Say what they get and what it costs in words a stranger would understand." },
{ title: "A button that asks once", detail: "Write one clear call to action and repeat it, word for word, down the page." },
],
},
{
tab: "Launch check",
title: "Check every step before the traffic arrives",
description: checklist.detail,
frameLabel: checklist.name,
image: slot(
"item-3",
__studioImage83a2c4cc
),
imageAlt: "Launch checklist screen with ticked rows and a progress bar",
caption: "Sample screen from the Launch Checklist.",
notes: [
{ title: "Every link, clicked in order", detail: "Walk the funnel like a visitor and tick each page as it loads." },
{ title: "Every form, tested once", detail: "Send a test entry through each form so your first real sign-up is never the test." },
{ title: "Your next step, ready", detail: "Know what happens after launch day before you press publish." },
],
},
]}
offerTitle="Get the guide, workbook and checklist today"
price={sample.price}
priceAlternative={`vs. ${sample.regularPrice} combined value`}
priceNote={sample.note}
commitLabel={`I understand I'm covered by the ${sample.guarantee}.`}
commitError="Tick the box above to continue."
label="Start planning my funnel"
reassurance={sample.sublabel}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalAnnotatedScreens |
string |
|
highlight OptionalAnnotatedScreens |
string |
|
lead OptionalAnnotatedScreens |
string |
|
screens OptionalAnnotatedScreens |
AnnotatedScreen[] |
|
defaultActive OptionalAnnotatedScreens |
number |
|
pickerLabel OptionalAnnotatedScreens |
string |
|
showLabel OptionalAnnotatedScreens |
string |
|
notesLabel OptionalAnnotatedScreens |
string |
|
offerTitle OptionalAnnotatedScreens |
string |
|
price OptionalAnnotatedScreens |
string |
|
priceAlternative OptionalAnnotatedScreens |
string |
|
priceNote OptionalAnnotatedScreens |
string |
|
commitLabel OptionalAnnotatedScreens |
string |
|
commitError OptionalAnnotatedScreens |
string |
|
commitDefaultChecked OptionalAnnotatedScreens |
boolean |
|
label OptionalAnnotatedScreens |
string |
|
reassurance OptionalAnnotatedScreens |
string |
|
href OptionalAnnotatedScreens |
string |
|
onAction OptionalAnnotatedScreens |
() => void |
|
state OptionalAnnotatedScreens |
"default" | "hover" | "active" | "disabled" | "error" |
|
className OptionalAnnotatedScreens |
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-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--field-border--field-focus--field-ink- Form inputs: background, ink, border, radius and focus colour.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-2- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-3- One image per offer item (item-1, item-2…), shown in stacks and lists.
-
026e6f96b622fc4c.webp
image/webp · 17.3 KB
-
47e88d6d5a6a09f0.webp
image/webp · 11 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
e576ac1c39aff597.webp
image/webp · 15.3 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB