Logo Strip 1
"As featured in" / "Trusted by" proof: the supplied logos sit as a fanned hand of press cards right under the promise.
Use it in a prompt
Use proof/logo-strip 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/proof/logo-strip.tsx. - Import it and pass your copy and images (Props tab):
import { LogoStrip } from "@/components/funneldna/proof/logo-strip"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/proof/logo-strip/component.tsx 292 lines
// layout: card-fan
// "As featured in" / "Trusted by" proof: the supplied logos sit as a fanned hand of press cards right under the promise.
// Only the given logos render (greyscale at rest, full colour on the active card); with none supplied it renders nothing.
import React from "react";
export type LogoStripLogo = {
/** Logo image URL. Transparent SVG, PNG or WebP works best. */
src: string;
/** Publication or company name, read by screen readers. */
alt: string;
/** Optional link to the real feature or article. */
href?: string;
};
export type LogoStripProps = {
/** Only these logos render. An empty list renders nothing. */
logos?: LogoStripLogo[];
/** Small label above the fan, e.g. "As featured in" or "Trusted by". Pass "" to hide it. */
label?: React.ReactNode;
/** Index of the card that sits on top in colour at rest. Use -1 to keep every card greyscale until hovered. Defaults to the middle card. */
featured?: number;
/** Open logo links in a new tab (adds rel="noopener noreferrer"). */
openInNewTab?: boolean;
/** Rendered state. "hover" previews the card after the featured one as active. */
state?: "default" | "hover";
/** Root class for page-level placement. */
className?: string;
};
export function LogoStrip({
logos = [],
label = "As featured in",
featured,
openInNewTab = false,
state = "default",
className,
}: LogoStripProps) {
const labelId = React.useId();
const [pointed, setPointed] = React.useState<number | null>(null);
const items = logos.filter((logo) => logo && typeof logo.src === "string" && logo.src.trim() !== "");
const n = items.length;
if (n === 0) return null;
const rest = featured === -1 ? -1 : clampIndex(featured ?? Math.floor((n - 1) / 2), n);
const preview = state === "hover" ? (n > 1 ? Math.min(Math.max(rest, 0) + 1, n - 1) : 0) : null;
const active = pointed ?? preview ?? rest;
const hasLabel = label !== "" && label !== null && label !== undefined && label !== false;
return (
<div className={["cf-logo-strip", className].filter(Boolean).join(" ")}>
<style>{CSS}</style>
{hasLabel ? (
<p className="cf-logo-strip__label" id={labelId}>
<span>{label}</span>
</p>
) : null}
<ul
className="cf-logo-strip__fan"
aria-labelledby={hasLabel ? labelId : undefined}
style={{ "--n": n } as React.CSSProperties}
onPointerLeave={(event) => {
if (event.pointerType !== "touch") setPointed(null);
}}
>
{items.map((logo, i) => {
const isActive = i === active;
const face = (
<img
className="cf-logo-strip__img"
src={logo.src}
alt={logo.alt}
decoding="async"
draggable={false}
/>
);
return (
<li
key={`${logo.src}-${i}`}
className={isActive ? "cf-logo-strip__item is-active" : "cf-logo-strip__item"}
style={cardVars(i, n, active)}
onPointerEnter={() => setPointed(i)}
onPointerDown={() => setPointed(i)}
>
{logo.href ? (
<a
className="cf-logo-strip__card"
href={logo.href}
target={openInNewTab ? "_blank" : undefined}
rel={openInNewTab ? "noopener noreferrer" : undefined}
onFocus={() => setPointed(i)}
onBlur={() => setPointed(null)}
>
{face}
</a>
) : (
<div className="cf-logo-strip__card">{face}</div>
)}
</li>
);
})}
</ul>
</div>
);
}
export default LogoStrip;
function clampIndex(value: number, count: number) {
if (!Number.isFinite(value)) return Math.floor((count - 1) / 2);
return Math.min(Math.max(Math.round(value), 0), count - 1);
}
// Per-card fan geometry: rotation and drop follow the card's distance from the middle, neighbours of the
// active card part slightly, and the active card stacks on top. active < 0 keeps the resting fan.
function cardVars(i: number, n: number, active: number) {
const half = (n - 1) / 2;
const maxRot = Math.min(6, 2 + n * 0.8);
const t = half === 0 ? 0 : (i - half) / half;
const isActive = i === active;
const push = active < 0 || isActive ? 0 : i < active ? -0.75 : 0.75;
const z = isActive ? 100 : active < 0 ? Math.round((n - Math.abs(i - half)) * 2) : 50 - Math.abs(i - active);
return {
"--rot": `${(t * maxRot).toFixed(2)}deg`,
"--dy": `${(t * t * 1.25).toFixed(3)}rem`,
"--push": `${push}rem`,
"--prot": i % 2 ? "0.8deg" : "-0.8deg",
"--z": z,
"--delay": `${Math.min(i * 60, 300)}ms`,
} as React.CSSProperties;
}
// --logo-plate: supplied logo art is drawn for light grounds, so the plate is always light: the theme's card
// lifted to L >= 0.975 with its hue kept and chroma capped (white on light themes, a near-white in the card's hue
// on dark themes). A theme may set --logo-plate itself. Plate edges and shadows are built on --shadow (always
// dark, via --ls-shade) because the plate stays light while --ink and --card-border flip on dark themes.
// Every shadow fallback is the same --shadow recipe, so the Original look and any theme without the finished
// --shadow-md / --shadow-lg tokens still get a dark, in-hue, crisp shadow (no fixed shadow colours in the piece).
const CSS = `
.cf-logo-strip {
--ls-plate: var(--logo-plate, oklch(from var(--card, #ffffff) max(l, 0.975) min(c, 0.012) h));
--ls-shade: var(--shadow, oklch(0.22 0.03 260));
--ls-line: oklch(from var(--ls-shade) l c h / 0.16);
--ls-radius: clamp(6px, var(--card-radius, var(--radius, 12px)), 18px);
--ls-overlap: 1.5rem;
--ls-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
container: cf-logo-strip / inline-size;
width: 100%;
font-family: var(--font-body);
color: var(--ink);
}
.cf-logo-strip__label {
display: flex;
align-items: center;
justify-content: center;
gap: 0.875rem;
margin: 0 0 0.75rem;
font-family: var(--font-body);
font-size: 0.9375rem;
line-height: 1.4;
font-weight: 600;
letter-spacing: 0.01em;
color: var(--muted);
text-align: center;
text-wrap: balance;
}
.cf-logo-strip__label::before,
.cf-logo-strip__label::after {
content: "";
flex: 0 1 3rem;
height: 1px;
background: oklch(from var(--ink) l c h / 0.18);
}
.cf-logo-strip__fan {
--ls-cw: min(12.5rem, calc((100cqi - 2rem + (var(--n) - 1) * var(--ls-overlap)) / var(--n)));
list-style: none;
margin: 0;
padding: 1.25rem 1rem 1.5rem;
display: flex;
justify-content: center;
align-items: flex-start;
}
.cf-logo-strip__item {
position: relative;
flex: 0 0 auto;
width: var(--ls-cw);
height: calc(var(--ls-cw) * 0.58);
margin: 0 0 0 calc(var(--ls-overlap) * -1);
z-index: var(--z);
rotate: var(--rot);
translate: var(--push) var(--dy);
scale: 1;
transform-origin: 50% 120%;
transition: rotate 0.42s var(--ls-ease), translate 0.42s var(--ls-ease), scale 0.42s var(--ls-ease);
}
.cf-logo-strip__item:first-child { margin-left: 0; }
.cf-logo-strip__item.is-active {
rotate: calc(var(--rot) * 0.3);
translate: var(--push) calc(var(--dy) - 0.875rem);
scale: 1.045;
}
.cf-logo-strip__card {
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
padding: clamp(0.625rem, 9%, 1.25rem) clamp(0.875rem, 11%, 1.5rem);
background: var(--ls-plate);
border: 1px solid var(--ls-line);
border-radius: var(--ls-radius);
box-shadow:
var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(from var(--ls-shade) l c h / 0.22), 0 4px 10px -2px oklch(from var(--ls-shade) l c h / 0.2))),
inset 0 -2px 0 oklch(from var(--ls-shade) l c h / 0.05);
color: inherit;
text-decoration: none;
outline: none;
scale: 1;
transition: box-shadow 0.3s ease, scale 0.15s ease;
animation: cf-logo-strip-deal 0.5s var(--ls-ease) both;
animation-delay: var(--delay);
-webkit-tap-highlight-color: transparent;
}
.cf-logo-strip__item.is-active .cf-logo-strip__card {
box-shadow:
var(--shadow-lg, 0 2px 3px oklch(from var(--ls-shade) l c h / 0.22), 0 12px 24px -8px oklch(from var(--ls-shade) l c h / 0.32)),
inset 0 -2px 0 oklch(from var(--ls-shade) l c h / 0.05);
}
a.cf-logo-strip__card { cursor: pointer; }
a.cf-logo-strip__card:active { scale: 0.97; }
a.cf-logo-strip__card:focus-visible {
outline: 3px solid var(--field-focus, var(--accent));
outline-offset: 3px;
}
.cf-logo-strip__img {
display: block;
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
object-fit: contain;
object-position: center;
filter: grayscale(1) contrast(1.1);
opacity: 0.72;
transition: filter 0.3s ease, opacity 0.3s ease;
user-select: none;
}
.cf-logo-strip__item.is-active .cf-logo-strip__img {
filter: none;
opacity: 1;
}
@keyframes cf-logo-strip-deal {
from { opacity: 0.4; translate: 0 0.75rem; }
to { opacity: 1; translate: 0 0; }
}
@container cf-logo-strip (max-width: 35rem) {
.cf-logo-strip__fan {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.75rem;
padding: 0.5rem 0.25rem 0.375rem;
}
.cf-logo-strip__item {
width: auto;
height: 5.25rem;
margin: 0;
z-index: auto;
rotate: var(--prot);
translate: 0 0;
transform-origin: 50% 50%;
}
.cf-logo-strip__item.is-active {
rotate: 0deg;
translate: 0 -0.25rem;
scale: 1.02;
z-index: 2;
}
.cf-logo-strip__item:last-child:nth-child(odd) {
grid-column: 1 / -1;
justify-self: center;
width: calc(50% - 0.375rem);
}
.cf-logo-strip__card { padding: 0.75rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
.cf-logo-strip__item,
.cf-logo-strip__card,
.cf-logo-strip__img { transition: none; }
.cf-logo-strip__card { animation: none; }
}
`;
pieces/proof/logo-strip/specimen.tsx 56 lines
import React from "react";
import { LogoStrip, type LogoStripProps } from "../logo-strip";
import { slot } from "../../slots";
export const states = ["default", "hover"];
// Clearly fictional sample wordmarks for the press-1 … press-5 image slots.
// They are image content (data-URL SVG art), not piece styling. The art is single-ink: no fill means SVG's
// default black, strokes use currentColor (black inside an <img>), and tonal variety comes from fill-opacity.
// This keeps fixed hues out of the source; real supplied logos keep their own brand colours. The component
// greys every logo at rest and sits it on the light logo plate. A theme that supplies press-N images replaces them.
function wordmark(svg: string) {
return "data:image/svg+xml;charset=utf-8," + encodeURIComponent(svg);
}
const SANS = "Arial, Helvetica, sans-serif";
const SERIF = "Georgia, 'Times New Roman', serif";
const SAMPLE_LOGOS = [
{
alt: "Fablewire",
src: wordmark(
`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 64'><g fill-opacity='0.62'><polygon points='18,12 58,12 52,22 12,22'/><polygon points='14,29 46,29 40,39 8,39'/><polygon points='18,12 28,12 14,52 4,52'/></g><text x='68' y='44' font-family="'Arial Narrow', ${SANS}" font-size='31' font-weight='800' font-style='italic' fill-opacity='0.9' textLength='186' lengthAdjust='spacingAndGlyphs'>FABLEWIRE</text></svg>`
),
},
{
alt: "Northquill",
src: wordmark(
`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 64'><text x='4' y='46' font-family="${SERIF}" font-size='40' font-weight='700' fill-opacity='0.85' textLength='250' lengthAdjust='spacingAndGlyphs'>Northquill</text></svg>`
),
},
{
alt: "Kindfolio",
src: wordmark(
`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 64'><g transform='translate(0 6)' fill='none' stroke='currentColor' stroke-opacity='0.7' stroke-width='5.5' stroke-linejoin='round'><rect x='24' y='6' width='16' height='16' rx='3' transform='rotate(45 32 14)'/><rect x='12' y='18' width='16' height='16' rx='3' transform='rotate(45 20 26)'/><rect x='36' y='18' width='16' height='16' rx='3' transform='rotate(45 44 26)'/><rect x='24' y='30' width='16' height='16' rx='3' transform='rotate(45 32 38)'/></g><text x='66' y='43' font-family="'Arial Black', ${SANS}" font-size='27' font-weight='900' fill-opacity='0.85' textLength='186' lengthAdjust='spacingAndGlyphs'>KINDFOLIO</text></svg>`
),
},
{
alt: "Signal Orchard",
src: wordmark(
`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 64'><text x='10' y='28' font-family="${SERIF}" font-size='30' font-weight='700' fill-opacity='0.9' textLength='112' lengthAdjust='spacingAndGlyphs'>Signal</text><text x='10' y='58' font-family="${SERIF}" font-size='30' font-weight='700' fill-opacity='0.6' textLength='158' lengthAdjust='spacingAndGlyphs'>Orchard</text></svg>`
),
},
{
alt: "Brightloom",
src: wordmark(
`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 64'><path d='M16 12v40M28 12v40M40 12v40M8 22h40M8 32h40M8 42h40' stroke='currentColor' stroke-opacity='0.62' stroke-width='4.5' stroke-linecap='square' fill='none'/><text x='60' y='43' font-family="${SANS}" font-size='27' font-weight='800' fill-opacity='0.9' textLength='192' lengthAdjust='spacingAndGlyphs'>BRIGHTLOOM</text></svg>`
),
},
];
export default function LogoStripSpecimen({ state = "default" }: { state?: LogoStripProps["state"] }) {
// slot() is called inside render; it falls back to the designed wordmark whenever a theme host has no image for the press slot.
const logos = SAMPLE_LOGOS.map((logo, i) => ({ ...logo, src: slot(`press-${i + 1}`, logo.src) || logo.src }));
return <LogoStrip logos={logos} label="As featured in" state={state} />;
}
| Name | Type | Details |
|---|---|---|
logos OptionalLogoStrip |
LogoStripLogo[] |
Default []
|
label OptionalLogoStrip |
React.ReactNode |
Default "As featured in"
|
featured OptionalLogoStrip |
number |
|
openInNewTab OptionalLogoStrip |
boolean |
Default false
|
state OptionalLogoStrip |
"default" | "hover" |
Default "default"
|
className OptionalLogoStrip |
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.
--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
press-*- An image this piece places.