Free Training Page 2
Reverse-squeeze toolkit giveaway: three free downloads handed over with no email, a live readiness
Use it in a prompt
Use content/free-training-page-2 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/free-training-page-2.tsx. - Import it and pass your copy and images (Props tab):
import { FreeTrainingPage2 } from "@/components/funneldna/content/free-training-page-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/free-training-page-2/component.tsx 500 lines
// layout: bento-grid
// Reverse-squeeze toolkit giveaway: three free downloads handed over with no email, a live readiness
// check the reader ticks, and one dominant tile that asks for the next asset (the next rung) by email.
import * as React from "react"
import { AlertCircle, Check, FileText, Loader2, Lock } from "lucide-react"
import { FX_HOST, Pattern, Spot } from "../fx/fx"
import bookSpot from "../fx/spots/book"
import chartSpot from "../fx/spots/chart"
import checklistSpot from "../fx/spots/checklist"
export type ToolkitResource = {
title: string
/** One line on what the download does for the reader. */
detail: string
/** File facts shown under the line, e.g. "PDF · 2 pages". */
meta?: string
/** An imported fx Spot asset (import checklist from "../fx/spots/checklist"). */
spot?: string
/** Direct file URL. When set, the button is a real download link. */
href?: string
/** Button label for this tile; falls back to downloadLabel. */
label?: string
}
export type ReadinessCopy = {
title: string
note?: string
items: string[]
/** Indexes ticked on first render. */
initialChecked?: number[]
/** Accessible name of the progress bar. */
progressLabel: string
/** Readout lines; {count} and {total} are replaced with numbers. */
none: string
some: string
all: string
}
export type NextAssetCopy = {
/** Small solid flag above the heading. */
badge?: string
heading: string
body?: string
label: string
placeholder: string
buttonLabel: string
loadingLabel: string
privacy?: string
emailRequired: string
emailInvalid: string
submitError: string
}
export type FreeTrainingPage2Props = {
headline?: string
/** The phrase inside the headline that gets the marker stroke. */
headlineMark?: string
lead?: string
/** Italic aside in the author's voice. */
aside?: string
/** Up to three free downloads, given without an email. */
resources?: ToolkitResource[]
downloadLabel?: string
/** Accessible label for each download; {label} and {title} are replaced. */
downloadAriaLabel?: string
readiness?: Partial<ReadinessCopy>
ask?: Partial<NextAssetCopy>
/** Slot "product": the next asset, transparent background. */
productImage?: string
productImageAlt?: string
onDownload?: (resource: ToolkitResource, index: number) => void
/** Called with the validated email; return a promise to keep the loader up. */
onSubmit?: (values: { email: string }) => void | Promise<unknown>
state?: "default" | "hover" | "active" | "disabled" | "error"
className?: string
}
export function FreeTrainingPage2(props: FreeTrainingPage2Props) {
const {
headline = DEFAULT_HEADLINE,
headlineMark = DEFAULT_MARK,
lead = DEFAULT_LEAD,
aside = DEFAULT_ASIDE,
resources = DEFAULT_RESOURCES,
downloadLabel = "Download free",
downloadAriaLabel = "{label}: {title}",
productImage,
productImageAlt = "",
onDownload,
onSubmit,
state = "default",
className,
} = props
const ready: ReadinessCopy = { ...DEFAULT_READINESS, ...props.readiness }
const ask: NextAssetCopy = { ...DEFAULT_ASK, ...props.ask }
const uid = React.useId()
const headId = `${uid}-head`
const askId = `${uid}-ask`
const emailId = `${uid}-email`
const errorId = `${uid}-error`
const privacyId = `${uid}-privacy`
const readyId = `${uid}-ready`
const [checked, setChecked] = React.useState<number[]>(() => ready.initialChecked ?? [])
const total = ready.items.length
const count = ready.items.filter((_, i) => checked.includes(i)).length
const readout = fill(count === 0 ? ready.none : count >= total ? ready.all : ready.some, {
count: String(count),
total: String(total),
})
const toggle = (i: number) =>
setChecked((prev) => (prev.includes(i) ? prev.filter((n) => n !== i) : [...prev, i]))
const [email, setEmail] = React.useState("")
const [touched, setTouched] = React.useState(false)
const [attempted, setAttempted] = React.useState(false)
const [submitting, setSubmitting] = React.useState(false)
const [failed, setFailed] = React.useState(false)
const inputRef = React.useRef<HTMLInputElement>(null)
const mounted = React.useRef(true)
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
}
}, [])
const value = email.trim()
const valid = EMAIL_PATTERN.test(value)
const typedInvalid = value !== "" && !valid
const forcedError = state === "error"
const error = failed
? ask.submitError
: value === "" && (attempted || forcedError)
? ask.emailRequired
: typedInvalid && (touched || attempted || forcedError)
? ask.emailInvalid
: ""
const disabled = state === "disabled" || typedInvalid || submitting
const force = state === "hover" ? " is-hover" : state === "active" ? " is-active" : ""
const describedBy = [error ? errorId : "", ask.privacy ? privacyId : ""].filter(Boolean).join(" ")
async function handleSubmit(event: React.FormEvent<HTMLFormElement>) {
event.preventDefault()
setAttempted(true)
if (submitting || state === "disabled") return
if (!valid) {
inputRef.current?.focus()
return
}
setFailed(false)
setSubmitting(true)
try {
await new Promise<void>((resolve) => requestAnimationFrame(() => resolve()))
await onSubmit?.({ email: value })
} catch {
if (mounted.current) setFailed(true)
} finally {
if (mounted.current) setSubmitting(false)
}
}
return (
<section
className={`cf-free-training-page-2${className ? ` ${className}` : ""}`}
style={FX_HOST}
aria-labelledby={headId}
>
<style>{CSS}</style>
<Pattern name="grid" fade="edges" />
<div className="ftp-wrap">
<div className="ftp-grid">
<header className="ftp-head ftp-rise">
<h2 id={headId} className="ftp-h2">
{withMark(headline, headlineMark)}
</h2>
{lead && <p className="ftp-lead">{lead}</p>}
{aside && <p className="ftp-aside">{aside}</p>}
</header>
{resources.slice(0, 3).map((r, i) => {
const label = r.label ?? downloadLabel
const aria = fill(downloadAriaLabel, { label, title: r.title })
const cls = `ftp-btn2${i === 0 ? force : ""}`
const handleClick = () => onDownload?.(r, i)
return (
<article
key={`${i}-${r.title}`}
className="ftp-tile ftp-card ftp-free ftp-rise"
style={{ gridArea: `r${i + 1}`, animationDelay: RESOURCE_DELAYS[i] }}
>
<div className="ftp-free-in">
<span className="ftp-spot" aria-hidden="true">
<Spot src={r.spot ?? DEFAULT_SPOTS[i]} size={72} />
</span>
<div className="ftp-free-body">
<h3 className="ftp-h3">{r.title}</h3>
<p className="ftp-detail">{r.detail}</p>
{r.meta && (
<p className="ftp-meta">
<FileText size={16} strokeWidth={2.5} className="ftp-inline" aria-hidden="true" />
{r.meta}
</p>
)}
</div>
{r.href ? (
<a className={cls} href={r.href} download aria-label={aria} onClick={handleClick}>
{label}
</a>
) : (
<button type="button" className={cls} aria-label={aria} onClick={handleClick}>
{label}
</button>
)}
</div>
</article>
)
})}
<article
className="ftp-tile ftp-ask ftp-rise"
style={{ gridArea: "ask", animationDelay: ".14s" }}
aria-labelledby={askId}
>
<div className="ftp-ask-in">
<div className="ftp-ask-media">
{productImage ? (
<img
src={productImage}
alt={productImageAlt}
width={640}
height={640}
loading="lazy"
decoding="async"
/>
) : (
<span aria-hidden="true">
<Spot src={bookSpot} size={160} />
</span>
)}
</div>
<div className="ftp-ask-body">
{ask.badge && <span className="ftp-flag">{ask.badge}</span>}
<h3 id={askId} className="ftp-ask-h">
{ask.heading}
</h3>
{ask.body && <p className="ftp-ask-p">{ask.body}</p>}
<form className="ftp-form" noValidate onSubmit={handleSubmit} aria-busy={submitting || undefined}>
<label htmlFor={emailId} className="ftp-label">
{ask.label}
</label>
<input
ref={inputRef}
id={emailId}
className={`ftp-field${error ? " is-error" : ""}`}
type="email"
name="email"
inputMode="email"
autoComplete="email"
placeholder={ask.placeholder}
value={email}
onChange={(e) => {
setEmail(e.target.value)
setFailed(false)
}}
onBlur={() => setTouched(true)}
aria-invalid={error ? true : undefined}
aria-describedby={describedBy || undefined}
/>
{error && (
<p id={errorId} className="ftp-error" role="alert">
<AlertCircle size={16} strokeWidth={2.5} className="ftp-inline" aria-hidden="true" />
{error}
</p>
)}
<button type="submit" className={`ftp-btn${force}`} disabled={disabled}>
{submitting ? (
<>
<Loader2 size={20} strokeWidth={2.5} className="ftp-spin" aria-hidden="true" />
{ask.loadingLabel}
</>
) : (
ask.buttonLabel
)}
</button>
{ask.privacy && (
<p id={privacyId} className="ftp-privacy">
<Lock size={16} strokeWidth={2.5} className="ftp-inline" aria-hidden="true" />
{ask.privacy}
</p>
)}
</form>
</div>
</div>
</article>
<article
className="ftp-tile ftp-card ftp-ready ftp-rise"
style={{ gridArea: "ready", animationDelay: ".28s" }}
aria-labelledby={readyId}
>
<div className="ftp-ready-head">
<div>
<h3 id={readyId} className="ftp-h3">
{ready.title}
</h3>
{ready.note && <p className="ftp-note">{ready.note}</p>}
</div>
<p className="ftp-score" aria-hidden="true">
{count}
<span>/{total}</span>
</p>
</div>
<ul className="ftp-checks">
{ready.items.map((item, i) => {
const on = checked.includes(i)
const id = `${uid}-c${i}`
return (
<li key={`${i}-${item}`} className={`ftp-check${on ? " is-on" : ""}`}>
<label htmlFor={id}>
<input id={id} type="checkbox" checked={on} onChange={() => toggle(i)} />
<span className="ftp-box" aria-hidden="true">
<Check size={16} strokeWidth={3} />
</span>
<span>{item}</span>
</label>
</li>
)
})}
</ul>
<div className="ftp-meter">
<div
className="ftp-bar"
role="progressbar"
aria-label={ready.progressLabel}
aria-valuemin={0}
aria-valuemax={total}
aria-valuenow={count}
>
<span style={{ width: `${total ? (count / total) * 100 : 0}%` }} />
</div>
<p className="ftp-readout" aria-live="polite">
{readout}
</p>
</div>
</article>
</div>
</div>
</section>
)
}
export default FreeTrainingPage2
function withMark(text: string, mark?: string): React.ReactNode {
const at = mark ? text.indexOf(mark) : -1
if (!mark || at < 0) return text
return (
<>
{text.slice(0, at)}
<span className="ftp-mark">{mark}</span>
{text.slice(at + mark.length)}
</>
)
}
function fill(template: string, values: Record<string, string>) {
return template.replace(/\{(\w+)\}/g, (match, key: string) => values[key] ?? match)
}
const EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/
const DEFAULT_SPOTS = [checklistSpot, chartSpot, bookSpot]
const RESOURCE_DELAYS = [".07s", ".21s", ".28s"]
const DEFAULT_HEADLINE = "Three free tools to plan your funnel. No email needed."
const DEFAULT_MARK = "No email needed."
const DEFAULT_LEAD =
"Download the checklist, template and guide right now. When you're ready to go further, the full guide is one tile away."
const DEFAULT_ASIDE = "(No form. No catch. Just click.)"
const DEFAULT_RESOURCES: ToolkitResource[] = [
{ title: "Launch Checklist", detail: "Check every link, form and next step before you go live.", meta: "Free PDF" },
{ title: "Headline Template", detail: "Fill in the blanks to draft your page headline tonight.", meta: "Free template" },
{ title: "Offer Quick Guide", detail: "Shape an offer your visitor can say yes to in one read.", meta: "Free PDF" },
]
const DEFAULT_READINESS: ReadinessCopy = {
title: "Is your funnel ready to launch?",
note: "Tick what's true. Nothing leaves this page.",
items: [
"Your offer fits in one sentence",
"You know exactly who it's for",
"Your page has one clear action",
"Your follow-up emails are written",
"You've tested the checkout",
"Every link works on a phone",
],
initialChecked: [],
progressLabel: "Launch readiness",
none: "Tick what's already true for your funnel.",
some: "{count} of {total} ready. The free checklist shows you how to close the gaps.",
all: "All {total} ready. Grab the full guide and plan the rest.",
}
const DEFAULT_ASK: NextAssetCopy = {
badge: "Free · Your next step",
heading: "Now plan the whole funnel",
body: "The Funnel Planning Guide maps every page your funnel needs, in the order you build them.",
label: "Where should we send it?",
placeholder: "you@example.com",
buttonLabel: "Yes! I want the guide",
loadingLabel: "Sending…",
privacy: "We respect your inbox. Unsubscribe anytime.",
emailRequired: "Enter your email so we know where to send it.",
emailInvalid: "That email looks incomplete. Check it and try again.",
submitError: "We couldn't send that just now. Please try again.",
}
const R = ".cf-free-training-page-2"
const BODY = "clamp(1.0625rem, 1.25vw, 1.125rem)"
const CSS = `
${R}{--ftp-sh:var(--shadow,oklch(0.22 0.03 260));--ftp-bg:var(--button-bg,var(--cta));--ftp-bg2:var(--button-bg-2,var(--cta-2));--ftp-sh-sm:0 1px 1px oklch(from var(--ftp-sh) l c h / 0.18),0 1px 3px oklch(from var(--ftp-sh) l c h / 0.14);--ftp-sh-md:0 1px 2px oklch(from var(--ftp-sh) l c h / 0.22),0 4px 10px -2px oklch(from var(--ftp-sh) l c h / 0.2);--ftp-sh-lg:0 2px 4px oklch(from var(--ftp-sh) l c h / 0.22),0 12px 24px -8px oklch(from var(--ftp-sh) l c h / 0.32);position:relative;isolation:isolate;overflow:clip;padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);background:var(--surface);color:var(--ink);font-family:var(--font-body);font-size:${BODY};line-height:1.5}
${R} *,${R} *::before,${R} *::after{box-sizing:border-box}
${R} .ftp-wrap{position:relative;z-index:1;max-width:1120px;margin-inline:auto}
${R} .ftp-grid{display:grid;gap:16px;grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'r1' 'ask' 'r2' 'r3' 'ready'}
@media (min-width:640px){${R} .ftp-grid{gap:24px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:'head head' 'r1 r2' 'ask ask' 'r3 r3' 'ready ready'}}
@media (min-width:1024px){${R} .ftp-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.4fr);grid-template-areas:'head head ask' 'r1 r2 ask' 'r3 r3 ask' 'ready ready ready'}}
${R} .ftp-rise{animation:cf-ftp2-in .45s cubic-bezier(.2,.7,.2,1) both}
${R} .ftp-head{grid-area:head;align-self:start;padding-block:4px 8px}
@media (min-width:1024px){${R} .ftp-head{padding:8px 24px 16px 0}}
${R} .ftp-h2{margin:0;color:var(--ink);font-family:var(--font-display);font-size:clamp(2rem,3.6vw,3.25rem);font-weight:var(--display-weight,800);line-height:1.06;letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);text-wrap:balance}
${R} .ftp-mark{margin-inline:-0.06em;padding-inline:0.06em;background-image:linear-gradient(transparent 58%,var(--marker,#fae37c) 58%,var(--marker,#fae37c) 92%,transparent 92%);background-repeat:no-repeat;-webkit-box-decoration-break:clone;box-decoration-break:clone}
${R} .ftp-lead{max-width:60ch;margin:16px 0 0;color:var(--ink);font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;text-wrap:pretty}
${R} .ftp-aside{max-width:60ch;margin:12px 0 0;color:var(--muted);font-style:italic;text-wrap:pretty}
${R} .ftp-tile{position:relative;min-width:0;border-radius:var(--card-radius,var(--radius,14px))}
${R} .ftp-card{padding:clamp(20px,3vw,32px);border:1px solid var(--card-border,oklch(from var(--ink) l c h / 0.12));background:var(--card);color:var(--ink);box-shadow:var(--card-shadow,var(--shadow-md,var(--ftp-sh-md)))}
${R} .ftp-free{container-type:inline-size;display:flex}
${R} .ftp-free-in{display:flex;flex-direction:column;gap:16px;width:100%}
${R} .ftp-spot{display:block;line-height:0}
${R} .ftp-h3{margin:0;color:var(--ink);font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:var(--display-weight,800);line-height:1.15;letter-spacing:-0.01em;text-transform:var(--display-case,none);text-wrap:balance}
${R} .ftp-detail{margin:8px 0 0;color:var(--muted);text-wrap:pretty}
${R} .ftp-meta{margin:12px 0 0;color:var(--muted);font-size:.9375rem;font-weight:600;line-height:1.4}
${R} .ftp-inline{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
${R} .ftp-btn2{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:56px;margin-top:auto;padding:8px 24px;border:1px solid var(--button-2-border,transparent);border-radius:var(--button-radius,var(--radius,12px));background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));font-family:var(--button-font,var(--font-display));font-size:clamp(1.125rem,1.55vw,1.375rem);font-weight:var(--button-weight,800);line-height:1.15;text-align:center;text-decoration:none;text-transform:var(--button-case,none);text-wrap:balance;cursor:pointer;box-shadow:var(--button-2-shadow,var(--shadow-sm,var(--ftp-sh-sm)));transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease;-webkit-tap-highlight-color:transparent}
${R} .ftp-btn2:hover,${R} .ftp-btn2.is-hover{background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.05) c h);box-shadow:var(--button-2-shadow,var(--shadow-md,var(--ftp-sh-md)))}
${R} .ftp-btn2:active,${R} .ftp-btn2.is-active{background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.09) c h);box-shadow:inset 0 1px 2px oklch(from var(--ftp-sh) l c h / 0.3);transform:translateY(1px)}
${R} .ftp-btn2:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
@container (min-width:560px){${R} .ftp-free-in{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:24px}${R} .ftp-free-in .ftp-btn2{width:auto;margin-top:0;padding-inline:28px}}
${R} .ftp-ask{grid-area:ask;container-type:inline-size;display:flex;padding:clamp(20px,3vw,32px);border:1px solid oklch(from var(--band-ink) l c h / 0.14);background:var(--band);color:var(--band-ink);box-shadow:var(--shadow-lg,var(--ftp-sh-lg))}
${R} .ftp-ask-in{display:flex;flex-direction:column;gap:24px;width:100%}
${R} .ftp-ask-media{display:flex;align-items:center;justify-content:center;line-height:0}
${R} .ftp-ask-media img{display:block;width:100%;height:clamp(200px,20vw,240px);object-fit:contain;object-position:center;filter:drop-shadow(0 2px 3px oklch(from var(--ftp-sh) calc(l - 0.06) c h / 0.5)) drop-shadow(0 14px 18px oklch(from var(--ftp-sh) l c h / 0.4))}
${R} .ftp-ask-body{display:flex;flex:1;flex-direction:column}
${R} .ftp-flag{display:inline-flex;align-self:flex-start;align-items:center;min-height:28px;margin-bottom:16px;padding:4px 12px;border-radius:999px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));font-size:.875rem;font-weight:800;line-height:1.2}
${R} .ftp-ask-h{margin:0;color:var(--band-ink);font-family:var(--font-display);font-size:clamp(2rem,3.6vw,3.25rem);font-weight:var(--display-weight,800);line-height:1.06;letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);text-wrap:balance}
${R} .ftp-ask-p{margin:16px 0 0;color:color-mix(in oklch,var(--band-ink) 86%,var(--band));text-wrap:pretty}
${R} .ftp-form{margin-top:auto;padding-top:24px}
${R} .ftp-label{display:block;margin-bottom:8px;color:var(--band-ink);font-weight:700;line-height:1.3}
${R} .ftp-field{display:block;width:100%;height:56px;margin:0;padding:0 16px;border:1px solid var(--field-border,color-mix(in oklch,var(--ink) 22%,transparent));border-radius:var(--field-radius,var(--radius,12px));background:var(--field);color:var(--field-ink);font-family:var(--font-body);font-size:${BODY};box-shadow:inset 0 1px 2px oklch(from var(--ftp-sh) l c h / 0.12);-webkit-appearance:none;appearance:none;transition:border-color .16s ease,box-shadow .16s ease}
${R} .ftp-field::placeholder{color:color-mix(in oklch,var(--field-ink) 65%,var(--field));opacity:1}
${R} .ftp-field:focus{outline:none;border-color:var(--field-focus,var(--accent));box-shadow:0 0 0 3px oklch(from var(--field-focus,var(--accent)) l c h / 0.35)}
${R} .ftp-field.is-error{border-color:var(--danger);box-shadow:0 0 0 3px oklch(from var(--danger) l c h / 0.3)}
${R} .ftp-error{margin:8px 0 0;padding:8px 12px;border-radius:10px;background:var(--danger-soft);color:var(--danger);font-size:.9375rem;font-weight:600;line-height:1.4;text-wrap:pretty;animation:cf-ftp2-in .3s cubic-bezier(.2,.7,.2,1) both}
${R} .ftp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:64px;margin-top:16px;padding:10px 20px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--ftp-bg) calc(l + 0.04) c h),oklch(from var(--ftp-bg2) calc(l - 0.02) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));font-size:clamp(1.125rem,1.55vw,1.375rem);font-weight:var(--button-weight,800);line-height:1.15;text-align:center;text-transform:var(--button-case,none);text-wrap:balance;text-shadow:var(--button-text-shadow,none);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--ftp-bg) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--ftp-bg) calc(l - 0.16) c h),0 1px 2px oklch(from var(--ftp-sh) l c h / 0.3),0 8px 16px -6px oklch(from var(--ftp-sh) l c h / 0.5));transition:transform .16s ease,box-shadow .16s ease,background .16s ease;-webkit-tap-highlight-color:transparent}
@media (min-width:640px){${R} .ftp-btn{padding-inline:24px}}
${R} .ftp-btn:hover:not(:disabled),${R} .ftp-btn.is-hover:not(:disabled){background:linear-gradient(oklch(from var(--ftp-bg) calc(l - 0.01) c h),oklch(from var(--ftp-bg2) calc(l - 0.07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--ftp-bg) calc(l + 0.12) c h / 0.7),inset 0 -3px 0 oklch(from var(--ftp-bg) calc(l - 0.2) c h),0 1px 2px oklch(from var(--ftp-sh) l c h / 0.35),0 10px 20px -6px oklch(from var(--ftp-sh) l c h / 0.6))}
${R} .ftp-btn:active:not(:disabled),${R} .ftp-btn.is-active:not(:disabled){background:linear-gradient(oklch(from var(--ftp-bg2) calc(l - 0.04) c h),oklch(from var(--ftp-bg2) calc(l - 0.01) c h));box-shadow:inset 0 2px 4px oklch(from var(--ftp-bg) calc(l - 0.24) c h / 0.5),inset 0 -2px 0 oklch(from var(--ftp-bg) calc(l - 0.16) c h),0 1px 2px oklch(from var(--ftp-sh) l c h / 0.3);transform:translateY(1px)}
${R} .ftp-btn:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
${R} .ftp-btn:disabled{cursor:not-allowed;opacity:.5;box-shadow:none;transform:none}
${R} .ftp-spin{animation:cf-ftp2-spin .8s linear infinite}
${R} .ftp-privacy{margin:12px 0 0;color:color-mix(in oklch,var(--band-ink) 86%,var(--band));font-size:.9375rem;font-weight:500;line-height:1.4;text-align:center;text-wrap:pretty}
@container (min-width:600px){${R} .ftp-ask-in{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1fr);align-items:start;gap:32px}${R} .ftp-ask-media img{height:auto;max-height:360px;aspect-ratio:1}}
${R} .ftp-ready{grid-area:ready;container-type:inline-size}
${R} .ftp-ready-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 24px}
${R} .ftp-note{margin:8px 0 0;color:var(--muted);text-wrap:pretty}
${R} .ftp-score{margin:0;color:var(--ink);font-family:var(--font-display);font-size:clamp(2.5rem,4.2vw,3.75rem);font-weight:var(--display-weight,800);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
${R} .ftp-score span{color:var(--muted)}
${R} .ftp-checks{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:24px 0 0;padding:0;list-style:none}
@container (min-width:560px){${R} .ftp-checks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container (min-width:860px){${R} .ftp-checks{grid-template-columns:repeat(3,minmax(0,1fr))}}
${R} .ftp-check label{position:relative;display:flex;align-items:flex-start;gap:12px;min-height:52px;height:100%;padding:14px 16px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card));color:var(--ink);font-weight:600;line-height:1.35;cursor:pointer;transition:background-color .16s ease}
${R} .ftp-check label:hover{background:color-mix(in oklch,var(--ink) 8%,var(--card))}
${R} .ftp-check.is-on label{background:var(--success-soft)}
${R} .ftp-check.is-on label:hover{background:oklch(from var(--success-soft) calc(l - 0.02) c h)}
${R} .ftp-check input{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
${R} .ftp-box{display:grid;flex:none;place-items:center;width:24px;height:24px;border:2px solid oklch(from var(--ink) l c h / 0.32);border-radius:7px;background:var(--field);color:transparent;transition:background-color .16s ease,border-color .16s ease}
${R} .ftp-check input:checked + .ftp-box{border-color:var(--success);background:var(--success);color:var(--success-ink,#fff)}
${R} .ftp-check input:checked + .ftp-box svg{animation:cf-ftp2-pop .3s ease both}
${R} .ftp-check input:focus-visible + .ftp-box{outline:3px solid var(--field-focus,var(--accent));outline-offset:2px}
${R} .ftp-meter{display:grid;gap:12px;margin-top:24px}
${R} .ftp-bar{height:10px;overflow:hidden;border-radius:999px;background:color-mix(in oklch,var(--ink) 8%,var(--card))}
${R} .ftp-bar span{display:block;height:100%;border-radius:inherit;background:var(--success);transition:width .45s cubic-bezier(.2,.7,.2,1)}
${R} .ftp-readout{margin:0;color:var(--ink);font-weight:600;text-wrap:pretty}
@keyframes cf-ftp2-in{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cf-ftp2-pop{from{transform:scale(.9)}to{transform:scale(1)}}
@keyframes cf-ftp2-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){${R} .ftp-rise,${R} .ftp-error,${R} .ftp-spin,${R} .ftp-check input:checked + .ftp-box svg{animation:none}${R} .ftp-btn,${R} .ftp-btn2,${R} .ftp-field,${R} .ftp-box,${R} .ftp-check label,${R} .ftp-bar span{transition:none}${R} .ftp-btn:active:not(:disabled),${R} .ftp-btn2:active{transform:none}}
`
pieces/content/free-training-page-2/specimen.tsx 73 lines
import __studioImage67a1087c from "../assets/c67980662d1091e5.webp";
import * as React from "react"
import { FreeTrainingPage2, type FreeTrainingPage2Props } from "../free-training-page-2"
import defaults from "../../studio-defaults.json"
import { slot } from "../../slots"
import book from "../../fx/spots/book"
import checklist from "../../fx/spots/checklist"
import savings from "../../fx/spots/savings"
export const states = ["default", "hover", "active", "disabled", "error"]
export default function FreeTrainingPage2Specimen({ state = "default" }: { state?: FreeTrainingPage2Props["state"] }) {
return (
<FreeTrainingPage2
state={state}
headline="Three grant tools, free. No email, no catch."
headlineMark="No email, no catch."
lead="The Fieldnote Grants starter kit for small nonprofits. Take what you need below, then grab the full Playbook when you're ready to write."
aside="(Yes, really. I'd rather you start today than fill in a form.)"
resources={[
{
title: "Grant-Readiness Checklist",
detail: "See what a funder will ask for before you start applying.",
meta: "PDF · 2 pages",
spot: checklist,
},
{
title: "Budget Narrative Template",
detail: "Fill in the blanks to explain every line of your budget.",
meta: "DOCX · 4 pages",
spot: savings,
},
{
title: "Funder Research Quick Guide",
detail: "Find foundations that already fund work like yours.",
meta: "PDF · 8 pages",
spot: book,
},
]}
readiness={{
title: "Is your org grant-ready?",
note: "Tick what's true. Nothing leaves this page.",
items: [
"Our 501(c)(3) letter is on file",
"Our mission fits in one sentence",
"We track who we serve, and how many",
"Last year's budget is ready to share",
"A board member can sign off this month",
"We know which program needs funding",
],
initialChecked: [0, 1],
progressLabel: "Grant readiness",
none: "Tick what's already true for your org.",
some: "{count} of {total} ready. The free checklist shows you how to close the gaps.",
all: "All {total} ready. You're set to write, and the Playbook takes you the rest of the way.",
}}
ask={{
badge: "Free · The next step",
heading: "Now write the whole proposal",
body: "The Grant Proposal Playbook walks you from funder fit to final submit, one section at a time, with sample wording you can adapt.",
label: "Where should we send it?",
placeholder: "you@yournonprofit.org",
buttonLabel: "Yes! I want the Playbook",
privacy: defaults.sample.registration.privacy,
}}
productImage={slot(
"product",
__studioImage67a1087c
)}
productImageAlt="The Grant Proposal Playbook workbook with its fill-in pages"
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalFreeTrainingPage2 |
string |
|
headlineMark OptionalFreeTrainingPage2 |
string |
|
lead OptionalFreeTrainingPage2 |
string |
|
aside OptionalFreeTrainingPage2 |
string |
|
resources OptionalFreeTrainingPage2 |
ToolkitResource[] |
|
downloadLabel OptionalFreeTrainingPage2 |
string |
|
downloadAriaLabel OptionalFreeTrainingPage2 |
string |
|
readiness OptionalFreeTrainingPage2 |
Partial<ReadinessCopy> |
|
ask OptionalFreeTrainingPage2 |
Partial<NextAssetCopy> |
|
productImage OptionalFreeTrainingPage2 |
string |
|
productImageAlt OptionalFreeTrainingPage2 |
string |
|
onDownload OptionalFreeTrainingPage2 |
(resource: ToolkitResource, index: number) => void |
|
onSubmit OptionalFreeTrainingPage2 |
(values: { email: string }) => void | Promise<unknown> |
|
state OptionalFreeTrainingPage2 |
"default" | "hover" | "active" | "disabled" | "error" |
|
className OptionalFreeTrainingPage2 |
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--field-border--field-focus--field-ink--field-radius- 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.
product- The main product shot or cover (ebook, kit, bottle).
-
369bb6f216bb84ab.webp
image/webp · 22.6 KB
-
87170e25e6a4d825.webp
image/webp · 18.7 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
bc3d360c88eeac0e.webp
image/webp · 23.9 KB
-
c67980662d1091e5.webp
image/webp · 147 KB
-
d0943b629c0b1324.webp
image/webp · 8.87 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB