Join Community 3
Community invite block: a numbered path (open the group, answer the entry questions, post your intro) that runs into the join button.
Use it in a prompt
Use checkout/join-community-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/join-community-3.tsx. - Import it and pass your copy and images (Props tab):
import { JoinCommunity3 } from "@/components/funneldna/checkout/join-community-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/checkout/join-community-3/component.tsx 461 lines
// layout: path-to-action
// Community invite block: a numbered path (open the group, answer the entry questions, post your intro) that runs into the join button.
// Every step and question is shown up front, so joining feels known and short. A reason-why card says why finishing inside the group matters.
import * as React from "react"
import { AlertCircle, Check, Loader2, MessageCircleQuestion } from "lucide-react"
import { FX_HOST, Pattern, Spot } from "../fx/fx"
import community from "../fx/spots/community"
export type JoinCommunity3Step = {
title: string
/** One-line detail, always shown under the step title. */
detail: string
}
export type JoinCommunity3Props = {
/** Headline before the highlighted phrase. */
headline?: string
/** Phrase that closes the headline, set on one marker stroke. */
headlineMark?: string
lead?: string
/** The supplied group or community name, shown at the end of the path. */
groupName?: string
/** Accessible name for the list of steps. */
pathLabel?: string
openStep?: JoinCommunity3Step
questionsStep?: JoinCommunity3Step
introStep?: JoinCommunity3Step
/** The group's entry questions, shown in full. Pass an empty list and the path drops to two steps. */
questions?: string[]
/** Short line above the questions. */
questionsLabel?: string
/** Line beside the community illustration at the end of the path. */
finishLabel?: string
label?: string
loadingLabel?: string
/** Quiet line under the button. It links to the reason-why card. */
secondaryLabel?: string
errorMessage?: string
/** Screen-reader note added when the invite opens in a new tab. */
newTabLabel?: string
reasonTitle?: string
/** Why finishing inside the group matters for the result. */
reasons?: string[]
/** Photo beside the reasons (slot: scene). */
sceneImage?: string
sceneImageAlt?: string
/** Invite link destination. */
href?: string
target?: "_self" | "_blank"
/** Click handler. Return a promise to show loading; reject it to show the error line. */
onAction?: () => void | PromiseLike<unknown>
disabled?: boolean
state?: "default" | "hover" | "active" | "disabled" | "error"
className?: string
}
const DEFAULT_OPEN: JoinCommunity3Step = {
title: "Open the group",
detail: "The join button below takes you to the group page.",
}
const DEFAULT_QUESTIONS_STEP: JoinCommunity3Step = {
title: "Answer the entry questions",
detail: "Short, honest answers are all it takes. There are no wrong ones.",
}
const DEFAULT_INTRO: JoinCommunity3Step = {
title: "Post your intro",
detail: "Say hello, share what you're working on and ask your first question.",
}
const DEFAULT_QUESTIONS = ["What are you working on right now?", "What would you like help with first?"]
const DEFAULT_REASONS = [
"You put the method to work on your own situation, not a sample.",
"You ask before you guess, while the steps are still fresh.",
"You see how others handle the same step you're on.",
]
export function JoinCommunity3(props: JoinCommunity3Props) {
const {
headline = "Here's exactly how you get",
headlineMark = "inside the group.",
lead = "Every step and every entry question is shown up front, so nothing catches you off guard.",
groupName = "The private group",
pathLabel = "How to join the group",
openStep = DEFAULT_OPEN,
questionsStep = DEFAULT_QUESTIONS_STEP,
introStep = DEFAULT_INTRO,
questions = DEFAULT_QUESTIONS,
questionsLabel = "You'll be asked:",
finishLabel = "Then you're in",
label = "Join the group",
loadingLabel = "Opening the group…",
secondaryLabel = "or read why it matters first",
errorMessage = "We couldn't open the group. Please try again.",
newTabLabel = "(opens in a new tab)",
reasonTitle = "Why finishing inside the group matters",
reasons = DEFAULT_REASONS,
sceneImage,
sceneImageAlt = "",
href,
target = "_self",
onAction,
disabled = false,
state = "default",
className,
} = props
const uid = React.useId().replace(/[^a-zA-Z0-9_-]/g, "")
const titleId = `cfjc3-${uid}-title`
const whyId = `cfjc3-${uid}-why`
const errId = `cfjc3-${uid}-err`
const entryQuestions = questions.filter((question) => question.trim().length > 0)
const steps: PathStop[] = [{ key: "open", step: openStep }]
if (entryQuestions.length > 0) steps.push({ key: "questions", step: questionsStep, questions: entryQuestions })
steps.push({ key: "intro", step: introStep })
const total = steps.length
const columns = steps.map((stop) => (stop.questions ? "minmax(0,1.45fr)" : "minmax(0,1fr)")).join(" ")
const rootRef = React.useRef<HTMLElement>(null)
const [seen, setSeen] = React.useState(false)
const [busy, setBusy] = React.useState(false)
const [failed, setFailed] = React.useState(false)
const alive = React.useRef(true)
React.useEffect(() => {
alive.current = true
return () => {
alive.current = false
}
}, [])
// Draw the path toward the button once, when the block scrolls into view.
React.useEffect(() => {
const node = rootRef.current
if (!node || typeof IntersectionObserver === "undefined") {
setSeen(true)
return
}
const observer = new IntersectionObserver(
(entries) => {
if (entries.some((entry) => entry.isIntersecting)) {
setSeen(true)
observer.disconnect()
}
},
{ threshold: 0.2 },
)
observer.observe(node)
return () => observer.disconnect()
}, [])
const forced = state === "hover" || state === "active"
const reach = forced || seen ? total : 0
const isDisabled = disabled || state === "disabled"
const showError = !busy && (failed || state === "error")
const hasReasons = Boolean(reasonTitle) || reasons.length > 0
const handleClick = (event: React.MouseEvent<HTMLElement>) => {
if (isDisabled || busy) {
event.preventDefault()
return
}
setFailed(false)
if (!onAction) return
let result: unknown
try {
result = onAction()
} catch {
event.preventDefault()
setFailed(true)
return
}
if (isThenable(result)) {
setBusy(true)
Promise.resolve(result).then(
() => {
if (alive.current) setBusy(false)
},
() => {
if (!alive.current) return
setBusy(false)
setFailed(true)
},
)
}
}
const describedBy = showError ? errId : undefined
const inner = (
<>
{busy ? <Loader2 className="cf-jc3__spin" size={20} strokeWidth={2.5} aria-hidden="true" /> : null}
<span>{busy ? loadingLabel : label}</span>
{href && target === "_blank" && !busy ? <span className="cf-jc3__sr">{newTabLabel}</span> : null}
</>
)
const action =
href && !isDisabled ? (
<a
className="cf-jc3__btn"
href={href}
target={target}
rel={target === "_blank" ? "noopener noreferrer" : undefined}
onClick={handleClick}
aria-busy={busy || undefined}
aria-describedby={describedBy}
>
{inner}
</a>
) : (
<button
type="button"
className="cf-jc3__btn"
onClick={handleClick}
disabled={isDisabled}
aria-busy={busy || undefined}
aria-describedby={describedBy}
>
{inner}
</button>
)
return (
<section
ref={rootRef}
className={["cf-join-community-3", className].filter(Boolean).join(" ")}
data-state={state}
aria-labelledby={titleId}
style={{ ...FX_HOST, "--jc3-cols": columns } as React.CSSProperties}
>
<style dangerouslySetInnerHTML={{ __html: CSS }} />
<Pattern name="grid" fade="corner" />
<div className="cf-jc3__inner">
<header className="cf-jc3__head">
<h2 id={titleId} className="cf-jc3__title">
{headline}
{headlineMark ? (
<>
{" "}
<span className="cf-jc3__mark">{headlineMark}</span>
</>
) : null}
</h2>
{lead ? <p className="cf-jc3__lead">{lead}</p> : null}
</header>
<div className="cf-jc3__path">
<ol className="cf-jc3__steps" aria-label={pathLabel}>
{steps.map((stop, index) => {
const stepTitleId = `cfjc3-${uid}-step-${index}`
const stepDetailId = `cfjc3-${uid}-detail-${index}`
return (
<li
key={stop.key}
className="cf-jc3__step"
aria-labelledby={stepTitleId}
aria-describedby={stepDetailId}
style={{ "--i": index } as React.CSSProperties}
>
<div className="cf-jc3__node" aria-hidden="true">
<span className="cf-jc3__num">{index + 1}</span>
<span className="cf-jc3__rail" data-fill={index < reach ? "" : undefined}>
<span className="cf-jc3__fill" />
</span>
</div>
<h3 id={stepTitleId} className="cf-jc3__step-title">
{stop.step.title}
</h3>
<div className="cf-jc3__body">
{stop.questions ? (
<div className="cf-jc3__qs">
<p className="cf-jc3__qs-label">{questionsLabel}</p>
<ul className="cf-jc3__qs-list">
{stop.questions.map((question, questionIndex) => (
<li key={questionIndex} className="cf-jc3__q">
<MessageCircleQuestion size={18} strokeWidth={2.5} aria-hidden="true" />
<span>{question}</span>
</li>
))}
</ul>
</div>
) : null}
<p id={stepDetailId} className="cf-jc3__detail">
{stop.step.detail}
</p>
</div>
</li>
)
})}
</ol>
<div className="cf-jc3__end" style={{ "--i": total } as React.CSSProperties}>
<div className="cf-jc3__stop">
<span className="cf-jc3__spot" aria-hidden="true">
<Spot src={community} size={56} />
</span>
<p className="cf-jc3__stop-text">
<span className="cf-jc3__stop-label">{finishLabel}</span>
<span className="cf-jc3__stop-name">{groupName}</span>
</p>
</div>
{action}
{showError ? (
<p id={errId} className="cf-jc3__error" role="alert">
<AlertCircle size={16} strokeWidth={2.5} aria-hidden="true" />
{errorMessage}
</p>
) : null}
{hasReasons && secondaryLabel ? (
<a className="cf-jc3__quiet" href={`#${whyId}`}>
{secondaryLabel}
</a>
) : null}
</div>
</div>
{hasReasons ? (
<div
id={whyId}
className="cf-jc3__why"
data-photo={sceneImage ? "" : undefined}
style={{ "--i": total + 1 } as React.CSSProperties}
>
{sceneImage ? (
<div className="cf-jc3__photo">
<img src={sceneImage} alt={sceneImageAlt} loading="lazy" decoding="async" />
</div>
) : null}
<div className="cf-jc3__why-copy">
{reasonTitle ? <h3 className="cf-jc3__why-title">{reasonTitle}</h3> : null}
{reasons.length > 0 ? (
<ul className="cf-jc3__reasons">
{reasons.map((reason, reasonIndex) => (
<li key={reasonIndex}>
<Check size={18} strokeWidth={2.5} aria-hidden="true" />
<span>{reason}</span>
</li>
))}
</ul>
) : null}
</div>
</div>
) : null}
</div>
</section>
)
}
export default JoinCommunity3
type PathStop = { key: string; step: JoinCommunity3Step; questions?: string[] }
function isThenable(value: unknown): value is PromiseLike<unknown> {
return typeof value === "object" && value !== null && typeof (value as { then?: unknown }).then === "function"
}
const CSS = `
.cf-join-community-3{
--jc3-pad:0px;--jc3-gap:32px;--jc3-endgap:32px;--jc3-node:64px;
--jc3-marker:var(--marker,#fae37c);
--jc3-line:oklch(from var(--ink) l c h / .14);
--jc3-tint:color-mix(in oklch,var(--accent) 9%,var(--card));
--jc3-well:color-mix(in oklch,var(--ink) 5%,var(--card));
--jc3-shadow:var(--shadow,oklch(0.22 0.03 260));
--jc3-bg:var(--button-bg,var(--cta));
--jc3-bg-2:var(--button-bg-2,var(--cta-2));
position:relative;isolation:isolate;overflow-x:clip;width:100%;box-sizing:border-box;
padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);
background:var(--surface);color:var(--ink);font-family:var(--font-body);
}
.cf-join-community-3 *,.cf-join-community-3 *::before,.cf-join-community-3 *::after{box-sizing:border-box}
.cf-jc3__inner{position:relative;z-index:1;max-width:1120px;margin-inline:auto}
.cf-jc3__head{max-width:46rem;margin:0 auto clamp(32px,4vw,48px);text-align:center}
.cf-jc3__title{margin:0;font-family:var(--font-display);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);color:var(--ink);text-wrap:balance}
.cf-jc3__mark{color:var(--jc3-mark-ink,var(--ink));background-image:linear-gradient(176deg,transparent 36%,var(--jc3-marker) 36%,var(--jc3-marker) 93%,transparent 93%);padding:0 .14em;margin:0 -.04em;border-radius:.2em .55em .3em .45em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-jc3__lead{margin:16px 0 0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-jc3__path{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--jc3-endgap);align-items:start}
.cf-jc3__steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:var(--jc3-cols,repeat(3,minmax(0,1fr)));grid-template-rows:auto auto auto;column-gap:var(--jc3-gap)}
.cf-jc3__step{grid-row:span 3;display:grid;grid-template-rows:subgrid;min-width:0;padding:var(--jc3-pad)}
.cf-jc3__node{display:flex;align-items:center;height:var(--jc3-node)}
.cf-jc3__num{display:flex;align-items:center;flex:none;height:var(--jc3-node);font-family:var(--font-display);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;font-weight:var(--display-weight,800);letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--accent)}
.cf-jc3__rail{position:relative;flex:1 1 auto;height:4px;margin-inline:14px calc(-1 * (2 * var(--jc3-pad) + var(--jc3-gap) - 12px));border-radius:999px;background:var(--jc3-line);overflow:hidden}
.cf-jc3__step:last-child .cf-jc3__rail{margin-inline-end:calc(-1 * (var(--jc3-pad) + var(--jc3-endgap) - 12px))}
.cf-jc3__fill{position:absolute;inset:0;border-radius:inherit;background:var(--accent-fill,var(--accent));transform:scaleX(0);transform-origin:left center}
.cf-jc3__rail[data-fill] .cf-jc3__fill{transform:scaleX(1)}
.cf-jc3__step-title{margin:16px 0 0;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-.01em;color:var(--ink);text-wrap:balance}
.cf-jc3__body{min-width:0}
.cf-jc3__qs{margin-top:16px}
.cf-jc3__qs-label{margin:0 0 8px;font-size:.9375rem;line-height:1.4;font-weight:700;color:var(--ink)}
.cf-jc3__qs-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.cf-jc3__q{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:10px;background:var(--jc3-well);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;color:var(--ink);text-wrap:pretty}
.cf-jc3__q svg{flex:none;margin-top:.15em;color:var(--accent)}
.cf-jc3__detail{margin:12px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty}
.cf-jc3__end{display:grid;align-content:start;min-width:260px;max-width:22.5rem;padding-top:var(--jc3-pad)}
.cf-jc3__stop{display:flex;align-items:flex-start;gap:12px;min-height:var(--jc3-node)}
.cf-jc3__spot{flex:none;display:flex;align-items:center;justify-content:center;width:var(--jc3-node);height:var(--jc3-node)}
.cf-jc3__stop-text{margin:0;padding-top:8px;display:grid;gap:2px;min-width:0}
.cf-jc3__stop-label{font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted)}
.cf-jc3__stop-name{font-family:var(--font-display);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.25;font-weight:var(--display-weight,800);color:var(--ink);text-wrap:balance}
.cf-jc3__btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:64px;margin:16px 0 0;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));font-family:var(--button-font,var(--font-display));font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;font-weight:var(--button-weight,800);text-transform:var(--button-case,none);text-align:center;white-space:nowrap;text-decoration:none;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);cursor:pointer;background:linear-gradient(oklch(from var(--jc3-bg) calc(l + .04) c h),oklch(from var(--jc3-bg-2) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--jc3-bg) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--jc3-bg) calc(l - .16) c h),0 1px 2px oklch(from var(--jc3-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--jc3-shadow) l c h / .38))}
.cf-jc3__btn:hover:not(:disabled),.cf-join-community-3[data-state=hover] .cf-jc3__btn{background:linear-gradient(oklch(from var(--jc3-bg) calc(l - .01) c h),oklch(from var(--jc3-bg-2) calc(l - .07) c h));box-shadow:inset 0 1px 0 oklch(from var(--jc3-bg) calc(l + .12) c h / .7),inset 0 -3px 0 oklch(from var(--jc3-bg) calc(l - .2) c h),0 1px 2px oklch(from var(--jc3-shadow) l c h / .32),0 10px 20px -6px oklch(from var(--jc3-shadow) l c h / .46)}
.cf-jc3__btn:active:not(:disabled),.cf-join-community-3[data-state=active] .cf-jc3__btn{transform:translateY(1px);background:linear-gradient(oklch(from var(--jc3-bg) calc(l - .04) c h),oklch(from var(--jc3-bg-2) calc(l - .09) c h));box-shadow:inset 0 2px 4px oklch(from var(--jc3-bg) calc(l - .24) c h / .45),inset 0 -2px 0 oklch(from var(--jc3-bg) calc(l - .16) c h),0 1px 1px oklch(from var(--jc3-shadow) l c h / .3)}
.cf-jc3__btn:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.cf-jc3__btn:disabled{cursor:not-allowed;transform:none;background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm))}
.cf-jc3__btn[aria-busy=true]{cursor:progress}
.cf-jc3__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cf-jc3__error{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--danger);text-align:center;text-wrap:pretty}
.cf-jc3__error svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
.cf-jc3__quiet{justify-self:center;margin-top:12px;border-radius:4px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-align:center;text-decoration:underline;text-decoration-color:oklch(from var(--muted) l c h / .45);text-underline-offset:.18em}
.cf-jc3__quiet:hover{color:var(--ink);text-decoration-color:currentColor}
.cf-jc3__quiet:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.cf-jc3__why{scroll-margin-top:24px;display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(24px,3vw,40px);margin-top:clamp(32px,4vw,48px);padding:clamp(20px,3vw,32px);background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(from var(--jc3-shadow) l c h / .22),0 4px 10px -2px oklch(from var(--jc3-shadow) l c h / .2)))}
.cf-jc3__why[data-photo]{grid-template-columns:minmax(0,22rem) minmax(0,1fr)}
.cf-jc3__photo{position:relative;min-height:220px;overflow:hidden;border-radius:12px;background:var(--jc3-well)}
.cf-jc3__photo img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center 40%}
.cf-jc3__why-copy{min-width:0;align-self:start}
.cf-jc3__why-title{margin:0;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-.01em;color:var(--ink);text-wrap:balance}
.cf-jc3__reasons{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:12px}
.cf-jc3__reasons li{display:flex;align-items:flex-start;gap:12px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty}
.cf-jc3__reasons svg{flex:none;margin-top:.2em;color:var(--success)}
@media (max-width:1180px){
.cf-join-community-3{--jc3-pad:0px;--jc3-gap:24px;--jc3-node:48px}
.cf-jc3__head{max-width:40rem;text-align:left}
.cf-jc3__path{grid-template-columns:minmax(0,1fr);row-gap:var(--jc3-gap);max-width:40rem;margin-inline:auto}
.cf-jc3__steps{grid-template-columns:minmax(0,1fr);grid-template-rows:none;row-gap:var(--jc3-gap)}
.cf-jc3__step{grid-row:auto;grid-template-rows:none;grid-template-columns:var(--jc3-node) minmax(0,1fr);column-gap:16px}
.cf-jc3__node{grid-column:1;grid-row:1 / span 2;flex-direction:column;height:auto}
.cf-jc3__step > :not(.cf-jc3__node){grid-column:2}
.cf-jc3__num{font-size:2.5rem}
.cf-jc3__step-title{margin-top:0;padding-top:10px}
.cf-jc3__rail{width:4px;height:auto;min-height:24px;margin:10px 0 calc(-1 * (2 * var(--jc3-pad) + var(--jc3-gap) - 10px))}
.cf-jc3__step:last-child .cf-jc3__rail{margin-inline-end:0;margin-bottom:calc(-1 * (var(--jc3-pad) + var(--jc3-gap) - 10px))}
.cf-jc3__fill{transform:scaleY(0);transform-origin:center top}
.cf-jc3__rail[data-fill] .cf-jc3__fill{transform:scaleY(1)}
.cf-jc3__end{min-width:0;max-width:none;padding:0}
.cf-jc3__stop{gap:16px;align-items:center;min-height:0}
.cf-jc3__spot > *{transform:scale(.86)}
.cf-jc3__stop-text{padding-top:4px}
.cf-jc3__btn{white-space:normal;text-wrap:balance;padding:14px 24px}
.cf-jc3__why{max-width:40rem;margin-inline:auto}
.cf-jc3__why[data-photo]{grid-template-columns:minmax(0,14rem) minmax(0,1fr)}
}
@media (max-width:560px){
.cf-jc3__why[data-photo]{grid-template-columns:minmax(0,1fr)}
.cf-jc3__photo{min-height:0;aspect-ratio:16/9}
}
@media (prefers-reduced-motion:no-preference){
.cf-jc3__fill{transition:transform .5s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--i,0) * .14s)}
.cf-jc3__btn{transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-jc3__quiet{transition:color .16s ease}
.cf-jc3__step,.cf-jc3__end,.cf-jc3__why{animation:cf-jc3-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:min(calc(var(--i,0) * .07s),.28s)}
.cf-jc3__spin{animation:cf-jc3-spin .8s linear infinite}
@keyframes cf-jc3-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cf-jc3-spin{to{transform:rotate(360deg)}}
}
`
pieces/checkout/join-community-3/specimen.tsx 53 lines
import __studioImage1e21ea84 from "../assets/dacb53a22cffe957.webp";
// Specimen: the Shelf Ready Pricing Room invite on the Wholesale Pricing Masterclass confirmation page.
import * as React from "react"
import { JoinCommunity3 } from "../join-community-3"
import { slot } from "../../slots"
type SpecimenState = "default" | "hover" | "active" | "disabled" | "error"
export const states = ["default", "hover", "active", "disabled", "error"]
export default function JoinCommunity3Specimen({ state = "default" }: { state?: SpecimenState }) {
return (
<JoinCommunity3
state={state}
headline="Your seat is saved. Now set your wholesale prices"
headlineMark="with the room behind you."
lead="Here's every step into the Shelf Ready Pricing Room, including the questions you'll be asked, so nothing surprises you."
groupName="Shelf Ready Pricing Room"
pathLabel="How to join the Shelf Ready Pricing Room"
openStep={{
title: "Open the Pricing Room",
detail: "The join button below takes you straight to the group page.",
}}
questionsStep={{
title: "Answer the entry questions",
detail: "A sentence each is plenty. It helps the room point you to the right pricing threads.",
}}
introStep={{
title: "Post your intro",
detail: "Share what you make and one price you're unsure about. That's your first thread.",
}}
questions={[
"What do you make, and where do you sell it today?",
"Are you pricing for wholesale for the first time?",
"Which stores or markets are you hoping to land?",
]}
label="Join the Pricing Room"
loadingLabel="Opening the Pricing Room…"
errorMessage="We couldn't open the Pricing Room. Please try again."
reasonTitle="Why your prices get set inside the room"
reasons={[
"Run the masterclass pricing formula on your real product costs, not a sample.",
"Ask about your margins before you send a line sheet to a store.",
"See how other makers set case packs and minimums for the same step.",
]}
sceneImage={slot(
"scene",
__studioImage1e21ea84,
)}
sceneImageAlt="A maker working through product costs at a studio workbench"
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalJoinCommunity3 |
string |
|
headlineMark OptionalJoinCommunity3 |
string |
|
lead OptionalJoinCommunity3 |
string |
|
groupName OptionalJoinCommunity3 |
string |
|
pathLabel OptionalJoinCommunity3 |
string |
|
openStep OptionalJoinCommunity3 |
JoinCommunity3Step |
|
questionsStep OptionalJoinCommunity3 |
JoinCommunity3Step |
|
introStep OptionalJoinCommunity3 |
JoinCommunity3Step |
|
questions OptionalJoinCommunity3 |
string[] |
|
questionsLabel OptionalJoinCommunity3 |
string |
|
finishLabel OptionalJoinCommunity3 |
string |
|
label OptionalJoinCommunity3 |
string |
|
loadingLabel OptionalJoinCommunity3 |
string |
|
secondaryLabel OptionalJoinCommunity3 |
string |
|
errorMessage OptionalJoinCommunity3 |
string |
|
newTabLabel OptionalJoinCommunity3 |
string |
|
reasonTitle OptionalJoinCommunity3 |
string |
|
reasons OptionalJoinCommunity3 |
string[] |
|
sceneImage OptionalJoinCommunity3 |
string |
|
sceneImageAlt OptionalJoinCommunity3 |
string |
|
href OptionalJoinCommunity3 |
string |
|
target OptionalJoinCommunity3 |
"_self" | "_blank" |
|
onAction OptionalJoinCommunity3 |
() => void | PromiseLike<unknown> |
|
disabled OptionalJoinCommunity3 |
boolean |
|
state OptionalJoinCommunity3 |
"default" | "hover" | "active" | "disabled" | "error" |
|
className OptionalJoinCommunity3 |
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-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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
scene- A wide atmosphere photo behind or beside the copy.
-
5602e47ebdb81810.webp
image/webp · 35.6 KB
-
dacb53a22cffe957.webp
image/webp · 65.6 KB