Podcast Episode 3
Podcast episode block, the dark studio: host and guest stand behind a large episode player on a lit stage. The show notes run down an oversized number rail with timestamps that start playback, and the rail ends at the episode's lead magnet. When the player scrolls away, a slim mini player docks at the bottom of the block. Escape or the close button dismisses it.
Use it in a prompt
Use content/podcast-episode-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/podcast-episode-3.tsx. - Import it and pass your copy and images (Props tab):
import { PodcastEpisode3 } from "@/components/funneldna/content/podcast-episode-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/podcast-episode-3/component.tsx 672 lines
// layout: number-rail
// Podcast episode block, the dark studio: host and guest stand behind a large episode player on a lit stage. The show notes run down an oversized number rail with timestamps that start playback, and the rail ends at the episode's lead magnet. When the player scrolls away, a slim mini player docks at the bottom of the block. Escape or the close button dismisses it.
// Theme: every colour, face, button, field, card and image reads the theme contract tokens. The stage photo is the fx Backdrop, which reads the scene slot and is coloured from tokens. No audio is bundled: play and the timestamps call onAction, and the page wires playback.
import * as React from 'react'
import { AlertCircle, Gift, Lock, Mic, Pause, Play, X } from 'lucide-react'
import { Backdrop, FX_HOST } from '../fx/fx'
import studio from '../fx/backdrops/studio'
export type PodcastEpisode3Person = {
name: string
/** Shown under the name, e.g. Host or Guest · owner, Bennett's Bakery. */
role: string
/** Cut-out portrait on a transparent background (slot presenter-cutout for the host). */
image?: string
imageAlt?: string
}
export type PodcastEpisode3Note = {
/** Seconds from the start of the episode. */
time: number
/** Bold lead-in that opens the note. */
lead: string
detail?: string
}
export type PodcastEpisode3Magnet = {
title: React.ReactNode
/** Short paragraph that starts with a bold lead-in. */
detail?: React.ReactNode
/** Slot item-n: the lead magnet's product photo. */
image?: string
imageAlt?: string
/** Button label, a delivery verb (Send me the checklist). */
label: string
privacy?: string
}
export type PodcastEpisode3Copy = {
/** Episode {number} */
episode: string
/** {minutes} min */
minutes: string
playerLabel: string
/** Play episode {number} */
play: string
pause: string
/** Free to listen · {minutes} minutes */
playerNote: string
/** Play from {time}: {lead} (screen readers) */
jump: string
/** {count} takeaways · {minutes} min */
notesMeta: string
dockLabel: string
/** {show} · Ep. {number} */
dockShow: string
dockPause: string
dockClose: string
dockKey: string
emailLabel: string
emailPlaceholder: string
emailMissing: string
emailInvalid: string
}
export type PodcastEpisode3Props = {
showName?: string
episodeNumber?: string | number
title?: React.ReactNode
/** One short paragraph under the title that starts with a bold lead-in. */
lead?: React.ReactNode
/** Episode length in seconds. */
durationSeconds?: number
/** Slot product: square show or episode art. */
coverImage?: string
coverAlt?: string
/** Host first, then one guest. The cut-outs stand behind the player. */
people?: PodcastEpisode3Person[]
notesHeading?: React.ReactNode
notes?: PodcastEpisode3Note[]
/** The episode's lead magnet; null hides it. */
magnet?: PodcastEpisode3Magnet | null
/** Stage photo (an fx backdrop module). A page's scene image replaces it. */
backdropImage?: string
/** Set by the page while its audio plays: shows Pause and the level meter. */
playing?: boolean
/** Shows the mini player without scrolling (previews). */
docked?: boolean
copy?: Partial<PodcastEpisode3Copy>
/** Play pressed. Receives the second to start from: 0 for the episode, or a note's time for a timestamp. */
onAction?: (fromSeconds: number) => void
/** Validated email for the lead magnet. */
onSubmit?: (values: { email: string }) => void
/** active also docks the mini player. */
state?: 'default' | 'hover' | 'active' | 'disabled' | 'error'
className?: string
}
export function PodcastEpisode3(props: PodcastEpisode3Props) {
const {
showName = '',
episodeNumber = 1,
title = DEFAULT_TITLE,
lead = DEFAULT_LEAD,
durationSeconds = 2280,
coverImage,
coverAlt = 'Podcast cover art',
people = [],
notesHeading = DEFAULT_NOTES_HEADING,
notes = DEFAULT_NOTES,
magnet = DEFAULT_MAGNET,
backdropImage = studio,
playing = false,
docked = false,
onAction,
onSubmit,
state = 'default',
className,
} = props
const copy: PodcastEpisode3Copy = { ...DEFAULT_COPY, ...props.copy }
const uid = React.useId()
const titleId = `${uid}-title`
const notesId = `${uid}-notes`
const emailId = `${uid}-email`
const errorId = `${uid}-error`
const privacyId = `${uid}-privacy`
const playerRef = React.useRef<HTMLDivElement>(null)
const dockRef = React.useRef<HTMLDivElement>(null)
const [past, setPast] = React.useState(false)
const [dismissed, setDismissed] = React.useState(false)
const [email, setEmail] = React.useState('')
const [error, setError] = React.useState<string | null>(null)
const notesRef = React.useRef<HTMLDivElement>(null)
const [seen, setSeen] = React.useState(false)
const disabled = state === 'disabled'
const forced = state === 'hover' ? 'is-hover' : state === 'active' ? 'is-active' : ''
const shownError = state === 'error' ? copy.emailInvalid : error
const dockOpen = !dismissed && (past || docked || state === 'active')
const total = Math.max(1, durationSeconds)
const minutes = Math.max(1, Math.round(total / 60))
const episodeLabel = fill(copy.episode, { number: episodeNumber })
const minutesLabel = fill(copy.minutes, { minutes })
const sorted = React.useMemo(() => [...notes].sort((a, b) => a.time - b.time), [notes])
const cast = people.filter((person) => Boolean(person.image)).slice(0, 2)
const dockShow = showName ? fill(copy.dockShow, { show: showName, number: episodeNumber }) : episodeLabel
const PlayGlyph = playing ? Pause : Play
const playLabel = playing ? copy.pause : fill(copy.play, { number: episodeNumber })
React.useEffect(() => {
const node = playerRef.current
if (!node || typeof IntersectionObserver === 'undefined') return
const observer = new IntersectionObserver(([entry]) => {
if (entry.isIntersecting) {
setPast(false)
setDismissed(false)
} else {
setPast(entry.boundingClientRect.bottom < 0)
}
})
observer.observe(node)
return () => observer.disconnect()
}, [])
React.useEffect(() => {
const node = notesRef.current
if (!node || typeof IntersectionObserver === 'undefined') {
setSeen(true)
return
}
const observer = new IntersectionObserver(
(entries) => {
if (entries.some((entry) => entry.isIntersecting)) {
setSeen(true)
observer.disconnect()
}
},
{ rootMargin: '0px 0px -10% 0px' },
)
observer.observe(node)
return () => observer.disconnect()
}, [])
const dismiss = React.useCallback(() => {
const dock = dockRef.current
const focused = typeof document !== 'undefined' ? document.activeElement : null
if (dock && focused instanceof HTMLElement && dock.contains(focused)) focused.blur()
setDismissed(true)
}, [])
React.useEffect(() => {
if (!dockOpen) return
const onKey = (event: KeyboardEvent) => {
if (event.key === 'Escape') dismiss()
}
window.addEventListener('keydown', onKey)
return () => window.removeEventListener('keydown', onKey)
}, [dockOpen, dismiss])
const play = (from: number) => {
if (!disabled) onAction?.(from)
}
const submit = (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault()
if (disabled) return
const value = email.trim()
if (!value) return setError(copy.emailMissing)
if (!isEmail(value)) return setError(copy.emailInvalid)
setError(null)
onSubmit?.({ email: value })
}
const describedBy = [shownError ? errorId : '', magnet?.privacy ? privacyId : ''].filter(Boolean).join(' ') || undefined
const hasNotes = sorted.length > 0
return (
<section className={cx('cf-pe3', hasNotes || magnet ? '' : 'cf-pe3--short', className)} aria-labelledby={titleId}>
<style>{CSS}</style>
<div className='cf-pe3-stage' style={FX_HOST}>
<Backdrop src={backdropImage} treatment='fade-to-band' side='left' />
<div className={cx('cf-pe3-wrap cf-pe3-stagegrid', cast.length ? '' : 'cf-pe3-stagegrid--solo')}>
<div className='cf-pe3-intro'>
<p className='cf-pe3-chip'>
<Mic size={16} strokeWidth={2.5} aria-hidden='true' />
{showName ? `${showName} · ${episodeLabel}` : episodeLabel}
</p>
<h2 id={titleId} className='cf-pe3-title'>{title}</h2>
{lead ? <p className='cf-pe3-lead'>{lead}</p> : null}
{people.length ? (
<ul className='cf-pe3-castlist'>
{people.map((person, i) => (
<li key={`${person.name}-${i}`}>
<strong>{person.name}</strong>
<span>{person.role}</span>
</li>
))}
</ul>
) : null}
</div>
{cast.length ? (
<div className={cx('cf-pe3-cast', cast.length === 1 ? 'cf-pe3-cast--one' : '')}>
{cast.map((person, i) => (
<figure key={`${person.name}-${i}`} className='cf-pe3-person'>
<img src={person.image} alt={person.imageAlt ?? ''} width={560} height={560} decoding='async' />
</figure>
))}
</div>
) : null}
</div>
</div>
<div className='cf-pe3-wrap cf-pe3-playerwrap'>
<div ref={playerRef} className={cx('cf-pe3-player', coverImage ? '' : 'cf-pe3-player--nocover')} role='group' aria-label={copy.playerLabel}>
{coverImage ? <img className='cf-pe3-cover' src={coverImage} alt={coverAlt} width={496} height={496} decoding='async' /> : null}
<div className='cf-pe3-pbody'>
<div className='cf-pe3-pmeta'>
<p className='cf-pe3-pshow'>{showName || episodeLabel}</p>
<p className='cf-pe3-pep'>{showName ? `${episodeLabel} · ${minutesLabel}` : minutesLabel}</p>
</div>
<div className='cf-pe3-wave' aria-hidden='true'>
<div className='cf-pe3-bars'>
{BARS.map((h, i) => (
<span key={i} style={{ '--h': h } as React.CSSProperties} />
))}
</div>
{sorted.map((note, i) => (
<span key={`${note.time}-${i}`} className='cf-pe3-tick' style={{ left: `${tickAt(note.time, total)}%` }}>
<b>{pad(i + 1)}</b>
<i />
</span>
))}
<div className='cf-pe3-times'>
<span>{fmt(0)}</span>
<span>{fmt(total)}</span>
</div>
</div>
<div className='cf-pe3-action'>
<button type='button' className={cx('cf-pe3-btn', forced)} onClick={() => play(0)} disabled={disabled}>
<PlayGlyph size={20} strokeWidth={2.5} fill='currentColor' aria-hidden='true' />
<span>{playLabel}</span>
</button>
<p className='cf-pe3-pnote'>{fill(copy.playerNote, { minutes })}</p>
</div>
</div>
</div>
</div>
{hasNotes || magnet ? (
<div ref={notesRef} className='cf-pe3-wrap cf-pe3-notes' data-reveal={seen ? 'in' : 'wait'}>
{hasNotes ? (
<>
<div className='cf-pe3-nhead'>
<h3 id={notesId} className='cf-pe3-nheading'>{notesHeading}</h3>
<p className='cf-pe3-nmeta'>{fill(copy.notesMeta, { count: sorted.length, minutes })}</p>
</div>
<ol className={cx('cf-pe3-rail', magnet ? '' : 'cf-pe3-rail--end')} aria-labelledby={notesId}>
{sorted.map((note, i) => (
<li key={`${note.time}-${i}`} className='cf-pe3-stop' style={{ '--i': i } as React.CSSProperties}>
<div className='cf-pe3-railcol' aria-hidden='true'>
<span className='cf-pe3-num'>{pad(i + 1)}</span>
<span className='cf-pe3-line' />
</div>
<div className='cf-pe3-sbody'>
<button
type='button'
className='cf-pe3-time'
onClick={() => play(note.time)}
disabled={disabled}
aria-label={fill(copy.jump, { time: fmt(note.time), lead: note.lead })}
>
<Play size={16} strokeWidth={2.5} fill='currentColor' aria-hidden='true' />
{fmt(note.time)}
</button>
<p className='cf-pe3-text'>
<strong>{note.lead}</strong>
{note.detail ? ` ${note.detail}` : null}
</p>
</div>
</li>
))}
</ol>
</>
) : null}
{magnet ? (
<div className='cf-pe3-stop cf-pe3-stop--magnet' style={{ '--i': sorted.length } as React.CSSProperties}>
<div className='cf-pe3-railcol' aria-hidden='true'>
<span className='cf-pe3-disc'>
<Gift size={20} strokeWidth={2.5} />
</span>
<span className='cf-pe3-line cf-pe3-line--phone' />
</div>
<div className={cx('cf-pe3-magnet', magnet.image ? '' : 'cf-pe3-magnet--noimg')}>
{magnet.image ? (
<img className='cf-pe3-mimg' src={magnet.image} alt={magnet.imageAlt ?? ''} width={336} height={336} loading='lazy' decoding='async' />
) : null}
<div className='cf-pe3-mhead'>
<h3 className='cf-pe3-mtitle'>{magnet.title}</h3>
{magnet.detail ? <p className='cf-pe3-mdetail'>{magnet.detail}</p> : null}
</div>
<form className='cf-pe3-form' onSubmit={submit} noValidate>
<label className='cf-pe3-label' htmlFor={emailId}>{copy.emailLabel}</label>
<div className='cf-pe3-row'>
<input
id={emailId}
className='cf-pe3-input'
type='email'
name='email'
autoComplete='email'
inputMode='email'
placeholder={copy.emailPlaceholder}
value={email}
onChange={(event) => {
setEmail(event.target.value)
if (error) setError(null)
}}
disabled={disabled}
aria-required='true'
aria-invalid={shownError ? true : undefined}
aria-describedby={describedBy}
/>
<button type='submit' className={cx('cf-pe3-btn cf-pe3-btn--form', forced)} disabled={disabled}>
{magnet.label}
</button>
</div>
{shownError ? (
<p id={errorId} className='cf-pe3-error' role='alert'>
<AlertCircle size={16} strokeWidth={2.5} aria-hidden='true' />
{shownError}
</p>
) : null}
{magnet.privacy ? (
<p id={privacyId} className='cf-pe3-privacy'>
<Lock size={16} strokeWidth={2.5} aria-hidden='true' />
{magnet.privacy}
</p>
) : null}
</form>
</div>
</div>
) : null}
</div>
) : null}
<div className='cf-pe3-anchor'>
<div
ref={dockRef}
className='cf-pe3-dock'
data-open={dockOpen ? 'true' : 'false'}
role='region'
aria-label={copy.dockLabel}
aria-hidden={dockOpen ? undefined : true}
>
<button
type='button'
className={cx('cf-pe3-btn cf-pe3-dockplay', forced)}
onClick={() => play(0)}
disabled={disabled}
aria-label={playing ? copy.dockPause : fill(copy.play, { number: episodeNumber })}
>
<PlayGlyph size={20} strokeWidth={2.5} fill='currentColor' aria-hidden='true' />
</button>
<div className='cf-pe3-docktext'>
<p className='cf-pe3-dockshow'>
{playing ? (
<span className='cf-pe3-eq' aria-hidden='true'>
<i />
<i />
<i />
</span>
) : null}
<span>{dockShow}</span>
</p>
<p className='cf-pe3-docktitle'>{title}</p>
</div>
<span className='cf-pe3-docklen'>{fmt(total)}</span>
<kbd className='cf-pe3-kbd' aria-hidden='true'>{copy.dockKey}</kbd>
<button type='button' className='cf-pe3-close' onClick={dismiss} aria-label={copy.dockClose}>
<X size={20} strokeWidth={2.5} aria-hidden='true' />
</button>
</div>
</div>
</section>
)
}
export default PodcastEpisode3
const DEFAULT_TITLE = 'Plan your first funnel before you build a single page'
const DEFAULT_LEAD = (
<>
<strong>On this episode:</strong> one offer, three pages and a launch check, mapped out start to finish.
</>
)
const DEFAULT_NOTES_HEADING = `What you'll learn on this episode`
const DEFAULT_NOTES: PodcastEpisode3Note[] = [
{ time: 120, lead: 'Why your offer comes first.', detail: 'Get the offer clear and every page after it gets easier to write.' },
{ time: 585, lead: 'The three pages a first funnel needs.', detail: 'An opt-in page, a sales page and a thank-you page. Nothing more on day one.' },
{ time: 1110, lead: 'How to draft a headline in ten minutes.', detail: 'A simple fill-in line you can use tonight and improve later.' },
{ time: 1745, lead: 'The launch check most owners skip.', detail: 'Click every link and test every form before a single visitor arrives.' },
]
const DEFAULT_MAGNET: PodcastEpisode3Magnet = {
title: 'Get the launch checklist from this episode',
detail: (
<>
<strong>Free with this episode.</strong> Every link, form and next step to check before you go live.
</>
),
label: 'Send me the checklist',
privacy: 'We respect your inbox. Unsubscribe anytime.',
}
const DEFAULT_COPY: PodcastEpisode3Copy = {
episode: 'Episode {number}',
minutes: '{minutes} min',
playerLabel: 'Episode player',
play: 'Play episode {number}',
pause: 'Pause episode',
playerNote: 'Free to listen · {minutes} minutes',
jump: 'Play from {time}: {lead}',
notesMeta: '{count} takeaways · {minutes} min',
dockLabel: 'Mini player',
dockShow: '{show} · Ep. {number}',
dockPause: 'Pause episode',
dockClose: 'Close mini player',
dockKey: 'Esc',
emailLabel: 'Email address',
emailPlaceholder: 'you@example.com',
emailMissing: 'Enter your email so we know where to send it.',
emailInvalid: 'That email looks incomplete. Try you@example.com.',
}
/** Decorative waveform heights, 0 to 1. */
const BARS = Array.from({ length: 72 }, (_, i) => Number((0.24 + 0.7 * Math.abs(Math.sin(i * 0.61) * Math.cos(i * 0.23 + 0.8))).toFixed(3)))
function fill(template: string, values: Record<string, string | number>) {
return Object.keys(values).reduce((text, key) => text.split(`{${key}}`).join(String(values[key])), template)
}
function fmt(seconds: number) {
const t = Math.max(0, Math.round(seconds))
const h = Math.floor(t / 3600)
const m = Math.floor((t % 3600) / 60)
const s = String(t % 60).padStart(2, '0')
return h ? `${h}:${String(m).padStart(2, '0')}:${s}` : `${m}:${s}`
}
function pad(n: number) {
return String(n).padStart(2, '0')
}
function tickAt(time: number, total: number) {
return Math.min(97, Math.max(3, (time / total) * 100))
}
function isEmail(value: string) {
const at = value.indexOf('@')
const dot = value.lastIndexOf('.')
return at > 0 && at === value.lastIndexOf('@') && dot > at + 1 && dot < value.length - 1 && !value.includes(' ')
}
function cx(...parts: (string | false | null | undefined)[]) {
return parts.filter(Boolean).join(' ')
}
const CSS = `
.cf-pe3{--pe3-shadow:var(--shadow,oklch(0.22 0.03 256));--pe3-gutter:clamp(16px,5vw,48px);--pe3-btn:var(--button-bg,var(--cta));--pe3-btn-2:var(--button-bg-2,var(--cta-2));--pe3-border:var(--card-border,oklch(from var(--ink) l c h / 0.12));--pe3-ring:var(--field-focus,var(--accent));--pe3-lift:var(--shadow-lg,0 2px 4px oklch(from var(--pe3-shadow) l c h / 0.22),0 12px 24px -8px oklch(from var(--pe3-shadow) l c h / 0.32));position:relative;background:var(--band);color:var(--band-ink);font-family:var(--font-body);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;overflow-x:clip}
.cf-pe3 *,.cf-pe3 *::before,.cf-pe3 *::after{box-sizing:border-box}
.cf-pe3 :where(h2,h3,p,ul,ol,li,figure){margin:0;padding:0}
.cf-pe3 :where(ul,ol){list-style:none}
.cf-pe3 img{display:block;max-width:100%}
.cf-pe3-wrap{width:100%;max-width:calc(1120px + 2 * var(--pe3-gutter));margin-inline:auto;padding-inline:var(--pe3-gutter)}
.cf-pe3-stage{position:relative;padding-top:clamp(56px,8vw,112px)}
.cf-pe3-stage>:not(.cf-pe3-stagegrid){-webkit-mask-image:linear-gradient(to bottom,var(--band) 50%,transparent 96%);mask-image:linear-gradient(to bottom,var(--band) 50%,transparent 96%)}
.cf-pe3-stagegrid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);column-gap:clamp(32px,5vw,72px);align-items:start}
.cf-pe3-stagegrid--solo{grid-template-columns:minmax(0,46rem)}
.cf-pe3-intro{padding-bottom:clamp(128px,12vw,168px)}
.cf-pe3-chip{display:inline-block;margin-bottom:16px;padding:5px 14px;border-radius:999px;background:oklch(from var(--band-ink) l c h / 0.12);color:var(--band-ink);font-size:.875rem;font-weight:800;line-height:1.5}
.cf-pe3-chip svg{display:inline-block;vertical-align:-.2em;margin-inline-end:.4em}
.cf-pe3-title{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;text-wrap:balance;color:var(--band-ink)}
.cf-pe3-lead{margin-top:16px;max-width:36em;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty}
.cf-pe3-lead strong,.cf-pe3-text strong,.cf-pe3-mdetail strong{font-weight:800}
.cf-pe3-castlist{display:flex;flex-wrap:wrap;gap:12px 32px;margin-top:28px}
.cf-pe3-castlist li{display:grid;gap:2px}
.cf-pe3-castlist strong{font-size:1.0625rem;font-weight:800;line-height:1.25}
.cf-pe3-castlist span{font-size:.9375rem;font-weight:500;line-height:1.4}
.cf-pe3-cast{align-self:end;display:flex;justify-content:center;align-items:flex-end;min-width:0}
.cf-pe3-person{flex:0 0 58%;aspect-ratio:1;min-width:0}
.cf-pe3-person+.cf-pe3-person{margin-inline-start:-16%}
.cf-pe3-cast--one .cf-pe3-person{flex-basis:78%}
.cf-pe3-person img{width:100%;height:100%;object-fit:contain;object-position:50% 100%;filter:drop-shadow(0 2px 3px oklch(from var(--pe3-shadow) l c h / 0.4)) drop-shadow(0 14px 18px oklch(from var(--pe3-shadow) l c h / 0.35))}
.cf-pe3-playerwrap{position:relative;z-index:2;margin-top:-104px}
.cf-pe3--short .cf-pe3-playerwrap{padding-bottom:clamp(96px,8.5vw,120px)}
.cf-pe3-player{display:grid;grid-template-columns:clamp(168px,21vw,248px) minmax(0,1fr);column-gap:clamp(20px,3vw,40px);align-items:center;padding:clamp(14px,1.6vw,18px);padding-inline-end:clamp(20px,3vw,40px);background:var(--card);color:var(--ink);border:1px solid var(--pe3-border);border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--pe3-lift))}
.cf-pe3-player--nocover{grid-template-columns:minmax(0,1fr);padding:clamp(20px,3vw,32px)}
.cf-pe3-cover{width:100%;height:auto;aspect-ratio:1;object-fit:cover;object-position:center;border-radius:12px}
.cf-pe3-pbody{display:flex;flex-direction:column;gap:20px;min-width:0;padding-block:8px}
.cf-pe3-pmeta{display:grid;gap:4px;min-width:0}
.cf-pe3-pshow{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-.01em;color:var(--ink);text-wrap:balance}
.cf-pe3-pep{font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted)}
.cf-pe3-wave{position:relative;padding-top:28px}
.cf-pe3-bars{display:flex;align-items:center;gap:3px;height:56px}
.cf-pe3-bars span{flex:1 1 0;min-width:2px;height:calc(var(--h) * 100%);border-radius:2px;background:oklch(from var(--ink) l c h / 0.2)}
.cf-pe3-tick{position:absolute;top:0;height:84px;display:flex;flex-direction:column;align-items:center;gap:4px;transform:translateX(-50%)}
.cf-pe3-tick b{font-size:.875rem;font-weight:800;line-height:1.2;color:var(--accent);font-variant-numeric:tabular-nums}
.cf-pe3-tick i{flex:1 1 auto;width:2px;border-radius:2px;background:var(--accent-fill,var(--accent))}
.cf-pe3-times{display:flex;justify-content:space-between;margin-top:8px;font-size:.875rem;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.cf-pe3-action{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.cf-pe3-pnote{font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-pe3-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:64px;padding:0 28px;border:0;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;white-space:nowrap;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--pe3-btn) calc(l + .04) c h),oklch(from var(--pe3-btn-2) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--pe3-btn) calc(l + .14) c h / 0.7),inset 0 -3px 0 oklch(from var(--pe3-btn) calc(l - .16) c h),0 1px 2px oklch(from var(--pe3-shadow) l c h / 0.3),0 8px 16px -6px oklch(from var(--pe3-shadow) l c h / 0.45));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-pe3-btn:hover:not(:disabled),.cf-pe3-btn.is-hover{background:linear-gradient(oklch(from var(--pe3-btn) calc(l - .01) c h),oklch(from var(--pe3-btn-2) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--pe3-btn) calc(l + .1) c h / 0.6),inset 0 -3px 0 oklch(from var(--pe3-btn) calc(l - .2) c h),0 1px 2px oklch(from var(--pe3-shadow) l c h / 0.34),0 10px 20px -6px oklch(from var(--pe3-shadow) l c h / 0.55))}
.cf-pe3-btn:active:not(:disabled),.cf-pe3-btn.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--pe3-btn) calc(l - .04) c h),oklch(from var(--pe3-btn-2) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--pe3-btn) calc(l - .24) c h / 0.6),inset 0 -2px 0 oklch(from var(--pe3-btn) calc(l - .16) c h),0 1px 1px oklch(from var(--pe3-shadow) l c h / 0.3)}
.cf-pe3-btn:focus-visible{outline:3px solid var(--pe3-ring);outline-offset:3px}
.cf-pe3-btn:disabled{cursor:not-allowed;background:var(--secondary);color:var(--secondary-ink);text-shadow:none;box-shadow:none}
.cf-pe3-btn svg{flex:0 0 auto}
.cf-pe3-btn--form{min-height:56px}
.cf-pe3-notes{padding-top:clamp(48px,6vw,80px);padding-bottom:clamp(96px,8.5vw,120px)}
.cf-pe3-nhead{display:grid;gap:8px;padding-bottom:32px;padding-inline-start:calc(clamp(88px,9vw,120px) + clamp(16px,3vw,32px))}
.cf-pe3-nheading{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-.01em;text-wrap:balance;color:var(--band-ink)}
.cf-pe3-nmeta{font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--band-ink)}
.cf-pe3-stop{display:grid;grid-template-columns:clamp(88px,9vw,120px) minmax(0,1fr);column-gap:clamp(16px,3vw,32px);transition:opacity .45s cubic-bezier(.2,.7,.2,1),transform .45s cubic-bezier(.2,.7,.2,1);transition-delay:min(calc(var(--i,0) * .07s),.28s)}
.cf-pe3-notes[data-reveal=wait] .cf-pe3-stop{opacity:.82;transform:translateY(8px)}
.cf-pe3-railcol{display:flex;flex-direction:column;align-items:center}
.cf-pe3-num{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--band-ink)}
.cf-pe3-line{flex:1 1 auto;width:2px;min-height:24px;margin-block:12px 8px;border-radius:2px;background:var(--accent-fill,var(--accent))}
.cf-pe3-line--phone{display:none}
.cf-pe3-rail--end .cf-pe3-stop:last-child .cf-pe3-line{visibility:hidden}
.cf-pe3-rail--end .cf-pe3-stop:last-child .cf-pe3-sbody{padding-bottom:0}
.cf-pe3-sbody{min-width:0;padding-bottom:40px}
.cf-pe3-time{display:inline-flex;align-items:center;justify-content:flex-start;text-align:start;gap:8px;min-height:44px;padding:4px 16px 4px 14px;border:0;border-radius:999px;background:oklch(from var(--band-ink) l c h / 0.12);color:var(--band-ink);font-family:var(--font-body);font-size:.875rem;font-weight:var(--button-weight,800);text-transform:var(--button-case,none);line-height:1.2;font-variant-numeric:tabular-nums;cursor:pointer;transition:background .16s ease,transform .16s ease}
.cf-pe3-time:hover:not(:disabled){background:oklch(from var(--band-ink) l c h / 0.22)}
.cf-pe3-time:active:not(:disabled){transform:scale(.97)}
.cf-pe3-time:focus-visible{outline:3px solid var(--band-ink);outline-offset:2px}
.cf-pe3-time:disabled{cursor:not-allowed;opacity:.6}
.cf-pe3-text{margin-top:12px;max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--band-ink);text-wrap:pretty}
.cf-pe3-disc{display:grid;place-items:center;width:48px;height:48px;margin-top:4px;border-radius:999px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.cf-pe3-magnet{display:grid;grid-template-columns:clamp(120px,14vw,168px) minmax(0,1fr);grid-template-areas:'img head' 'img form';gap:16px clamp(20px,3vw,32px);align-items:start;padding:clamp(20px,3vw,32px);background:var(--card);color:var(--ink);border:1px solid var(--pe3-border);border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(from var(--pe3-shadow) l c h / 0.22),0 4px 10px -2px oklch(from var(--pe3-shadow) l c h / 0.2)))}
.cf-pe3-magnet--noimg{grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'form'}
.cf-pe3-mimg{grid-area:img;width:100%;height:auto;aspect-ratio:1;object-fit:cover;object-position:center;border-radius:12px}
.cf-pe3-mhead{grid-area:head;min-width:0}
.cf-pe3-mtitle{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-.01em;text-wrap:balance;color:var(--ink)}
.cf-pe3-mdetail{margin-top:8px;max-width:60ch;color:var(--ink);text-wrap:pretty}
.cf-pe3-form{grid-area:form;min-width:0}
.cf-pe3-label{display:block;margin-bottom:8px;font-size:1rem;font-weight:700;line-height:1.3;color:var(--label-ink,var(--ink))}
.cf-pe3-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
.cf-pe3-input{width:100%;min-width:0;height:56px;padding:0 16px;font-family:var(--font-body);font-size:17px;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));transition:border-color .16s ease,box-shadow .16s ease}
.cf-pe3-input::placeholder{color:color-mix(in oklch,var(--field-ink) 65%,var(--field));opacity:1}
.cf-pe3-input:hover:not(:disabled){border-color:color-mix(in oklch,var(--ink) 40%,transparent)}
.cf-pe3-input:focus{outline:none;border-color:var(--pe3-ring);box-shadow:0 0 0 3px oklch(from var(--pe3-ring) l c h / 0.35)}
.cf-pe3-input[aria-invalid=true]{border-color:var(--danger)}
.cf-pe3-input[aria-invalid=true]:focus{box-shadow:0 0 0 3px oklch(from var(--danger) l c h / 0.3)}
.cf-pe3-input:disabled{cursor:not-allowed;background:color-mix(in oklch,var(--ink) 4%,var(--field))}
.cf-pe3-error{margin-top:8px;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--danger);text-wrap:pretty}
.cf-pe3-privacy{margin-top:12px;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-pe3-error svg,.cf-pe3-privacy svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
.cf-pe3-anchor{position:sticky;bottom:0;height:0;z-index:5}
.cf-pe3-dock{position:absolute;left:50%;bottom:16px;width:min(760px,calc(100% - 2 * var(--pe3-gutter)));display:flex;align-items:center;gap:12px;padding:8px;background:var(--card);color:var(--ink);border:1px solid var(--pe3-border);border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--pe3-lift);opacity:0;visibility:hidden;transform:translate(-50%,16px);transition:transform .3s cubic-bezier(.2,.7,.2,1),opacity .3s ease,visibility 0s linear .3s}
.cf-pe3-dock[data-open=true]{opacity:1;visibility:visible;transform:translate(-50%,0);transition-delay:0s}
.cf-pe3-btn.cf-pe3-dockplay{flex:0 0 auto;width:48px;height:48px;min-height:48px;padding:0;border-radius:999px}
.cf-pe3-docktext{flex:1 1 auto;min-width:0;display:grid;gap:2px}
.cf-pe3-dockshow{display:flex;align-items:center;gap:8px;min-width:0;font-size:.875rem;font-weight:800;line-height:1.2;color:var(--muted)}
.cf-pe3-dockshow span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cf-pe3-docktitle{font-size:1rem;font-weight:800;line-height:1.3;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cf-pe3-docklen{flex:0 0 auto;font-size:.875rem;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.cf-pe3-kbd{flex:0 0 auto;padding:4px 8px;border-radius:8px;background:color-mix(in oklch,var(--ink) 6%,var(--card));color:var(--ink);font-family:var(--font-body);font-size:.875rem;font-weight:800;line-height:1.2}
.cf-pe3-close{flex:0 0 auto;display:inline-grid;place-items:center;width:44px;height:44px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:transparent;color:var(--ink);font-weight:var(--button-weight,800);cursor:pointer;transition:background .16s ease}
.cf-pe3-close:hover{background:color-mix(in oklch,var(--ink) 6%,var(--card))}
.cf-pe3-close:active{background:color-mix(in oklch,var(--ink) 10%,var(--card))}
.cf-pe3-close:focus-visible{outline:3px solid var(--pe3-ring);outline-offset:2px}
.cf-pe3-eq{display:inline-flex;align-items:flex-end;gap:2px;height:12px;flex:0 0 auto}
.cf-pe3-eq i{width:3px;height:100%;border-radius:1px;background:var(--accent-fill,var(--accent));transform-origin:bottom;animation:cf-pe3-eq .9s ease-in-out infinite alternate}
.cf-pe3-eq i:nth-child(2){animation-delay:-.3s}
.cf-pe3-eq i:nth-child(3){animation-delay:-.6s}
@keyframes cf-pe3-eq{from{transform:scaleY(.3)}to{transform:scaleY(1)}}
@media (max-width:760px){
.cf-pe3-stagegrid{grid-template-columns:minmax(0,1fr)}
.cf-pe3-intro{padding-bottom:24px}
.cf-pe3-person{flex-basis:54%;aspect-ratio:1/0.74}
.cf-pe3-person+.cf-pe3-person{margin-inline-start:-10%}
.cf-pe3-cast--one .cf-pe3-person{flex-basis:72%}
.cf-pe3-person img{object-fit:cover;object-position:50% 0}
.cf-pe3-playerwrap{margin-top:-36px}
}
@media (max-width:640px){
.cf-pe3-player{grid-template-columns:88px minmax(0,1fr);grid-template-areas:'cover meta' 'wave wave' 'action action';row-gap:20px;column-gap:16px;padding:16px}
.cf-pe3-player--nocover{grid-template-columns:minmax(0,1fr);grid-template-areas:'meta' 'wave' 'action';padding:20px}
.cf-pe3-pbody{display:contents}
.cf-pe3-cover{grid-area:cover}
.cf-pe3-pmeta{grid-area:meta;align-self:center}
.cf-pe3-wave{grid-area:wave}
.cf-pe3-bars span:nth-child(even){display:none}
.cf-pe3-action{grid-area:action;flex-direction:column;align-items:stretch;text-align:center}
.cf-pe3-action .cf-pe3-btn{width:100%}
.cf-pe3-nhead{padding-inline-start:0}
.cf-pe3-stop{display:block}
.cf-pe3-railcol{flex-direction:row;align-items:center;gap:12px;margin-bottom:4px}
.cf-pe3-line,.cf-pe3-line--phone{display:block;width:auto;height:2px;min-height:0;margin:0}
.cf-pe3-sbody{padding-bottom:32px}
.cf-pe3-stop--magnet .cf-pe3-railcol{margin-bottom:16px}
.cf-pe3-disc{margin-top:0}
.cf-pe3-magnet{grid-template-columns:88px minmax(0,1fr);grid-template-areas:'img head' 'form form'}
.cf-pe3-magnet--noimg{grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'form'}
.cf-pe3-row{grid-template-columns:minmax(0,1fr)}
.cf-pe3-btn--form{width:100%}
.cf-pe3-dock{left:0;bottom:0;width:100%;padding:10px var(--pe3-gutter) calc(10px + env(safe-area-inset-bottom,0px));border-width:0;border-radius:0;transform:translateY(16px)}
.cf-pe3-dock[data-open=true]{transform:translateY(0)}
.cf-pe3-kbd,.cf-pe3-docklen{display:none}
}
@media (prefers-reduced-motion:reduce){
.cf-pe3-eq i{animation:none}
.cf-pe3-notes[data-reveal] .cf-pe3-stop{opacity:1;transform:none;transition:none}
.cf-pe3-btn,.cf-pe3-time,.cf-pe3-input,.cf-pe3-close,.cf-pe3-dock{transition:none}
.cf-pe3-btn:active:not(:disabled),.cf-pe3-btn.is-active,.cf-pe3-time:active:not(:disabled){transform:none}
}
`
pieces/content/podcast-episode-3/specimen.tsx 66 lines
import __studioImage298d4040 from "../assets/0ee06b3241ef4c27.webp";
import __studioImageebc23cf1 from "../assets/158279d117948aa2.webp";
import __studioImagee758f615 from "../assets/a621ed210f90a4ca.webp";
// Specimen: Main Street Mic, episode 41, on the dark studio stage.
import * as React from 'react'
import { PodcastEpisode3, type PodcastEpisode3Props } from '../podcast-episode-3'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
const sample = defaults.sample
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function PodcastEpisode3Specimen({ state = 'default' }: { state?: PodcastEpisode3Props['state'] }) {
const kit = sample.items[2]
return (
<PodcastEpisode3
state={state}
showName='Main Street Mic'
episodeNumber={41}
title={sample.headline}
lead={
<>
<strong>On this episode:</strong> a neighbourhood bakery owner and a funnel coach map one offer, three pages and a launch check, start to finish.
</>
}
durationSeconds={2280}
coverImage={slot('product', __studioImage298d4040)}
coverAlt='Main Street Mic cover art: a microphone on a shop counter'
people={[
{
name: 'Maria Alvarez',
role: 'Host',
image: slot('presenter-cutout', __studioImageebc23cf1),
imageAlt: 'Maria Alvarez, host of Main Street Mic',
},
{
name: 'Theo Bennett',
role: `Guest · owner, Bennett's Bakery`,
image: slot('guest-cutout', __studioImagee758f615),
imageAlt: 'Theo Bennett, owner of a neighbourhood bakery',
},
]}
notesHeading={`What you'll learn in 38 minutes`}
notes={[
{ time: 105, lead: 'Why your offer comes first.', detail: `Name who it's for and what they get, and every page after it gets easier to write.` },
{ time: 500, lead: 'The three pages a first funnel needs.', detail: `An opt-in page, a sales page and a thank-you page. That's the whole map for day one.` },
{ time: 1025, lead: 'How Theo drafted his headline in ten minutes.', detail: 'The fill-in line he used, and how to tighten it once visitors start to arrive.' },
{ time: 1600, lead: 'The launch check most owners skip.', detail: 'Click every link and test every form before you send a single visitor.' },
{ time: 1990, lead: 'What to do the day after you launch.', detail: 'Look at what you have, change one thing, then check again next week.' },
]}
magnet={{
title: `Get the ${kit.name} from this episode`,
detail: (
<>
<strong>Free with this episode.</strong> {kit.detail}
</>
),
image: slot('item-3', kit.image),
imageAlt: kit.imageAlt,
label: 'Send me the checklist',
privacy: sample.registration.privacy,
}}
/>
)
}
| Name | Type | Details |
|---|---|---|
showName OptionalPodcastEpisode3 |
string |
|
episodeNumber OptionalPodcastEpisode3 |
string | number |
|
title OptionalPodcastEpisode3 |
React.ReactNode |
|
lead OptionalPodcastEpisode3 |
React.ReactNode |
|
durationSeconds OptionalPodcastEpisode3 |
number |
|
coverImage OptionalPodcastEpisode3 |
string |
|
coverAlt OptionalPodcastEpisode3 |
string |
|
people OptionalPodcastEpisode3 |
PodcastEpisode3Person[] |
|
notesHeading OptionalPodcastEpisode3 |
React.ReactNode |
|
notes OptionalPodcastEpisode3 |
PodcastEpisode3Note[] |
|
magnet OptionalPodcastEpisode3 |
PodcastEpisode3Magnet | null |
|
backdropImage OptionalPodcastEpisode3 |
string |
|
playing OptionalPodcastEpisode3 |
boolean |
|
docked OptionalPodcastEpisode3 |
boolean |
|
copy OptionalPodcastEpisode3 |
Partial<PodcastEpisode3Copy> |
|
onAction OptionalPodcastEpisode3 |
(fromSeconds: number) => void |
|
onSubmit OptionalPodcastEpisode3 |
(values: { email: string }) => void |
|
state OptionalPodcastEpisode3 |
'default' | 'hover' | 'active' | 'disabled' | 'error' |
|
className OptionalPodcastEpisode3 |
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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
guest-cutout- An image this piece places.
item-3- One image per offer item (item-1, item-2…), shown in stacks and lists.
presenter-cutout- The presenter on a transparent background.
product- The main product shot or cover (ebook, kit, bottle).
-
0ee06b3241ef4c27.webp
image/webp · 164 KB
-
158279d117948aa2.webp
image/webp · 232 KB
-
a621ed210f90a4ca.webp
image/webp · 165 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
c18141ad9dda999d.webp
image/webp · 14.4 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB