Mosaic Story and Press Wall
Horizontal mosaic of mixed tiles: portrait video cards, a blob/arch-masked photo, off-white quote tiles with serif press-publication wordmarks, and a dark green quote tile. Tiles have 16–20px radii with semi-transparent play and external-link chips.
Rebuilt from seed.com in the Verdant Lab Editorial style.
Looks exactly like seed.com: brings its fonts and colours, namespaced so your own theme stays untouched.
Restyled to your project: uses your shadcn colours, fonts and radius, so it matches the rest of your app. Layout, type sizes and motion stay as designed.
Usage
Pass image URLs (portraitA/B/C, shelfPhoto, microPhoto) and quote/source text as props; all have defaults. The row auto-scrolls as a marquee and pauses on hover; quote tiles are links and play chips are buttons you can wire to video.
components/press-quote-mosaic.tsx
"use client"; import { useEffect, useRef, useState, type CSSProperties, type ReactNode } from "react"; type Props = { portraitA?: string; portraitB?: string; portraitC?: string; shelfPhoto?: string; microPhoto?: string; quoteOne?: string; quoteTwo?: string; sourceOne?: string; sourceTwo?: string; }; const PlayChip = ({ label = "Play video" }: { label?: string }) => ( <button aria-label={label} className="absolute right-4 top-4 flex h-12 w-[60px] items-center justify-center rounded-pill bg-frost-glass text-canvas backdrop-blur-md transition-all duration-ui-hover ease-ui-hover hover:scale-105 focus-visible:outline focus-visible:outline-2 focus-visible:outline-canvas"> <svg width="12" height="14" viewBox="0 0 12 14" fill="currentColor" aria-hidden="true"><path d="M1 1l10 6-10 6z" /></svg> </button> ); const LinkChip = () => ( <span aria-hidden="true" className="absolute right-4 top-4 flex h-12 w-16 items-center justify-center rounded-pill bg-frost-glass text-ink backdrop-blur-md"> <svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" strokeWidth="1.5"><path d="M6 2H2v10h10V8M8 1h5v5M13 1L6 8" /></svg> </span> ); export default function MosaicStoryPressWall({ portraitA = "https://yoink-app.fly.dev/stock/people-2.jpg", portraitB = "https://yoink-app.fly.dev/stock/people-6.jpg", portraitC = "https://yoink-app.fly.dev/stock/people-1.jpg", shelfPhoto = "https://yoink-app.fly.dev/stock/product-1.jpg", microPhoto = "https://yoink-app.fly.dev/stock/nature-2.jpg", quoteOne = "“Pushing the limits of what daily routines can do is where curious people find their passion.”", quoteTwo = "“Northfield Labs is reshaping how everyday science meets the home and the planet.”", sourceOne = "The Courier", sourceTwo = "Meridian", }: Props) { const tile = "relative shrink-0 overflow-hidden"; return ( <section className="overflow-hidden bg-canvas py-8 text-ink" aria-label="Press and stories"> <Marquee speed={30} pauseOnHover gap={16}> <div className="flex h-[430px] gap-4"> <div className={`${tile} w-[276px] rounded-card`}> <img src={portraitA} alt="Person speaking to camera at a café table" width={276} height={429} loading="lazy" className="h-full w-full object-cover" /> <PlayChip /> </div> <div className="flex w-[322px] shrink-0 flex-col gap-4"> <div className="relative h-[207px] overflow-hidden rounded-[999px_999px_999px_60px]"> <img src={shelfPhoto} alt="Products arranged on a shelf" width={322} height={207} loading="lazy" className="h-full w-full object-cover" /> </div> <a href="#" className="relative flex h-[207px] flex-col items-center justify-center rounded-card bg-surface px-8 text-center transition-all duration-ui-hover ease-ui-hover hover:bg-surface-foam focus-visible:outline focus-visible:outline-2 focus-visible:outline-ink"> <LinkChip /> <p className="text-body">{quoteOne}</p> <span className="mt-4 font-serif text-2xl tracking-tight">{sourceOne}</span> </a> </div> <div className={`${tile} w-[276px] rounded-card`}> <img src={portraitB} alt="Hands holding a camera" width={276} height={429} loading="lazy" className="h-full w-full object-cover" /> <PlayChip /> </div> <div className={`${tile} w-[276px] rounded-card`}> <img src={portraitC} alt="Person working by a bright window" width={276} height={429} loading="lazy" className="h-full w-full object-cover" /> </div> <div className="flex w-[322px] shrink-0 flex-col gap-4"> <a href="#" className="relative flex h-[207px] flex-col items-center justify-center rounded-card bg-ink px-8 text-center text-canvas transition-all duration-ui-hover ease-ui-hover hover:bg-forest-soft focus-visible:outline focus-visible:outline-2 focus-visible:outline-lime-highlight"> <p className="text-body">{quoteTwo}</p> <span className="mt-4 font-serif text-2xl tracking-tight">{sourceTwo}</span> </a> <div className="relative h-[207px] overflow-hidden rounded-[60px_999px_999px_999px]"> <img src={microPhoto} alt="Macro green leaf texture" width={322} height={207} loading="lazy" className="h-full w-full object-cover" /> </div> </div> </div> </Marquee> </section> ); } // ---- Yoink motion (inlined, no dependencies): Marquee ---- const YK_MARQUEE_CSS = `@keyframes yk-marquee-x{to{transform:translate3d(calc(-1 * var(--yk-shift)),0,0)}} @keyframes yk-marquee-y{to{transform:translate3d(0,calc(-1 * var(--yk-shift)),0)}} [data-yk-marquee][data-pause]:hover [data-yk-track]{animation-play-state:paused} @media (prefers-reduced-motion:reduce){[data-yk-track]{animation:none!important}}`; /** An endless, seamless scrolling row (or column) of items: logos, quotes, tags. */ function Marquee({ children, speed = 40, reverse = false, vertical = false, pauseOnHover = true, fade = true, gap = 48, className, style, }: { children?: ReactNode; /** pixels per second */ speed?: number; reverse?: boolean; vertical?: boolean; pauseOnHover?: boolean; fade?: boolean; gap?: number; className?: string; style?: CSSProperties; }) { const box = useRef<HTMLDivElement>(null); const group = useRef<HTMLDivElement>(null); const [m, setM] = useState({ copies: 2, size: 0 }); useEffect(() => { const measure = () => { const b = box.current, g = group.current; if (!b || !g) return; const size = vertical ? g.offsetHeight : g.offsetWidth; const room = vertical ? b.offsetHeight : b.offsetWidth; if (size > 0) setM({ size, copies: Math.max(2, Math.ceil(room / size) + 1) }); }; measure(); const ro = typeof ResizeObserver !== "undefined" ? new ResizeObserver(measure) : null; if (box.current) ro?.observe(box.current); if (group.current) ro?.observe(group.current); return () => ro?.disconnect(); }, [vertical]); // the copies are only there to fill the loop: hide them from screen readers and keyboards useEffect(() => { box.current?.querySelectorAll("[data-yk-copy]").forEach((el) => el.setAttribute("inert", "")); }, [m.copies]); const edge = vertical ? "to bottom" : "to right"; const mask = fade ? `linear-gradient(${edge}, transparent, black 10%, black 90%, transparent)` : undefined; const dir = vertical ? "column" : "row"; const items = (copy: number) => ( <div key={copy} ref={copy === 0 ? group : undefined} data-yk-copy={copy > 0 ? "" : undefined} aria-hidden={copy > 0 || undefined} style={{ display: "flex", flexDirection: dir, flexShrink: 0, alignItems: "center", gap, [vertical ? "paddingBottom" : "paddingRight"]: gap }} > {children} </div> ); return ( <div ref={box} data-yk-marquee="" data-pause={pauseOnHover ? "" : undefined} className={className} style={{ overflow: "hidden", maskImage: mask, WebkitMaskImage: mask, ...style }} > <style>{YK_MARQUEE_CSS}</style> <div data-yk-track="" style={{ display: "flex", flexDirection: dir, width: vertical ? "100%" : "max-content", ["--yk-shift" as string]: `${m.size}px`, animation: m.size ? `yk-marquee-${vertical ? "y" : "x"} ${m.size / Math.max(speed, 1)}s linear infinite${reverse ? " reverse" : ""}` : undefined, }} > {Array.from({ length: m.copies }, (_, i) => items(i))} </div> </div> ); }"use client"; import { useEffect, useRef, useState, type CSSProperties, type ReactNode } from "react"; type Props = { portraitA?: string; portraitB?: string; portraitC?: string; shelfPhoto?: string; microPhoto?: string; quoteOne?: string; quoteTwo?: string; sourceOne?: string; sourceTwo?: string; }; const PlayChip = ({ label = "Play video" }: { label?: string }) => ( <button aria-label={label} className="absolute right-4 top-4 flex h-12 w-[60px] items-center justify-center rounded-full bg-primary text-primary-foreground backdrop-blur-md transition-all duration-verdant-ui-hover ease-verdant-ui-hover hover:scale-105 focus-visible:outline focus-visible:outline-2 focus-visible:outline-background"> <svg width="12" height="14" viewBox="0 0 12 14" fill="currentColor" aria-hidden="true"><path d="M1 1l10 6-10 6z" /></svg> </button> ); const LinkChip = () => ( <span aria-hidden="true" className="absolute right-4 top-4 flex h-12 w-16 items-center justify-center rounded-full bg-primary text-primary-foreground backdrop-blur-md"> <svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" strokeWidth="1.5"><path d="M6 2H2v10h10V8M8 1h5v5M13 1L6 8" /></svg> </span> ); export default function MosaicStoryPressWall({ portraitA = "https://yoink-app.fly.dev/stock/people-2.jpg", portraitB = "https://yoink-app.fly.dev/stock/people-6.jpg", portraitC = "https://yoink-app.fly.dev/stock/people-1.jpg", shelfPhoto = "https://yoink-app.fly.dev/stock/product-1.jpg", microPhoto = "https://yoink-app.fly.dev/stock/nature-2.jpg", quoteOne = "“Pushing the limits of what daily routines can do is where curious people find their passion.”", quoteTwo = "“Northfield Labs is reshaping how everyday science meets the home and the planet.”", sourceOne = "The Courier", sourceTwo = "Meridian", }: Props) { const tile = "relative shrink-0 overflow-hidden"; return ( <section className="overflow-hidden bg-background py-8 text-foreground" aria-label="Press and stories"> <Marquee speed={30} pauseOnHover gap={16}> <div className="flex h-[430px] gap-4"> <div className={`${tile} w-[276px] rounded-2xl`}> <img src={portraitA} alt="Person speaking to camera at a café table" width={276} height={429} loading="lazy" className="h-full w-full object-cover" /> <PlayChip /> </div> <div className="flex w-[322px] shrink-0 flex-col gap-4"> <div className="relative h-[207px] overflow-hidden rounded-[999px_999px_999px_60px]"> <img src={shelfPhoto} alt="Products arranged on a shelf" width={322} height={207} loading="lazy" className="h-full w-full object-cover" /> </div> <a href="#" className="relative flex h-[207px] flex-col items-center justify-center rounded-2xl bg-card px-8 text-center transition-all duration-verdant-ui-hover ease-verdant-ui-hover hover:bg-muted focus-visible:outline focus-visible:outline-2 focus-visible:outline-foreground"> <LinkChip /> <p className="text-verdant-body">{quoteOne}</p> <span className="mt-4 font-serif text-2xl tracking-tight">{sourceOne}</span> </a> </div> <div className={`${tile} w-[276px] rounded-2xl`}> <img src={portraitB} alt="Hands holding a camera" width={276} height={429} loading="lazy" className="h-full w-full object-cover" /> <PlayChip /> </div> <div className={`${tile} w-[276px] rounded-2xl`}> <img src={portraitC} alt="Person working by a bright window" width={276} height={429} loading="lazy" className="h-full w-full object-cover" /> </div> <div className="flex w-[322px] shrink-0 flex-col gap-4"> <a href="#" className="relative flex h-[207px] flex-col items-center justify-center rounded-2xl bg-foreground px-8 text-center text-background transition-all duration-verdant-ui-hover ease-verdant-ui-hover hover:bg-foreground focus-visible:outline focus-visible:outline-2 focus-visible:outline-verdant-lime-highlight"> <p className="text-verdant-body">{quoteTwo}</p> <span className="mt-4 font-serif text-2xl tracking-tight">{sourceTwo}</span> </a> <div className="relative h-[207px] overflow-hidden rounded-[60px_999px_999px_999px]"> <img src={microPhoto} alt="Macro green leaf texture" width={322} height={207} loading="lazy" className="h-full w-full object-cover" /> </div> </div> </div> </Marquee> </section> ); } // ---- Yoink motion (inlined, no dependencies): Marquee ---- const YK_MARQUEE_CSS = `@keyframes yk-marquee-x{to{transform:translate3d(calc(-1 * var(--yk-shift)),0,0)}} @keyframes yk-marquee-y{to{transform:translate3d(0,calc(-1 * var(--yk-shift)),0)}} [data-yk-marquee][data-pause]:hover [data-yk-track]{animation-play-state:paused} @media (prefers-reduced-motion:reduce){[data-yk-track]{animation:none!important}}`; /** An endless, seamless scrolling row (or column) of items: logos, quotes, tags. */ function Marquee({ children, speed = 40, reverse = false, vertical = false, pauseOnHover = true, fade = true, gap = 48, className, style, }: { children?: ReactNode; /** pixels per second */ speed?: number; reverse?: boolean; vertical?: boolean; pauseOnHover?: boolean; fade?: boolean; gap?: number; className?: string; style?: CSSProperties; }) { const box = useRef<HTMLDivElement>(null); const group = useRef<HTMLDivElement>(null); const [m, setM] = useState({ copies: 2, size: 0 }); useEffect(() => { const measure = () => { const b = box.current, g = group.current; if (!b || !g) return; const size = vertical ? g.offsetHeight : g.offsetWidth; const room = vertical ? b.offsetHeight : b.offsetWidth; if (size > 0) setM({ size, copies: Math.max(2, Math.ceil(room / size) + 1) }); }; measure(); const ro = typeof ResizeObserver !== "undefined" ? new ResizeObserver(measure) : null; if (box.current) ro?.observe(box.current); if (group.current) ro?.observe(group.current); return () => ro?.disconnect(); }, [vertical]); // the copies are only there to fill the loop: hide them from screen readers and keyboards useEffect(() => { box.current?.querySelectorAll("[data-yk-copy]").forEach((el) => el.setAttribute("inert", "")); }, [m.copies]); const edge = vertical ? "to bottom" : "to right"; const mask = fade ? `linear-gradient(${edge}, transparent, black 10%, black 90%, transparent)` : undefined; const dir = vertical ? "column" : "row"; const items = (copy: number) => ( <div key={copy} ref={copy === 0 ? group : undefined} data-yk-copy={copy > 0 ? "" : undefined} aria-hidden={copy > 0 || undefined} style={{ display: "flex", flexDirection: dir, flexShrink: 0, alignItems: "center", gap, [vertical ? "paddingBottom" : "paddingRight"]: gap }} > {children} </div> ); return ( <div ref={box} data-yk-marquee="" data-pause={pauseOnHover ? "" : undefined} className={className} style={{ overflow: "hidden", maskImage: mask, WebkitMaskImage: mask, ...style }} > <style>{YK_MARQUEE_CSS}</style> <div data-yk-track="" style={{ display: "flex", flexDirection: dir, width: vertical ? "100%" : "max-content", ["--yk-shift" as string]: `${m.size}px`, animation: m.size ? `yk-marquee-${vertical ? "y" : "x"} ${m.size / Math.max(speed, 1)}s linear infinite${reverse ? " reverse" : ""}` : undefined, }} > {Array.from({ length: m.copies }, (_, i) => items(i))} </div> </div> ); }
Quality checks
Automated, in a real browser · 4d ago- Accessible: passedNo serious accessibility problems (axe-core): readable contrast, labelled buttons and images.
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: passedStill readable when installed in your theme and switched to dark mode.
- Themeable: passedUses design tokens rather than hard-coded colours, so it follows your theme cleanly.
- Animates cleanly: passedIts animation plays and finishes with everything visible, and it stays still for people who turn on reduced motion.