Calendar Actions 3
Booked-call confirmation: the host hands the visitor a call card (time in their own zone, how to join, one-click
Use it in a prompt
Use checkout/calendar-actions-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/checkout/calendar-actions-3.tsx. - Import it and pass your copy and images (Props tab):
import { CalendarActions3 } from "@/components/funneldna/checkout/calendar-actions-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/checkout/calendar-actions-3/component.tsx 691 lines
// layout: presenter-cutout
// Booked-call confirmation: the host hands the visitor a call card (time in their own zone, how to join, one-click
// calendar saves) plus a short prep list, so they invest in the call before it starts and actually show up.
'use client'
import * as React from 'react'
import { CalendarDays, CalendarPlus, Check, Globe, MapPin, Phone, Video } from 'lucide-react'
export type CalendarProvider = 'google' | 'outlook' | 'ics'
type DemoState = 'default' | 'hover' | 'active'
export type CalendarActions3Copy = {
/** Status beside the call length. */
confirmed: string
/** Uses {minutes}. */
duration: string
/** Accessible name of the time-zone toggle. */
toggleLabel: string
yourTime: string
/** Uses {name} (the host's first name). */
hostTime: string
/** Uses {name}; shown when both zones read the same. */
sameZone: string
/** Uses {abbr} and {city}. */
zoneLine: string
cardLabel: string
googlePrimary: string
outlookPrimary: string
icsPrimary: string
googleLabel: string
outlookLabel: string
icsLabel: string
/** Accessible labels for the smaller calendar buttons; use {title}. */
googleAction: string
outlookAction: string
icsAction: string
/** One reassurance line under the main calendar button. */
calendarNote: string
/** Uses {count}, written with numberWords when it has an entry for the count. */
prepHeading: string
numberWords: string[]
reschedulePrompt: string
rescheduleLabel: string
/** Line above the prep list inside the calendar entry's description. */
descriptionBring: string
/** Default alt text for the host image; uses {name}. */
hostAlt: string
}
export type CallMeeting = {
/** Picks the icon: video call, phone call or in person. */
kind: 'video' | 'phone' | 'place'
/** e.g. Join on Zoom, or Maya calls you. */
title: string
/** Join link or tel: link. */
href?: string
/** Visible link text; defaults to href. */
linkText?: string
/** A phone number, address or one extra line. */
detail?: string
}
export type PrepItem = {
/** Bold lead-in phrase. */
lead: string
text?: string
}
export type CalendarActions3Props = {
heading?: React.ReactNode
lead?: React.ReactNode
/** The call's name, as shown on the card and saved in their calendar. */
title: string
/** ISO 8601 with zone info, e.g. 2026-12-08T19:00:00Z. */
startsAt: string
/** Defaults to one hour after start. */
endsAt?: string
/** IANA zone the host works in, e.g. America/New_York. */
hostTimezone: string
/** The visitor's IANA zone; defaults to the browser's. */
viewerTimezone?: string
locale?: string
hostName: string
/** Used on the toggle; defaults to the first word of hostName. */
hostFirstName?: string
hostRole?: string
/** presenter-cutout slot: the host on a transparent background. Omit for the text-only variant. */
hostImage?: string
hostImageAlt?: string
meeting?: CallMeeting
/** What to bring, from supplied facts. */
prep?: PrepItem[]
/** Calendar entry description; defaults to the meeting line plus the prep list. */
description?: string
/** The first is the main button; the rest sit beneath it. */
providers?: CalendarProvider[]
/** Called when a calendar option is chosen; call event.preventDefault() to stay on the page. */
onAction?: (provider: CalendarProvider, event: React.MouseEvent<HTMLAnchorElement>) => void
/** Shows the reschedule link; the builder wires where it goes. */
onReschedule?: (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void
rescheduleHref?: string
/** Studio preview: show the main calendar button hovered or pressed. */
state?: DemoState
copy?: Partial<CalendarActions3Copy>
className?: string
}
export function CalendarActions3({
heading = 'Your call is booked. Come ready and make it count.',
lead = 'Save it to your calendar now, then gather the things below before you join.',
title,
startsAt,
endsAt,
hostTimezone,
viewerTimezone,
locale = 'en-US',
hostName,
hostFirstName,
hostRole,
hostImage,
hostImageAlt,
meeting,
prep = [],
description,
providers = ['google', 'outlook', 'ics'],
onAction,
onReschedule,
rescheduleHref,
state = 'default',
copy: copyOverrides,
className,
}: CalendarActions3Props) {
const copy: CalendarActions3Copy = { ...DEFAULT_COPY, ...definedOnly<CalendarActions3Copy>(copyOverrides) }
const headingId = React.useId()
const hostZone = safeZone(hostTimezone, 'UTC')
const [viewerZone, setViewerZone] = React.useState(() => safeZone(viewerTimezone ?? browserZone(), hostZone))
React.useEffect(() => {
setViewerZone(safeZone(viewerTimezone ?? browserZone(), hostZone))
}, [viewerTimezone, hostZone])
const [mode, setMode] = React.useState<'viewer' | 'host'>('viewer')
const viewerRef = React.useRef<HTMLButtonElement>(null)
const hostRef = React.useRef<HTMLButtonElement>(null)
const start = new Date(startsAt)
if (Number.isNaN(start.getTime())) return null
const parsedEnd = endsAt ? new Date(endsAt) : null
const end =
parsedEnd && !Number.isNaN(parsedEnd.getTime()) && parsedEnd.getTime() > start.getTime()
? parsedEnd
: new Date(start.getTime() + 60 * 60 * 1000)
const minutes = Math.round((end.getTime() - start.getTime()) / 60000)
const firstName = hostFirstName ?? (hostName.trim().split(/\s+/)[0] || hostName)
const zone = mode === 'viewer' ? viewerZone : hostZone
const view = describe(start, end, zone, locale)
const viewerView = describe(start, end, viewerZone, locale)
const hostView = describe(start, end, hostZone, locale)
const sameZone =
viewerView.date === hostView.date && viewerView.time === hostView.time && viewerView.abbr === hostView.abbr
const hasHost = Boolean(hostImage)
const where = meeting?.href ?? meeting?.detail ?? ''
const details = description ?? buildDescription(meeting, prep, copy.descriptionBring)
const hrefs = calendarHrefs({ title, start, end, zone: hostZone, where, details })
const list = providers.filter((provider, index) => PROVIDERS.includes(provider) && providers.indexOf(provider) === index)
const [primary, ...rest] = list
const primaryLabel: Record<CalendarProvider, string> = {
google: copy.googlePrimary,
outlook: copy.outlookPrimary,
ics: copy.icsPrimary,
}
const shortLabel: Record<CalendarProvider, string> = {
google: copy.googleLabel,
outlook: copy.outlookLabel,
ics: copy.icsLabel,
}
const actionLabel: Record<CalendarProvider, string> = {
google: formatCopy(copy.googleAction, { title }),
outlook: formatCopy(copy.outlookAction, { title }),
ics: formatCopy(copy.icsAction, { title }),
}
const linkProps = (provider: CalendarProvider): React.AnchorHTMLAttributes<HTMLAnchorElement> =>
provider === 'ics'
? { href: hrefs.ics, download: `${slugify(title) || 'call'}.ics` }
: { href: hrefs[provider], target: '_blank', rel: 'noopener noreferrer' }
const choose = (provider: CalendarProvider) => (event: React.MouseEvent<HTMLAnchorElement>) => {
onAction?.(provider, event)
}
const onToggleKey = (event: React.KeyboardEvent<HTMLDivElement>) => {
const keys = ['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Home', 'End']
if (!keys.includes(event.key)) return
event.preventDefault()
const next = event.key === 'Home' ? 'viewer' : event.key === 'End' ? 'host' : mode === 'viewer' ? 'host' : 'viewer'
setMode(next)
;(next === 'viewer' ? viewerRef : hostRef).current?.focus()
}
const MeetIcon = meeting?.kind === 'phone' ? Phone : meeting?.kind === 'place' ? MapPin : Video
const meetExternal = meeting?.href ? /^https?:/i.test(meeting.href) : false
return (
<section
className={cx('cf-calendar-actions-3', className)}
data-state={state}
data-host={hasHost ? 'image' : 'none'}
aria-labelledby={headingId}
>
<style>{CSS}</style>
<div className='cfc3-wrap'>
<header className='cfc3-head'>
<h2 id={headingId} className='cfc3-h'>
{heading}
</h2>
{lead ? <p className='cfc3-lead'>{lead}</p> : null}
</header>
{hasHost ? (
<figure className='cfc3-fig'>
<div className='cfc3-stage'>
<span className='cfc3-disc' aria-hidden='true' />
<img
className='cfc3-cut'
src={hostImage}
alt={hostImageAlt ?? formatCopy(copy.hostAlt, { name: hostName })}
width={640}
height={640}
decoding='async'
/>
</div>
<figcaption className='cfc3-plate'>
<span className='cfc3-plate-name'>{hostName}</span>
{hostRole ? <span className='cfc3-plate-role'>{hostRole}</span> : null}
</figcaption>
</figure>
) : null}
<article className='cfc3-card' aria-label={copy.cardLabel}>
<div className='cfc3-hostrow'>
{hasHost ? (
<span className='cfc3-avatar'>
<img src={hostImage} alt='' width={56} height={56} decoding='async' />
</span>
) : null}
<span className='cfc3-hostrow-text'>
<span className='cfc3-hostrow-name'>{hostName}</span>
{hostRole ? <span className='cfc3-hostrow-role'>{hostRole}</span> : null}
</span>
</div>
<div>
<h3 className='cfc3-title'>{title}</h3>
<p className='cfc3-meta'>
<span className='cfc3-ok'>
<span className='cfc3-ok-badge' aria-hidden='true'>
<Check size={16} strokeWidth={3} />
</span>
{copy.confirmed}
</span>
<span>{formatCopy(copy.duration, { minutes })}</span>
</p>
</div>
<div>
<div aria-live='polite'>
<p className='cfc3-date'>
<span key={`${zone}-date`} className='cfc3-swap' suppressHydrationWarning>
{view.date}
</span>
</p>
<p className='cfc3-time'>
<span key={`${zone}-time`} className='cfc3-swap' suppressHydrationWarning>
{view.time}
</span>
</p>
</div>
<div className='cfc3-zonerow'>
<p className='cfc3-zone' suppressHydrationWarning>
<Globe className='cfc3-icon-inline' size={16} strokeWidth={2.5} aria-hidden='true' />
{formatCopy(copy.zoneLine, { abbr: view.abbr, city: view.city })}
</p>
<div
className='cfc3-seg'
role='radiogroup'
aria-label={copy.toggleLabel}
data-mode={mode}
onKeyDown={onToggleKey}
>
<span className='cfc3-thumb' aria-hidden='true' />
<button
ref={viewerRef}
type='button'
role='radio'
aria-checked={mode === 'viewer'}
tabIndex={mode === 'viewer' ? 0 : -1}
className='cfc3-seg-btn'
onClick={() => setMode('viewer')}
>
{copy.yourTime}
</button>
<button
ref={hostRef}
type='button'
role='radio'
aria-checked={mode === 'host'}
tabIndex={mode === 'host' ? 0 : -1}
className='cfc3-seg-btn'
onClick={() => setMode('host')}
>
{formatCopy(copy.hostTime, { name: firstName })}
</button>
</div>
</div>
{sameZone ? (
<p className='cfc3-same' suppressHydrationWarning>
{formatCopy(copy.sameZone, { name: firstName })}
</p>
) : null}
</div>
<hr className='cfc3-rule' />
{meeting ? (
<div className='cfc3-meet'>
<span className='cfc3-meet-icon' aria-hidden='true'>
<MeetIcon size={20} strokeWidth={2.5} />
</span>
<div className='cfc3-meet-body'>
<p className='cfc3-meet-title'>{meeting.title}</p>
{meeting.href ? (
<a
className='cfc3-link cfc3-meet-link'
href={meeting.href}
{...(meetExternal ? { target: '_blank', rel: 'noopener noreferrer' } : {})}
>
{meeting.linkText ?? meeting.href}
</a>
) : null}
{meeting.detail ? <p className='cfc3-meet-detail'>{meeting.detail}</p> : null}
</div>
</div>
) : null}
{primary ? (
<div className='cfc3-cal'>
<a className='cfc3-primary' {...linkProps(primary)} onClick={choose(primary)}>
<span>
<CalendarPlus className='cfc3-primary-icon' size={20} strokeWidth={2.5} aria-hidden='true' />
{primaryLabel[primary]}
</span>
</a>
{copy.calendarNote ? <p className='cfc3-note'>{copy.calendarNote}</p> : null}
{rest.length ? (
<div className='cfc3-alts' style={{ gridTemplateColumns: `repeat(${rest.length}, minmax(0, 1fr))` }}>
{rest.map((provider) => (
<a
key={provider}
className='cfc3-alt'
{...linkProps(provider)}
aria-label={actionLabel[provider]}
onClick={choose(provider)}
>
{markFor(provider)}
<span>{shortLabel[provider]}</span>
</a>
))}
</div>
) : null}
</div>
) : null}
{prep.length ? (
<div className='cfc3-prep'>
<h3 className='cfc3-prep-h'>
{formatCopy(copy.prepHeading, { count: countWord(prep.length, copy.numberWords) })}
</h3>
<ol className='cfc3-list'>
{prep.map((item, index) => (
<li key={`${index}-${item.lead}`} className='cfc3-item'>
<span className='cfc3-num' aria-hidden='true'>
{index + 1}
</span>
<p className='cfc3-item-text'>
<strong>{item.lead}</strong>
{item.text ? <> {item.text}</> : null}
</p>
</li>
))}
</ol>
</div>
) : null}
{onReschedule || rescheduleHref ? (
<p className='cfc3-resched'>
{copy.reschedulePrompt}{' '}
{rescheduleHref ? (
<a className='cfc3-link' href={rescheduleHref} onClick={onReschedule}>
{copy.rescheduleLabel}
</a>
) : (
<button type='button' className='cfc3-link cfc3-linkbtn' onClick={onReschedule}>
{copy.rescheduleLabel}
</button>
)}
</p>
) : null}
</article>
</div>
</section>
)
}
export default CalendarActions3
const PROVIDERS: CalendarProvider[] = ['google', 'outlook', 'ics']
const DEFAULT_COPY: CalendarActions3Copy = {
confirmed: 'Confirmed',
duration: '{minutes} minutes',
toggleLabel: 'Show the time in',
yourTime: 'Your time',
hostTime: '{name}’s time',
sameZone: 'You and {name} share a time zone.',
zoneLine: '{abbr} · {city}',
cardLabel: 'Your call details',
googlePrimary: 'Add to Google Calendar',
outlookPrimary: 'Add to Outlook',
icsPrimary: 'Add to Apple Calendar',
googleLabel: 'Google',
outlookLabel: 'Outlook',
icsLabel: 'Apple',
googleAction: 'Add {title} to Google Calendar',
outlookAction: 'Add {title} to Outlook',
icsAction: 'Download {title} for Apple Calendar (.ics)',
calendarNote: 'Saves the time and every detail in one click.',
prepHeading: 'Bring these {count} things',
numberWords: ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten'],
reschedulePrompt: 'Can’t make it?',
rescheduleLabel: 'Pick a new time',
descriptionBring: 'Bring these:',
hostAlt: '{name}',
}
// Official provider marks keep their published colours (theme-contract §3 exception, SVG only).
function GoogleMark() {
return (
<svg className='cfc3-mark' viewBox='0 0 48 48' width='20' height='20' aria-hidden='true' data-official-mark='Google'>
<path fill='#FBBC05' d='M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z' />
<path fill='#EA4335' d='m6.306 14.691 6.571 4.819C14.655 15.108 18.961 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 16.318 4 9.656 8.337 6.306 14.691z' />
<path fill='#34A853' d='M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238A11.91 11.91 0 0 1 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z' />
<path fill='#4285F4' d='M43.611 20.083H42V20H24v8h11.303a12.04 12.04 0 0 1-4.087 5.571l.003-.002 6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z' />
</svg>
)
}
function OutlookMark() {
return (
<svg className='cfc3-mark' viewBox='0 0 24 24' width='20' height='20' aria-hidden='true' data-official-mark='Microsoft Outlook'>
<rect x='8' y='4' width='14' height='16' rx='2' fill='#28A8EA' />
<rect x='2' y='6' width='12' height='12' rx='2' fill='#0078D4' />
<ellipse cx='8' cy='12' rx='3' ry='3.4' fill='none' stroke='#FFFFFF' strokeWidth='1.8' />
</svg>
)
}
function markFor(provider: CalendarProvider) {
if (provider === 'google') return <GoogleMark />
if (provider === 'outlook') return <OutlookMark />
return <CalendarDays className='cfc3-mark' size={20} strokeWidth={2.5} aria-hidden='true' />
}
function describe(start: Date, end: Date, zone: string, locale: string) {
const date = new Intl.DateTimeFormat(locale, {
timeZone: zone,
weekday: 'long',
month: 'long',
day: 'numeric',
year: 'numeric',
}).format(start)
const clock = new Intl.DateTimeFormat(locale, { timeZone: zone, hour: 'numeric', minute: '2-digit' })
const startParts = clock.formatToParts(start)
const endParts = clock.formatToParts(end)
const period = (parts: Intl.DateTimeFormatPart[]) => parts.find((part) => part.type === 'dayPeriod')?.value
const bare = startParts
.filter((part) => part.type !== 'dayPeriod')
.map((part) => part.value)
.join('')
.trim()
const time =
period(startParts) && period(startParts) === period(endParts)
? `${bare} – ${clock.format(end)}`
: `${clock.format(start)} – ${clock.format(end)}`
const abbr =
new Intl.DateTimeFormat(locale, { timeZone: zone, timeZoneName: 'short' })
.formatToParts(start)
.find((part) => part.type === 'timeZoneName')?.value ?? ''
const city = (zone.split('/').pop() || zone).replace(/_/g, ' ')
return { date, time, abbr, city }
}
function buildDescription(meeting: CallMeeting | undefined, prep: PrepItem[], bring: string) {
const lines: string[] = []
if (meeting) lines.push([meeting.title, meeting.href, meeting.detail].filter(Boolean).join(' · '))
if (prep.length) {
if (lines.length) lines.push('')
lines.push(bring)
prep.forEach((item, index) => lines.push(`${index + 1}. ${[item.lead, item.text].filter(Boolean).join(' ')}`))
}
return lines.join('\n')
}
type CalendarEvent = { title: string; start: Date; end: Date; zone: string; where: string; details: string }
function calendarHrefs(event: CalendarEvent): Record<CalendarProvider, string> {
const q = (key: string, value: string) => (value ? `&${key}=${encodeURIComponent(value)}` : '')
const google =
'https://calendar.google.com/calendar/render?action=TEMPLATE' +
q('text', event.title) +
`&dates=${toBasicUtc(event.start)}/${toBasicUtc(event.end)}` +
q('ctz', event.zone) +
q('location', event.where) +
q('details', event.details)
const outlook =
'https://outlook.live.com/calendar/0/action/compose?rru=addevent' +
q('subject', event.title) +
q('startdt', event.start.toISOString()) +
q('enddt', event.end.toISOString()) +
q('location', event.where) +
q('body', event.details)
const ics = [
'BEGIN:VCALENDAR',
'VERSION:2.0',
'PRODID:-//funnel//calendar-actions-3//EN',
'BEGIN:VEVENT',
`UID:${toBasicUtc(event.start)}-${slugify(event.title) || 'call'}`,
`DTSTAMP:${toBasicUtc(event.start)}`,
`DTSTART:${toBasicUtc(event.start)}`,
`DTEND:${toBasicUtc(event.end)}`,
`SUMMARY:${escapeIcs(event.title)}`,
...(event.where ? [`LOCATION:${escapeIcs(event.where)}`] : []),
...(event.details ? [`DESCRIPTION:${escapeIcs(event.details)}`] : []),
'END:VEVENT',
'END:VCALENDAR',
].join('\r\n')
return { google, outlook, ics: `data:text/calendar;charset=utf-8,${encodeURIComponent(ics)}` }
}
function browserZone() {
try {
return Intl.DateTimeFormat().resolvedOptions().timeZone
} catch {
return undefined
}
}
function safeZone(zone: string | undefined, fallback: string) {
if (!zone) return fallback
try {
Intl.DateTimeFormat('en-US', { timeZone: zone }).format(0)
return zone
} catch {
return fallback
}
}
function toBasicUtc(date: Date) {
return date.toISOString().replace(/[-:]/g, '').replace(/\.\d{3}/, '')
}
function escapeIcs(value: string) {
return value.replace(/\\/g, '\\\\').replace(/\n/g, '\\n').replace(/([;,])/g, '\\$1')
}
function slugify(value: string) {
return value.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '')
}
function formatCopy(template: string, values: Record<string, string | number>) {
return template.replace(/\{(\w+)\}/g, (match, key: string) => (key in values ? String(values[key]) : match))
}
function countWord(count: number, words: string[]) {
return words[count] ?? String(count)
}
function definedOnly<T extends object>(value: Partial<T> | undefined): Partial<T> {
return Object.fromEntries(Object.entries(value ?? {}).filter(([, entry]) => entry !== undefined)) as Partial<T>
}
function cx(...names: Array<string | false | null | undefined>) {
return names.filter(Boolean).join(' ')
}
const CSS = `
.cf-calendar-actions-3{--cfc3-shadow:var(--shadow, oklch(0.22 0.03 260));--cfc3-rule:oklch(from var(--ink, oklch(0.21 0.034 263)) l c h / 0.12);position:relative;box-sizing:border-box;background:var(--band, oklch(0.27 0.067 256));color:var(--band-ink, oklch(1 0 0));padding:clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);font-family:var(--font-body)}
.cf-calendar-actions-3 *,.cf-calendar-actions-3 *::before,.cf-calendar-actions-3 *::after{box-sizing:border-box}
.cfc3-wrap{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-areas:'fig head' 'fig card';column-gap:clamp(32px, 5vw, 72px);align-items:start}
.cfc3-head{grid-area:head;margin-bottom:clamp(24px, 3vw, 32px);animation:cfc3-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cfc3-h{margin:0;font-family:var(--font-display);font-weight:var(--display-weight, 800);font-size:clamp(2rem, 3.6vw, 3.25rem);line-height:1.06;letter-spacing:var(--display-tracking, -0.025em);text-transform:var(--display-case, none);color:var(--band-ink);text-wrap:balance}
.cfc3-lead{margin:16px 0 0;max-width:62ch;font-size:clamp(1.125rem, 1.5vw, 1.375rem);line-height:1.4;font-weight:500;color:color-mix(in oklch, var(--band-ink) 86%, var(--band));text-wrap:pretty}
.cfc3-fig{grid-area:fig;position:sticky;top:24px;margin:0;animation:cfc3-rise .45s .07s cubic-bezier(.2,.7,.2,1) both}
.cfc3-stage{position:relative;width:100%;aspect-ratio:1/1}
.cfc3-disc{position:absolute;left:7%;bottom:0;width:86%;aspect-ratio:1/1;border-radius:50%;background:color-mix(in oklch, var(--band-ink) 10%, var(--band));box-shadow:inset 0 1px 0 oklch(from var(--band-ink) l c h / 0.14)}
.cfc3-cut{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:50% 100%;-webkit-mask-image:linear-gradient(black, black),radial-gradient(43% 43% at 50% 57%, black 99.4%, transparent 100%);mask-image:linear-gradient(black, black),radial-gradient(43% 43% at 50% 57%, black 99.4%, transparent 100%);-webkit-mask-size:100% 57%,100% 100%;mask-size:100% 57%,100% 100%;-webkit-mask-position:50% 0,50% 50%;mask-position:50% 0,50% 50%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.cfc3-plate{margin-top:16px;display:grid;gap:4px;text-align:center}
.cfc3-plate-name{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;color:var(--band-ink)}
.cfc3-plate-role{font-size:0.9375rem;line-height:1.4;font-weight:500;color:color-mix(in oklch, var(--band-ink) 84%, var(--band))}
.cfc3-card{grid-area:card;position:relative;display:grid;gap:24px;padding:clamp(20px, 3vw, 32px);background:var(--card);color:var(--ink);border:1px solid var(--card-border, var(--cfc3-rule));border-radius:var(--card-radius, var(--radius, 14px));box-shadow:var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--cfc3-shadow) l c h / 0.22), 0 12px 24px -8px oklch(from var(--cfc3-shadow) l c h / 0.32)));animation:cfc3-rise .45s .14s cubic-bezier(.2,.7,.2,1) both}
.cfc3-card::before{content:'';position:absolute;left:-10px;top:clamp(48px, 8vw, 112px);width:18px;height:18px;background:var(--card);border-left:1px solid var(--card-border, var(--cfc3-rule));border-bottom:1px solid var(--card-border, var(--cfc3-rule));border-bottom-left-radius:3px;transform:rotate(45deg)}
.cfc3-hostrow{display:none;align-items:center;gap:12px}
.cfc3-avatar{flex:0 0 auto;width:56px;height:56px;border-radius:50%;overflow:hidden;background:color-mix(in oklch, var(--ink) 6%, var(--card))}
.cfc3-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0;transform:scale(1.7);transform-origin:50% 12%}
.cfc3-hostrow-text{display:grid;gap:2px;min-width:0}
.cfc3-hostrow-name{font-size:1.0625rem;line-height:1.3;font-weight:800}
.cfc3-hostrow-role{font-size:0.9375rem;line-height:1.4;font-weight:500;color:var(--muted)}
.cfc3-title{margin:0;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-transform:var(--display-case, none);text-wrap:balance}
.cfc3-meta{margin:8px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;font-size:0.9375rem;line-height:1.4;font-weight:600;color:var(--muted)}
.cfc3-ok{display:inline-flex;align-items:center;gap:8px;color:var(--success);font-weight:800}
.cfc3-ok-badge{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--success);color:var(--success-ink,#fff)}
.cfc3-date{margin:0;font-size:clamp(1.125rem, 1.5vw, 1.375rem);line-height:1.4;font-weight:700;text-wrap:balance}
.cfc3-time{margin:12px 0 0;font-family:var(--font-display);font-weight:var(--display-weight, 800);font-size:clamp(2.5rem, 4.2vw, 3.75rem);line-height:1.04;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;text-wrap:balance}
.cfc3-swap{display:inline-block;animation:cfc3-rise .3s cubic-bezier(.2,.7,.2,1) both}
.cfc3-zonerow{margin-top:16px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px}
.cfc3-zone{margin:0;font-size:0.9375rem;line-height:1.4;font-weight:600;color:var(--muted)}
.cfc3-icon-inline{display:inline-block;vertical-align:-0.15em;margin-inline-end:0.4em}
.cfc3-same{margin:8px 0 0;font-size:0.9375rem;line-height:1.4;font-weight:500;color:var(--muted)}
.cfc3-seg{position:relative;isolation:isolate;display:inline-grid;grid-template-columns:1fr 1fr;padding:4px;border-radius:999px;background:color-mix(in oklch, var(--ink) 5%, var(--card));box-shadow:inset 0 0 0 1px var(--cfc3-rule)}
.cfc3-thumb{position:absolute;z-index:-1;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);border-radius:999px;background:var(--card);box-shadow:var(--shadow-sm, 0 1px 2px oklch(from var(--cfc3-shadow) l c h / 0.25));transition:transform .22s cubic-bezier(.2,.7,.2,1)}
.cfc3-seg[data-mode=host] .cfc3-thumb{transform:translateX(100%)}
.cfc3-seg-btn{appearance:none;min-height:40px;padding:0 16px;border:0;border-radius:999px;background:transparent;font-family:var(--font-body);font-size:0.875rem;line-height:1.2;font-weight:800;color:var(--muted);white-space:nowrap;cursor:pointer;transition:color .16s ease}
.cfc3-seg-btn[aria-checked=true]{color:var(--ink)}
.cfc3-seg-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.cfc3-rule{margin:0;border:0;height:1px;background:var(--cfc3-rule)}
.cfc3-meet{display:flex;align-items:flex-start;gap:16px}
.cfc3-meet-icon{flex:0 0 auto;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--accent-fill, var(--accent));color:var(--accent-fill-ink, var(--card))}
.cfc3-meet-body{min-width:0;display:grid;gap:4px}
.cfc3-meet-title{margin:0;font-size:1.0625rem;line-height:1.4;font-weight:800}
.cfc3-meet-link{justify-self:start;font-size:1.0625rem;line-height:1.5}
.cfc3-meet-detail{margin:0;font-size:1.0625rem;line-height:1.5}
.cfc3-link{color:var(--link, var(--accent));font-weight:700;text-decoration:underline;text-decoration-color:oklch(from var(--link, var(--accent)) l c h / 0.45);text-decoration-thickness:1.5px;text-underline-offset:0.18em;overflow-wrap:anywhere;border-radius:4px;transition:color .16s ease,text-decoration-color .16s ease}
.cfc3-link:hover{color:oklch(from var(--link, var(--accent)) calc(l - 0.08) c h);text-decoration-color:currentColor}
.cfc3-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.cfc3-linkbtn{appearance:none;padding:0;border:0;background:none;font:inherit;font-weight:700;cursor:pointer}
.cfc3-cal{display:grid;gap:12px}
.cfc3-primary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:64px;padding:0 28px;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, var(--cta))) calc(l - 0.02) c h));color:var(--button-ink, var(--cta-ink));font-family:var(--button-font, var(--font-display));font-weight:var(--button-weight, 800);font-size:clamp(1.125rem, 1.55vw, 1.375rem);line-height:1.15;text-transform:var(--button-case, none);text-align:center;text-decoration:none;text-shadow:var(--button-text-shadow, none);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(--cfc3-shadow) l c h / 0.3), 0 8px 16px -6px oklch(from var(--cfc3-shadow) l c h / 0.45));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cfc3-alts{display:grid;gap:12px}
.cfc3-alt{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:56px;padding:0 16px;border:1px solid var(--button-2-border, transparent);border-radius:var(--button-radius, var(--radius, 12px));background:var(--button-2-bg, var(--secondary));color:var(--button-2-ink, var(--secondary-ink));font-family:var(--button-font, var(--font-display));font-weight:var(--button-weight, 800);font-size:1.0625rem;line-height:1.15;text-transform:var(--button-case, none);text-decoration:none;white-space:nowrap;box-shadow:var(--button-2-shadow, var(--shadow-sm));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cfc3-mark{flex:0 0 auto;display:block}
.cfc3-primary-icon{display:inline-block;vertical-align:-0.2em;margin-inline-end:10px}
@media (hover:hover){
.cfc3-primary: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, var(--cta))) calc(l - 0.07) c h));transform:translateY(-1px);box-shadow:inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + 0.1) c h / 0.7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--cfc3-shadow) l c h / 0.34), 0 12px 20px -8px oklch(from var(--cfc3-shadow) l c h / 0.5)}
.cfc3-alt:hover{background:oklch(from var(--button-2-bg, var(--secondary)) calc(l - 0.04) c h);transform:translateY(-1px);box-shadow:var(--shadow-md, var(--button-2-shadow))}
.cfc3-seg-btn[aria-checked=false]:hover{color:var(--ink)}
}
.cf-calendar-actions-3[data-state=hover] .cfc3-primary{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, var(--cta))) calc(l - 0.07) c h));transform:translateY(-1px);box-shadow:inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + 0.1) c h / 0.7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--cfc3-shadow) l c h / 0.34), 0 12px 20px -8px oklch(from var(--cfc3-shadow) l c h / 0.5)}
.cfc3-primary:active,.cf-calendar-actions-3[data-state=active] .cfc3-primary{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, var(--cta))) calc(l - 0.08) c h));transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--button-bg, var(--cta)) calc(l - 0.24) c h / 0.5), inset 0 -2px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h), 0 1px 1px oklch(from var(--cfc3-shadow) l c h / 0.3)}
.cfc3-alt:active{background:oklch(from var(--button-2-bg, var(--secondary)) calc(l - 0.08) c h);transform:translateY(1px);box-shadow:inset 0 1px 2px oklch(from var(--cfc3-shadow) l c h / 0.22)}
.cfc3-primary:focus-visible,.cfc3-alt:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.cfc3-note{margin:0;font-size:0.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-align:center;text-wrap:pretty}
.cfc3-prep{padding:clamp(16px, 2.4vw, 24px);border-radius:10px;background:color-mix(in oklch, var(--ink) 4%, var(--card))}
.cfc3-prep-h{margin:0;font-family:var(--font-display);font-weight:var(--display-weight, 800);font-size:clamp(1.125rem, 1.5vw, 1.375rem);line-height:1.2;letter-spacing:-0.01em;text-transform:var(--display-case, none);text-wrap:balance}
.cfc3-list{margin:16px 0 0;padding:0;list-style:none;display:grid;gap:16px}
.cfc3-item{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;align-items:start}
.cfc3-num{font-family:var(--font-display);font-weight:var(--display-weight, 800);font-size:clamp(1.3125rem, 1.8vw, 1.625rem);line-height:1.1;color:var(--accent);font-variant-numeric:tabular-nums}
.cfc3-item-text{margin:0;font-size:clamp(1.0625rem, 1.25vw, 1.125rem);line-height:1.5;text-wrap:pretty}
.cfc3-item-text strong{font-weight:800}
.cfc3-resched{margin:0;font-size:0.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-align:center;text-wrap:pretty}
@keyframes cfc3-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (max-width:760px){
.cfc3-wrap{grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'card'}
.cfc3-fig{display:none}
.cfc3-hostrow{display:flex}
.cfc3-card::before{display:none}
}
@media (max-width:480px){
.cfc3-primary{padding:0 20px}
.cfc3-alt{padding:0 12px;font-size:1rem}
.cfc3-zonerow{justify-content:flex-start}
}
.cf-calendar-actions-3[data-host=none] .cfc3-wrap{max-width:46rem;grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'card'}
.cf-calendar-actions-3[data-host=none] .cfc3-head{text-align:center}
.cf-calendar-actions-3[data-host=none] .cfc3-lead{margin-inline:auto}
.cf-calendar-actions-3[data-host=none] .cfc3-card::before{display:none}
.cf-calendar-actions-3[data-host=none] .cfc3-hostrow{display:flex}
@media (prefers-reduced-motion:reduce){
.cfc3-head,.cfc3-fig,.cfc3-card,.cfc3-swap{animation:none}
.cfc3-thumb,.cfc3-primary,.cfc3-alt,.cfc3-seg-btn,.cfc3-link{transition:none}
.cfc3-primary:hover,.cfc3-alt:hover{transform:none}
}
`
pieces/checkout/calendar-actions-3/specimen.tsx 53 lines
import __studioImage22c8408e from "../assets/2d60e44be4b8b279.webp";
// Specimen: Northline Partners' 45-minute Scale Call, booked and waiting to be saved and prepared for.
import * as React from 'react'
import { CalendarActions3 } from '../calendar-actions-3'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active']
type SpecimenState = 'default' | 'hover' | 'active'
export default function CalendarActions3Specimen({ state = 'default' }: { state?: SpecimenState }) {
return (
<CalendarActions3
state={state}
heading='Your Scale Call is booked. Come ready and leave with a plan.'
lead='Save it to your calendar now, then gather the three things below so Maya can spend all 45 minutes on your numbers.'
title='Northline Scale Call'
startsAt='2026-12-08T19:00:00Z'
endsAt='2026-12-08T19:45:00Z'
hostTimezone='America/New_York'
hostName='Maya Ellison'
hostRole='Partner, Northline Partners'
hostImage={slot(
'presenter-cutout',
__studioImage22c8408e
)}
hostImageAlt='Maya Ellison, partner at Northline Partners'
meeting={{
kind: 'video',
title: 'Join on Zoom from your laptop',
href: 'https://meet.northline.example/scale-call',
linkText: 'meet.northline.example/scale-call',
}}
prep={[
{
lead: 'Your last 90 days of revenue.',
text: 'A rough monthly number is plenty. It shows Maya where you are starting from.',
},
{
lead: 'The one offer you want to scale.',
text: 'Its price, who buys it and where those buyers find you.',
},
{
lead: 'The bottleneck that breaks first.',
text: 'The step that jams when more sales come in.',
},
]}
onAction={(_provider, event) => event.preventDefault()}
onReschedule={(event) => event.preventDefault()}
/>
)
}
| Name | Type | Details |
|---|---|---|
heading OptionalCalendarActions3 |
React.ReactNode |
Default 'Your call is booked. Come ready and make it count.'
|
lead OptionalCalendarActions3 |
React.ReactNode |
Default 'Save it to your calendar now, then gather the things below before you join.'
|
title RequiredCalendarActions3 |
string |
|
startsAt RequiredCalendarActions3 |
string |
|
endsAt OptionalCalendarActions3 |
string |
|
hostTimezone RequiredCalendarActions3 |
string |
|
viewerTimezone OptionalCalendarActions3 |
string |
|
locale OptionalCalendarActions3 |
string |
Default 'en-US'
|
hostName RequiredCalendarActions3 |
string |
|
hostFirstName OptionalCalendarActions3 |
string |
|
hostRole OptionalCalendarActions3 |
string |
|
hostImage OptionalCalendarActions3 |
string |
|
hostImageAlt OptionalCalendarActions3 |
string |
|
meeting OptionalCalendarActions3 |
CallMeeting |
|
prep OptionalCalendarActions3 |
PrepItem[] |
Default []
|
description OptionalCalendarActions3 |
string |
|
providers OptionalCalendarActions3 |
CalendarProvider[] |
Default ['google', 'outlook', 'ics']
|
onAction OptionalCalendarActions3 |
(provider: CalendarProvider, event: React.MouseEvent<HTMLAnchorElement>) => void |
|
onReschedule OptionalCalendarActions3 |
(event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void |
|
rescheduleHref OptionalCalendarActions3 |
string |
|
state OptionalCalendarActions3 |
DemoState |
Default 'default'
|
copy OptionalCalendarActions3 |
Partial<CalendarActions3Copy> |
|
className OptionalCalendarActions3 |
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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter-cutout- The presenter on a transparent background.
-
2d60e44be4b8b279.webp
image/webp · 93.6 KB