Podcast Episode 2
Podcast interview block: a poster-frame episode player, the conversation’s best moments as bold questions with timestamped answers, and the guest’s free resource as the last answer with an email field. The listener gets the value first, then the ask. Signature: a Read the highlights / Full show notes toggle.
Use it in a prompt
Use content/podcast-episode-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/podcast-episode-2.tsx. - Import it and pass your copy and images (Props tab):
import { PodcastEpisode2 } from "@/components/funneldna/content/podcast-episode-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/podcast-episode-2/component.tsx 800 lines
// layout: interview-qa
// Podcast interview block: a poster-frame episode player, the conversation’s best moments as bold questions with timestamped answers, and the guest’s free resource as the last answer with an email field. The listener gets the value first, then the ask. Signature: a Read the highlights / Full show notes toggle.
// Theme: every colour, face, button, field, card and image reads the theme contract tokens; tints and shades come from OKLCH relative colour or color-mix with neutrals.
import * as React from 'react'
import { AlertCircle, Lock, Mic, Play } from 'lucide-react'
export type InterviewMoment = {
/** Seconds from the start of the episode. */
time: number
question: string
/** The guest’s short answer. */
answer: React.ReactNode
}
export type ShowNote = {
/** Seconds from the start of the episode. */
time: number
text: string
}
export type GuestResource = {
/** Optional timestamp where the guest mentions the resource. */
time?: number
question: string
answer: React.ReactNode
name: React.ReactNode
/** Line before the numbered reasons. */
reasonsLead?: React.ReactNode
reasons?: React.ReactNode[]
/** Slot item-1: the resource on a transparent background. */
image?: string
imageAlt?: string
/** Submit label: a delivery verb, e.g. Send me the plan. */
label: string
privacy?: React.ReactNode
}
export type PodcastEpisode2Copy = {
play: string
highlights: string
notes: string
/** Accessible name of the toggle. */
tablist: string
/** Template: Play from {time}: {topic} */
jump: string
notesHeading: string
emailLabel: string
emailPlaceholder: string
errorEmpty: string
errorInvalid: string
}
export type PodcastEpisode2Props = {
/** Slot scene: the episode poster frame. */
posterImage?: string
posterAlt?: string
showName?: string
episodeLabel?: string
/** Shown on the play button, e.g. 48 min. */
durationLabel?: string
guestName?: string
/** First name shown before each answer. Falls back to guestName. */
guestShort?: string
guestRole?: string
/** Slot presenter: the guest portrait. */
guestImage?: string
guestImageAlt?: string
title?: React.ReactNode
/** A phrase inside a string title, set in the accent colour. */
titleEmphasis?: string
lead?: React.ReactNode
/** The guest’s answers are proof-bearing: defaults empty. */
moments?: InterviewMoment[]
summary?: React.ReactNode[]
notes?: ShowNote[]
resource?: GuestResource
defaultView?: 'highlights' | 'notes'
copy?: Partial<PodcastEpisode2Copy>
/** The play button. */
onAction?: () => void
/** Timestamp buttons. */
onSeek?: (seconds: number) => void
/** Validated email for the guest’s resource. */
onSubmit?: (values: { email: string }) => void
state?: 'default' | 'hover' | 'active' | 'disabled' | 'error'
className?: string
}
export function PodcastEpisode2(props: PodcastEpisode2Props) {
const {
posterImage,
posterAlt = 'Podcast episode artwork',
showName = '',
episodeLabel = '',
durationLabel = '',
guestName = '',
guestShort,
guestRole = '',
guestImage,
guestImageAlt,
title = 'Listen to the full interview',
titleEmphasis,
lead,
moments = [],
summary = [],
notes = [],
resource,
defaultView = 'highlights',
onAction,
onSeek,
onSubmit,
state = 'default',
className,
} = props
const copy: PodcastEpisode2Copy = { ...DEFAULT_COPY, ...props.copy }
const uid = React.useId()
const ids = {
title: uid + '-title',
tabH: uid + '-tab-h',
tabN: uid + '-tab-n',
panel: uid + '-panel',
email: uid + '-email',
err: uid + '-err',
priv: uid + '-priv',
}
const hRef = React.useRef<HTMLButtonElement>(null)
const nRef = React.useRef<HTMLButtonElement>(null)
const inputRef = React.useRef<HTMLInputElement>(null)
const [view, setView] = React.useState<'highlights' | 'notes'>(defaultView)
const [email, setEmail] = React.useState('')
const [error, setError] = React.useState<string | null>(state === 'error' ? copy.errorEmpty : null)
React.useEffect(() => {
setError(state === 'error' ? copy.errorEmpty : null)
}, [state, copy.errorEmpty])
const disabled = state === 'disabled'
const force = state === 'hover' || state === 'active' ? state : undefined
const who = guestShort || guestName
const hasNotes = notes.length > 0 || summary.length > 0
const showToggle = moments.length > 0 && hasNotes
const shown: 'highlights' | 'notes' = showToggle ? view : moments.length > 0 ? 'highlights' : 'notes'
const hasPanel = moments.length > 0 || hasNotes
const titleNode =
typeof title === 'string' && titleEmphasis && title.includes(titleEmphasis) ? (
<>
{title.slice(0, title.indexOf(titleEmphasis))}
<em className='pe2-em'>{titleEmphasis}</em>
{title.slice(title.indexOf(titleEmphasis) + titleEmphasis.length)}
</>
) : (
title
)
const onTabKey = (e: React.KeyboardEvent<HTMLDivElement>) => {
if (!['ArrowLeft', 'ArrowRight', 'Home', 'End'].includes(e.key)) return
e.preventDefault()
const next = e.key === 'Home' ? 'highlights' : e.key === 'End' ? 'notes' : view === 'highlights' ? 'notes' : 'highlights'
setView(next)
;(next === 'highlights' ? hRef : nRef).current?.focus()
}
const submit = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault()
if (disabled) return
const value = email.trim()
if (!value) {
setError(copy.errorEmpty)
inputRef.current?.focus()
return
}
if (!EMAIL_PATTERN.test(value)) {
setError(copy.errorInvalid)
inputRef.current?.focus()
return
}
setError(null)
onSubmit?.({ email: value })
}
const describedBy = [error ? ids.err : null, resource?.privacy ? ids.priv : null].filter(Boolean).join(' ') || undefined
return (
<section
className={['cf-podcast-episode-2', className].filter(Boolean).join(' ')}
data-force={force}
aria-labelledby={ids.title}
>
<style>{CSS}</style>
<div className='pe2-inner'>
<div className='pe2-player'>
{posterImage ? <img src={posterImage} alt={posterAlt} width={1600} height={900} /> : null}
<button type='button' className='pe2-play' disabled={disabled} onClick={() => onAction?.()}>
<span className='pe2-disc' aria-hidden='true'>
<Play size={20} strokeWidth={2.5} fill='currentColor' />
</span>
<span>{copy.play}</span>
{durationLabel ? <span className='pe2-dur'>· {durationLabel}</span> : null}
</button>
</div>
{guestName || guestRole || showName || episodeLabel ? (
<div className='pe2-guest'>
{guestImage ? (
<img className='pe2-portrait' src={guestImage} alt={guestImageAlt ?? guestName} width={128} height={128} />
) : null}
<div className='pe2-guest-text'>
{guestName ? <p className='pe2-guest-name'>{guestName}</p> : null}
{guestRole ? <p className='pe2-guest-role'>{guestRole}</p> : null}
</div>
{showName || episodeLabel ? (
<p className='pe2-meta'>
<Mic className='pe2-inline-ico' size={16} strokeWidth={2.5} aria-hidden='true' />
{[showName, episodeLabel].filter(Boolean).join(' · ')}
</p>
) : null}
</div>
) : null}
<h2 id={ids.title} className='pe2-title'>
{titleNode}
</h2>
{lead ? <p className='pe2-lead'>{lead}</p> : null}
{showToggle ? (
<div className='pe2-toggle' role='tablist' aria-label={copy.tablist} data-view={view} onKeyDown={onTabKey}>
<span className='pe2-thumb' aria-hidden='true' />
<button
ref={hRef}
type='button'
role='tab'
id={ids.tabH}
className='pe2-tab'
aria-selected={view === 'highlights'}
aria-controls={ids.panel}
tabIndex={view === 'highlights' ? 0 : -1}
onClick={() => setView('highlights')}
>
{copy.highlights}
</button>
<button
ref={nRef}
type='button'
role='tab'
id={ids.tabN}
className='pe2-tab'
aria-selected={view === 'notes'}
aria-controls={ids.panel}
tabIndex={view === 'notes' ? 0 : -1}
onClick={() => setView('notes')}
>
{copy.notes}
</button>
</div>
) : null}
{hasPanel ? (
<div
key={shown}
id={ids.panel}
className='pe2-panel'
role={showToggle ? 'tabpanel' : undefined}
aria-labelledby={showToggle ? (shown === 'highlights' ? ids.tabH : ids.tabN) : undefined}
>
{shown === 'highlights' ? (
<ol className='pe2-qa'>
{moments.map((m, i) => (
<li className='pe2-moment' key={i}>
<Stamp time={m.time} topic={m.question} label={copy.jump} disabled={disabled} onSeek={onSeek} />
<h3 className='pe2-q'>{m.question}</h3>
<p className='pe2-a'>
{who ? <span className='pe2-who'>{who}:</span> : null}
{m.answer}
</p>
</li>
))}
</ol>
) : (
<div className='pe2-notesview'>
{summary.map((p, i) => (
<p className='pe2-summary' key={i}>
{p}
</p>
))}
{notes.length > 0 ? (
<>
<h3 className='pe2-notes-h'>{copy.notesHeading}</h3>
<ol className='pe2-notes'>
{notes.map((n, i) => (
<li className='pe2-note' key={i}>
<Stamp time={n.time} topic={n.text} label={copy.jump} disabled={disabled} onSeek={onSeek} />
<span className='pe2-note-text'>{n.text}</span>
</li>
))}
</ol>
</>
) : null}
</div>
)}
</div>
) : null}
{resource ? (
<div className={hasPanel ? 'pe2-moment pe2-last' : 'pe2-moment'}>
{typeof resource.time === 'number' ? (
<Stamp time={resource.time} topic={resource.question} label={copy.jump} disabled={disabled} onSeek={onSeek} />
) : null}
<h3 className='pe2-q'>{resource.question}</h3>
<p className='pe2-a'>
{who ? <span className='pe2-who'>{who}:</span> : null}
{resource.answer}
</p>
<div className='pe2-card'>
<div className='pe2-card-head'>
{resource.image ? (
<img className='pe2-rimg' src={resource.image} alt={resource.imageAlt ?? ''} width={240} height={240} loading='lazy' />
) : null}
<div className='pe2-card-text'>
<h4 className='pe2-rname'>{resource.name}</h4>
{resource.reasonsLead ? <p className='pe2-rlead'>{resource.reasonsLead}</p> : null}
{resource.reasons && resource.reasons.length > 0 ? (
<ol className='pe2-reasons'>
{resource.reasons.map((r, i) => (
<li key={i}>
<span className='pe2-num' aria-hidden='true'>
{i + 1}
</span>
<span>{r}</span>
</li>
))}
</ol>
) : null}
</div>
</div>
<form className='pe2-form' noValidate onSubmit={submit}>
<label className='pe2-label' htmlFor={ids.email}>
{copy.emailLabel}
</label>
<div className='pe2-row'>
<input
ref={inputRef}
id={ids.email}
className='pe2-input'
type='email'
name='email'
autoComplete='email'
inputMode='email'
placeholder={copy.emailPlaceholder}
value={email}
disabled={disabled}
aria-invalid={error ? true : undefined}
aria-describedby={describedBy}
onChange={(e) => {
setEmail(e.target.value)
if (error) setError(null)
}}
/>
<button type='submit' className='pe2-btn' disabled={disabled}>
{resource.label}
</button>
</div>
{error ? (
<p id={ids.err} className='pe2-err' role='alert'>
<AlertCircle className='pe2-inline-ico' size={16} strokeWidth={2.5} aria-hidden='true' />
{error}
</p>
) : null}
{resource.privacy ? (
<p id={ids.priv} className='pe2-priv'>
<Lock className='pe2-inline-ico' size={16} strokeWidth={2.5} aria-hidden='true' />
{resource.privacy}
</p>
) : null}
</form>
</div>
</div>
) : null}
</div>
</section>
)
}
export default PodcastEpisode2
const DEFAULT_COPY: PodcastEpisode2Copy = {
play: 'Play the episode',
highlights: 'Read the highlights',
notes: 'Full show notes',
tablist: 'Choose how to read this episode',
jump: 'Play from {time}: {topic}',
notesHeading: 'Jump straight to the part you need',
emailLabel: 'Where should we send it?',
emailPlaceholder: 'you@example.com',
errorEmpty: 'Enter your email so we can send it to you.',
errorInvalid: 'That email looks incomplete. Check it and try again.',
}
const EMAIL_PATTERN = /^[^@ ]+@[^@ ]+[.][^@ .]+$/
function Stamp(p: { time: number; topic: string; label: string; disabled?: boolean; onSeek?: (seconds: number) => void }) {
const t = formatTime(p.time)
return (
<button
type='button'
className='pe2-ts'
disabled={p.disabled}
aria-label={fill(p.label, { time: t, topic: p.topic })}
onClick={() => p.onSeek?.(p.time)}
>
<Play className='pe2-ts-ico' size={16} strokeWidth={2.5} fill='currentColor' aria-hidden='true' />
<span>{t}</span>
</button>
)
}
function formatTime(seconds: number) {
const t = Math.max(0, Math.floor(seconds))
const h = Math.floor(t / 3600)
const m = Math.floor((t % 3600) / 60)
const ss = String(t % 60).padStart(2, '0')
return h > 0 ? `${h}:${String(m).padStart(2, '0')}:${ss}` : `${m}:${ss}`
}
function fill(template: string, values: Record<string, string>) {
return Object.keys(values).reduce((out, k) => out.split('{' + k + '}').join(values[k]), template)
}
const CSS = `
.cf-podcast-episode-2 {
--pe2-gutter: clamp(16px, 5vw, 48px);
--pe2-sh: var(--shadow, oklch(0.22 0.03 260));
--pe2-line: oklch(from var(--ink) l c h / 0.12);
--pe2-quiet: color-mix(in oklch, var(--ink) 6%, var(--surface));
--pe2-btn: var(--button-bg, var(--cta));
--pe2-btn-2: var(--button-bg-2, var(--cta-2));
position: relative;
background: var(--surface);
color: var(--ink);
font-family: var(--font-body);
padding: clamp(56px, 8vw, 112px) var(--pe2-gutter) clamp(64px, 8.5vw, 120px);
overflow-x: clip;
}
.cf-podcast-episode-2 *, .cf-podcast-episode-2 *::before, .cf-podcast-episode-2 *::after { box-sizing: border-box; }
.cf-podcast-episode-2 .pe2-inner { max-width: 52rem; margin: 0 auto; }
.cf-podcast-episode-2 .pe2-player {
position: relative;
aspect-ratio: 16 / 9;
border-radius: 12px;
overflow: hidden;
background: var(--band);
}
.cf-podcast-episode-2 .pe2-player img {
position: absolute; inset: 0;
width: 100%; height: 100%;
object-fit: cover; object-position: center 35%;
display: block;
}
.cf-podcast-episode-2 .pe2-player::after {
content: '';
position: absolute; inset: 0;
pointer-events: none;
background: linear-gradient(to top, oklch(from var(--band) l c h / 0.55), oklch(from var(--band) l c h / 0) 50%);
}
.cf-podcast-episode-2 :is(.pe2-play, .pe2-btn) {
display: inline-flex; align-items: center; justify-content: center;
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(--pe2-btn) calc(l + 0.04) c h), oklch(from var(--pe2-btn-2) calc(l - 0.02) c h));
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--pe2-btn) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--pe2-btn) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--pe2-sh) l c h / 0.35), 0 8px 16px -6px oklch(from var(--pe2-sh) l c h / 0.45));
cursor: pointer;
transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.cf-podcast-episode-2 :is(.pe2-play, .pe2-btn):hover:not(:disabled),
.cf-podcast-episode-2[data-force=hover] .pe2-play:not(:disabled) {
background: linear-gradient(oklch(from var(--pe2-btn) calc(l - 0.01) c h), oklch(from var(--pe2-btn-2) calc(l - 0.07) c h));
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--pe2-btn) calc(l + 0.12) c h / 0.7), inset 0 -3px 0 oklch(from var(--pe2-btn) calc(l - 0.18) c h), 0 1px 2px oklch(from var(--pe2-sh) l c h / 0.4), 0 12px 20px -8px oklch(from var(--pe2-sh) l c h / 0.5));
transform: translateY(-1px);
}
.cf-podcast-episode-2 :is(.pe2-play, .pe2-btn):active:not(:disabled),
.cf-podcast-episode-2[data-force=active] .pe2-play:not(:disabled) {
background: linear-gradient(oklch(from var(--pe2-btn) calc(l - 0.03) c h), oklch(from var(--pe2-btn-2) calc(l - 0.08) c h));
box-shadow: inset 0 2px 3px oklch(from var(--pe2-btn-2) calc(l - 0.2) c h / 0.45), inset 0 -2px 0 oklch(from var(--pe2-btn) calc(l - 0.16) c h), 0 1px 1px oklch(from var(--pe2-sh) l c h / 0.3);
transform: translateY(1px);
}
.cf-podcast-episode-2 .pe2-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cf-podcast-episode-2 .pe2-play:focus-visible { outline: 3px solid var(--card); outline-offset: 3px; }
.cf-podcast-episode-2 :is(.pe2-play, .pe2-btn):disabled {
background: var(--secondary);
color: var(--secondary-ink);
text-shadow: none;
box-shadow: var(--button-2-shadow, var(--shadow-sm));
cursor: not-allowed;
transform: none;
}
.cf-podcast-episode-2 .pe2-play {
position: absolute; z-index: 1;
left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px);
gap: 16px;
min-height: 72px;
padding: 0 28px 0 12px;
}
.cf-podcast-episode-2 .pe2-disc {
display: grid; place-items: center;
width: 48px; height: 48px; flex: 0 0 auto;
border-radius: 999px;
background: oklch(from var(--pe2-btn) calc(l - 0.1) c h);
box-shadow: inset 0 1px 0 oklch(from var(--pe2-btn) calc(l + 0.08) c h / 0.5);
}
.cf-podcast-episode-2 .pe2-disc svg { margin-left: 3px; }
.cf-podcast-episode-2 .pe2-play:disabled .pe2-disc { background: oklch(from var(--secondary) calc(l - 0.06) c h); box-shadow: none; }
.cf-podcast-episode-2 .pe2-dur { font-weight: 600; }
.cf-podcast-episode-2 .pe2-guest {
display: flex; flex-wrap: wrap; align-items: center;
gap: 12px 16px;
margin-top: 20px;
}
.cf-podcast-episode-2 .pe2-portrait {
width: 64px; height: 64px; flex: 0 0 auto;
border-radius: 12px;
object-fit: cover; object-position: center 25%;
display: block;
}
.cf-podcast-episode-2 .pe2-guest-text { flex: 1 1 200px; min-width: 0; }
.cf-podcast-episode-2 .pe2-guest-name {
margin: 0 0 4px;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.25;
}
.cf-podcast-episode-2 .pe2-guest-role { margin: 0; font-size: 0.9375rem; line-height: 1.4; font-weight: 500; color: var(--muted); }
.cf-podcast-episode-2 .pe2-meta { margin: 0 0 0 auto; font-size: 0.9375rem; line-height: 1.4; font-weight: 600; color: var(--muted); }
.cf-podcast-episode-2 .pe2-inline-ico { display: inline-block; vertical-align: -0.15em; margin-inline-end: 0.4em; }
.cf-podcast-episode-2 .pe2-title {
margin: clamp(32px, 4vw, 48px) 0 16px;
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;
}
.cf-podcast-episode-2 .pe2-em { font-style: normal; color: var(--accent); }
.cf-podcast-episode-2 .pe2-lead {
margin: 0 0 32px;
max-width: 64ch;
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
line-height: 1.4;
font-weight: 500;
text-wrap: pretty;
}
.cf-podcast-episode-2 .pe2-toggle {
position: relative;
display: inline-grid;
grid-template-columns: 1fr 1fr;
padding: 4px;
margin-bottom: clamp(16px, 2vw, 24px);
border-radius: calc(var(--radius, 12px) + 4px);
background: var(--pe2-quiet);
}
.cf-podcast-episode-2 .pe2-thumb {
position: absolute; top: 4px; bottom: 4px; left: 4px;
width: calc(50% - 4px);
border-radius: var(--radius, 12px);
background: var(--card);
border: 1px solid oklch(from var(--ink) l c h / 0.1);
box-shadow: var(--shadow-sm, 0 1px 2px oklch(from var(--pe2-sh) l c h / 0.2), 0 1px 3px oklch(from var(--pe2-sh) l c h / 0.14));
transition: transform .28s cubic-bezier(.2, .7, .2, 1);
}
.cf-podcast-episode-2 .pe2-toggle[data-view=notes] .pe2-thumb { transform: translateX(100%); }
.cf-podcast-episode-2 .pe2-tab {
position: relative; z-index: 1;
min-height: 48px;
padding: 0 24px;
border: 0;
border-radius: var(--radius, 12px);
background: transparent;
color: var(--ink);
font-family: var(--font-body);
font-size: 1rem;
font-weight: 600;
line-height: 1.2;
white-space: nowrap;
cursor: pointer;
transition: background .16s ease;
}
.cf-podcast-episode-2 .pe2-tab[aria-selected=true] { font-weight: 800; cursor: default; }
.cf-podcast-episode-2 .pe2-tab[aria-selected=false]:hover { background: color-mix(in oklch, var(--ink) 6%, transparent); }
.cf-podcast-episode-2 .pe2-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cf-podcast-episode-2 .pe2-panel { animation: pe2-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pe2-in { from { opacity: .82; transform: translateY(8px); } }
.cf-podcast-episode-2 .pe2-qa, .cf-podcast-episode-2 .pe2-notes { list-style: none; margin: 0; padding: 0; }
.cf-podcast-episode-2 .pe2-moment {
display: grid;
grid-template-columns: 6.5rem minmax(0, 1fr);
column-gap: 24px;
padding: clamp(24px, 3vw, 32px) 0;
}
.cf-podcast-episode-2 .pe2-qa .pe2-moment:first-child { padding-top: 16px; }
.cf-podcast-episode-2 .pe2-moment + .pe2-moment, .cf-podcast-episode-2 .pe2-last { border-top: 1px solid var(--pe2-line); }
.cf-podcast-episode-2 .pe2-moment > .pe2-ts { grid-column: 1; grid-row: 1 / span 2; align-self: start; justify-self: start; margin-top: -2px; }
.cf-podcast-episode-2 .pe2-q {
grid-column: 2;
margin: 0 0 12px;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
letter-spacing: -0.01em;
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1.15;
text-wrap: balance;
}
.cf-podcast-episode-2 .pe2-a {
grid-column: 2;
margin: 0;
max-width: 64ch;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.55;
text-wrap: pretty;
}
.cf-podcast-episode-2 .pe2-who { margin-inline-end: 0.35em; font-weight: 800; color: var(--accent); }
.cf-podcast-episode-2 .pe2-ts {
display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px;
min-width: 5.75rem;
min-height: 40px;
padding: 4px 14px 4px 12px;
border: 1px solid var(--button-2-border, transparent);
border-radius: 999px;
background: var(--button-2-bg, var(--secondary));
color: var(--button-2-ink, var(--secondary-ink));
font-family: var(--font-body);
font-size: 0.875rem;
font-weight: 800;
line-height: 1.2;
text-align: start;
font-variant-numeric: tabular-nums;
white-space: nowrap;
cursor: pointer;
transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.cf-podcast-episode-2 .pe2-ts-ico { color: var(--accent); flex: 0 0 auto; }
.cf-podcast-episode-2 .pe2-ts:hover:not(:disabled),
.cf-podcast-episode-2[data-force=hover] .pe2-qa .pe2-moment:first-child .pe2-ts:not(:disabled) {
background: color-mix(in oklch, var(--ink) 8%, var(--button-2-bg, var(--secondary)));
box-shadow: var(--button-2-shadow, var(--shadow-sm, 0 1px 2px oklch(from var(--pe2-sh) l c h / 0.2)));
transform: translateY(-1px);
}
.cf-podcast-episode-2 .pe2-ts:active:not(:disabled),
.cf-podcast-episode-2[data-force=active] .pe2-qa .pe2-moment:first-child .pe2-ts:not(:disabled) {
background: color-mix(in oklch, var(--ink) 14%, var(--button-2-bg, var(--secondary)));
box-shadow: none;
transform: translateY(1px);
}
.cf-podcast-episode-2 .pe2-ts:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 5px oklch(from var(--accent) l c h / 0.25); }
.cf-podcast-episode-2 .pe2-ts:disabled { cursor: not-allowed; }
.cf-podcast-episode-2 .pe2-ts:disabled .pe2-ts-ico { color: var(--muted); }
.cf-podcast-episode-2 .pe2-summary {
margin: 16px 0 0;
max-width: 64ch;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.55;
text-wrap: pretty;
}
.cf-podcast-episode-2 .pe2-notes-h {
margin: 32px 0 8px;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
letter-spacing: -0.01em;
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1.15;
text-wrap: balance;
}
.cf-podcast-episode-2 .pe2-note { display: flex; align-items: flex-start; gap: 16px; padding: 12px 0; }
.cf-podcast-episode-2 .pe2-note + .pe2-note { border-top: 1px solid var(--pe2-line); }
.cf-podcast-episode-2 .pe2-note .pe2-ts { flex: 0 0 auto; min-width: 5.75rem; }
.cf-podcast-episode-2 .pe2-note-text {
padding-top: 8px;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.45;
text-wrap: pretty;
}
.cf-podcast-episode-2 .pe2-card {
grid-column: 2;
margin-top: 24px;
padding: clamp(20px, 3vw, 32px);
background: var(--card);
color: var(--ink);
border: 1px solid oklch(from var(--accent) l c h / 0.32);
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--pe2-sh) l c h / 0.22), 0 12px 24px -8px oklch(from var(--pe2-sh) l c h / 0.32)));
}
.cf-podcast-episode-2 .pe2-card-head { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 24px; align-items: start; }
.cf-podcast-episode-2 .pe2-rimg {
width: 136px; height: 136px;
object-fit: contain;
display: block;
filter: drop-shadow(0 2px 3px oklch(from var(--pe2-sh) l c h / 0.3)) drop-shadow(0 10px 12px oklch(from var(--pe2-sh) l c h / 0.2));
}
.cf-podcast-episode-2 .pe2-card-text { min-width: 0; }
.cf-podcast-episode-2 .pe2-rname {
margin: 0 0 12px;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
letter-spacing: -0.01em;
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1.15;
text-wrap: balance;
}
.cf-podcast-episode-2 .pe2-rlead { margin: 0 0 12px; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.45; font-weight: 600; text-wrap: pretty; }
.cf-podcast-episode-2 .pe2-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cf-podcast-episode-2 .pe2-reasons li {
display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 8px; align-items: baseline;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.45;
text-wrap: pretty;
}
.cf-podcast-episode-2 .pe2-num {
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1;
font-variant-numeric: tabular-nums;
color: var(--accent);
}
.cf-podcast-episode-2 .pe2-form { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--pe2-line); }
.cf-podcast-episode-2 .pe2-label {
display: block;
margin-bottom: 8px;
font-size: 1.0625rem;
font-weight: 700;
line-height: 1.3;
color: var(--label-ink, var(--ink));
}
.cf-podcast-episode-2 .pe2-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.cf-podcast-episode-2 .pe2-input {
width: 100%;
height: 56px;
padding: 0 16px;
font-family: var(--font-body);
font-size: 1.0625rem;
background: var(--field, #ffffff);
color: var(--field-ink, #101828);
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-podcast-episode-2 .pe2-input::placeholder { color: color-mix(in oklch, var(--field-ink) 65%, var(--field)); opacity: 1; }
.cf-podcast-episode-2 .pe2-input: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); }
.cf-podcast-episode-2 .pe2-input[aria-invalid=true] { border-color: var(--danger); }
.cf-podcast-episode-2 .pe2-input[aria-invalid=true]:focus { box-shadow: 0 0 0 3px oklch(from var(--danger) l c h / 0.3); }
.cf-podcast-episode-2 .pe2-input:disabled { cursor: not-allowed; background: color-mix(in oklch, var(--ink) 4%, var(--field)); }
.cf-podcast-episode-2 .pe2-btn { min-height: 56px; padding: 0 28px; }
.cf-podcast-episode-2 .pe2-err { margin: 8px 0 0; font-size: 0.9375rem; line-height: 1.4; font-weight: 600; color: var(--danger); text-wrap: pretty; }
.cf-podcast-episode-2 .pe2-priv { margin: 12px 0 0; font-size: 0.9375rem; line-height: 1.4; font-weight: 500; color: var(--muted); text-wrap: pretty; }
@media (max-width: 640px) {
.cf-podcast-episode-2 .pe2-player { margin-inline: calc(-1 * var(--pe2-gutter)); border-radius: 0; aspect-ratio: 4 / 3; }
.cf-podcast-episode-2 .pe2-play { min-height: 64px; gap: 12px; padding: 0 22px 0 10px; }
.cf-podcast-episode-2 .pe2-disc { width: 44px; height: 44px; }
.cf-podcast-episode-2 .pe2-meta { margin-left: 0; flex-basis: 100%; }
.cf-podcast-episode-2 .pe2-toggle { display: grid; width: 100%; }
.cf-podcast-episode-2 .pe2-tab { font-size: 0.9375rem; padding: 0 8px; }
.cf-podcast-episode-2 .pe2-moment { display: flex; flex-direction: column; }
.cf-podcast-episode-2 .pe2-moment > .pe2-ts { align-self: flex-start; margin-bottom: 12px; }
.cf-podcast-episode-2 .pe2-card-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cf-podcast-episode-2 .pe2-rimg { width: 120px; height: 120px; }
.cf-podcast-episode-2 .pe2-form { padding-top: 20px; }
.cf-podcast-episode-2 .pe2-row { grid-template-columns: minmax(0, 1fr); }
.cf-podcast-episode-2 .pe2-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
.cf-podcast-episode-2 .pe2-panel { animation: none; }
.cf-podcast-episode-2 :is(.pe2-thumb, .pe2-tab, .pe2-ts, .pe2-btn, .pe2-play, .pe2-input) { transition: none; }
.cf-podcast-episode-2 :is(.pe2-ts, .pe2-btn, .pe2-play):is(:hover, :active) { transform: none; }
.cf-podcast-episode-2[data-force] .pe2-play, .cf-podcast-episode-2[data-force] .pe2-ts { transform: none; }
}
`
pieces/content/podcast-episode-2/specimen.tsx 85 lines
import __studioImage3b2bcc1e from "../assets/56c9b2c07770e6e5.webp";
import __studioImage4c37e754 from "../assets/2c39918311dbc3a3.webp";
import __studioImage0e980254 from "../assets/e6f677907d58e2de.webp";
import * as React from 'react'
import { PodcastEpisode2 } from '../podcast-episode-2'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
type State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export const states: State[] = ['default', 'hover', 'active', 'disabled', 'error']
export default function PodcastEpisode2Specimen({ state = 'default' }: { state?: State }) {
return (
<PodcastEpisode2
state={state}
posterImage={slot('scene', __studioImage3b2bcc1e)}
posterAlt='Coach Maya Torres recording the episode in her training studio'
showName='Strong After Forty'
episodeLabel='Episode 112'
durationLabel='48 min'
guestName='Coach Maya Torres'
guestShort='Maya'
guestRole='Strength coach for women and men over forty'
guestImage={slot('presenter', __studioImage4c37e754)}
guestImageAlt='Portrait of Coach Maya Torres'
title='How to get stronger after forty in three short sessions a week'
titleEmphasis='three short sessions a week'
lead='Coach Maya Torres explains why lifting heavier, not longer, changes how your body feels after forty, and gives you the weekly plan she hands every new client.'
moments={[
{
time: 252,
question: 'Is it too late to start lifting at forty-five?',
answer: 'Not even close. Your muscles still respond to load at forty-five, fifty-five and sixty-five. What changes is recovery, so we train hard, then we actually rest.',
},
{
time: 820,
question: 'Why do most people over forty stall?',
answer: 'They do long, easy workouts that never ask much of them. Twenty focused minutes with a weight that’s heavy for you beats an hour on autopilot.',
},
{
time: 1445,
question: 'What if my knees or back already hurt?',
answer: 'We pick movements your joints like, then build range slowly. Most of my clients find their knees feel better once their legs get stronger.',
},
{
time: 2130,
question: 'How do I know it’s working?',
answer: 'Track three numbers: the weight on your main lift, how you sleep, and how the stairs feel. If two of them are moving, you’re on track.',
},
]}
summary={[
'Host Dan Reyes sits down with Coach Maya Torres to talk about what really changes in strength training after forty, why shorter sessions win, and how to train around stiff knees and backs.',
'Maya also walks through a complete twenty-minute session and the three numbers she tracks with every client.',
]}
notes={[
{ time: 0, text: 'Why Maya stopped prescribing hour-long workouts' },
{ time: 252, text: 'Starting to lift at forty-five and beyond' },
{ time: 570, text: 'The difference between feeling tired and getting trained' },
{ time: 820, text: 'Why most people over forty stall, and the fix' },
{ time: 1195, text: 'Protein, sleep and the recovery day nobody takes' },
{ time: 1445, text: 'Training around sore knees and backs' },
{ time: 1810, text: 'A full twenty-minute session, set by set' },
{ time: 2130, text: 'The three numbers that show it’s working' },
{ time: 2658, text: 'Maya’s free plan for your first four weeks' },
]}
resource={{
time: 2658,
question: 'So where should someone start this week?',
answer: 'Three sessions of twenty minutes. I wrote the whole plan out so you never have to guess what to do on day one.',
name: 'The 20-Minute Strength Plan',
reasonsLead: 'Three reasons to grab it before your next workout:',
reasons: [
'Four weeks of sessions, written out set by set',
'A joint-friendly swap for every main lift',
'A one-page tracker for your three numbers',
],
image: slot('item-1', __studioImage0e980254),
imageAlt: 'The 20-Minute Strength Plan workbook beside a kettlebell',
label: 'Send me the plan',
privacy: defaults.sample.registration.privacy,
}}
/>
)
}
| Name | Type | Details |
|---|---|---|
posterImage OptionalPodcastEpisode2 |
string |
|
posterAlt OptionalPodcastEpisode2 |
string |
|
showName OptionalPodcastEpisode2 |
string |
|
episodeLabel OptionalPodcastEpisode2 |
string |
|
durationLabel OptionalPodcastEpisode2 |
string |
|
guestName OptionalPodcastEpisode2 |
string |
|
guestShort OptionalPodcastEpisode2 |
string |
|
guestRole OptionalPodcastEpisode2 |
string |
|
guestImage OptionalPodcastEpisode2 |
string |
|
guestImageAlt OptionalPodcastEpisode2 |
string |
|
title OptionalPodcastEpisode2 |
React.ReactNode |
|
titleEmphasis OptionalPodcastEpisode2 |
string |
|
lead OptionalPodcastEpisode2 |
React.ReactNode |
|
moments OptionalPodcastEpisode2 |
InterviewMoment[] |
|
summary OptionalPodcastEpisode2 |
React.ReactNode[] |
|
notes OptionalPodcastEpisode2 |
ShowNote[] |
|
resource OptionalPodcastEpisode2 |
GuestResource |
|
defaultView OptionalPodcastEpisode2 |
'highlights' | 'notes' |
|
copy OptionalPodcastEpisode2 |
Partial<PodcastEpisode2Copy> |
|
onAction OptionalPodcastEpisode2 |
() => void |
|
onSeek OptionalPodcastEpisode2 |
(seconds: number) => void |
|
onSubmit OptionalPodcastEpisode2 |
(values: { email: string }) => void |
|
state OptionalPodcastEpisode2 |
'default' | 'hover' | 'active' | 'disabled' | 'error' |
|
className OptionalPodcastEpisode2 |
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-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.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
presenter- A photo of the host, coach or founder.
scene- A wide atmosphere photo behind or beside the copy.
-
2c39918311dbc3a3.webp
image/webp · 59.5 KB
-
56c9b2c07770e6e5.webp
image/webp · 83.2 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
e6f677907d58e2de.webp
image/webp · 207 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB