Link In Bio 5
Link-in-bio magazine cover: the author's name as the masthead, a portrait beneath it and an "In this issue" rail of
Use it in a prompt
Use content/link-in-bio-5 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/link-in-bio-5.tsx. - Import it and pass your copy and images (Props tab):
import { LinkInBio5 } from "@/components/funneldna/content/link-in-bio-5"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/link-in-bio-5/component.tsx 732 lines
// layout: number-rail
// Link-in-bio magazine cover: the author's name as the masthead, a portrait beneath it and an "In this issue" rail of
// numbered headlines. The free chapter is the cover line, set biggest with its own button. Email capture is the last line.
// Signature: hovering or focusing a contents line swaps the cover inset on the portrait to that link's art.
// Theme: colours, faces, radius, shadows, buttons and fields read the theme-contract tokens and roles. Images are slot
// props (presenter, item-n). The masthead's uppercase is the component-scoped --masthead-case (set it to none to drop it).
import * as React from "react"
import { AlertCircle, Loader2, Lock } from "lucide-react"
import { Spot } from "../fx/fx"
import bookSpot from "../fx/spots/book"
import checklistSpot from "../fx/spots/checklist"
import giftSpot from "../fx/spots/gift"
import playSpot from "../fx/spots/play"
export type LinkInBio5Link = {
/** The headline of the contents line. */
title: React.ReactNode
/** One line under the title. */
detail?: React.ReactNode
href?: string
/** The cover line: set biggest, with its own button. The first cover link wins; with none, the first link. */
cover?: boolean
/** Cover line only: small flag above the title, e.g. "Free chapter". */
badge?: string
/** Cover line only: one-sentence paragraphs. A one-word line is set large as the punch. */
lines?: React.ReactNode[]
/** Cover line only: the plain instruction right above the button. */
instruction?: React.ReactNode
/** Cover line only: the short button label. */
label?: string
/** Price, shown beside what the alternative costs. */
price?: string
/** The alternative, e.g. "vs. paying an editor to fix it later". */
priceVs?: React.ReactNode
/** Slot: item-n. A cover or product cut-out on a transparent background, shown in the swap inset. */
image?: string
/** fx Spot asset shown when the link has no image. */
spot?: string
/** Numeral override, e.g. "07". Defaults to the position. */
number?: string
}
export type LinkInBio5Copy = {
contentsTitle: string
/** Template: {name} is replaced with the author's name. */
portraitAlt: string
/** Cover button label when the cover link has none. */
coverAction: string
emailPlaceholder: string
emailRequired: string
emailInvalid: string
/** Field value shown when the error state is previewed. */
errorSample: string
submitLabel: string
submittingLabel: string
privacy: string
}
export type LinkInBio5Props = {
/** The masthead. */
name?: string
/** Folio line under the masthead. */
role?: React.ReactNode
handle?: string
/** Slot: presenter. A portrait photo, cropped to fill the frame. */
presenterImage?: string
presenterAlt?: string
/** Plain line under the portrait. */
portraitCaption?: React.ReactNode
/** 3 to 6 contents lines, cover line first works best. */
links?: LinkInBio5Link[]
showEmailCapture?: boolean
/** The email line's headline (also the field's label). */
emailTitle?: React.ReactNode
emailLead?: React.ReactNode
/** Slot: item-n. Art shown in the inset while the email line is focused. */
emailImage?: string
/** fx Spot asset for the email line when there is no image. */
emailSpot?: string
copy?: Partial<LinkInBio5Copy>
/** 1 when this block is the page's first screen, 2 when it sits under another hero. */
headingLevel?: 1 | 2
/** Shows a spinner on the email button while the builder handles the submit. */
loading?: boolean
/** Turns the email capture off, e.g. while sign-ups are paused. */
emailDisabled?: boolean
onAction?: (link: LinkInBio5Link, index: number) => void
onSubmit?: (values: { email: string }) => void
state?: "default" | "hover" | "active" | "disabled" | "error"
className?: string
}
type Art = { src: string; spot: boolean }
const DEFAULT_COPY: LinkInBio5Copy = {
contentsTitle: "In this issue",
portraitAlt: "Portrait of {name}",
coverAction: "Read it now",
emailPlaceholder: "you@example.com",
emailRequired: "Enter your email so chapter two has somewhere to go.",
emailInvalid: "That email looks incomplete. Check it and try again.",
errorSample: "you@example",
submitLabel: "Send me chapter two",
submittingLabel: "Sending",
privacy: "One short letter a week. Unsubscribe anytime.",
}
const DEFAULT_LINKS: LinkInBio5Link[] = [
{
cover: true,
badge: "Free chapter",
title: "The one page that gets you writing again",
lines: ["Chapter one of The Quiet Draft is yours to read tonight.", "Free."],
instruction: "Click the button below to get instant access.",
label: "Read it now",
spot: bookSpot,
href: "#free-chapter",
},
{
title: "Why your first draft is supposed to be bad",
detail: "The Quiet Draft, my new book. In paperback, ebook and audio.",
href: "#book",
},
{
title: "The habit that finishes drafts. It isn’t discipline.",
detail: "Draft to Done, my online course. Weekly lessons and prompts that keep you moving.",
price: "$47",
priceVs: "vs. paying an editor to fix it later",
spot: checklistSpot,
href: "#course",
},
{
title: "What finished writers do on Monday morning",
detail: "The Quiet Draft Podcast. Short episodes, every week.",
spot: playSpot,
href: "#podcast",
},
]
const EMAIL_PATTERN = /^[^@\s]+@[^@\s]+[.][^@\s]+$/
export function LinkInBio5(props: LinkInBio5Props) {
const {
name = "Mara Quill",
role = "Author of The Quiet Draft and the Draft to Done course",
handle = "@maraquill",
presenterImage,
presenterAlt,
portraitCaption = "Mara Quill helps busy people finish the book they keep starting.",
links = DEFAULT_LINKS,
showEmailCapture = true,
emailTitle = "Get chapter two before anyone else",
emailLead = "It lands in your inbox first. Then one short letter a week.",
emailImage,
emailSpot = giftSpot,
copy,
headingLevel = 1,
loading = false,
emailDisabled = false,
onAction,
onSubmit,
state = "default",
className,
} = props
const c: LinkInBio5Copy = { ...DEFAULT_COPY, ...copy }
const uid = React.useId()
const ids = {
name: `${uid}-name`,
contents: `${uid}-contents`,
input: `${uid}-email`,
lead: `${uid}-lead`,
error: `${uid}-error`,
privacy: `${uid}-privacy`,
}
const found = links.findIndex((l) => l.cover)
const coverIdx = links.length ? (found >= 0 ? found : 0) : -1
const emailIdx = links.length
const hoverIdx = state === "hover" ? links.findIndex((_, i) => i !== coverIdx) : -1
const restIdx = hoverIdx >= 0 ? hoverIdx : coverIdx
const arts: (Art | null)[] = links.map((l) => toArt(l.image, l.spot))
if (showEmailCapture) arts.push(toArt(emailImage, emailSpot))
const fallbackIdx = coverIdx >= 0 && arts[coverIdx] ? coverIdx : arts.findIndex(Boolean)
const [active, setActive] = React.useState(restIdx)
const [email, setEmail] = React.useState(state === "error" ? c.errorSample : "")
const [error, setError] = React.useState<string | null>(state === "error" ? c.emailInvalid : null)
const [tried, setTried] = React.useState(state === "error")
React.useEffect(() => {
const err = state === "error"
setActive(restIdx)
setEmail(err ? c.errorSample : "")
setError(err ? c.emailInvalid : null)
setTried(err)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [state])
const shown = active >= 0 && arts[active] ? active : fallbackIdx
const disabled = emailDisabled || state === "disabled"
const NameTag = (headingLevel === 1 ? "h1" : "h2") as "h1"
const ListTag = (headingLevel === 1 ? "h2" : "h3") as "h2"
const CoverTag = (headingLevel === 1 ? "h3" : "h4") as "h3"
const check = (value: string) => {
const v = value.trim()
if (!v) return c.emailRequired
return EMAIL_PATTERN.test(v) ? null : c.emailInvalid
}
const go = (e: React.MouseEvent<HTMLAnchorElement>, link: LinkInBio5Link, i: number) => {
if (onAction) onAction(link, i)
if (!link.href) e.preventDefault()
}
const submit = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault()
if (disabled || loading) return
const err = check(email)
setTried(true)
setError(err)
if (!err) onSubmit?.({ email: email.trim() })
}
const num = (link: LinkInBio5Link | null, i: number) => (link && link.number) || String(i + 1).padStart(2, "0")
const initials = name
.split(/\s+/)
.filter(Boolean)
.map((w) => w[0])
.join("")
.slice(0, 2)
const describedBy = [emailLead ? ids.lead : "", error ? ids.error : "", ids.privacy].filter(Boolean).join(" ")
return (
<section className={`cf-link-in-bio-5${className ? " " + className : ""}`} aria-labelledby={ids.name}>
<style>{CSS}</style>
<div className="lb5-wrap">
<header className="lb5-mast lb5-rv" style={rv(0)}>
<NameTag id={ids.name} className="lb5-name">
{name}
</NameTag>
{(role || handle) && (
<p className="lb5-folio">
{role && <span>{role}</span>}
{handle && <span className="lb5-handle">{handle}</span>}
</p>
)}
</header>
<div className="lb5-grid">
<figure className="lb5-side lb5-rv" style={rv(1)}>
<div className="lb5-photo">
<div className="lb5-frame">
{presenterImage ? (
<img
src={presenterImage}
alt={presenterAlt ?? c.portraitAlt.replace("{name}", name)}
width={800}
height={1000}
decoding="async"
/>
) : (
<span className="lb5-mono" aria-hidden="true">
{initials}
</span>
)}
</div>
{shown >= 0 && (
<div className="lb5-inset" aria-hidden="true">
{arts.map((art, i) =>
art ? (
<span key={i} className={`lb5-vis${i === shown ? " is-on" : ""}`}>
<ArtPiece art={art} size={176} />
</span>
) : null,
)}
</div>
)}
</div>
{portraitCaption && <figcaption className="lb5-caption">{portraitCaption}</figcaption>}
</figure>
<nav className="lb5-contents" aria-labelledby={ids.contents}>
<ListTag id={ids.contents} className="lb5-contents-title lb5-rv" style={rv(2)}>
{c.contentsTitle}
</ListTag>
<ol className="lb5-list">
{links.map((link, i) => {
const art = arts[i]
const current = active === i ? " is-current" : ""
if (i === coverIdx) {
const lines = link.lines ?? []
return (
<li key={i} className="lb5-item is-cover lb5-rv" style={rv(i + 3)}>
<div className={`lb5-cover${current}`} onMouseEnter={() => setActive(i)} onFocus={() => setActive(i)}>
<span className="lb5-num" aria-hidden="true">
{num(link, i)}
</span>
{art && (
<span className="lb5-thumb" aria-hidden="true">
<ArtPiece art={art} size={88} />
</span>
)}
<div className="lb5-body">
{link.badge && <span className="lb5-badge">{link.badge}</span>}
<CoverTag className="lb5-cover-title">{link.title}</CoverTag>
{link.detail && <p className="lb5-detail">{link.detail}</p>}
{lines.length > 0 && (
<div className="lb5-lines">
{lines.map((line, k) => (
<p key={k} className={isPunch(line) ? "lb5-punch" : undefined}>
{line}
</p>
))}
</div>
)}
{link.price && <PriceLine price={link.price} vs={link.priceVs} />}
{link.instruction && <p className="lb5-instruction">{link.instruction}</p>}
<a
className={`lb5-btn lb5-btn-cover${state === "active" ? " is-active" : ""}${
link.instruction ? "" : " is-spaced"
}`}
href={link.href ?? "#"}
onClick={(e) => go(e, link, i)}
>
{link.label ?? c.coverAction}
</a>
</div>
</div>
</li>
)
}
return (
<li key={i} className="lb5-item lb5-rv" style={rv(i + 3)}>
<a
className={`lb5-row${current}${i === hoverIdx ? " is-hover" : ""}`}
href={link.href ?? "#"}
onClick={(e) => go(e, link, i)}
onMouseEnter={() => setActive(i)}
onFocus={() => setActive(i)}
>
<span className="lb5-num" aria-hidden="true">
{num(link, i)}
</span>
<span className="lb5-body">
<span className="lb5-title">{link.title}</span>
{link.detail && <span className="lb5-detail">{link.detail}</span>}
{link.price && <PriceLine price={link.price} vs={link.priceVs} />}
</span>
{art && (
<span className="lb5-thumb" aria-hidden="true">
<ArtPiece art={art} size={44} />
</span>
)}
</a>
</li>
)
})}
{showEmailCapture && (
<li className="lb5-item lb5-rv" style={rv(links.length + 3)}>
<div
className={`lb5-row lb5-email${active === emailIdx ? " is-current" : ""}${disabled ? " is-disabled" : ""}`}
onMouseEnter={() => setActive(emailIdx)}
onFocus={() => setActive(emailIdx)}
>
<span className="lb5-num" aria-hidden="true">
{num(null, emailIdx)}
</span>
<div className="lb5-head">
<label htmlFor={ids.input} className="lb5-title">
{emailTitle}
</label>
{emailLead && (
<p className="lb5-detail" id={ids.lead}>
{emailLead}
</p>
)}
</div>
{arts[emailIdx] && (
<span className="lb5-thumb" aria-hidden="true">
<ArtPiece art={arts[emailIdx] as Art} size={44} />
</span>
)}
<form className="lb5-form" noValidate onSubmit={submit}>
<div className="lb5-field-row">
<input
id={ids.input}
className="lb5-input"
type="email"
name="email"
inputMode="email"
autoComplete="email"
placeholder={c.emailPlaceholder}
value={email}
disabled={disabled}
aria-invalid={error ? true : undefined}
aria-describedby={describedBy}
onChange={(e) => {
setEmail(e.target.value)
if (tried) setError(check(e.target.value))
}}
/>
<button
type="submit"
className={`lb5-btn lb5-btn-form${loading ? " is-loading" : ""}`}
disabled={disabled}
aria-busy={loading || undefined}
>
{loading && <Loader2 className="lb5-spin" size={20} strokeWidth={2.5} aria-hidden="true" />}
{loading ? c.submittingLabel : c.submitLabel}
</button>
</div>
{error && (
<p className="lb5-error" id={ids.error} role="alert">
<AlertCircle className="lb5-ico" size={16} strokeWidth={2.5} aria-hidden="true" />
{error}
</p>
)}
<p className="lb5-privacy" id={ids.privacy}>
<Lock className="lb5-ico" size={16} strokeWidth={2.5} aria-hidden="true" />
{c.privacy}
</p>
</form>
</div>
</li>
)}
</ol>
</nav>
</div>
</div>
</section>
)
}
export default LinkInBio5
function ArtPiece({ art, size }: { art: Art; size: number }) {
if (art.spot) {
return (
<span className="lb5-spot">
<Spot src={art.src} size={size} />
</span>
)
}
return <img src={art.src} alt="" width={size} height={size} decoding="async" draggable={false} />
}
function PriceLine({ price, vs }: { price: string; vs?: React.ReactNode }) {
return (
<span className="lb5-price">
<span className="lb5-chip">{price}</span>
{vs && <span className="lb5-vs">{vs}</span>}
</span>
)
}
function toArt(image?: string, spot?: string): Art | null {
if (image) return { src: image, spot: false }
if (spot) return { src: spot, spot: true }
return null
}
function isPunch(node: React.ReactNode) {
if (typeof node !== "string") return false
const t = node.trim()
return t.length > 0 && !/\s/.test(t)
}
function rv(n: number): React.CSSProperties {
return { animationDelay: `${Math.min(n * 0.07, 0.28).toFixed(2)}s` }
}
const CSS = `
.cf-link-in-bio-5{
--lb5-rail:76px;
--lb5-pad:clamp(16px,3vw,32px);
--lb5-shadow:var(--shadow,oklch(0.22 0.03 260));
--lb5-hair:oklch(from var(--ink) l c h / 0.14);
--lb5-quiet:color-mix(in oklch,var(--ink) 4%,var(--surface));
--lb5-press:color-mix(in oklch,var(--ink) 7%,var(--surface));
--lb5-ring:oklch(from var(--field-focus,var(--accent)) l c h / 0.55);
position:relative;
overflow-x:clip;
background:var(--surface);
color:var(--ink);
font-family:var(--font-body);
padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);
}
.cf-link-in-bio-5 *,.cf-link-in-bio-5 *::before,.cf-link-in-bio-5 *::after{box-sizing:border-box}
.cf-link-in-bio-5 :where(h1,h2,h3,h4,p,ol,figure,figcaption){margin:0}
.cf-link-in-bio-5 .lb5-wrap{max-width:1120px;margin:0 auto}
.cf-link-in-bio-5 .lb5-mast{container-type:inline-size}
.cf-link-in-bio-5 .lb5-name{
font-family:var(--font-display);
font-weight:var(--display-weight,800);
text-transform:var(--masthead-case,uppercase);
letter-spacing:var(--masthead-tracking,-0.035em);
font-size:clamp(2.75rem,12vw,9rem);
font-size:clamp(2.75rem,13cqi,10rem);
line-height:.92;
color:var(--ink);
text-wrap:balance;
overflow-wrap:break-word;
}
.cf-link-in-bio-5 .lb5-folio{
display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 24px;
margin-top:16px;padding-top:12px;border-top:1px solid var(--lb5-hair);
font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty;
}
.cf-link-in-bio-5 .lb5-handle{color:var(--ink);font-weight:800}
.cf-link-in-bio-5 .lb5-grid{display:grid;gap:clamp(32px,5vw,72px);margin-top:clamp(32px,4vw,48px);align-items:start}
.cf-link-in-bio-5 .lb5-side{position:relative;min-width:0}
.cf-link-in-bio-5 .lb5-photo{position:relative}
.cf-link-in-bio-5 .lb5-frame{
position:relative;overflow:hidden;border-radius:12px;aspect-ratio:4/5;width:100%;
background:color-mix(in oklch,var(--ink) 6%,var(--surface));
}
.cf-link-in-bio-5 .lb5-frame img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 22%}
.cf-link-in-bio-5 .lb5-mono{
display:grid;place-items:center;height:100%;
font-family:var(--font-display);font-weight:var(--display-weight,800);
font-size:clamp(2rem,3.6vw,3.25rem);color:var(--muted);letter-spacing:-.03em;
}
.cf-link-in-bio-5 .lb5-inset{
position:absolute;right:calc(-1 * clamp(16px,2.4vw,36px));bottom:clamp(16px,3vw,32px);
width:clamp(132px,15vw,184px);aspect-ratio:1;pointer-events:none;
}
.cf-link-in-bio-5 .lb5-vis{
position:absolute;inset:0;display:grid;place-items:center;
opacity:0;transform:translateY(8px) scale(.94);
transition:opacity .28s ease,transform .4s cubic-bezier(.2,.7,.2,1);
}
.cf-link-in-bio-5 .lb5-vis.is-on{opacity:1;transform:none}
.cf-link-in-bio-5 .lb5-vis img{
width:100%;height:100%;object-fit:contain;
filter:drop-shadow(0 2px 3px oklch(from var(--lb5-shadow) l c h / .4)) drop-shadow(0 12px 16px oklch(from var(--lb5-shadow) l c h / .32));
}
.cf-link-in-bio-5 .lb5-spot{display:grid;place-items:center;width:100%;height:100%}
.cf-link-in-bio-5 .lb5-spot img,.cf-link-in-bio-5 .lb5-spot svg{max-width:100%;max-height:100%;height:auto}
.cf-link-in-bio-5 .lb5-caption{margin-top:16px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-link-in-bio-5 .lb5-contents{min-width:0}
.cf-link-in-bio-5 .lb5-contents-title{
margin-bottom:12px;padding-inline:var(--lb5-pad);
font-family:var(--font-body);font-size:.875rem;line-height:1.2;font-weight:800;
letter-spacing:.08em;text-transform:uppercase;color:var(--accent);
}
.cf-link-in-bio-5 .lb5-list{list-style:none;padding:0;display:grid;gap:4px}
.cf-link-in-bio-5 .lb5-item{position:relative;min-width:0}
.cf-link-in-bio-5 .lb5-item + .lb5-item::before{
content:"";position:absolute;top:-2px;left:var(--lb5-pad);right:var(--lb5-pad);height:1px;background:var(--lb5-hair);
}
.cf-link-in-bio-5 .lb5-item.is-cover{margin-block:8px}
.cf-link-in-bio-5 .lb5-item.is-cover::before,.cf-link-in-bio-5 .lb5-item.is-cover + .lb5-item::before{display:none}
.cf-link-in-bio-5 .lb5-row,.cf-link-in-bio-5 .lb5-cover{
display:grid;grid-template-columns:minmax(var(--lb5-rail),auto) minmax(0,1fr);
grid-template-areas:"num body";column-gap:24px;align-items:start;
}
.cf-link-in-bio-5 .lb5-row{
padding:clamp(16px,2vw,24px) var(--lb5-pad);
border-radius:var(--card-radius,var(--radius,14px));
color:inherit;text-decoration:none;
transition:background-color .16s ease,transform .16s ease;
}
.cf-link-in-bio-5 a.lb5-row{cursor:pointer}
@media (hover:hover){
.cf-link-in-bio-5 a.lb5-row:hover{background:var(--lb5-quiet)}
.cf-link-in-bio-5 a.lb5-row:hover .lb5-title{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.18em;text-decoration-color:oklch(from var(--ink) l c h / .35)}
}
.cf-link-in-bio-5 a.lb5-row.is-hover{background:var(--lb5-quiet)}
.cf-link-in-bio-5 a.lb5-row.is-hover .lb5-title{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.18em;text-decoration-color:oklch(from var(--ink) l c h / .35)}
.cf-link-in-bio-5 a.lb5-row:active{background:var(--lb5-press);transform:translateY(1px)}
.cf-link-in-bio-5 a.lb5-row:focus-visible{outline:3px solid var(--lb5-ring);outline-offset:2px}
.cf-link-in-bio-5 .lb5-num{
grid-area:num;
font-family:var(--font-display);font-weight:var(--display-weight,800);
font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em;
font-variant-numeric:tabular-nums;color:var(--muted);
transition:color .16s ease;
}
.cf-link-in-bio-5 .is-current .lb5-num{color:var(--accent)}
.cf-link-in-bio-5 .lb5-body,.cf-link-in-bio-5 .lb5-head{min-width:0;padding-top:4px}
.cf-link-in-bio-5 .lb5-body{grid-area:body}
.cf-link-in-bio-5 .lb5-head{grid-area:head}
.cf-link-in-bio-5 .lb5-title{
display:block;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:-.01em;
color:var(--ink);text-wrap:balance;
}
.cf-link-in-bio-5 .lb5-detail{
display:block;margin:8px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;
color:var(--muted);text-wrap:pretty;
}
.cf-link-in-bio-5 .lb5-price{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:12px}
.cf-link-in-bio-5 .lb5-chip{
display:inline-flex;align-items:center;min-height:30px;padding:4px 12px;border-radius:999px;
background:color-mix(in oklch,var(--ink) 6%,var(--surface));color:var(--ink);
font-size:.875rem;line-height:1.2;font-weight:800;font-variant-numeric:tabular-nums;
}
.cf-link-in-bio-5 .lb5-cover .lb5-chip{background:color-mix(in oklch,var(--ink) 6%,var(--card))}
.cf-link-in-bio-5 .lb5-vs{font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
.cf-link-in-bio-5 .lb5-thumb{display:none;grid-area:thumb}
.cf-link-in-bio-5 .lb5-thumb img{
width:100%;height:100%;object-fit:contain;
filter:drop-shadow(0 1px 2px oklch(from var(--lb5-shadow) l c h / .32)) drop-shadow(0 4px 6px oklch(from var(--lb5-shadow) l c h / .22));
}
.cf-link-in-bio-5 .lb5-cover{
padding:var(--lb5-pad);
background:var(--card);
border:1px solid oklch(from var(--accent) l c h / .38);
border-radius:var(--card-radius,var(--radius,14px));
box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(0.22 0.03 260 / 0.22),0 12px 24px -8px oklch(0.22 0.03 260 / 0.32)));
}
.cf-link-in-bio-5 .lb5-badge{
display:inline-flex;align-items:center;min-height:30px;padding:4px 12px;margin-bottom:12px;border-radius:999px;
background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));
font-size:.875rem;line-height:1.2;font-weight:800;
}
.cf-link-in-bio-5 .lb5-cover-title{
font-family:var(--font-display);font-weight:var(--display-weight,800);
text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.025em);
font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;color:var(--ink);text-wrap:balance;
}
.cf-link-in-bio-5 .lb5-lines{display:grid;gap:4px;margin-top:16px}
.cf-link-in-bio-5 .lb5-lines p{font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty}
.cf-link-in-bio-5 .lb5-lines p.lb5-punch{
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:-.01em;
}
.cf-link-in-bio-5 .lb5-instruction{margin:24px 0 12px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;font-weight:600;color:var(--ink);text-wrap:pretty}
.cf-link-in-bio-5 .lb5-btn{
--lb5-bg:var(--button-bg,var(--cta));
--lb5-bg2:var(--button-bg-2,var(--cta-2));
display:inline-flex;align-items:center;justify-content:center;gap:8px;
min-height:64px;padding:0 28px;margin:0;border:0;
border-radius:var(--button-radius,var(--radius,12px));
font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);
text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;
text-align:center;text-decoration:none;cursor:pointer;
color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);
background:linear-gradient(oklch(from var(--lb5-bg) calc(l + .04) c h),oklch(from var(--lb5-bg2) calc(l - .02) c h));
box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--lb5-bg) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--lb5-bg) calc(l - .16) c h),0 1px 2px oklch(from var(--lb5-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--lb5-shadow) l c h / .45));
transition:background .16s ease,box-shadow .16s ease,transform .16s ease;
}
.cf-link-in-bio-5 .lb5-btn.is-spaced{margin-top:24px}
.cf-link-in-bio-5 .lb5-btn-cover{display:flex;width:100%}
.cf-link-in-bio-5 .lb5-btn:hover:not(:disabled){
background:linear-gradient(oklch(from var(--lb5-bg) calc(l - .01) c h),oklch(from var(--lb5-bg2) calc(l - .07) c h));
box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--lb5-bg) calc(l + .12) c h / .7),inset 0 -3px 0 oklch(from var(--lb5-bg) calc(l - .18) c h),0 1px 2px oklch(from var(--lb5-shadow) l c h / .34),0 10px 18px -6px oklch(from var(--lb5-shadow) l c h / .52));
}
.cf-link-in-bio-5 .lb5-btn:active:not(:disabled),.cf-link-in-bio-5 .lb5-btn.is-active{
transform:translateY(1px);
background:linear-gradient(oklch(from var(--lb5-bg) calc(l - .05) c h),oklch(from var(--lb5-bg2) calc(l - .08) c h));
box-shadow:inset 0 2px 3px oklch(from var(--lb5-bg) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--lb5-bg) calc(l - .16) c h),0 1px 1px oklch(from var(--lb5-shadow) l c h / .3);
}
.cf-link-in-bio-5 .lb5-btn:focus-visible{outline:3px solid var(--lb5-ring);outline-offset:3px}
.cf-link-in-bio-5 .lb5-btn:disabled{
cursor:not-allowed;transform:none;text-shadow:none;
background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));
box-shadow:var(--button-2-shadow,var(--shadow-sm));
}
.cf-link-in-bio-5 .lb5-btn.is-loading{cursor:progress}
.cf-link-in-bio-5 .lb5-spin{flex:0 0 auto;animation:cf-lb5-spin .8s linear infinite}
.cf-link-in-bio-5 .lb5-email{grid-template-areas:"num head" ". form";row-gap:16px}
.cf-link-in-bio-5 .lb5-email label{cursor:pointer}
.cf-link-in-bio-5 .lb5-email.is-disabled label{cursor:default}
.cf-link-in-bio-5 .lb5-form{grid-area:form;min-width:0}
.cf-link-in-bio-5 .lb5-field-row{display:flex;flex-wrap:wrap;gap:12px}
.cf-link-in-bio-5 .lb5-input{
flex:999 1 14rem;min-width:0;height:56px;padding:0 16px;
border:1px solid var(--field-border,color-mix(in oklch,var(--ink) 22%,transparent));
border-radius:var(--field-radius,var(--radius,12px));
background:var(--field);color:var(--field-ink);
font-family:var(--font-body);font-size:1.0625rem;line-height:1.3;
transition:border-color .16s ease,box-shadow .16s ease;
}
.cf-link-in-bio-5 .lb5-input::placeholder{color:color-mix(in oklch,var(--field-ink) 65%,var(--field));opacity:1}
.cf-link-in-bio-5 .lb5-input:focus{outline:none;border-color:var(--field-focus,var(--accent));box-shadow:0 0 0 3px oklch(from var(--field-focus,var(--accent)) l c h / .35)}
.cf-link-in-bio-5 .lb5-input[aria-invalid="true"]{border-color:var(--danger)}
.cf-link-in-bio-5 .lb5-input[aria-invalid="true"]:focus{border-color:var(--danger);box-shadow:0 0 0 3px oklch(from var(--danger) l c h / .3)}
.cf-link-in-bio-5 .lb5-input:disabled{
cursor:not-allowed;background:color-mix(in oklch,var(--ink) 6%,var(--field));
color:color-mix(in oklch,var(--field-ink) 70%,var(--field));
}
.cf-link-in-bio-5 .lb5-btn-form{flex:1 1 auto;min-height:56px}
.cf-link-in-bio-5 .lb5-error{margin-top:8px;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--danger);text-wrap:pretty}
.cf-link-in-bio-5 .lb5-privacy{margin-top:12px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-link-in-bio-5 .lb5-ico{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
.cf-link-in-bio-5 .lb5-rv{animation:cf-lb5-rise .45s cubic-bezier(.2,.7,.2,1) both}
@keyframes cf-lb5-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cf-lb5-spin{to{transform:rotate(360deg)}}
@media (min-width:760px){
.cf-link-in-bio-5 .lb5-grid{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
.cf-link-in-bio-5 .lb5-side{position:sticky;top:24px}
}
@media (max-width:759px){
.cf-link-in-bio-5{--lb5-rail:44px}
.cf-link-in-bio-5 .lb5-frame{aspect-ratio:1/1;max-height:520px}
.cf-link-in-bio-5 .lb5-inset{display:none}
.cf-link-in-bio-5 .lb5-num{font-size:2rem}
.cf-link-in-bio-5 .lb5-row{
grid-template-columns:var(--lb5-rail) minmax(0,1fr);
grid-template-areas:"num body" "thumb body";
grid-template-rows:auto 1fr;column-gap:16px;row-gap:12px;
}
.cf-link-in-bio-5 .lb5-row.lb5-email{grid-template-areas:"num head" "thumb head" "form form";grid-template-rows:auto 1fr auto;row-gap:12px}
.cf-link-in-bio-5 .lb5-row.lb5-email .lb5-form{margin-top:4px}
.cf-link-in-bio-5 .lb5-thumb{display:block;width:44px;height:44px}
.cf-link-in-bio-5 .lb5-cover{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"num thumb" "body body";row-gap:16px;align-items:center}
.cf-link-in-bio-5 .lb5-cover .lb5-num{font-size:2.5rem}
.cf-link-in-bio-5 .lb5-cover .lb5-thumb{width:88px;height:88px;justify-self:end}
.cf-link-in-bio-5 .lb5-cover .lb5-body{padding-top:0}
}
@media (prefers-reduced-motion:reduce){
.cf-link-in-bio-5 .lb5-rv,.cf-link-in-bio-5 .lb5-spin{animation:none}
.cf-link-in-bio-5 .lb5-vis,.cf-link-in-bio-5 .lb5-row,.cf-link-in-bio-5 .lb5-btn,.cf-link-in-bio-5 .lb5-num,.cf-link-in-bio-5 .lb5-input{transition:none}
.cf-link-in-bio-5 .lb5-vis{transform:none}
.cf-link-in-bio-5 a.lb5-row:active,.cf-link-in-bio-5 .lb5-btn:active:not(:disabled),.cf-link-in-bio-5 .lb5-btn.is-active{transform:none}
}
`
pieces/content/link-in-bio-5/specimen.tsx 69 lines
import __studioImageb70cdbdc from "../assets/39f0bda043a60a34.webp";
import __studioImageed5a609e from "../assets/53ac6b86898bb7f4.webp";
import __studioImage9b2032d3 from "../assets/f5d480e6e36c215f.webp";
import * as React from "react"
import { LinkInBio5 } from "../link-in-bio-5"
import type { LinkInBio5Link } from "../link-in-bio-5"
import defaults from "../../studio-defaults.json"
import { slot } from "../../slots"
import checklist from "../../fx/spots/checklist"
import play from "../../fx/spots/play"
export const states = ["default", "hover", "active", "disabled", "error"]
type SpecimenState = "default" | "hover" | "active" | "disabled" | "error"
export default function LinkInBio5Specimen({ state = "default" }: { state?: SpecimenState }) {
const links: LinkInBio5Link[] = [
{
cover: true,
badge: "Free chapter",
title: "The one page that gets you writing again",
lines: ["Chapter one of The Quiet Draft is yours to read tonight.", "Free."],
instruction: "Click the button below to get instant access.",
label: "Read it now",
href: "#free-chapter",
image: slot(
"item-1",
__studioImageb70cdbdc,
),
},
{
title: "Why your first draft is supposed to be bad",
detail: "The Quiet Draft, my new book. In paperback, ebook and audio.",
href: "#book",
image: slot(
"item-2",
__studioImageed5a609e,
),
},
{
title: "The habit that finishes drafts. It isn’t discipline.",
detail: "Draft to Done, my online course. Weekly lessons and prompts that keep you moving.",
price: defaults.sample.price,
priceVs: "vs. paying an editor to fix it later",
spot: checklist,
href: "#course",
},
{
title: "What finished writers do on Monday morning",
detail: "The Quiet Draft Podcast. Short episodes, every week.",
spot: play,
href: "#podcast",
},
]
return (
<LinkInBio5
state={state}
name="Mara Quill"
handle="@maraquill"
presenterImage={slot(
"presenter",
__studioImage9b2032d3,
)}
presenterAlt="Portrait of Mara Quill holding her book"
links={links}
/>
)
}
| Name | Type | Details |
|---|---|---|
name OptionalLinkInBio5 |
string |
|
role OptionalLinkInBio5 |
React.ReactNode |
|
handle OptionalLinkInBio5 |
string |
|
presenterImage OptionalLinkInBio5 |
string |
|
presenterAlt OptionalLinkInBio5 |
string |
|
portraitCaption OptionalLinkInBio5 |
React.ReactNode |
|
links OptionalLinkInBio5 |
LinkInBio5Link[] |
|
showEmailCapture OptionalLinkInBio5 |
boolean |
|
emailTitle OptionalLinkInBio5 |
React.ReactNode |
|
emailLead OptionalLinkInBio5 |
React.ReactNode |
|
emailImage OptionalLinkInBio5 |
string |
|
emailSpot OptionalLinkInBio5 |
string |
|
copy OptionalLinkInBio5 |
Partial<LinkInBio5Copy> |
|
headingLevel OptionalLinkInBio5 |
1 | 2 |
|
loading OptionalLinkInBio5 |
boolean |
|
emailDisabled OptionalLinkInBio5 |
boolean |
|
onAction OptionalLinkInBio5 |
(link: LinkInBio5Link, index: number) => void |
|
onSubmit OptionalLinkInBio5 |
(values: { email: string }) => void |
|
state OptionalLinkInBio5 |
"default" | "hover" | "active" | "disabled" | "error" |
|
className OptionalLinkInBio5 |
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-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus--field-ink--field-radius- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-2- One image per offer item (item-1, item-2…), shown in stacks and lists.
presenter- A photo of the host, coach or founder.
-
39f0bda043a60a34.webp
image/webp · 37.8 KB
-
53ac6b86898bb7f4.webp
image/webp · 38.9 KB
-
63571cb07acc4626.webp
image/webp · 17.3 KB
-
839cc020060f63a3.webp
image/webp · 9.49 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
bc3d360c88eeac0e.webp
image/webp · 23.9 KB
-
d0943b629c0b1324.webp
image/webp · 8.87 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB
-
f5d480e6e36c215f.webp
image/webp · 59.7 KB