Job Listing 1
Recruiting jobs board: a team photo with the open-roles board breaking its lower edge. Visitors filter by team and
Use it in a prompt
Use content/job-listing 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/job-listing.tsx. - Import it and pass your copy and images (Props tab):
import { JobListing } from "@/components/funneldna/content/job-listing"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/job-listing/component.tsx 688 lines
// layout: photo-overlap-card
// Recruiting jobs board: a team photo with the open-roles board breaking its lower edge. Visitors filter by team and
// location, open one role to see what they would own and the pay, then apply with a two-line button.
import * as React from 'react'
import { AnimatePresence, motion, useReducedMotion } from 'motion/react'
import {
AlertCircle,
Banknote,
Briefcase,
CalendarDays,
Check,
ChevronDown,
Clock,
GraduationCap,
HeartHandshake,
Laptop,
MapPin,
SearchX,
TrendingUp,
Users,
Wallet,
type LucideIcon,
} from 'lucide-react'
export type JobWhyIcon = 'laptop' | 'clock' | 'learn' | 'heart' | 'growth' | 'pay' | 'team' | 'calendar'
export type JobRole = {
/** Stable key; falls back to the title. */
id?: string
title: string
team: string
location: string
/** Employment type, e.g. Full-time or Contract. */
type: string
/** Pay range exactly as supplied; leave out when not supplied. */
pay?: string
/** Supplied breakdown shown under the pay, e.g. about $5,700 a month. */
payNote?: string
summary?: React.ReactNode
/** What the hire would own, one line each. */
duties?: string[]
/** Application page for this role. */
href?: string
}
export type JobWhy = { icon?: JobWhyIcon; title: string; detail?: string }
export type JobListingCopy = {
countOne: string
countMany: string
/** Line under the count when no filter is on. */
countAll: string
teamLegend: string
locationLegend: string
allLabel: string
/** Chip accessible label; {label} and {count} are replaced. */
chipLabel: string
viewRole: string
closeRole: string
dutiesHeading: string
applyLabel: string
/** Benefit line inside the apply button. */
applySub: string
emptyTitle: string
emptyText: string
resetLabel: string
noRolesTitle: string
noRolesText: string
notifyLabel: string
notifyPlaceholder: string
notifyButton: string
notifyError: string
}
const DEFAULT_COPY: JobListingCopy = {
countOne: 'open role',
countMany: 'open roles',
countAll: 'Across every team and location',
teamLegend: 'Team',
locationLegend: 'Location',
allLabel: 'All',
chipLabel: '{label}, {count} matching',
viewRole: 'See the role',
closeRole: 'Close',
dutiesHeading: `What you'll own in your first 90 days`,
applyLabel: 'Apply for this role',
applySub: 'Opens the short application',
emptyTitle: 'No roles match those filters yet',
emptyText: 'Try another team or location, or get new roles by email.',
resetLabel: 'Show all roles',
noRolesTitle: 'New roles are posted here first',
noRolesText: 'Leave your email to hear when one opens.',
notifyLabel: `Don't see your role? Get new roles by email.`,
notifyPlaceholder: 'you@example.com',
notifyButton: 'Notify me',
notifyError: 'Enter a valid email so we can send you new roles.',
}
export type JobListingProps = {
headline?: React.ReactNode
/** Phrase inside a string headline that gets the marker stroke. */
highlight?: string
lead?: React.ReactNode
/** Italic aside in the founder's voice under the lead. */
aside?: React.ReactNode
/** Slot scene: the team photo the board overlaps. */
sceneImage?: string
sceneAlt?: string
roles?: JobRole[]
whyHeading?: React.ReactNode
/** Reasons to work here; the strip hides when empty. */
why?: JobWhy[]
/** Show the get-new-roles-by-email field. */
showNotify?: boolean
copy?: Partial<JobListingCopy>
/** Apply click for a role (runs alongside href navigation). */
onAction?: (role: JobRole) => void
/** Validated email from the new-roles field. */
onSubmit?: (values: { email: string }) => void
state?: 'default' | 'hover' | 'active' | 'disabled' | 'error'
className?: string
}
const WHY_ICONS: Record<JobWhyIcon, LucideIcon> = {
laptop: Laptop,
clock: Clock,
learn: GraduationCap,
heart: HeartHandshake,
growth: TrendingUp,
pay: Wallet,
team: Users,
calendar: CalendarDays,
}
const EASE: [number, number, number, number] = [0.2, 0.7, 0.2, 1]
export function JobListing(props: JobListingProps) {
const {
headline = 'Do the best work of your career, on a team that ships',
highlight = 'on a team that ships',
lead = `Pick a role below, see exactly what you'd own, and apply in a few minutes.`,
aside,
sceneImage,
sceneAlt = 'The team at work',
roles = [],
whyHeading = 'Why people do their best work here',
why = [],
showNotify = true,
onAction,
onSubmit,
state = 'default',
className,
} = props
const copy: JobListingCopy = { ...DEFAULT_COPY, ...props.copy }
const reduce = Boolean(useReducedMotion())
const uid = React.useId()
const [team, setTeam] = React.useState<string | null>(null)
const [place, setPlace] = React.useState<string | null>(null)
const [openKey, setOpenKey] = React.useState<string | null | undefined>(undefined)
const [email, setEmail] = React.useState('')
const [error, setError] = React.useState<string | null>(state === 'error' ? copy.notifyError : null)
React.useEffect(() => {
setError(state === 'error' ? copy.notifyError : null)
}, [state, copy.notifyError])
const disabled = state === 'disabled'
const forced = state === 'hover' ? ' is-hover' : state === 'active' ? ' is-active' : ''
const keyed = roles.map((role, i) => ({ role, key: role.id ?? `${role.title}-${i}` }))
const teams = unique(roles.map((r) => r.team))
const places = unique(roles.map((r) => r.location))
const matches = (r: JobRole, t: string | null, p: string | null) => (!t || r.team === t) && (!p || r.location === p)
const visible = keyed.filter(({ role }) => matches(role, team, place))
const activeKey = openKey === undefined ? visible[0]?.key ?? null : openKey
const n = visible.length
const filtered = Boolean(team || place)
const errId = `${uid}-err`
const emailId = `${uid}-email`
const pickTeam = (v: string | null) => {
setTeam(v)
setOpenKey(undefined)
}
const pickPlace = (v: string | null) => {
setPlace(v)
setOpenKey(undefined)
}
const reset = () => {
setTeam(null)
setPlace(null)
setOpenKey(undefined)
}
const submit = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault()
if (disabled) return
const value = email.trim()
if (!isEmail(value)) {
setError(copy.notifyError)
return
}
setError(null)
onSubmit?.({ email: value })
}
return (
<section className={['cf-job-listing', sceneImage ? '' : 'is-no-photo', className].filter(Boolean).join(' ')}>
<style>{CSS}</style>
<div className='cf-jl-wrap cf-jl-head cf-jl-rise'>
<h2 className='cf-jl-h2'>{withHighlight(headline, highlight)}</h2>
<div className='cf-jl-intro'>
{lead ? <p className='cf-jl-lead'>{lead}</p> : null}
{aside ? <p className='cf-jl-aside'>{aside}</p> : null}
</div>
</div>
{sceneImage ? (
<figure className='cf-jl-photo cf-jl-rise cf-jl-d1'>
<img src={sceneImage} alt={sceneAlt} width={1600} height={900} loading='lazy' />
</figure>
) : null}
<div className='cf-jl-floor'>
<div className='cf-jl-wrap'>
<div className={`cf-jl-board cf-jl-rise cf-jl-d2${roles.length ? ' has-filters' : ''}`}>
{roles.length ? (
<div className='cf-jl-filters'>
<p className='cf-jl-count' aria-live='polite'>
<motion.span
key={n}
className='cf-jl-count-n'
initial={reduce ? false : { scale: 0.9, opacity: 0.6 }}
animate={{ scale: 1, opacity: 1 }}
transition={{ duration: reduce ? 0 : 0.3, ease: EASE }}
>
{n}
</motion.span>
<span className='cf-jl-count-l'>{n === 1 ? copy.countOne : copy.countMany}</span>
<span className='cf-jl-count-sub'>{filtered ? [team, place].filter(Boolean).join(' · ') : copy.countAll}</span>
</p>
{teams.length > 1 ? (
<FilterGroup
legend={copy.teamLegend}
allLabel={copy.allLabel}
chipLabel={copy.chipLabel}
values={teams}
value={team}
onPick={pickTeam}
count={(v) => roles.filter((r) => matches(r, v, place)).length}
/>
) : null}
{places.length > 1 ? (
<FilterGroup
legend={copy.locationLegend}
allLabel={copy.allLabel}
chipLabel={copy.chipLabel}
values={places}
value={place}
onPick={pickPlace}
count={(v) => roles.filter((r) => matches(r, team, v)).length}
/>
) : null}
</div>
) : null}
<div className='cf-jl-list'>
{roles.length === 0 ? (
<div className='cf-jl-empty'>
<SearchX size={24} strokeWidth={2.5} aria-hidden='true' />
<p className='cf-jl-empty-t'>{copy.noRolesTitle}</p>
<p className='cf-jl-empty-d'>{copy.noRolesText}</p>
</div>
) : n === 0 ? (
<div className='cf-jl-empty'>
<SearchX size={24} strokeWidth={2.5} aria-hidden='true' />
<p className='cf-jl-empty-t'>{copy.emptyTitle}</p>
<p className='cf-jl-empty-d'>{copy.emptyText}</p>
<button type='button' className='cf-jl-btn2' onClick={reset}>
{copy.resetLabel}
</button>
</div>
) : (
<ul className='cf-jl-roles' role='list'>
<AnimatePresence initial={false} mode='popLayout'>
{visible.map(({ role, key }) => {
const open = key === activeKey
const safe = key.replace(/[^a-zA-Z0-9_-]/g, '')
const bid = `${uid}-${safe}-b`
const pid = `${uid}-${safe}-p`
return (
<motion.li
key={key}
className={`cf-jl-role${open ? ' is-open' : ''}`}
initial={reduce ? false : { opacity: 0.6, y: 8 }}
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0, transition: { duration: reduce ? 0 : 0.15 } }}
transition={{ duration: reduce ? 0 : 0.32, ease: EASE }}
>
<div className='cf-jl-role-head'>
<div className='cf-jl-role-main'>
<h3 className='cf-jl-role-title'>
<button
type='button'
id={bid}
className='cf-jl-role-btn'
aria-expanded={open}
aria-controls={pid}
onClick={() => setOpenKey(open ? null : key)}
>
{role.title}
</button>
</h3>
<p className='cf-jl-meta'>
<span className='cf-jl-team'>{role.team}</span>
<span>
<MapPin size={16} strokeWidth={2.5} aria-hidden='true' />
{role.location}
</span>
<span>
<Briefcase size={16} strokeWidth={2.5} aria-hidden='true' />
{role.type}
</span>
{role.pay && !open ? (
<span>
<Banknote size={16} strokeWidth={2.5} aria-hidden='true' />
{role.pay}
</span>
) : null}
</p>
</div>
<span className='cf-jl-toggle' aria-hidden='true'>
<span className='cf-jl-toggle-t'>{open ? copy.closeRole : copy.viewRole}</span>
<span className='cf-jl-disc'>
<ChevronDown size={20} strokeWidth={2.5} />
</span>
</span>
</div>
<AnimatePresence initial={false}>
{open ? (
<motion.div
key='panel'
id={pid}
role='region'
aria-labelledby={bid}
className='cf-jl-panel'
initial={reduce ? false : { height: 0, opacity: 0.6 }}
animate={{ height: 'auto', opacity: 1 }}
exit={{ height: 0, opacity: 0, transition: { duration: reduce ? 0 : 0.24, ease: EASE } }}
transition={{ duration: reduce ? 0 : 0.32, ease: EASE }}
>
<div className='cf-jl-panel-in'>
<div className='cf-jl-detail'>
{role.summary ? <p className='cf-jl-summary'>{role.summary}</p> : null}
{role.duties?.length ? (
<>
<p className='cf-jl-duties-h'>{copy.dutiesHeading}</p>
<ul className='cf-jl-duties' role='list'>
{role.duties.map((d) => (
<li key={d}>
<Check size={18} strokeWidth={2.5} aria-hidden='true' />
{d}
</li>
))}
</ul>
</>
) : null}
</div>
<div className='cf-jl-deal'>
{role.pay ? (
<div>
<p className='cf-jl-pay'>{role.pay}</p>
{role.payNote ? <p className='cf-jl-pay-note'>{role.payNote}</p> : null}
</div>
) : null}
<ApplyButton
role={role}
label={copy.applyLabel}
sub={copy.applySub}
describedBy={bid}
disabled={disabled}
forced={forced}
onAction={onAction}
/>
</div>
</div>
</motion.div>
) : null}
</AnimatePresence>
</motion.li>
)
})}
</AnimatePresence>
</ul>
)}
</div>
{showNotify ? (
<form className='cf-jl-notify' noValidate onSubmit={submit}>
<label htmlFor={emailId} className='cf-jl-notify-l'>
{copy.notifyLabel}
</label>
<div className='cf-jl-notify-row'>
<input
id={emailId}
className='cf-jl-field'
type='email'
name='email'
autoComplete='email'
inputMode='email'
placeholder={copy.notifyPlaceholder}
value={email}
disabled={disabled}
aria-invalid={error ? true : undefined}
aria-describedby={error ? errId : undefined}
onChange={(e) => {
setEmail(e.target.value)
if (error) setError(null)
}}
/>
<button type='submit' className='cf-jl-btn2' disabled={disabled}>
{copy.notifyButton}
</button>
</div>
{error ? (
<p id={errId} className='cf-jl-error' role='alert'>
<AlertCircle size={16} strokeWidth={2.5} aria-hidden='true' />
{error}
</p>
) : null}
</form>
) : null}
</div>
{why.length ? (
<div className='cf-jl-why'>
<h3 className='cf-jl-why-h'>{whyHeading}</h3>
<ul className='cf-jl-why-list' role='list'>
{why.map((w, i) => {
const Icon = WHY_ICONS[w.icon ?? 'heart']
return (
<li key={`${w.title}-${i}`} className='cf-jl-why-item'>
<span className='cf-jl-why-disc' aria-hidden='true'>
<Icon size={20} strokeWidth={2.5} />
</span>
<div>
<p className='cf-jl-why-t'>{w.title}</p>
{w.detail ? <p className='cf-jl-why-d'>{w.detail}</p> : null}
</div>
</li>
)
})}
</ul>
</div>
) : null}
</div>
</div>
</section>
)
}
export default JobListing
function FilterGroup({
legend,
allLabel,
chipLabel,
values,
value,
onPick,
count,
}: {
legend: string
allLabel: string
chipLabel: string
values: string[]
value: string | null
onPick: (v: string | null) => void
count: (v: string | null) => number
}) {
return (
<fieldset className='cf-jl-group'>
<legend className='cf-jl-legend'>{legend}</legend>
<div className='cf-jl-chips'>
{[null, ...values].map((v) => {
const label = v ?? allLabel
const c = count(v)
const on = value === v
return (
<button
key={v ?? '__all'}
type='button'
className='cf-jl-chip'
aria-pressed={on}
aria-label={chipLabel.replace('{label}', label).replace('{count}', String(c))}
onClick={() => onPick(v)}
>
{on ? <Check size={16} strokeWidth={2.5} aria-hidden='true' /> : null}
<span>{label}</span>
<span className='cf-jl-chip-n'>{c}</span>
</button>
)
})}
</div>
</fieldset>
)
}
function ApplyButton({
role,
label,
sub,
describedBy,
disabled,
forced,
onAction,
}: {
role: JobRole
label: string
sub: string
describedBy: string
disabled: boolean
forced: string
onAction?: (role: JobRole) => void
}) {
const inner = (
<>
<span className='cf-jl-apply-main'>{label}</span>
{sub ? <span className='cf-jl-apply-sub'>{sub}</span> : null}
</>
)
const cls = `cf-jl-apply${forced}`
if (role.href && !disabled) {
return (
<a className={cls} href={role.href} aria-describedby={describedBy} onClick={() => onAction?.(role)}>
{inner}
</a>
)
}
return (
<button type='button' className={cls} disabled={disabled} aria-describedby={describedBy} onClick={() => onAction?.(role)}>
{inner}
</button>
)
}
function withHighlight(text: React.ReactNode, phrase?: string): React.ReactNode {
if (typeof text !== 'string' || !phrase) return text
const i = text.indexOf(phrase)
if (i < 0) return text
return (
<>
{text.slice(0, i)}
<span className='cf-jl-mark'>{phrase}</span>
{text.slice(i + phrase.length)}
</>
)
}
function unique(list: string[]) {
return list.filter((v, i) => v && list.indexOf(v) === i)
}
function isEmail(v: string) {
const at = v.indexOf('@')
const dot = v.lastIndexOf('.')
return at > 0 && dot > at + 1 && dot < v.length - 1 && !v.includes(' ')
}
const CSS = `
.cf-job-listing{--jl-gutter:clamp(16px,5vw,48px);--jl-floor:clamp(150px,20vw,300px);--jl-lift:clamp(64px,11vw,176px);--jl-ease:cubic-bezier(.2,.7,.2,1);--jl-line:oklch(from var(--ink,#1b2333) l c h / .12);--jl-ring:oklch(from var(--field-focus,var(--accent,#2f5ad0)) l c h / .55);--jl-quiet:color-mix(in oklch,var(--ink,#1b2333) 6%,var(--card,#fff));--jl-marker:oklch(from color-mix(in oklab,var(--marker,#fae37c) 40%,var(--warning-soft,oklch(.93 .014 85))) l calc(c * 1.35) h);--jl-shadow:var(--shadow,oklch(.22 .03 260));position:relative;background:var(--surface,#fff);color:var(--ink,#1b2333);font-family:var(--font-body,system-ui,sans-serif);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;padding-top:clamp(56px,8vw,112px);overflow-x:clip}
.cf-job-listing *,.cf-job-listing *::before,.cf-job-listing *::after{box-sizing:border-box}
.cf-job-listing :where(h2,h3,p,ul,li,figure,fieldset,legend){margin:0;padding:0}
.cf-job-listing :where(ul){list-style:none}
.cf-job-listing :where(p){text-wrap:pretty}
.cf-job-listing .cf-jl-wrap{width:100%;max-width:calc(1120px + 2 * var(--jl-gutter));margin-inline:auto;padding-inline:var(--jl-gutter)}
.cf-job-listing .cf-jl-head{display:grid;gap:16px}
.cf-job-listing .cf-jl-h2{font-family:var(--font-display,system-ui,sans-serif);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-.025em);text-transform:var(--display-case,none);text-wrap:balance}
.cf-job-listing .cf-jl-mark{background:linear-gradient(transparent 56%,var(--jl-marker) 56%,var(--jl-marker) 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-inline:.06em;border-radius:.12em}
.cf-job-listing .cf-jl-lead{font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;max-width:60ch}
.cf-job-listing .cf-jl-aside{margin-top:12px;font-size:1.0625rem;line-height:1.5;font-style:italic;color:var(--muted,#545c6b);max-width:60ch}
@media (min-width:900px){.cf-job-listing .cf-jl-head{grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(32px,5vw,72px);align-items:start}.cf-job-listing .cf-jl-intro{padding-top:6px}}
.cf-job-listing .cf-jl-photo{position:relative;z-index:2;width:100%;max-width:calc(1280px + 2 * var(--jl-gutter));margin:clamp(32px,4vw,48px) auto 0;padding-inline:var(--jl-gutter)}
.cf-job-listing .cf-jl-photo img{display:block;width:100%;height:clamp(260px,44vw,580px);object-fit:cover;object-position:center 35%;border-radius:12px;background:color-mix(in oklch,var(--ink,#1b2333) 6%,var(--surface,#fff))}
.cf-job-listing .cf-jl-floor{position:relative;background:var(--band,#1c2c4c);color:var(--band-ink,#fff);margin-top:calc(-1 * var(--jl-floor));padding-top:var(--jl-floor);padding-bottom:clamp(64px,8.5vw,120px)}
.cf-job-listing.is-no-photo .cf-jl-floor{margin-top:clamp(32px,4vw,48px);padding-top:clamp(48px,6vw,72px)}
.cf-job-listing .cf-jl-board{position:relative;z-index:3;margin-top:calc(-1 * var(--jl-lift));display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:'list' 'notify';gap:24px;padding:clamp(20px,3vw,32px);background:var(--card,#fff);color:var(--ink,#1b2333);border:1px solid var(--card-border,oklch(from var(--ink,#1b2333) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 1px 3px oklch(from var(--jl-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--jl-shadow) l c h / .32)))}
.cf-job-listing.is-no-photo .cf-jl-board{margin-top:0}
.cf-job-listing .cf-jl-board.has-filters{grid-template-areas:'filters' 'list' 'notify'}
.cf-job-listing .cf-jl-filters{grid-area:filters;min-width:0}
.cf-job-listing .cf-jl-list{grid-area:list;min-width:0}
.cf-job-listing .cf-jl-notify{grid-area:notify;min-width:0;padding-top:24px;border-top:1px solid var(--jl-line)}
@media (min-width:960px){.cf-job-listing .cf-jl-board.has-filters{grid-template-columns:272px minmax(0,1fr);grid-template-rows:auto 1fr;grid-template-areas:'filters list' 'notify list';column-gap:0;row-gap:32px}.cf-job-listing .cf-jl-board.has-filters .cf-jl-filters,.cf-job-listing .cf-jl-board.has-filters .cf-jl-notify{padding-right:32px}.cf-job-listing .cf-jl-board.has-filters .cf-jl-notify{align-self:start}.cf-job-listing .cf-jl-board.has-filters .cf-jl-list{padding-left:24px;border-left:1px solid var(--jl-line)}}
.cf-job-listing .cf-jl-count{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:12px}
.cf-job-listing .cf-jl-count-n{display:inline-block;font-family:var(--font-display,system-ui,sans-serif);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}
.cf-job-listing .cf-jl-count-l{font-family:var(--font-display,system-ui,sans-serif);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-.01em}
.cf-job-listing .cf-jl-count-sub{flex-basis:100%;margin-top:12px;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted,#545c6b)}
.cf-job-listing .cf-jl-group{border:0;min-width:0;margin-top:24px}
.cf-job-listing .cf-jl-legend{float:left;width:100%;font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#545c6b)}
.cf-job-listing .cf-jl-chips{clear:both;display:flex;flex-wrap:wrap;gap:8px;padding-top:12px}
.cf-job-listing .cf-jl-chip{appearance:none;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 14px;border:1px solid var(--button-2-border,transparent);border-radius:999px;background:var(--jl-quiet);color:var(--ink,#1b2333);font:inherit;font-size:.9375rem;line-height:1.2;font-weight:700;cursor:pointer;transition:background .16s ease,color .16s ease,transform .16s ease}
.cf-job-listing .cf-jl-chip:hover{background:color-mix(in oklch,var(--ink,#1b2333) 11%,var(--card,#fff))}
.cf-job-listing .cf-jl-chip:active{transform:translateY(1px)}
.cf-job-listing .cf-jl-chip:focus-visible{outline:3px solid var(--jl-ring);outline-offset:2px}
.cf-job-listing .cf-jl-chip-n{font-variant-numeric:tabular-nums;font-weight:800;color:var(--muted,#545c6b)}
.cf-job-listing .cf-jl-chip[aria-pressed=true]{background:var(--accent-fill,var(--accent,#2f5ad0));color:var(--accent-fill-ink,var(--card,#fff));border-color:oklch(from var(--accent-fill,var(--accent,#2f5ad0)) calc(l - .08) c h)}
.cf-job-listing .cf-jl-chip[aria-pressed=true]:hover{background:oklch(from var(--accent-fill,var(--accent,#2f5ad0)) calc(l - .04) c h)}
.cf-job-listing .cf-jl-chip[aria-pressed=true] .cf-jl-chip-n{color:inherit}
.cf-job-listing .cf-jl-roles{position:relative;display:grid;gap:4px}
.cf-job-listing .cf-jl-role{position:relative;border-radius:12px;transition:background .2s ease}
.cf-job-listing .cf-jl-role + .cf-jl-role::before{content:'';position:absolute;left:16px;right:16px;top:-2px;height:1px;background:var(--jl-line)}
.cf-job-listing .cf-jl-role.is-open{background:color-mix(in oklch,var(--accent,#2f5ad0) 7%,var(--card,#fff))}
.cf-job-listing .cf-jl-role.is-open::before,.cf-job-listing .cf-jl-role.is-open + .cf-jl-role::before{opacity:0}
.cf-job-listing .cf-jl-role-head{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start;padding:20px 16px;border-radius:12px;transition:background .16s ease}
.cf-job-listing .cf-jl-role:not(.is-open) .cf-jl-role-head:hover{background:color-mix(in oklch,var(--ink,#1b2333) 4%,var(--card,#fff))}
.cf-job-listing .cf-jl-role-title{font-family:var(--font-display,system-ui,sans-serif);font-size:clamp(1.25rem,1.7vw,1.5rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-.01em;text-wrap:balance}
.cf-job-listing .cf-jl-role-btn{appearance:none;margin:0;padding:0;border:0;border-radius:var(--button-radius,var(--radius,12px));background:none;color:inherit;font:inherit;letter-spacing:inherit;text-align:left;cursor:pointer}
.cf-job-listing .cf-jl-role-btn::after{content:'';position:absolute;inset:0;border-radius:12px}
.cf-job-listing .cf-jl-role-btn:focus-visible{outline:none}
.cf-job-listing .cf-jl-role-btn:focus-visible::after{box-shadow:inset 0 0 0 3px var(--jl-ring)}
.cf-job-listing .cf-jl-meta{margin-top:12px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted,#545c6b)}
.cf-job-listing .cf-jl-meta > span{white-space:nowrap}
.cf-job-listing .cf-jl-meta svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.35em}
.cf-job-listing .cf-jl-team{display:inline-flex;align-items:center;min-height:28px;padding:4px 12px;border-radius:999px;background:var(--jl-quiet);color:var(--ink,#1b2333);font-size:.875rem;line-height:1.2;font-weight:800}
.cf-job-listing .cf-jl-toggle{display:inline-flex;align-items:center;gap:10px;font-size:.9375rem;line-height:1.2;font-weight:700;color:var(--ink,#1b2333);pointer-events:none;white-space:nowrap}
.cf-job-listing .cf-jl-disc{display:grid;place-items:center;width:40px;height:40px;border-radius:999px;background:var(--jl-quiet);transition:background .16s ease}
.cf-job-listing .cf-jl-disc svg{transition:transform .24s var(--jl-ease)}
.cf-job-listing .cf-jl-role.is-open .cf-jl-disc svg{transform:rotate(180deg)}
.cf-job-listing .cf-jl-role-head:hover .cf-jl-disc{background:color-mix(in oklch,var(--ink,#1b2333) 12%,var(--card,#fff))}
@media (max-width:699px){.cf-job-listing .cf-jl-toggle-t{display:none}}
.cf-job-listing .cf-jl-panel{overflow:hidden}
.cf-job-listing .cf-jl-panel-in{display:grid;gap:24px;padding:0 16px 20px}
.cf-job-listing .cf-jl-summary{max-width:62ch}
.cf-job-listing .cf-jl-duties-h{margin-top:16px;font-size:.9375rem;line-height:1.4;font-weight:800}
.cf-job-listing .cf-jl-detail > .cf-jl-duties-h:first-child{margin-top:0}
.cf-job-listing .cf-jl-duties{margin-top:8px;display:grid;gap:8px}
.cf-job-listing .cf-jl-duties li{position:relative;padding-left:28px;line-height:1.45}
.cf-job-listing .cf-jl-duties svg{position:absolute;left:0;top:.2em;color:var(--accent,#2f5ad0)}
.cf-job-listing .cf-jl-deal{display:grid;gap:16px;align-content:end}
.cf-job-listing .cf-jl-pay{font-family:var(--font-display,system-ui,sans-serif);font-size:clamp(1.625rem,2.4vw,2rem);line-height:1.05;font-weight:var(--display-weight,800);letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.cf-job-listing .cf-jl-pay-note{margin-top:8px;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted,#545c6b)}
@media (min-width:760px){.cf-job-listing .cf-jl-panel-in{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:32px}.cf-job-listing .cf-jl-deal{justify-items:end;text-align:right}}
.cf-job-listing .cf-jl-apply{--jl-b:var(--button-bg,var(--cta,#d93a2b));--jl-b2:var(--button-bg-2,var(--cta-2,#b52e22));display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;min-height:64px;padding:10px 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--jl-b) calc(l + .04) c h),oklch(from var(--jl-b2) calc(l - .02) c h));color:var(--button-ink,var(--cta-ink,#fff));font-family:var(--button-font,var(--font-display,system-ui,sans-serif));font-weight:var(--button-weight,800);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(--jl-b) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--jl-b) calc(l - .16) c h),0 1px 2px oklch(from var(--jl-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--jl-shadow) l c h / .45));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-job-listing .cf-jl-apply:hover,.cf-job-listing .cf-jl-apply.is-hover{background:linear-gradient(oklch(from var(--jl-b) calc(l - .01) c h),oklch(from var(--jl-b2) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--jl-b) calc(l + .12) c h / .7),inset 0 -3px 0 oklch(from var(--jl-b) calc(l - .18) c h),0 1px 2px oklch(from var(--jl-shadow) l c h / .32),0 10px 20px -6px oklch(from var(--jl-shadow) l c h / .55))}
.cf-job-listing .cf-jl-apply:active,.cf-job-listing .cf-jl-apply.is-active{transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--jl-b) calc(l - .2) c h / .55),inset 0 -2px 0 oklch(from var(--jl-b) calc(l - .16) c h),0 1px 2px oklch(from var(--jl-shadow) l c h / .3)}
.cf-job-listing .cf-jl-apply:focus-visible{outline:3px solid var(--jl-ring);outline-offset:3px}
.cf-job-listing .cf-jl-apply:disabled{background:var(--secondary,#e6e9ef);color:var(--secondary-ink,#1b2333);text-shadow:none;box-shadow:inset 0 -2px 0 oklch(from var(--secondary,#e6e9ef) calc(l - .1) c h);cursor:not-allowed;transform:none}
.cf-job-listing .cf-jl-apply-main{font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;white-space:nowrap}
.cf-job-listing .cf-jl-apply-sub{font-family:var(--font-body,system-ui,sans-serif);font-size:.875rem;line-height:1.25;font-weight:600;text-transform:none;letter-spacing:0;text-wrap:balance}
@media (min-width:760px){.cf-job-listing .cf-jl-apply{width:auto;min-width:280px}}
.cf-job-listing .cf-jl-notify-l{display:block;font-size:1rem;line-height:1.35;font-weight:700;color:var(--label-ink,var(--ink,#1b2333));text-wrap:pretty}
.cf-job-listing .cf-jl-notify-row{margin-top:12px;display:grid;gap:10px}
@media (min-width:560px) and (max-width:959px){.cf-job-listing .cf-jl-notify-row{grid-template-columns:minmax(0,1fr) auto}}
@media (min-width:960px){.cf-job-listing .cf-jl-board:not(.has-filters) .cf-jl-notify-row{grid-template-columns:minmax(0,1fr) auto}}
.cf-job-listing .cf-jl-field{width:100%;height:56px;padding:0 16px;border:1px solid var(--field-border,color-mix(in oklch,var(--ink,#1b2333) 22%,transparent));border-radius:var(--field-radius,var(--radius,12px));background:var(--field,#fff);color:var(--field-ink,#1b2333);font:inherit;font-size:1.0625rem;transition:border-color .16s ease,box-shadow .16s ease}
.cf-job-listing .cf-jl-field::placeholder{color:color-mix(in oklch,var(--field-ink,#1b2333) 65%,var(--field,#fff));opacity:1}
.cf-job-listing .cf-jl-field:focus{outline:none;border-color:var(--field-focus,var(--accent,#2f5ad0));box-shadow:0 0 0 3px oklch(from var(--field-focus,var(--accent,#2f5ad0)) l c h / .35)}
.cf-job-listing .cf-jl-field[aria-invalid=true]{border-color:var(--danger,#c0392b)}
.cf-job-listing .cf-jl-field[aria-invalid=true]:focus{box-shadow:0 0 0 3px oklch(from var(--danger,#c0392b) l c h / .3)}
.cf-job-listing .cf-jl-field:disabled{cursor:not-allowed;background:color-mix(in oklch,var(--ink,#1b2333) 4%,var(--field,#fff))}
.cf-job-listing .cf-jl-btn2{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:56px;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,#e6e9ef));color:var(--button-2-ink,var(--secondary-ink,#1b2333));font-family:var(--button-font,var(--font-display,system-ui,sans-serif));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:1.0625rem;line-height:1.15;white-space:nowrap;cursor:pointer;box-shadow:var(--button-2-shadow,var(--shadow-sm,0 1px 2px oklch(from var(--jl-shadow) l c h / .2)));transition:transform .16s ease,background .16s ease,box-shadow .16s ease}
.cf-job-listing .cf-jl-btn2:hover{background:oklch(from var(--button-2-bg,var(--secondary,#e6e9ef)) calc(l - .04) c h)}
.cf-job-listing .cf-jl-btn2:active{transform:translateY(1px);box-shadow:inset 0 2px 3px oklch(from var(--jl-shadow) l c h / .2)}
.cf-job-listing .cf-jl-btn2:focus-visible{outline:3px solid var(--jl-ring);outline-offset:2px}
.cf-job-listing .cf-jl-btn2:disabled{color:var(--muted,#545c6b);cursor:not-allowed;transform:none}
.cf-job-listing .cf-jl-error{margin-top:8px;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--danger,#c0392b)}
.cf-job-listing .cf-jl-error svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
.cf-job-listing .cf-jl-empty{display:grid;justify-items:center;gap:8px;padding:32px 24px;border-radius:12px;background:color-mix(in oklch,var(--ink,#1b2333) 4%,var(--card,#fff));text-align:center}
.cf-job-listing .cf-jl-empty > svg{color:var(--muted,#545c6b)}
.cf-job-listing .cf-jl-empty-t{margin-top:4px;font-family:var(--font-display,system-ui,sans-serif);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-.01em;text-wrap:balance}
.cf-job-listing .cf-jl-empty-d{color:var(--muted,#545c6b);max-width:44ch}
.cf-job-listing .cf-jl-empty .cf-jl-btn2{margin-top:8px}
.cf-job-listing .cf-jl-why{margin-top:clamp(48px,6vw,72px)}
.cf-job-listing .cf-jl-why-h{font-family:var(--font-display,system-ui,sans-serif);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-.01em;text-wrap:balance;color:var(--band-ink,#fff)}
.cf-job-listing .cf-jl-why-list{margin-top:24px;display:grid;gap:24px}
@media (min-width:600px){.cf-job-listing .cf-jl-why-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 32px}}
@media (min-width:1024px){.cf-job-listing .cf-jl-why-list{grid-template-columns:repeat(4,minmax(0,1fr))}}
.cf-job-listing .cf-jl-why-item{display:grid;grid-template-columns:40px minmax(0,1fr);gap:16px;align-items:start}
.cf-job-listing .cf-jl-why-disc{display:grid;place-items:center;width:40px;height:40px;border-radius:999px;background:oklch(from var(--band-ink,#fff) l c h / .12);color:var(--band-ink,#fff)}
.cf-job-listing .cf-jl-why-t{padding-top:8px;font-size:1.125rem;line-height:1.3;font-weight:800;color:var(--band-ink,#fff);text-wrap:balance}
.cf-job-listing .cf-jl-why-d{margin-top:4px;font-size:1rem;line-height:1.5;color:color-mix(in oklab,var(--band-ink,#fff) 84%,var(--band,#1c2c4c))}
@media (max-width:699px){.cf-job-listing .cf-jl-role-head{padding:16px 12px;gap:12px}.cf-job-listing .cf-jl-role + .cf-jl-role::before{left:12px;right:12px}.cf-job-listing .cf-jl-panel-in{padding:0 12px 16px;gap:20px}.cf-job-listing .cf-jl-meta{gap:6px 12px}.cf-job-listing .cf-jl-apply{padding:12px 16px}.cf-job-listing .cf-jl-deal{gap:16px}}
@keyframes cf-jl-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
.cf-job-listing .cf-jl-rise{animation:cf-jl-rise .45s var(--jl-ease) both}
.cf-job-listing .cf-jl-d1{animation-delay:.07s}
.cf-job-listing .cf-jl-d2{animation-delay:.14s}
@media (prefers-reduced-motion:reduce){.cf-job-listing .cf-jl-rise{animation:none}.cf-job-listing .cf-jl-chip,.cf-job-listing .cf-jl-apply,.cf-job-listing .cf-jl-btn2,.cf-job-listing .cf-jl-disc,.cf-job-listing .cf-jl-disc svg,.cf-job-listing .cf-jl-role,.cf-job-listing .cf-jl-role-head,.cf-job-listing .cf-jl-field{transition:none}}
`
pieces/content/job-listing/specimen.tsx 92 lines
import __studioImage50fe2b2b from "../assets/e2765a5b0027e27e.webp";
import * as React from 'react'
import { JobListing } from '../job-listing'
import type { JobRole, JobWhy } from '../job-listing'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
const sample = defaults.sample
export const states = ['default', 'hover', 'active', 'disabled', 'error']
type State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
const roles: JobRole[] = [
{
id: 'funnel-copywriter',
title: 'Funnel Copywriter',
team: 'Marketing',
location: 'Remote (US)',
type: 'Full-time',
pay: '$68k–$82k a year',
payNote: 'about $5,700–$6,800 a month',
summary: `Write the pages, emails and ads that walk new buyers into ${sample.name}.`,
duties: ['Write and test two sales pages a month', 'Turn the questions customers ask into email sequences', `Keep the team's headline swipe file sharp`],
},
{
id: 'customer-success-lead',
title: 'Customer Success Lead',
team: 'Support',
location: 'Austin, TX',
type: 'Full-time',
pay: '$58k–$70k a year',
payNote: 'about $4,800–$5,800 a month',
summary: 'Be the first person a new customer talks to when their first funnel gets stuck.',
duties: ['Run live onboarding calls three mornings a week', 'Turn repeat questions into short help guides', 'Hand product the top five fixes each month'],
},
{
id: 'product-designer',
title: 'Product Designer',
team: 'Product',
location: 'Remote (US)',
type: 'Contract',
pay: '$55–$70 an hour',
payNote: 'about $440–$560 for an 8-hour day',
summary: `Design the screens that take a buyer from download to a funnel that's live.`,
duties: [`Redesign the workbook's fill-in pages`, 'Prototype the launch checklist as an app', 'Test every change with five customers'],
},
{
id: 'front-end-engineer',
title: 'Front-end Engineer',
team: 'Product',
location: 'Austin, TX',
type: 'Full-time',
summary: 'Build the pages and tools that turn the kit into a funnel someone can launch tonight.',
duties: ['Ship the new checkout and member area', 'Keep every page fast on a phone', 'Pair with design on each release'],
},
{
id: 'paid-ads-specialist',
title: 'Paid Ads Specialist',
team: 'Marketing',
location: 'Remote (US)',
type: 'Part-time',
pay: '$35–$45 an hour',
payNote: 'about $280–$360 for an 8-hour day',
summary: 'Find the next thousand people who need a clear plan for their first funnel.',
duties: ['Run and report on weekly ad tests', 'Write hooks with the copy team', 'Keep cost per buyer on target'],
},
]
const why: JobWhy[] = [
{ icon: 'laptop', title: 'Remote-first, on purpose', detail: 'Work from home or our Austin studio.' },
{ icon: 'clock', title: 'Four meeting-free days', detail: 'Meetings live on Mondays. The rest is deep work.' },
{ icon: 'learn', title: 'A $1,500 learning budget', detail: 'Courses, books and events you pick each year.' },
{ icon: 'heart', title: 'Work you can point to', detail: 'See the funnels you helped people launch.' },
]
export default function JobListingSpecimen({ state = 'default' }: { state?: State }) {
return (
<JobListing
state={state}
headline='Get paid to help people launch their first funnel'
highlight='launch their first funnel'
lead={`We're the small team behind ${sample.name}. Pick a role, see what you'd own, and apply in a few minutes.`}
aside={`(Yes, the posts are short. I'd rather tell you the rest on a call.)`}
sceneImage={slot("scene", __studioImage50fe2b2b)}
sceneAlt='A small team planning a funnel together around a laptop and whiteboard'
roles={roles}
why={why}
copy={{ applySub: 'About 5 minutes, no cover letter' }}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalJobListing |
React.ReactNode |
|
highlight OptionalJobListing |
string |
|
lead OptionalJobListing |
React.ReactNode |
|
aside OptionalJobListing |
React.ReactNode |
|
sceneImage OptionalJobListing |
string |
|
sceneAlt OptionalJobListing |
string |
|
roles OptionalJobListing |
JobRole[] |
|
whyHeading OptionalJobListing |
React.ReactNode |
|
why OptionalJobListing |
JobWhy[] |
|
showNotify OptionalJobListing |
boolean |
|
copy OptionalJobListing |
Partial<JobListingCopy> |
|
onAction OptionalJobListing |
(role: JobRole) => void |
|
onSubmit OptionalJobListing |
(values: { email: string }) => void |
|
state OptionalJobListing |
'default' | 'hover' | 'active' | 'disabled' | 'error' |
|
className OptionalJobListing |
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--field-border--field-focus--field-ink--field-radius- 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.
scene- A wide atmosphere photo behind or beside the copy.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
e2765a5b0027e27e.webp
image/webp · 82.4 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB