Summit Schedule 1
Summit day planner: visitors star the talks they want on each day’s route, watch “My plan” fill up beside the register button, then register to keep it. Commitment first, then the ask.
Use it in a prompt
Use content/summit-schedule 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/summit-schedule.tsx. - Import it and pass your copy and images (Props tab):
import { SummitSchedule } from "@/components/funneldna/content/summit-schedule"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/summit-schedule/component.tsx 651 lines
// layout: route-map
// Summit day planner: visitors star the talks they want on each day’s route, watch “My plan” fill up beside the register button, then register to keep it. Commitment first, then the ask.
import * as React from 'react'
import { CalendarX, Flag, Globe, Star, X } from 'lucide-react'
import { FX_HOST, Spot, Texture } from '../fx/fx'
import topo from '../fx/textures/topo'
import calendar from '../fx/spots/calendar'
export type SummitSpeaker = {
id: string
name: string
/** Plain-text credential shown under the name */
credential: string
/** Portrait image (presenter / speaker slot from the page) */
image?: string
imageAlt?: string
}
export type SummitSession = {
id: string
/** ISO 8601 start with offset (e.g. 2027-03-09T15:00:00Z); shown in the visitor’s own time zone */
start: string
/** Length in minutes, shown beside the time */
minutes?: number
/** The talk title, written as a curiosity gap */
title: string
/** id of the speaker in `speakers` */
speakerId: string
}
export type SummitDay = {
id: string
/** Event date, YYYY-MM-DD (shown on the tab) */
date: string
/** Replaces the generated “Day {n}” tab label */
label?: string
/** The day’s promise, shown above its sessions */
title?: string
sessions: SummitSession[]
}
export type SummitScheduleCopy = {
/** {n} = day number */
dayLabel: string
tablist: string
/** {count} */
tabCount: string
/** {zone} = the visitor’s own time zone name */
localZone: string
/** {zone} = the event zone, shown until the visitor’s zone is read */
eventZone: string
/** {title} */
addStar: string
/** {title} */
removeStar: string
/** {minutes} */
minutes: string
emptyDay: string
emptyDayHint: string
/** {day} */
dayEnd: string
/** {day} = the next day */
nextDay: string
lastDayEnd: string
planTitle: string
planEmpty: string
/** {day} {time} */
planItem: string
/** {title} */
removeItem: string
countLabel: string
/** {count} */
countAnnounce: string
/** {name} */
speakerAlt: string
}
export type SummitScheduleProps = {
headline?: string
/** Phrase inside the headline that gets the marker stroke */
headlineMark?: string
lead?: string
/** Italic aside in the host’s voice, after the lead */
aside?: string
days?: SummitDay[]
speakers?: SummitSpeaker[]
/** IANA zone used until the visitor’s own zone is read */
eventTimeZone?: string
/** Register button label */
label?: string
/** One reassurance line under the register button */
note?: string
/** Session ids starred on first render */
initialPlan?: string[]
href?: string
/** Called with the starred session ids, in schedule order */
onAction?: (plan: string[]) => void
disabled?: boolean
state?: 'default' | 'hover' | 'active' | 'disabled'
copy?: Partial<SummitScheduleCopy>
className?: string
}
export function SummitSchedule(props: SummitScheduleProps) {
const {
headline = 'Star the sessions you can’t miss, then save your seat',
headlineMark = 'can’t miss',
lead = 'Build your own plan for the summit. Every session you star stays in your plan when you register.',
aside = '',
days = [],
speakers = [],
eventTimeZone = 'UTC',
label = 'Save My Seat',
note = 'Your plan is saved with your seat.',
initialPlan,
href,
onAction,
disabled = false,
state = 'default',
copy: copyProp,
className,
} = props
const copy: SummitScheduleCopy = { ...DEFAULT_COPY, ...copyProp }
const uid = React.useId()
const [activeRaw, setActive] = React.useState(0)
const [plan, setPlan] = React.useState<string[]>(() => initialPlan ?? [])
const [touched, setTouched] = React.useState(false)
const [zone, setZone] = React.useState({ tz: eventTimeZone, local: false })
const tabRefs = React.useRef<Array<HTMLButtonElement | null>>([])
const schedRef = React.useRef<HTMLDivElement>(null)
const planHeadRef = React.useRef<HTMLHeadingElement>(null)
React.useEffect(() => {
try {
const tz = Intl.DateTimeFormat().resolvedOptions().timeZone
if (tz) setZone({ tz, local: true })
} catch {
// keep the event zone
}
}, [])
const speakerById = React.useMemo(() => new Map(speakers.map((s) => [s.id, s])), [speakers])
const last = days.length - 1
const active = days.length ? Math.min(activeRaw, last) : 0
const day = days[active]
const dayName = (i: number) => days[i]?.label ?? fill(copy.dayLabel, { n: i + 1 })
const firstStart = days.find((d) => d.sessions.length > 0)?.sessions[0]?.start
const zoneLabel = fill(zone.local ? copy.localZone : copy.eventZone, { zone: zoneName(zone.tz, firstStart) })
const picked = days.flatMap((d, di) => d.sessions.filter((s) => plan.includes(s.id)).map((s) => ({ s, di })))
const count = picked.length
const isDisabled = disabled || state === 'disabled'
const force = state === 'hover' ? ' is-hover' : state === 'active' ? ' is-active' : ''
const countId = `${uid}-count`
const toggle = (id: string) => {
setTouched(true)
setPlan((p) => (p.includes(id) ? p.filter((x) => x !== id) : [...p, id]))
}
const removeFromPlan = (id: string) => {
toggle(id)
planHeadRef.current?.focus()
}
const focusTab = (i: number) => {
setActive(i)
const tab = tabRefs.current[i]
tab?.focus()
tab?.scrollIntoView({ block: 'nearest', inline: 'nearest' })
}
const onTabKey = (e: React.KeyboardEvent<HTMLButtonElement>, i: number) => {
const next =
e.key === 'ArrowRight' ? (i === last ? 0 : i + 1)
: e.key === 'ArrowLeft' ? (i === 0 ? last : i - 1)
: e.key === 'Home' ? 0
: e.key === 'End' ? last
: -1
if (next < 0) return
e.preventDefault()
focusTab(next)
}
const goToDay = (i: number) => {
setActive(i)
tabRefs.current[i]?.focus({ preventScroll: true })
const reduce = typeof window !== 'undefined' && window.matchMedia('(prefers-reduced-motion: reduce)').matches
schedRef.current?.scrollIntoView({ block: 'start', behavior: reduce ? 'auto' : 'smooth' })
}
const register = (e: React.MouseEvent<HTMLElement>) => {
if (isDisabled) {
e.preventDefault()
return
}
onAction?.(picked.map((p) => p.s.id))
}
const registerButton =
href && !isDisabled ? (
<a className={'ss-cta' + force} href={href} onClick={register} aria-describedby={countId}>
{label}
</a>
) : (
<button type='button' className={'ss-cta' + force} onClick={register} disabled={isDisabled} aria-describedby={countId}>
{label}
</button>
)
const nextDayButton = (i: number) => (
<button type='button' className='ss-btn2' onClick={() => goToDay(i)}>
{fill(copy.nextDay, { day: dayName(i) })}
</button>
)
return (
<section
className={'cf-summit-schedule' + (className ? ' ' + className : '')}
style={{ ...FX_HOST, overflow: 'clip' }}
aria-labelledby={`${uid}-h`}
>
<style>{CSS}</style>
<Texture src={topo} tone='ink' />
<div className='ss-inner'>
<header className='ss-head'>
<h2 id={`${uid}-h`} className='ss-h'>{marked(headline, headlineMark)}</h2>
{(lead || aside) && (
<p className='ss-lead'>
{lead}
{aside ? <> <em className='ss-aside'>{aside}</em></> : null}
</p>
)}
</header>
<div className='ss-wrap'>
<div className='ss-grid'>
<div className='ss-sched' ref={schedRef}>
{days.length > 0 && (
<div className='ss-tabs' role='tablist' aria-label={copy.tablist}>
{days.map((d, i) => {
const n = d.sessions.filter((s) => plan.includes(s.id)).length
const selected = i === active
return (
<button
key={d.id}
ref={(el) => {
tabRefs.current[i] = el
}}
type='button'
role='tab'
id={`${uid}-tab-${i}`}
aria-selected={selected}
aria-controls={`${uid}-panel`}
tabIndex={selected ? 0 : -1}
className='ss-tab'
onClick={() => setActive(i)}
onKeyDown={(e) => onTabKey(e, i)}
>
<span className='ss-tab-top'>
<span className='ss-tab-day'>{dayName(i)}</span>
{n > 0 && (
<span className='ss-tab-count' key={n} aria-hidden='true'>
{n}
</span>
)}
</span>
<span className='ss-tab-date'>{dateLabel(d.date)}</span>
{n > 0 && <span className='ss-sr'>{fill(copy.tabCount, { count: n })}</span>}
</button>
)
})}
</div>
)}
<div
className='ss-panel'
role={day ? 'tabpanel' : undefined}
id={`${uid}-panel`}
aria-labelledby={day ? `${uid}-tab-${active}` : undefined}
>
{day && (
<div className='ss-dayhead'>
<h3 className='ss-dayt'>{day.title ?? dayName(active)}</h3>
<p className='ss-zone'>
<Globe className='ss-ico' size={16} strokeWidth={2.5} aria-hidden />
{zoneLabel}
</p>
</div>
)}
{day && day.sessions.length > 0 ? (
<ol className='ss-route' key={day.id}>
{day.sessions.map((s, i) => {
const sp = speakerById.get(s.speakerId)
const on = plan.includes(s.id)
const t = clock(s.start, zone.tz)
return (
<li
key={s.id}
className={'ss-row' + (on ? ' is-on' : '')}
style={{ animationDelay: `${Math.min(i * 0.07, 0.28)}s` }}
>
<div className='ss-time'>
<time dateTime={s.start}>
<span className='ss-clock'>{t.clock}</span>
{t.period && <span className='ss-period'>{t.period}</span>}
</time>
<span className='ss-meta'>
{[t.zone, s.minutes ? fill(copy.minutes, { minutes: s.minutes }) : ''].filter(Boolean).join(' · ')}
</span>
</div>
<div className='ss-node'>
<button
type='button'
className='ss-star'
aria-pressed={on}
aria-label={fill(on ? copy.removeStar : copy.addStar, { title: s.title })}
onClick={() => toggle(s.id)}
>
<Star size={20} strokeWidth={2.5} aria-hidden />
</button>
</div>
<div className={'ss-main' + (sp ? '' : ' no-sp')}>
{sp?.image ? (
<img
className='ss-thumb'
src={sp.image}
alt={sp.imageAlt ?? fill(copy.speakerAlt, { name: sp.name })}
width={56}
height={56}
loading='lazy'
decoding='async'
/>
) : sp ? (
<span className='ss-thumb ss-initials' aria-hidden='true'>
{initials(sp.name)}
</span>
) : null}
<h4 className='ss-title'>{s.title}</h4>
{sp && (
<p className='ss-speaker'>
<span className='ss-name'>{sp.name}</span>
{sp.credential && <span className='ss-cred'>{sp.credential}</span>}
</p>
)}
</div>
</li>
)
})}
<li className='ss-row ss-end' style={{ animationDelay: `${Math.min(day.sessions.length * 0.07, 0.28)}s` }}>
<div className='ss-time' aria-hidden='true' />
<div className='ss-node'>
<span className='ss-flag'>
<Flag size={20} strokeWidth={2.5} aria-hidden />
</span>
</div>
<div className='ss-main'>
<p className='ss-endtext'>
{active < last ? fill(copy.dayEnd, { day: dayName(active) }) : copy.lastDayEnd}
</p>
{active < last && nextDayButton(active + 1)}
</div>
</li>
</ol>
) : (
<div className='ss-empty' key={day?.id ?? 'none'}>
<CalendarX className='ss-empty-ico' size={24} strokeWidth={2.5} aria-hidden />
<p className='ss-empty-t'>{copy.emptyDay}</p>
<p className='ss-empty-h'>{copy.emptyDayHint}</p>
{day && active < last && nextDayButton(active + 1)}
</div>
)}
</div>
</div>
<aside className='ss-plan' aria-labelledby={`${uid}-plan`}>
<div className='ss-plan-head'>
<h3 id={`${uid}-plan`} className='ss-plan-t' ref={planHeadRef} tabIndex={-1}>
{copy.planTitle}
</h3>
<span className={'ss-count' + (count ? ' has' : '')} aria-hidden='true'>
<Star size={16} strokeWidth={2.5} aria-hidden />
<b key={count}>{count}</b>
<span className='ss-count-label'>{copy.countLabel}</span>
</span>
</div>
{count > 0 ? (
<ol className='ss-plan-list'>
{picked.map(({ s, di }) => {
const t = clock(s.start, zone.tz)
return (
<li key={s.id} className='ss-plan-item'>
<div>
<p className='ss-plan-when'>
{fill(copy.planItem, { day: dayName(di), time: [t.clock, t.period, t.zone].filter(Boolean).join(' ') })}
</p>
<p className='ss-plan-title'>{s.title}</p>
</div>
<button
type='button'
className='ss-x'
aria-label={fill(copy.removeItem, { title: s.title })}
onClick={() => removeFromPlan(s.id)}
>
<X size={16} strokeWidth={2.5} aria-hidden />
</button>
</li>
)
})}
</ol>
) : (
<div className='ss-plan-empty'>
<Spot src={calendar} size={64} />
<p>{copy.planEmpty}</p>
</div>
)}
<div className='ss-reg'>{registerButton}</div>
{note && <p className='ss-note'>{note}</p>}
</aside>
</div>
</div>
<span id={countId} className='ss-sr'>{fill(copy.countAnnounce, { count })}</span>
<p className='ss-sr' aria-live='polite'>{touched ? fill(copy.countAnnounce, { count }) : ''}</p>
</div>
</section>
)
}
export default SummitSchedule
const DEFAULT_COPY: SummitScheduleCopy = {
dayLabel: 'Day {n}',
tablist: 'Summit days',
tabCount: '{count} in my plan',
localZone: 'Times in your time zone: {zone}',
eventZone: 'Times shown in {zone}',
addStar: 'Add “{title}” to my plan',
removeStar: 'Remove “{title}” from my plan',
minutes: '{minutes} min',
emptyDay: 'No sessions on this day yet.',
emptyDayHint: 'Star sessions on another day to build your plan.',
dayEnd: 'That’s {day}. Your plan keeps going.',
nextDay: 'See {day} sessions',
lastDayEnd: 'That’s the whole summit. Save your seat to keep your plan.',
planTitle: 'My plan',
planEmpty: 'Tap the star beside any session and it lands here.',
planItem: '{day} · {time}',
removeItem: 'Remove “{title}” from my plan',
countLabel: 'in my plan',
countAnnounce: '{count} in my plan',
speakerAlt: 'Portrait of {name}',
}
function fill(template: string, vars: Record<string, string | number>) {
let out = template
for (const [k, v] of Object.entries(vars)) out = out.split('{' + k + '}').join(String(v))
return out
}
function marked(text: string, mark?: string) {
if (!mark) return text
const i = text.indexOf(mark)
if (i < 0) return text
return (
<>
{text.slice(0, i)}
<span className='ss-mark'>{mark}</span>
{text.slice(i + mark.length)}
</>
)
}
function initials(name: string) {
return name
.split(' ')
.filter(Boolean)
.slice(0, 2)
.map((w) => w[0])
.join('')
.toUpperCase()
}
function clock(iso: string, timeZone: string) {
const d = new Date(iso)
if (Number.isNaN(d.getTime())) return { clock: iso, period: '', zone: '' }
const run = (tz: string) =>
new Intl.DateTimeFormat(undefined, { hour: 'numeric', minute: '2-digit', timeZone: tz, timeZoneName: 'short' }).formatToParts(d)
let parts: Intl.DateTimeFormatPart[]
try {
parts = run(timeZone)
} catch {
parts = run('UTC')
}
let c = ''
let period = ''
let zone = ''
for (const p of parts) {
if (p.type === 'dayPeriod') period = p.value
else if (p.type === 'timeZoneName') zone = p.value
else c += p.value
}
return { clock: c.trim(), period, zone }
}
function zoneName(timeZone: string, iso?: string) {
const parsed = iso ? new Date(iso) : new Date()
const d = Number.isNaN(parsed.getTime()) ? new Date() : parsed
try {
const part = new Intl.DateTimeFormat(undefined, { timeZone, timeZoneName: 'long' })
.formatToParts(d)
.find((p) => p.type === 'timeZoneName')
return part?.value ?? timeZone
} catch {
return timeZone
}
}
function dateLabel(date: string) {
const d = new Date(`${date}T12:00:00Z`)
if (Number.isNaN(d.getTime())) return date
try {
return new Intl.DateTimeFormat(undefined, { weekday: 'short', month: 'short', day: 'numeric', timeZone: 'UTC' }).format(d)
} catch {
return date
}
}
const P = '.cf-summit-schedule'
const EASE = 'cubic-bezier(.2,.7,.2,1)'
const CTA_HOVER =
'background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - 0.01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + 0.1) c h / 0.6),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.2) c h),0 1px 2px oklch(from var(--ss-shadow) l c h / 0.34),0 10px 18px -6px oklch(from var(--ss-shadow) l c h / 0.5));transform:translateY(-1px)'
const CTA_ACTIVE =
'background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.09) c h));box-shadow:inset 0 2px 4px oklch(from var(--ss-shadow) l c h / 0.35),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.18) c h);transform:translateY(1px)'
const CSS = `
${P}{--ss-marker:color-mix(in oklch,var(--marker,#fae37c) 80%,transparent);--ss-shadow:var(--shadow,oklch(0.22 0.03 260));position:relative;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) 0 clamp(64px,8.5vw,120px)}
${P},${P} *,${P} *::before,${P} *::after{box-sizing:border-box}
${P} :where(h2,h3,h4,p,ol){margin:0}
${P} :where(ol){padding:0;list-style:none}
${P} .ss-inner{position:relative;z-index:1;max-width:calc(1120px + 2 * clamp(16px,5vw,48px));margin:0 auto;padding-inline:clamp(16px,5vw,48px)}
${P} .ss-head{max-width:46rem;margin-bottom:clamp(32px,4vw,48px);animation:cf-ss-rise .45s ${EASE} both}
${P} .ss-h{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(--ink)}
${P} .ss-mark{background-image:linear-gradient(var(--ss-marker),var(--ss-marker));background-repeat:no-repeat;background-size:100% .56em;background-position:0 92%;padding:0 .1em;margin:0 -.04em;border-radius:.18em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
${P} .ss-lead{margin-top:16px;max-width:64ch;font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
${P} .ss-aside{font-style:italic;color:var(--ink)}
${P} .ss-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:32px;align-items:start}
${P} .ss-sched{min-width:0;scroll-margin-top:16px;background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / 0.12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-md));padding:clamp(12px,1.6vw,16px)}
${P} .ss-tabs{display:flex;gap:4px;padding:4px;border-radius:12px;background:color-mix(in oklch,var(--ink) 5%,var(--card));overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
${P} .ss-tabs::-webkit-scrollbar{display:none}
${P} .ss-tab{flex:1 1 0;min-width:132px;scroll-snap-align:start;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-height:64px;padding:8px 14px;border:0;border-radius:9px;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background-color .16s ease,box-shadow .16s ease}
${P} .ss-tab[aria-selected='true']{background:var(--card);box-shadow:var(--shadow-sm)}
@media (hover:hover){${P} .ss-tab[aria-selected='false']:hover{background:color-mix(in oklch,var(--ink) 6%,transparent)}}
${P} .ss-tab-top{display:flex;align-items:center;gap:8px}
${P} .ss-tab-day{font-family:var(--font-display);font-weight:700;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.15;white-space:nowrap}
${P} .ss-tab[aria-selected='true'] .ss-tab-day{font-weight:800;color:var(--accent)}
${P} .ss-tab-date{font-size:.875rem;font-weight:700;line-height:1.2;white-space:nowrap}
${P} .ss-tab[aria-selected='true'] .ss-tab-date{color:var(--muted)}
${P} .ss-tab-count{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 8px;border-radius:999px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));font-size:.875rem;font-weight:800;line-height:1;font-variant-numeric:tabular-nums;animation:cf-ss-pop .3s ${EASE} both}
${P} .ss-dayhead{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px;padding:24px 12px 12px}
${P} .ss-dayt{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:-0.01em;text-wrap:balance}
${P} .ss-zone{font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted);text-wrap:pretty}
${P} .ss-ico{display:inline-block;vertical-align:-0.18em;margin-inline-end:.4em}
${P} .ss-route{padding:4px 0}
${P} .ss-row{--nt:16px;position:relative;display:grid;grid-template-columns:112px 44px minmax(0,1fr);grid-template-areas:'time node main';column-gap:16px;padding-inline:12px;border-radius:10px;transition:background-color .16s ease;animation:cf-ss-rise .45s ${EASE} both}
${P} .ss-row.is-on{background:color-mix(in oklch,var(--accent) 9%,var(--card))}
@media (hover:hover){${P} .ss-row:not(.ss-end):not(.is-on):hover{background:color-mix(in oklch,var(--ink) 3%,var(--card))}${P} .ss-row.is-on:hover{background:color-mix(in oklch,var(--accent) 13%,var(--card))}}
${P} .ss-row.is-on .ss-meta,${P} .ss-row.is-on .ss-cred{color:color-mix(in oklch,var(--muted) 65%,var(--ink))}
${P} .ss-time{grid-area:time;display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:0;padding:calc(var(--nt) + 8px) 0 20px;text-align:right}
${P} .ss-time time{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap;color:var(--ink)}
${P} .ss-clock{font-family:var(--font-display);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;font-variant-numeric:tabular-nums}
${P} .ss-period{font-family:var(--font-display);font-weight:800;font-size:.875rem;line-height:1}
${P} .ss-meta{font-size:.875rem;font-weight:700;line-height:1.2;color:var(--muted);white-space:nowrap}
${P} .ss-node{grid-area:node;position:relative;display:flex;justify-content:center;align-items:flex-start;padding-top:var(--nt)}
${P} .ss-node::before{content:'';position:absolute;top:0;bottom:0;left:calc(50% - 1px);width:2px;background:oklch(from var(--ink) l c h / 0.14)}
${P} .ss-row.is-on .ss-node::before{background:var(--accent-fill,var(--accent))}
${P} .ss-row:first-child .ss-node::before{top:calc(var(--nt) + 22px)}
${P} .ss-end .ss-node::before{bottom:auto;height:calc(var(--nt) + 22px)}
${P} .ss-row:first-child.ss-end .ss-node::before{display:none}
${P} .ss-star{position:relative;z-index:1;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1.5px solid oklch(from var(--ink) l c h / 0.2);border-radius:999px;background:var(--card);color:var(--muted);box-shadow:var(--shadow-sm);cursor:pointer;transition:transform .16s ease,background-color .16s ease,color .16s ease,border-color .16s ease}
@media (hover:hover){${P} .ss-star:not([aria-pressed='true']):hover{color:var(--ink);border-color:oklch(from var(--ink) l c h / 0.42);transform:scale(1.06)}${P} .ss-star[aria-pressed='true']:hover{background:oklch(from var(--accent-fill,var(--accent)) calc(l - 0.05) c h)}}
${P} .ss-star:active{transform:scale(.94)}
${P} .ss-star[aria-pressed='true']{border-color:transparent;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
${P} .ss-star[aria-pressed='true'] svg{fill:currentColor;animation:cf-ss-pop .3s ${EASE} both}
${P} .ss-flag{position:relative;z-index:1;display:grid;place-items:center;width:44px;height:44px;border-radius:999px;background:color-mix(in oklch,var(--ink) 7%,var(--card));color:var(--ink)}
${P} .ss-main{grid-area:main;display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-areas:'thumb title' 'thumb speaker';column-gap:16px;row-gap:8px;align-content:start;align-items:start;min-width:0;padding:calc(var(--nt) + 4px) 0 20px}
${P} .ss-main.no-sp{grid-template-columns:minmax(0,1fr);grid-template-areas:'title'}
${P} .ss-end .ss-main{display:flex;flex-direction:column;align-items:flex-start;gap:0;padding-top:calc(var(--nt) + 10px)}
${P} .ss-endtext{font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:700;line-height:1.4;text-wrap:pretty}
${P} .ss-thumb{grid-area:thumb;display:block;width:56px;height:56px;border-radius:8px;object-fit:cover;object-position:50% 25%}
${P} .ss-initials{display:grid;place-items:center;background:color-mix(in oklch,var(--ink) 7%,var(--card));color:var(--ink);font-family:var(--font-display);font-weight:800;font-size:.875rem}
${P} .ss-title{grid-area:title;min-width:0;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.25;letter-spacing:-0.01em;text-wrap:balance;color:var(--ink)}
${P} .ss-speaker{grid-area:speaker;min-width:0;font-size:.9375rem;line-height:1.4;text-wrap:pretty}
${P} .ss-name{display:block;font-weight:700;color:var(--ink)}
${P} .ss-cred{display:block;color:var(--muted)}
${P} .ss-btn2{display:inline-flex;align-items:center;justify-content:flex-start;min-height:56px;margin-top:16px;padding:0 24px;border:1px solid var(--button-2-border,transparent);border-radius:var(--button-radius,var(--radius,12px));background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));box-shadow:var(--button-2-shadow,var(--shadow-sm));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:1.0625rem;line-height:1.15;text-align:left;white-space:nowrap;cursor:pointer;transition:background-color .16s ease,transform .16s ease}
${P} .ss-empty .ss-btn2{justify-content:center;text-align:center}
@media (hover:hover){${P} .ss-btn2:hover{background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.04) c h)}}
${P} .ss-btn2:active{transform:translateY(1px)}
${P} .ss-empty{margin:4px 0;padding:36px 20px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card));text-align:center;animation:cf-ss-rise .45s ${EASE} both}
${P} .ss-empty-ico{display:block;margin:0 auto 12px;color:var(--muted)}
${P} .ss-empty-t{font-size:1.0625rem;font-weight:700;line-height:1.4}
${P} .ss-empty-h{margin-top:4px;font-size:.9375rem;line-height:1.4;color:var(--muted);text-wrap:pretty}
${P} .ss-plan{position:sticky;top:24px;min-width:0;background:var(--card);color:var(--ink);border:1px solid color-mix(in oklch,var(--accent) 30%,var(--card));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg));padding:clamp(20px,2.4vw,28px)}
${P} .ss-plan-head{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;margin-bottom:16px}
${P} .ss-plan-t{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:-0.01em;outline:none}
${P} .ss-plan-item{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:start;padding:12px 0;border-top:1px solid oklch(from var(--ink) l c h / 0.1);animation:cf-ss-rise .45s ${EASE} both}
${P} .ss-plan-item:first-child{border-top:0;padding-top:4px}
${P} .ss-plan-when{font-size:.875rem;font-weight:800;line-height:1.3;color:var(--muted);font-variant-numeric:tabular-nums}
${P} .ss-plan-title{margin-top:4px;font-size:1.0625rem;font-weight:700;line-height:1.35;text-wrap:pretty}
${P} .ss-x{display:grid;place-items:center;width:44px;height:44px;margin-top:-6px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--muted);cursor:pointer;transition:background-color .16s ease,color .16s ease}
@media (hover:hover){${P} .ss-x:hover{background:var(--danger-soft);color:var(--danger)}}
${P} .ss-plan-empty{display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px 20px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card));font-size:.9375rem;font-weight:600;line-height:1.4;text-align:center;text-wrap:pretty}
${P} .ss-reg{display:grid;margin-top:24px}
${P} .ss-note{margin-top:12px;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
${P} .ss-cta{display:inline-flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:64px;padding:12px 24px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + 0.04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.16) c h),0 1px 2px oklch(from var(--ss-shadow) l c h / 0.3),0 8px 16px -6px oklch(from var(--ss-shadow) l c h / 0.42));color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-wrap:balance;text-decoration:none;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
@media (hover:hover){${P} .ss-cta:hover:not(:disabled){${CTA_HOVER}}}
${P} .ss-cta.is-hover:not(:disabled){${CTA_HOVER}}
${P} .ss-cta:active:not(:disabled),${P} .ss-cta.is-active:not(:disabled){${CTA_ACTIVE}}
${P} .ss-cta:disabled{cursor:not-allowed;background:var(--secondary);color:color-mix(in oklch,var(--secondary-ink) 72%,var(--secondary));box-shadow:var(--button-2-shadow,var(--shadow-sm));text-shadow:none;transform:none}
${P} .ss-count{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;min-height:32px;padding:4px 12px;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--card));color:var(--ink);font-size:.875rem;font-weight:800;line-height:1.2;white-space:nowrap}
${P} .ss-count svg{flex:0 0 auto;color:var(--muted)}
${P} .ss-count.has svg{color:var(--accent-fill,var(--accent));fill:currentColor}
${P} .ss-count b{display:inline-block;font-family:var(--font-display);font-weight:800;font-size:1rem;line-height:1;font-variant-numeric:tabular-nums;animation:cf-ss-pop .3s ${EASE} both}
${P} .ss-count-label{font-weight:800}
${P} .ss-tab:focus-visible,${P} .ss-star:focus-visible,${P} .ss-btn2:focus-visible,${P} .ss-cta:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / 0.6);outline-offset:3px}
${P} .ss-tab:focus-visible{outline-offset:-3px}
${P} .ss-x:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / 0.6);outline-offset:-3px}
${P} .ss-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media (min-width:1080px){${P} .ss-plan-list{max-height:min(44vh,420px);overflow-y:auto;overscroll-behavior:contain}}
@media (max-width:1079px){
${P} .ss-grid{grid-template-columns:minmax(0,1fr);gap:24px}
${P} .ss-plan{position:static}
}
@media (max-width:639px){
${P} .ss-row{--nt:12px;grid-template-columns:44px minmax(0,1fr);grid-template-areas:'node time' 'node main';column-gap:12px;padding-inline:6px}
${P} .ss-time{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:calc(var(--nt) + 8px) 0 0;text-align:left}
${P} .ss-main{grid-template-columns:40px minmax(0,1fr);grid-template-areas:'title title' 'thumb speaker';column-gap:12px;row-gap:10px;padding:10px 0 18px}
${P} .ss-main.no-sp{grid-template-columns:minmax(0,1fr);grid-template-areas:'title'}
${P} .ss-thumb{width:40px;height:40px;margin-top:2px}
${P} .ss-end{grid-template-areas:'node main'}
${P} .ss-end .ss-time{display:none}
${P} .ss-end .ss-main{padding-top:calc(var(--nt) + 10px)}
${P} .ss-dayhead{padding:20px 8px 8px}
${P} .ss-tab{flex:1 1 0;min-width:92px;padding:8px 10px}
${P} .ss-tab-count{display:none}
${P} .ss-tab-day{font-size:1.0625rem}
${P} .ss-plan-head{flex-wrap:wrap}
}
@keyframes cf-ss-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cf-ss-pop{from{transform:scale(.9)}to{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){
${P} .ss-head,${P} .ss-row,${P} .ss-empty,${P} .ss-plan-item,${P} .ss-tab-count,${P} .ss-count b,${P} .ss-star[aria-pressed='true'] svg{animation:none}
${P} .ss-cta,${P} .ss-star,${P} .ss-tab,${P} .ss-row,${P} .ss-btn2,${P} .ss-x{transition:none}
${P} .ss-cta:hover:not(:disabled),${P} .ss-cta.is-hover:not(:disabled),${P} .ss-cta:active:not(:disabled),${P} .ss-cta.is-active:not(:disabled),${P} .ss-star:not([aria-pressed='true']):hover,${P} .ss-star:active,${P} .ss-btn2:active{transform:none}
}
`
pieces/content/summit-schedule/specimen.tsx 72 lines
import __studioImage21e347f3 from "../assets/65c9628d63de2543.webp";
import __studioImage6989aeb2 from "../assets/b447888e8d0653c7.webp";
import __studioImage0a6f5614 from "../assets/2668532a49e8c1ef.webp";
import * as React from 'react'
import { SummitSchedule, type SummitScheduleProps } from '../summit-schedule'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
const mayaPortrait = __studioImage21e347f3
const tomasPortrait = __studioImage6989aeb2
const priyaPortrait = __studioImage0a6f5614
export const states = ['default', 'hover', 'active', 'disabled']
const speakerSlot = (name: string, designed: string) => slot(name as Parameters<typeof slot>[0], designed)
const days: SummitScheduleProps['days'] = [
{
id: 'day-1',
date: '2027-03-09',
title: 'Build trust you can feel through a screen',
sessions: [
{ id: 'd1-checkin', start: '2027-03-09T15:00:00Z', minutes: 45, title: 'The 3-minute check-in that replaces your weekly status meeting', speakerId: 'maya' },
{ id: 'd1-quiet', start: '2027-03-09T16:30:00Z', minutes: 45, title: 'Why your best remote people go quiet first, and the signal you’re missing', speakerId: 'priya' },
{ id: 'd1-oneonone', start: '2027-03-09T18:00:00Z', minutes: 60, title: 'The one-on-one your team actually looks forward to', speakerId: 'tomas' },
],
},
{
id: 'day-2',
date: '2027-03-10',
title: 'Ship more with fewer meetings',
sessions: [
{ id: 'd2-decision', start: '2027-03-10T15:00:00Z', minutes: 45, title: 'The async decision doc that ends “let’s just hop on a call”', speakerId: 'tomas' },
{ id: 'd2-focus', start: '2027-03-10T16:30:00Z', minutes: 45, title: 'One calendar rule that protects your team’s best working hours', speakerId: 'maya' },
{ id: 'd2-overlap', start: '2027-03-10T18:00:00Z', minutes: 60, title: 'What to do when two time zones never overlap', speakerId: 'priya' },
],
},
{
id: 'day-3',
date: '2027-03-11',
title: 'Lead the team you’ll have next year',
sessions: [
{ id: 'd3-hiring', start: '2027-03-11T15:00:00Z', minutes: 45, title: 'The interview question that shows who thrives remotely', speakerId: 'priya' },
{ id: 'd3-feedback', start: '2027-03-11T16:30:00Z', minutes: 45, title: 'How to give hard feedback in writing without starting a fire', speakerId: 'maya' },
{ id: 'd3-planning', start: '2027-03-11T18:00:00Z', minutes: 60, title: 'Your next quarter, mapped: a live working session', speakerId: 'tomas' },
],
},
]
export default function SummitScheduleSpecimen({ state }: { state?: SummitScheduleProps['state'] }): React.ReactElement {
const speakers = [
{ id: 'maya', name: 'Maya Okafor', credential: 'Head of People Operations, fully remote since 2016', image: slot('presenter', mayaPortrait), imageAlt: 'Maya Okafor' },
{ id: 'tomas', name: 'Tomás Herrera', credential: 'Engineering manager for a team spread across four time zones', image: speakerSlot('speaker-2', tomasPortrait), imageAlt: 'Tomás Herrera' },
{ id: 'priya', name: 'Priya Natarajan', credential: 'Remote team coach and former customer support director', image: speakerSlot('speaker-3', priyaPortrait), imageAlt: 'Priya Natarajan' },
]
return (
<SummitSchedule
state={state}
headline='Star the talks you can’t miss, then save your seat'
headlineMark='can’t miss'
lead='The Distributed Leaders Summit is three days of practical sessions for managers who lead teams they rarely see in person. Star the talks that fix what’s hardest for you right now, and they stay in your plan when you register.'
aside='(Pick three. You’ll actually show up for three.)'
days={days}
speakers={speakers}
eventTimeZone='America/New_York'
label={defaults.sample.registration.label}
note='Free online summit · Your picks stay saved with your seat'
initialPlan={['d1-checkin', 'd2-decision']}
copy={{ lastDayEnd: 'That’s the whole Distributed Leaders Summit. Save your seat to keep your plan.' }}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalSummitSchedule |
string |
|
headlineMark OptionalSummitSchedule |
string |
|
lead OptionalSummitSchedule |
string |
|
aside OptionalSummitSchedule |
string |
|
days OptionalSummitSchedule |
SummitDay[] |
|
speakers OptionalSummitSchedule |
SummitSpeaker[] |
|
eventTimeZone OptionalSummitSchedule |
string |
|
label OptionalSummitSchedule |
string |
|
note OptionalSummitSchedule |
string |
|
initialPlan OptionalSummitSchedule |
string[] |
|
href OptionalSummitSchedule |
string |
|
onAction OptionalSummitSchedule |
(plan: string[]) => void |
|
disabled OptionalSummitSchedule |
boolean |
|
state OptionalSummitSchedule |
'default' | 'hover' | 'active' | 'disabled' |
|
copy OptionalSummitSchedule |
Partial<SummitScheduleCopy> |
|
className OptionalSummitSchedule |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-border--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- 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.
-
2668532a49e8c1ef.webp
image/webp · 39.3 KB
-
321240b3188e2da4.webp
image/webp · 18.7 KB
-
65c9628d63de2543.webp
image/webp · 45.8 KB
-
a57ca5c86a05001f.webp
image/webp · 108 KB
-
b447888e8d0653c7.webp
image/webp · 76 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB