Inline Order Link 1
Inline order link: the quiet call to action between letter sections. One big highlighted "click here" link puts the offer in the cart. A small row under it shows the kit, the clipped price and the cards, and a P.S. restates the guarantee.
Use it in a prompt
Use content/inline-order-link 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/inline-order-link.tsx. - Import it and pass your copy and images (Props tab):
import { InlineOrderLink } from "@/components/funneldna/content/inline-order-link"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/inline-order-link/component.tsx 259 lines
// layout: spotlight-row
// Inline order link: the quiet call to action between letter sections. One big highlighted "click here" link puts the offer in the cart. A small row under it shows the kit, the clipped price and the cards, and a P.S. restates the guarantee.
import * as React from "react"
import { Lock, Scissors, ShoppingCart } from "lucide-react"
// Official card-network marks keep their own colours (theme-contract §3 exception; the SVG only).
import { AmericanExpress, Discover, Mastercard, Visa } from "react-svg-credit-card-payment-icons/icons/flat-rounded"
export type InlineOrderLinkCard = "visa" | "mastercard" | "amex" | "discover"
export type InlineOrderLinkProps = {
/** Short lead-in line above the link. */
intro?: React.ReactNode
/** Link words before the highlighted phrase. */
linkLead?: string
/** The one phrase that carries the marker stroke. */
linkHighlight?: string
/** Link words after the highlighted phrase, usually the price. */
linkTail?: string
/** Order form or checkout destination. Without it the link renders as a button that calls onAction. */
href?: string
onAction?: (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void
/** Small thumbnails of what is in the offer (slots item-1 … item-n). */
items?: { image: string; alt: string }[]
itemsCaption?: string
/** The saving the clipped price carries, e.g. "$50 off the $97 value". */
couponLabel?: string
price?: string
priceNote?: string
/** Pass only the networks your processor really accepts. */
cards?: InlineOrderLinkCard[]
/** Accessible names for the card marks. */
cardNames?: Partial<Record<InlineOrderLinkCard, string>>
/** Accessible label for the card list. */
cardsLabel?: string
payNote?: string
psLabel?: string
ps?: React.ReactNode
state?: "default" | "hover" | "active" | "disabled"
disabled?: boolean
className?: string
}
export function InlineOrderLink({
intro = "Ready to plan your first funnel tonight?",
linkLead = "Click here to",
linkHighlight = "add The Funnel Starter Kit to your cart",
linkTail = "for $47",
href,
onAction,
items = [],
itemsCaption = "Guide, workbook & checklist",
couponLabel = "$50 off the $97 value",
price = "$47",
priceNote = "today",
cards = ["visa", "mastercard", "amex", "discover"],
cardNames,
cardsLabel = "Cards accepted",
payNote = "Secure checkout · Instant download",
psLabel = "P.S.",
ps = "Try the whole kit for 30 days. If it doesn't help you plan your first funnel, just ask and you get every cent back.",
state = "default",
disabled = false,
className,
}: InlineOrderLinkProps) {
const isDisabled = disabled || state === "disabled"
const names = { ...CARD_NAMES, ...cardNames }
const showPrice = Boolean(couponLabel || price)
const showPay = cards.length > 0 || Boolean(payNote)
const showRow = items.length > 0 || showPrice || showPay
const label = (
<>
<ShoppingCart className="cf-iol__cart" aria-hidden="true" strokeWidth={2.5} />
{linkLead}
{linkLead && linkHighlight ? " " : null}
{linkHighlight ? <span className="cf-iol__mark">{linkHighlight}</span> : null}
{linkTail ? " " : null}
{linkTail}
</>
)
const link = href ? (
<a
className="cf-iol__link"
href={isDisabled ? undefined : href}
role={isDisabled ? "link" : undefined}
aria-disabled={isDisabled || undefined}
onClick={(event) => {
if (isDisabled) {
event.preventDefault()
return
}
onAction?.(event)
}}
>
{label}
</a>
) : (
<button
type="button"
className="cf-iol__link"
disabled={isDisabled}
onClick={(event) => onAction?.(event)}
>
{label}
</button>
)
return (
<div
className={["cf-iol", className].filter(Boolean).join(" ")}
data-state={state !== "default" ? state : undefined}
>
<style>{CSS}</style>
{intro ? <p className="cf-iol__intro">{intro}</p> : null}
<p className="cf-iol__line">{link}</p>
{showRow ? (
<div className="cf-iol__row">
{items.length > 0 ? (
<div className="cf-iol__cell">
<span className="cf-iol__thumbs">
{items.map((item, i) => (
<img
key={`${item.image.slice(-24)}-${i}`}
src={item.image}
alt={item.alt}
width={48}
height={48}
loading="lazy"
decoding="async"
/>
))}
</span>
{itemsCaption ? <span className="cf-iol__note">{itemsCaption}</span> : null}
</div>
) : null}
{showPrice ? (
<div className="cf-iol__cell">
<div className="cf-iol__coupon">
{couponLabel ? (
<span className="cf-iol__clip">
<Scissors aria-hidden="true" size={16} strokeWidth={2.5} />
{couponLabel}
</span>
) : null}
{price ? (
<span className="cf-iol__price">
{price}
{priceNote ? <span className="cf-iol__price-note">{priceNote}</span> : null}
</span>
) : null}
</div>
</div>
) : null}
{showPay ? (
<div className="cf-iol__cell">
{cards.length > 0 ? (
<ul className="cf-iol__cards" aria-label={cardsLabel}>
{cards.map((card) => {
const Mark = CARD_MARKS[card]
return (
<li key={card} className="cf-iol__card">
<span className="cf-iol__sr">{names[card]}</span>
<span className="cf-iol__card-art" aria-hidden="true">
<Mark />
</span>
</li>
)
})}
</ul>
) : null}
{payNote ? (
<span className="cf-iol__note">
<Lock aria-hidden="true" size={16} strokeWidth={2.5} />
{payNote}
</span>
) : null}
</div>
) : null}
</div>
) : null}
{ps ? (
<p className="cf-iol__ps">
{psLabel ? <strong>{psLabel}</strong> : null}
{ps}
</p>
) : null}
</div>
)
}
export default InlineOrderLink
const CARD_MARKS: Record<InlineOrderLinkCard, React.ElementType> = {
visa: Visa,
mastercard: Mastercard,
amex: AmericanExpress,
discover: Discover,
}
const CARD_NAMES: Record<InlineOrderLinkCard, string> = {
visa: "Visa",
mastercard: "Mastercard",
amex: "American Express",
discover: "Discover",
}
const CSS = `
.cf-iol{--iol-link:var(--link,var(--accent));--iol-marker:color-mix(in oklch,var(--marker,#fae37c) 80%,transparent);--iol-hair:oklch(from var(--ink) l c h / .14);container-type:inline-size;box-sizing:border-box;width:100%;max-width:52rem;margin-inline:auto;text-align:center;font-family:var(--font-body);color:var(--ink)}
.cf-iol *,.cf-iol *::before,.cf-iol *::after{box-sizing:border-box}
.cf-iol__intro{max-width:46rem;margin:0 auto 16px;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--ink);text-wrap:balance}
.cf-iol__line{max-width:46rem;margin:0 auto;font-family:var(--font-display);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.1;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);text-wrap:balance}
.cf-iol__link{appearance:none;margin:0;padding:0;border:0;border-radius:6px;background:none;font:inherit;letter-spacing:inherit;text-transform:inherit;text-align:inherit;color:var(--iol-link);cursor:pointer;text-decoration-line:underline;text-decoration-thickness:.05em;text-underline-offset:.16em;text-decoration-color:oklch(from var(--iol-link) l c h / .4)}
.cf-iol__cart{display:inline-block;width:.78em;height:.78em;vertical-align:-.08em;margin-inline-end:.28em}
.cf-iol__mark{border-radius:.16em .36em .22em .42em;background-image:linear-gradient(var(--iol-marker),var(--iol-marker));background-repeat:no-repeat;background-size:100% 56%;background-position:0 90%;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-iol__link:hover,.cf-iol[data-state='hover'] .cf-iol__link{text-decoration-color:currentColor;text-decoration-thickness:.07em}
.cf-iol__link:hover .cf-iol__mark,.cf-iol[data-state='hover'] .cf-iol__mark{background-size:100% 78%;background-position:0 86%}
.cf-iol__link:active,.cf-iol[data-state='active'] .cf-iol__link{text-decoration-color:currentColor;text-decoration-thickness:.09em}
.cf-iol__link:active .cf-iol__mark,.cf-iol[data-state='active'] .cf-iol__mark{background-size:100% 96%;background-position:0 70%}
.cf-iol__link:focus-visible{outline:3px solid oklch(from var(--iol-link) l c h / .45);outline-offset:4px}
.cf-iol__link:disabled,.cf-iol__link[aria-disabled='true']{color:var(--muted);cursor:not-allowed;text-decoration-color:oklch(from var(--muted) l c h / .4);text-decoration-thickness:.05em}
.cf-iol__link:disabled .cf-iol__mark,.cf-iol__link[aria-disabled='true'] .cf-iol__mark{background-image:linear-gradient(color-mix(in oklch,var(--ink) 8%,transparent),color-mix(in oklch,var(--ink) 8%,transparent));background-size:100% 56%;background-position:0 90%}
.cf-iol__row{display:flex;justify-content:center;align-items:stretch;margin:32px 0 0}
.cf-iol__cell{position:relative;flex:1 1 auto;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:0 20px}
.cf-iol__cell:first-child{padding-inline-start:0}
.cf-iol__cell:last-child{padding-inline-end:0}
.cf-iol__cell+.cf-iol__cell::before{content:'';position:absolute;left:0;top:4px;bottom:4px;width:1px;background:var(--iol-hair)}
.cf-iol__thumbs{display:flex;justify-content:center;gap:8px}
.cf-iol__thumbs img{display:block;width:48px;height:48px;border-radius:8px;object-fit:cover;object-position:center}
.cf-iol__note{display:block;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
.cf-iol__note svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
.cf-iol__coupon{display:flex;flex-direction:column;align-items:center;gap:6px;max-width:100%;padding:10px 12px 12px;border:1px solid var(--iol-hair);border-radius:var(--radius,12px);background:color-mix(in oklch,var(--ink) 4%,var(--surface))}
.cf-iol__clip{display:block;font-size:.875rem;line-height:1.25;font-weight:800;color:var(--ink);text-wrap:balance}
.cf-iol__clip svg{display:inline-block;vertical-align:-.2em;margin-inline-end:.35em;color:var(--success)}
.cf-iol__price{display:block;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--ink)}
.cf-iol__price-note{margin-inline-start:.3em;font-family:var(--font-body);font-size:.9375rem;font-weight:600;letter-spacing:0;color:var(--muted)}
.cf-iol__cards{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:0;padding:0;list-style:none}
.cf-iol__card{display:block}
.cf-iol__card-art{display:block;width:40px;height:26px}
.cf-iol__card-art svg{display:block;width:100%;height:100%}
.cf-iol__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-iol__ps{max-width:58ch;margin:32px auto 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty}
.cf-iol__ps strong{margin-inline-end:.35em;font-weight:800}
@container (max-width:48rem){.cf-iol__row{flex-direction:column;align-items:center;gap:24px}.cf-iol__cell{flex:none;width:100%;padding:0}.cf-iol__cell:first-child,.cf-iol__cell:last-child{padding:0}.cf-iol__cell+.cf-iol__cell::before{display:none}}
@keyframes cf-iol-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cf-iol-sweep{from{background-size:0% 56%}to{background-size:100% 56%}}
@media (prefers-reduced-motion:no-preference){
.cf-iol__intro,.cf-iol__line,.cf-iol__row,.cf-iol__ps{animation:cf-iol-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-iol__line{animation-delay:.07s}
.cf-iol__row{animation-delay:.14s}
.cf-iol__ps{animation-delay:.21s}
.cf-iol__link{transition:color .16s ease,text-decoration-color .16s ease,text-decoration-thickness .16s ease}
.cf-iol__mark{animation:cf-iol-sweep .6s cubic-bezier(.2,.7,.2,1) .25s backwards;transition:background-size .22s cubic-bezier(.2,.7,.2,1),background-position .22s cubic-bezier(.2,.7,.2,1)}
}
`
pieces/content/inline-order-link/specimen.tsx 29 lines
import defaults from "../../studio-defaults.json"
import { slot } from "../../slots"
import { InlineOrderLink, type InlineOrderLinkProps } from "../inline-order-link"
export const states = ["default", "hover", "active", "disabled"]
export default function InlineOrderLinkSpecimen({ state }: { state?: InlineOrderLinkProps["state"] }) {
const sample = defaults.sample
return (
<InlineOrderLink
state={state}
intro="Ready to plan your first funnel tonight?"
linkLead="Click here to"
linkHighlight={`add ${sample.name} to your cart`}
linkTail={`for ${sample.price}`}
items={sample.items.map((item, i) => ({
image: slot(`item-${i + 1}`, item.image),
alt: item.imageAlt,
}))}
itemsCaption="Guide, workbook & checklist"
couponLabel={`$50 off the ${sample.regularPrice} value`}
price={sample.price}
priceNote="today"
cards={["visa", "mastercard", "amex", "discover"]}
payNote={sample.sublabel}
ps="Try the whole kit for 30 days. If it doesn't help you plan your first funnel, just ask and you get every cent back."
/>
)
}
| Name | Type | Details |
|---|---|---|
intro OptionalInlineOrderLink |
React.ReactNode |
Default "Ready to plan your first funnel tonight?"
|
linkLead OptionalInlineOrderLink |
string |
Default "Click here to"
|
linkHighlight OptionalInlineOrderLink |
string |
Default "add The Funnel Starter Kit to your cart"
|
linkTail OptionalInlineOrderLink |
string |
Default "for $47"
|
href OptionalInlineOrderLink |
string |
|
onAction OptionalInlineOrderLink |
(event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void |
|
items OptionalInlineOrderLink |
{ image: string; alt: string }[] |
Default []
|
itemsCaption OptionalInlineOrderLink |
string |
Default "Guide, workbook & checklist"
|
couponLabel OptionalInlineOrderLink |
string |
Default "$50 off the $97 value"
|
price OptionalInlineOrderLink |
string |
Default "$47"
|
priceNote OptionalInlineOrderLink |
string |
Default "today"
|
cards OptionalInlineOrderLink |
InlineOrderLinkCard[] |
Default ["visa", "mastercard", "amex", "discover"]
|
cardNames OptionalInlineOrderLink |
Partial<Record<InlineOrderLinkCard, string>> |
|
cardsLabel OptionalInlineOrderLink |
string |
Default "Cards accepted"
|
payNote OptionalInlineOrderLink |
string |
Default "Secure checkout · Instant download"
|
psLabel OptionalInlineOrderLink |
string |
Default "P.S."
|
ps OptionalInlineOrderLink |
React.ReactNode |
Default "Try the whole kit for 30 days. If it doesn't help you plan your first funnel, just ask and you get every cent back."
|
state OptionalInlineOrderLink |
"default" | "hover" | "active" | "disabled" |
Default "default"
|
disabled OptionalInlineOrderLink |
boolean |
Default false
|
className OptionalInlineOrderLink |
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.
--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.
item-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB