Email Course Days 3
Email course sign-up set as a magazine syllabus spread: an editorial headline, the lessons as a table of contents
Use it in a prompt
Use content/email-course-days-3 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/email-course-days-3.tsx. - Import it and pass your copy and images (Props tab):
import { EmailCourseDays3 } from "@/components/funneldna/content/email-course-days-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/email-course-days-3/component.tsx 591 lines
// layout: magazine-spread
// Email course sign-up set as a magazine syllabus spread: an editorial headline, the lessons as a table of contents
// with live arrival dates, the teacher's short letter beside it, and a close whose pace toggle shows the exact finish
// date, so the commitment reads as small and finite before the visitor types an email.
import * as React from 'react'
import { CalendarDays, CircleAlert, Lock } from 'lucide-react'
export type EmailCourseLesson = {
title: string
/** One-line payoff: what the reader can do after this lesson. */
payoff: string
}
export type EmailCourseCadence = {
/** Sent with onSubmit as `cadence`. */
value: string
label: string
/** Days between lessons (1 = daily, 2 = every other day). */
everyDays: number
}
export type EmailCourseReceiptCopy = {
lessons?: string
perLesson?: string
/** {minutes} is replaced with minutesPerLesson. */
perLessonValue?: string
total?: string
/** {minutes} is replaced with the whole course's minutes. */
totalValue?: string
pace?: string
last?: string
priceLabel?: string
price?: string
}
export type EmailCourseErrorCopy = { firstName?: string; email?: string; emailFormat?: string }
export type EmailCourseSignup = { firstName: string; email: string; cadence: string; finishDate: string }
export type EmailCourseDays3Props = {
headline?: React.ReactNode
lead?: React.ReactNode
/** Scene slot: the editorial photo beside the headline. */
sceneImage?: string
sceneAlt?: string
caption?: React.ReactNode
syllabusTitle?: React.ReactNode
lessons?: EmailCourseLesson[]
/** Read by screen readers before each lesson number. */
lessonLabel?: string
cadences?: EmailCourseCadence[]
/** value of the cadence selected first. */
defaultCadence?: string
paceLabel?: string
/** {date} is replaced with the computed finish date. */
finishText?: string
todayLabel?: string
/** BCP 47 locale for the dates. */
locale?: string
/** Day lesson 1 arrives (YYYY-MM-DD or Date); defaults to today. */
startDate?: string | Date
pullLine?: React.ReactNode
/** Letter paragraphs; start each with a bold lead-in. */
letter?: React.ReactNode[]
signOff?: string
/** Name written in the signature face. */
signName?: string
teacherName?: string
teacherRole?: string
/** Presenter slot: the teacher's portrait. */
presenterImage?: string
presenterAlt?: string
offerTitle?: React.ReactNode
minutesPerLesson?: number
receiptCopy?: EmailCourseReceiptCopy
/** Risk reversal that leads the form. */
risk?: React.ReactNode
firstNameLabel?: string
firstNamePlaceholder?: string
emailLabel?: string
emailPlaceholder?: string
label?: string
privacy?: string
errorText?: EmailCourseErrorCopy
defaultValues?: { firstName?: string; email?: string }
disabled?: boolean
state?: 'default' | 'hover' | 'active' | 'disabled' | 'error'
/** Called with validated, trimmed values and the chosen cadence. The builder wires what happens next. */
onSubmit?: (values: EmailCourseSignup) => void
className?: string
}
const DEFAULT_HEADLINE: React.ReactNode = (
<>
Write the cold email your buyer <span className='ecd3-mark'>actually answers</span>
</>
)
const DEFAULT_LEAD =
'Outbound Atelier is a free six-lesson email course. Each lesson ends with one email you rewrite and send the same day, and the whole course reads in about an hour.'
const DEFAULT_LESSONS: EmailCourseLesson[] = [
{ title: 'The first line that earns the second', payoff: 'Open with their world, not your company, and keep them reading.' },
{ title: 'One problem, named in their words', payoff: 'Write the pain line a buyer nods at before they reach your pitch.' },
{ title: 'Proof when you have no case study yet', payoff: 'Borrow credibility from specifics instead of logos.' },
{ title: 'An ask that is easy to say yes to', payoff: 'Swap “got 15 minutes?” for a question a busy buyer answers in one word.' },
{ title: 'Follow-ups that never grovel', payoff: 'Plan three follow-ups that each bring something new.' },
{ title: 'Your sequence, ready to send', payoff: 'Put lessons 1 to 5 together and send your first email today.' },
]
const DEFAULT_CADENCES: EmailCourseCadence[] = [
{ value: 'daily', label: 'Daily', everyDays: 1 },
{ value: 'every-other-day', label: 'Every other day', everyDays: 2 },
]
const DEFAULT_LETTER: React.ReactNode[] = [
<>
<strong>I rewrite cold emails for a living.</strong> Most lose the buyer before line two, and it’s rarely the offer’s fault.
</>,
<>
<strong>So this course is short on purpose.</strong> Six lessons, about ten minutes each, and every one ends with an email you send.
</>,
<>
<strong>Stop whenever you like.</strong> Every lesson has a one-click unsubscribe, so the most you risk is ten minutes.
</>,
]
const DEFAULT_RISK: React.ReactNode = (
<>
<strong>Free, and you can leave any day.</strong> One click unsubscribes you before the next lesson.
</>
)
const DEFAULT_RECEIPT: Required<EmailCourseReceiptCopy> = {
lessons: 'Short lessons',
perLesson: 'Reading time each',
perLessonValue: '~{minutes} min',
total: 'The whole course',
totalValue: '{minutes} min',
pace: 'Arrives',
last: 'Last lesson lands',
priceLabel: 'Today’s price',
price: 'Free',
}
const DEFAULT_ERRORS: Required<EmailCourseErrorCopy> = {
firstName: 'Please enter your first name.',
email: 'Please enter your work email.',
emailFormat: 'Please enter a full email, like dana@company.com.',
}
const SIG_FONT = 'https://fonts.googleapis.com/css2?family=Mrs+Saint+Delafield&display=swap'
const EMAIL_RE = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/
type FieldKey = 'firstName' | 'email'
export function EmailCourseDays3(props: EmailCourseDays3Props) {
const {
headline = DEFAULT_HEADLINE,
lead = DEFAULT_LEAD,
sceneImage,
sceneAlt = 'A printed cold email with red pen edits beside a fountain pen and laptop',
caption = 'Every lesson ends with one email you can send that afternoon.',
syllabusTitle = 'Six lessons, each one a fix you can send',
lessons = DEFAULT_LESSONS,
lessonLabel = 'Lesson',
cadences = DEFAULT_CADENCES,
defaultCadence,
paceLabel = 'Pick your pace',
finishText = 'You’ll finish on {date}.',
todayLabel = 'Today',
locale = 'en-US',
startDate,
pullLine = '“Most cold emails lose the buyer at line one.”',
letter = DEFAULT_LETTER,
signOff = 'See you in lesson 1,',
signName = 'Margaux',
teacherName = 'Margaux Ellery',
teacherRole = 'Teacher, Outbound Atelier',
presenterImage,
presenterAlt = 'Margaux Ellery, teacher of Outbound Atelier',
offerTitle = 'Six short emails. Then you send yours.',
minutesPerLesson = 10,
receiptCopy,
risk = DEFAULT_RISK,
firstNameLabel = 'First name',
firstNamePlaceholder = 'Dana',
emailLabel = 'Work email',
emailPlaceholder = 'dana@company.com',
label = 'Send lesson 1, free',
privacy = 'We respect your inbox. Unsubscribe anytime.',
errorText,
defaultValues,
disabled = false,
state = 'default',
onSubmit,
className,
} = props
const uid = 'ecd3' + React.useId().replace(/[^a-zA-Z0-9_-]/g, '')
const rc = { ...DEFAULT_RECEIPT, ...receiptCopy }
const err = { ...DEFAULT_ERRORS, ...errorText }
const options = cadences.length ? cadences : DEFAULT_CADENCES
const [pace, setPace] = React.useState(
() => (options.find((o) => o.value === defaultCadence) ?? options[0]).value,
)
const current = options.find((o) => o.value === pace) ?? options[0]
const every = Math.max(1, Math.round(current.everyDays || 1))
const startKey = startDate instanceof Date ? startDate.getTime() : startDate
const start = React.useMemo(() => parseStart(startDate), [startKey])
const shortFmt = React.useMemo(() => makeFormat(locale, { weekday: 'short', month: 'short', day: 'numeric' }), [locale])
const longFmt = React.useMemo(() => makeFormat(locale, { weekday: 'long', month: 'long', day: 'numeric' }), [locale])
const finish = addDays(start, Math.max(lessons.length - 1, 0) * every)
const totalMinutes = lessons.length * minutesPerLesson
const [values, setValues] = React.useState<Record<FieldKey, string>>(() => ({
firstName: defaultValues?.firstName ?? '',
email: defaultValues?.email ?? '',
}))
const [touched, setTouched] = React.useState<Record<FieldKey, boolean>>({ firstName: false, email: false })
const isDisabled = disabled || state === 'disabled'
const errors = validate(values, err)
const valid = !errors.firstName && !errors.email
const shown = (key: FieldKey) => (touched[key] || state === 'error' ? errors[key] : '')
const stateClass = state === 'hover' ? ' is-hover' : state === 'active' ? ' is-active' : ''
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault()
setTouched({ firstName: true, email: true })
if (!valid || isDisabled) return
onSubmit?.({
firstName: values.firstName.trim(),
email: values.email.trim(),
cadence: current.value,
finishDate: toIso(finish),
})
}
const field = (key: FieldKey, text: string, placeholder: string, type: string, auto: string) => {
const id = uid + '-' + key
const msg = shown(key)
return (
<div className='ecd3-field'>
<label htmlFor={id}>{text}</label>
<input
id={id}
name={key}
type={type}
inputMode={type === 'email' ? 'email' : undefined}
autoComplete={auto}
placeholder={placeholder}
className='ecd3-input'
value={values[key]}
required
onChange={(e) => {
const v = e.target.value
setValues((s) => ({ ...s, [key]: v }))
}}
onBlur={() => setTouched((t) => ({ ...t, [key]: true }))}
aria-invalid={msg ? true : undefined}
aria-describedby={msg ? id + '-err' : undefined}
/>
{msg ? (
<p id={id + '-err'} className='ecd3-err' role='alert'>
<CircleAlert size={16} strokeWidth={2.5} className='ecd3-err-ico' aria-hidden='true' />
{msg}
</p>
) : null}
</div>
)
}
return (
<section className={['cf-email-course-days-3', className].filter(Boolean).join(' ')} aria-labelledby={uid + '-h'}>
<link rel='stylesheet' href={SIG_FONT} />
<style>{CSS}</style>
<div className='ecd3-wrap'>
<header className={'ecd3-head' + (sceneImage ? '' : ' is-solo')}>
<div>
<h2 id={uid + '-h'} className='ecd3-h'>
{headline}
</h2>
<p className='ecd3-lead'>{lead}</p>
</div>
{sceneImage ? (
<figure className='ecd3-photo'>
<img src={sceneImage} alt={sceneAlt} width={880} height={880} loading='eager' />
{caption ? <figcaption>{caption}</figcaption> : null}
</figure>
) : null}
</header>
<div className='ecd3-spread'>
<div className='ecd3-toc'>
<h3 className='ecd3-h3'>{syllabusTitle}</h3>
<div className='ecd3-pace'>
<span id={uid + '-pace'} className='ecd3-pace-label'>
{paceLabel}
</span>
<div className='ecd3-toggle' role='group' aria-labelledby={uid + '-pace'}>
{options.map((o) => (
<button
key={o.value}
type='button'
className='ecd3-opt'
aria-pressed={o.value === current.value}
disabled={isDisabled}
onClick={() => setPace(o.value)}
>
{o.label}
</button>
))}
</div>
</div>
<p className='ecd3-finish' aria-live='polite'>
<CalendarDays size={18} strokeWidth={2.5} className='ecd3-ico' aria-hidden='true' />
{fill(
finishText,
'date',
<strong key={'fin-' + current.value} className='ecd3-pop'>
{longFmt.format(finish)}
</strong>,
)}
</p>
<ol className='ecd3-lessons'>
{lessons.map((l, i) => {
const d = addDays(start, i * every)
return (
<li key={i} className='ecd3-lesson' style={{ ['--i' as string]: i } as React.CSSProperties}>
<span className='ecd3-num' aria-hidden='true'>
{String(i + 1).padStart(2, '0')}
</span>
<div className='ecd3-lbody'>
<h4 className='ecd3-ltitle'>
<span className='ecd3-sr'>{lessonLabel + ' ' + (i + 1) + ': '}</span>
{l.title}
</h4>
<p className='ecd3-payoff'>{l.payoff}</p>
</div>
<time
key={current.value + '-' + i}
dateTime={toIso(d)}
className={'ecd3-date' + (i === 0 ? ' is-today' : '')}
>
{i === 0 ? todayLabel : shortFmt.format(d)}
</time>
</li>
)
})}
</ol>
</div>
<div className='ecd3-letter'>
{pullLine ? <p className='ecd3-pull'>{pullLine}</p> : null}
<div className='ecd3-letter-body'>
{letter.map((p, i) => (
<p key={i}>{p}</p>
))}
</div>
<div className='ecd3-sign'>
{presenterImage ? (
<img className='ecd3-portrait' src={presenterImage} alt={presenterAlt} width={144} height={144} loading='lazy' />
) : null}
<div>
<p className='ecd3-signoff'>{signOff}</p>
<p className='ecd3-signature' aria-hidden='true'>
{signName}
</p>
<p className='ecd3-name'>{teacherName}</p>
<p className='ecd3-role'>{teacherRole}</p>
</div>
</div>
</div>
</div>
<div className='ecd3-close'>
<div>
<h3 className='ecd3-close-h'>{offerTitle}</h3>
<dl className='ecd3-receipt'>
<div className='ecd3-row'>
<dt>{rc.lessons}</dt>
<dd>{lessons.length}</dd>
</div>
<div className='ecd3-row'>
<dt>{rc.perLesson}</dt>
<dd>{rc.perLessonValue.replace('{minutes}', String(minutesPerLesson))}</dd>
</div>
<div className='ecd3-row'>
<dt>{rc.total}</dt>
<dd>{rc.totalValue.replace('{minutes}', String(totalMinutes))}</dd>
</div>
<div className='ecd3-row'>
<dt>{rc.pace}</dt>
<dd key={'pace-' + current.value} className='ecd3-pop'>
{current.label}
</dd>
</div>
<div className='ecd3-row'>
<dt>{rc.last}</dt>
<dd key={'last-' + current.value} className='ecd3-pop'>
{shortFmt.format(finish)}
</dd>
</div>
<div className='ecd3-total'>
<dt>{rc.priceLabel}</dt>
<dd>{rc.price}</dd>
</div>
</dl>
</div>
<form className='ecd3-form' noValidate onSubmit={handleSubmit}>
<p className='ecd3-risk'>{risk}</p>
<fieldset className='ecd3-fields' disabled={isDisabled}>
{field('firstName', firstNameLabel, firstNamePlaceholder, 'text', 'given-name')}
{field('email', emailLabel, emailPlaceholder, 'email', 'email')}
</fieldset>
<button type='submit' className={'ecd3-btn' + stateClass} disabled={isDisabled}>
{label}
</button>
{privacy ? (
<p className='ecd3-privacy'>
<Lock size={16} strokeWidth={2.5} className='ecd3-lock' aria-hidden='true' />
{privacy}
</p>
) : null}
</form>
</div>
</div>
</section>
)
}
export default EmailCourseDays3
function validate(v: Record<FieldKey, string>, e: Required<EmailCourseErrorCopy>): Record<FieldKey, string> {
const email = v.email.trim()
return {
firstName: v.firstName.trim() ? '' : e.firstName,
email: !email ? e.email : EMAIL_RE.test(email) ? '' : e.emailFormat,
}
}
function startOfDay(d: Date) {
return new Date(d.getFullYear(), d.getMonth(), d.getDate())
}
function parseStart(s?: string | Date) {
if (!s) return startOfDay(new Date())
if (s instanceof Date) return isNaN(s.getTime()) ? startOfDay(new Date()) : startOfDay(s)
const m = /^(\d{4})-(\d{2})-(\d{2})$/.exec(s)
if (m) return new Date(Number(m[1]), Number(m[2]) - 1, Number(m[3]))
const d = new Date(s)
return isNaN(d.getTime()) ? startOfDay(new Date()) : startOfDay(d)
}
function addDays(d: Date, n: number) {
const x = new Date(d.getTime())
x.setDate(x.getDate() + n)
return x
}
function toIso(d: Date) {
const mm = String(d.getMonth() + 1).padStart(2, '0')
const dd = String(d.getDate()).padStart(2, '0')
return d.getFullYear() + '-' + mm + '-' + dd
}
function makeFormat(locale: string, opts: Intl.DateTimeFormatOptions) {
try {
return new Intl.DateTimeFormat(locale, opts)
} catch (_e) {
return new Intl.DateTimeFormat('en-US', opts)
}
}
function fill(template: string, key: string, value: React.ReactNode): React.ReactNode {
const parts = template.split('{' + key + '}')
return parts.map((p, i) => (
<React.Fragment key={i}>
{p}
{i < parts.length - 1 ? value : null}
</React.Fragment>
))
}
const R = '.cf-email-course-days-3'
const H_FACE = 'font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);'
const CSS = `
${R}{--ecd3-hair:oklch(from var(--ink) l c h / .12);--ecd3-sh:var(--shadow, oklch(0.22 0.03 260));--signature-font:var(--signature-face,'Mrs Saint Delafield',var(--font-display));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);overflow-x:clip}
${R} *,${R} *::before,${R} *::after{box-sizing:border-box}
${R} :where(h2,h3,h4,p,ol,dl,dd,figure,fieldset){margin:0}
${R} :where(ol){list-style:none;padding:0}
${R} .ecd3-wrap{max-width:1120px;margin:0 auto}
${R} .ecd3-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
${R} .ecd3-head,${R} .ecd3-spread{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(32px,5vw,72px);align-items:start}
${R} .ecd3-head.is-solo{grid-template-columns:minmax(0,1fr)}
${R} .ecd3-h{${H_FACE}letter-spacing:var(--display-tracking,-0.025em);font-size:clamp(2.5rem,5.4vw,4.875rem);line-height:1.04;text-wrap:balance;color:var(--ink)}
${R} .ecd3-mark{color:var(--field-ink,var(--ink));background-image:linear-gradient(to bottom,transparent 14%,var(--marker,#fae37c) 14%,var(--marker,#fae37c) 96%,transparent 96%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .08em;border-radius:.1em}
${R} .ecd3-lead{margin-top:clamp(16px,1.6vw,24px);font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);max-width:56ch;text-wrap:pretty}
${R} .ecd3-photo img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:50% 50%;border-radius:12px;background:color-mix(in oklch,var(--ink) 6%,var(--surface))}
${R} .ecd3-photo figcaption{margin-top:12px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
${R} .ecd3-spread{margin-top:clamp(48px,6vw,64px)}
${R} .ecd3-h3{${H_FACE}letter-spacing:-0.01em;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance}
${R} .ecd3-pace{margin-top:16px;display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
${R} .ecd3-pace-label{font-size:1rem;font-weight:700}
${R} .ecd3-toggle{display:inline-flex;gap:4px;padding:4px;border-radius:calc(var(--radius,12px) + 4px);background:color-mix(in oklch,var(--ink) 6%,var(--surface))}
${R} .ecd3-opt{appearance:none;border:0;min-height:44px;padding:0 18px;border-radius:var(--radius,12px);background:transparent;color:var(--ink);font-family:var(--font-body);font-size:1rem;font-weight:700;line-height:1.15;white-space:nowrap;cursor:pointer;transition:background .16s ease,box-shadow .16s ease,transform .16s ease}
${R} .ecd3-opt[aria-pressed='false']:hover:not(:disabled){background:color-mix(in oklch,var(--ink) 9%,var(--surface))}
${R} .ecd3-opt:active:not(:disabled){transform:translateY(1px)}
${R} .ecd3-opt[aria-pressed='true']{background:var(--card);font-weight:800;box-shadow:inset 0 0 0 2px var(--accent),var(--shadow-sm,0 1px 2px oklch(from var(--ecd3-sh) l c h / .22))}
${R} .ecd3-opt:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:2px}
${R} .ecd3-opt:disabled{cursor:not-allowed}
${R} .ecd3-finish{margin-top:16px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
${R} .ecd3-finish strong{font-weight:800;display:inline-block}
${R} .ecd3-ico{display:inline-block;vertical-align:-.2em;margin-inline-end:.4em;color:var(--accent)}
${R} .ecd3-lessons{margin-top:24px}
${R} .ecd3-lesson{display:grid;grid-template-columns:5rem minmax(0,1fr) auto;grid-template-areas:'num body date';column-gap:20px;padding:20px 0;align-items:start;animation:ecd3-in .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(min(var(--i,0) * .07s,.28s))}
${R} .ecd3-lesson+.ecd3-lesson{border-top:1px solid var(--ecd3-hair)}
${R} .ecd3-num{grid-area:num;${H_FACE}font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;color:var(--accent)}
${R} .ecd3-lbody{grid-area:body;padding-top:4px;min-width:0}
${R} .ecd3-ltitle{${H_FACE}letter-spacing:-0.01em;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance}
${R} .ecd3-payoff{margin-top:8px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty}
${R} .ecd3-date{grid-area:date;justify-self:end;margin-top:6px;display:inline-flex;align-items:center;min-height:30px;padding:4px 12px;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--surface));color:var(--ink);font-size:.875rem;font-weight:800;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums;animation:ecd3-pop .3s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(min(var(--i,0) * .05s,.28s))}
${R} .ecd3-date.is-today{background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
${R} .ecd3-pop{animation:ecd3-pop .3s cubic-bezier(.2,.7,.2,1) both}
${R} .ecd3-letter{position:sticky;top:32px}
${R} .ecd3-pull{${H_FACE}letter-spacing:var(--display-tracking,-0.025em);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance;color:var(--accent)}
${R} .ecd3-letter-body{margin-top:24px;display:grid;gap:16px}
${R} .ecd3-letter-body p{font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.6;max-width:64ch;text-wrap:pretty}
${R} .ecd3-letter-body strong{font-weight:800}
${R} .ecd3-sign{margin-top:24px;display:flex;align-items:center;gap:16px}
${R} .ecd3-portrait{width:72px;height:72px;flex:0 0 72px;object-fit:cover;object-position:50% 25%;border-radius:12px}
${R} .ecd3-signoff{font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted)}
${R} .ecd3-signature{font-family:var(--signature-font);font-weight:400;font-size:2.75rem;line-height:1.1;color:var(--signature-ink,var(--ink))}
${R} .ecd3-name{font-size:.9375rem;line-height:1.4;font-weight:700}
${R} .ecd3-role{font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted)}
${R} .ecd3-close{margin-top:clamp(48px,6vw,64px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,26rem);gap:clamp(32px,5vw,64px);align-items:start;padding:clamp(24px,4vw,48px);border-radius:var(--card-radius,var(--radius,14px));background:var(--band);color:var(--band-ink);box-shadow:var(--shadow-lg,0 2px 4px oklch(from var(--ecd3-sh) l c h / .22),0 12px 24px -8px oklch(from var(--ecd3-sh) l c h / .32))}
${R} .ecd3-close-h{${H_FACE}letter-spacing:var(--display-tracking,-0.025em);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance;color:var(--band-ink)}
${R} .ecd3-receipt{margin-top:24px;padding:8px clamp(16px,2.4vw,24px) clamp(16px,2.4vw,24px);border-radius:10px;background:oklch(from var(--band-ink) l c h / .08)}
${R} .ecd3-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:12px 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4}
${R} .ecd3-row+.ecd3-row{border-top:1px solid oklch(from var(--band-ink) l c h / .16)}
${R} .ecd3-row dt{font-weight:500;min-width:0}
${R} .ecd3-row dd{font-weight:800;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
${R} .ecd3-total{margin-top:16px;display:flex;justify-content:space-between;align-items:center;gap:16px}
${R} .ecd3-total dt{font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:800}
${R} .ecd3-total dd{${H_FACE}font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-0.03em}
${R} .ecd3-form{background:var(--card);color:var(--ink);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(from var(--ecd3-sh) l c h / .22),0 4px 10px -2px oklch(from var(--ecd3-sh) l c h / .2)));padding:clamp(20px,3vw,32px)}
${R} .ecd3-risk{font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
${R} .ecd3-risk strong{font-weight:800}
${R} .ecd3-fields{border:0;padding:0;margin:20px 0 0;min-width:0;display:grid;gap:16px}
${R} .ecd3-field label{display:block;margin-bottom:8px;font-size:1rem;line-height:1.3;font-weight:700;color:var(--label-ink,var(--ink))}
${R} .ecd3-input{display:block;width:100%;height:56px;padding:0 16px;font-family:var(--font-body);font-size:1.0625rem;background:var(--field);color:var(--field-ink);border:1px solid var(--field-border,color-mix(in oklch,var(--ink) 22%,transparent));border-radius:var(--field-radius,var(--radius,12px));outline:none;transition:border-color .16s ease,box-shadow .16s ease}
${R} .ecd3-input::placeholder{color:color-mix(in oklch,var(--field-ink) 65%,var(--field));opacity:1}
${R} .ecd3-input:hover:not(:disabled){border-color:color-mix(in oklch,var(--ink) 38%,transparent)}
${R} .ecd3-input:focus-visible{border-color:var(--field-focus,var(--accent));box-shadow:0 0 0 3px oklch(from var(--field-focus,var(--accent)) l c h / .35)}
${R} .ecd3-input[aria-invalid='true']{border-color:var(--danger);box-shadow:0 0 0 3px oklch(from var(--danger) l c h / .18)}
${R} .ecd3-input[aria-invalid='true']:focus-visible{box-shadow:0 0 0 3px oklch(from var(--danger) l c h / .35)}
${R} .ecd3-input:disabled{cursor:not-allowed;background:color-mix(in oklch,var(--field-ink) 6%,var(--field))}
${R} .ecd3-err{margin-top:8px;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--danger);text-wrap:pretty}
${R} .ecd3-err-ico{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
${R} .ecd3-btn{--b:var(--button-bg,var(--cta));--b2:var(--button-bg-2,var(--cta-2));appearance:none;border:0;margin-top:20px;width:100%;min-height:56px;padding:8px 28px;display:inline-flex;align-items:center;justify-content:center;text-align:center;text-wrap:balance;border-radius:var(--button-radius,var(--radius,12px));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;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--b) calc(l + .04) c h),oklch(from var(--b2) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--b) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--b) calc(l - .16) c h),0 1px 2px oklch(from var(--ecd3-sh) l c h / .3),0 8px 16px -6px oklch(from var(--ecd3-sh) l c h / .45));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
${R} .ecd3-btn:hover:not(:disabled),${R} .ecd3-btn.is-hover:not(:disabled){background:linear-gradient(oklch(from var(--b) calc(l - .01) c h),oklch(from var(--b2) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--b) calc(l + .12) c h / .7),inset 0 -3px 0 oklch(from var(--b) calc(l - .2) c h),0 1px 2px oklch(from var(--ecd3-sh) l c h / .32),0 10px 18px -6px oklch(from var(--ecd3-sh) l c h / .52))}
${R} .ecd3-btn:active:not(:disabled),${R} .ecd3-btn.is-active:not(:disabled){transform:translateY(1px);background:linear-gradient(oklch(from var(--b) calc(l - .06) c h),oklch(from var(--b2) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--b) calc(l - .24) c h / .6),inset 0 -2px 0 oklch(from var(--b) calc(l - .16) c h),0 1px 2px oklch(from var(--ecd3-sh) l c h / .3)}
${R} .ecd3-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
${R} .ecd3-btn:disabled{cursor:not-allowed;background:var(--secondary);color:var(--secondary-ink);text-shadow:none;box-shadow:inset 0 0 0 1px oklch(from var(--ink) l c h / .12);transform:none}
${R} .ecd3-privacy{margin-top:12px;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
${R} .ecd3-lock{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
@keyframes ecd3-in{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes ecd3-pop{from{opacity:.82;transform:scale(.9)}to{opacity:1;transform:none}}
@media (max-width:900px){
${R} .ecd3-head,${R} .ecd3-spread,${R} .ecd3-close{grid-template-columns:minmax(0,1fr)}
${R} .ecd3-photo img{aspect-ratio:3/2}
${R} .ecd3-letter{position:static}
}
@media (max-width:560px){
${R} .ecd3-lesson{grid-template-columns:3.5rem minmax(0,1fr);grid-template-areas:'num body' 'num date';column-gap:14px;row-gap:12px}
${R} .ecd3-date{justify-self:start;margin-top:0}
${R} .ecd3-toggle{display:flex;width:100%}
${R} .ecd3-opt{flex:1 1 0;padding:0 12px}
${R} .ecd3-close{padding:24px 16px}
${R} .ecd3-form{padding:20px}
${R} .ecd3-btn{padding:8px 16px}
}
@media (prefers-reduced-motion:reduce){
${R} *{animation:none !important;transition:none !important}
}
`
pieces/content/email-course-days-3/specimen.tsx 34 lines
import __studioImage4a258126 from "../assets/70a9e3fb504fe632.webp";
import __studioImagead49ec71 from "../assets/d95bcbfd893f8ebd.webp";
import * as React from 'react'
import { EmailCourseDays3 } from '../email-course-days-3'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled' | 'error'
const FILLED = { firstName: 'Dana', email: 'dana@example.com' }
const TYPO = { firstName: 'Dana', email: 'dana@outbound' }
export default function EmailCourseDays3Specimen({ state = 'default' }: { state?: SpecimenState }) {
const values = state === 'hover' || state === 'active' ? FILLED : state === 'error' ? TYPO : undefined
return (
<EmailCourseDays3
key={state}
state={state}
defaultValues={values}
sceneImage={slot(
'scene',
__studioImage4a258126,
)}
sceneAlt='A printed cold email with red pen edits beside a fountain pen and laptop'
presenterImage={slot(
'presenter',
__studioImagead49ec71,
)}
privacy={defaults.sample.registration.privacy}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalEmailCourseDays3 |
React.ReactNode |
|
lead OptionalEmailCourseDays3 |
React.ReactNode |
|
sceneImage OptionalEmailCourseDays3 |
string |
|
sceneAlt OptionalEmailCourseDays3 |
string |
|
caption OptionalEmailCourseDays3 |
React.ReactNode |
|
syllabusTitle OptionalEmailCourseDays3 |
React.ReactNode |
|
lessons OptionalEmailCourseDays3 |
EmailCourseLesson[] |
|
lessonLabel OptionalEmailCourseDays3 |
string |
|
cadences OptionalEmailCourseDays3 |
EmailCourseCadence[] |
|
defaultCadence OptionalEmailCourseDays3 |
string |
|
paceLabel OptionalEmailCourseDays3 |
string |
|
finishText OptionalEmailCourseDays3 |
string |
|
todayLabel OptionalEmailCourseDays3 |
string |
|
locale OptionalEmailCourseDays3 |
string |
|
startDate OptionalEmailCourseDays3 |
string | Date |
|
pullLine OptionalEmailCourseDays3 |
React.ReactNode |
|
letter OptionalEmailCourseDays3 |
React.ReactNode[] |
|
signOff OptionalEmailCourseDays3 |
string |
|
signName OptionalEmailCourseDays3 |
string |
|
teacherName OptionalEmailCourseDays3 |
string |
|
teacherRole OptionalEmailCourseDays3 |
string |
|
presenterImage OptionalEmailCourseDays3 |
string |
|
presenterAlt OptionalEmailCourseDays3 |
string |
|
offerTitle OptionalEmailCourseDays3 |
React.ReactNode |
|
minutesPerLesson OptionalEmailCourseDays3 |
number |
|
receiptCopy OptionalEmailCourseDays3 |
EmailCourseReceiptCopy |
|
risk OptionalEmailCourseDays3 |
React.ReactNode |
|
firstNameLabel OptionalEmailCourseDays3 |
string |
|
firstNamePlaceholder OptionalEmailCourseDays3 |
string |
|
emailLabel OptionalEmailCourseDays3 |
string |
|
emailPlaceholder OptionalEmailCourseDays3 |
string |
|
label OptionalEmailCourseDays3 |
string |
|
privacy OptionalEmailCourseDays3 |
string |
|
errorText OptionalEmailCourseDays3 |
EmailCourseErrorCopy |
|
defaultValues OptionalEmailCourseDays3 |
{ firstName?: string; email?: string } |
|
disabled OptionalEmailCourseDays3 |
boolean |
|
state OptionalEmailCourseDays3 |
'default' | 'hover' | 'active' | 'disabled' | 'error' |
|
onSubmit OptionalEmailCourseDays3 |
(values: EmailCourseSignup) => void |
|
className OptionalEmailCourseDays3 |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--card-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.
presenter- A photo of the host, coach or founder.
scene- A wide atmosphere photo behind or beside the copy.
-
70a9e3fb504fe632.webp
image/webp · 43.3 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
d95bcbfd893f8ebd.webp
image/webp · 31.6 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB