Monochrome Logo Grid
Small muted caption over a 6×2 grid of grayscale customer wordmarks at about 26px height. The grid is centered with generous spacing and no borders.
Rebuilt from cal.com in the Warm Paper Calendar style.
npx shadcn@latest add https://justyoink.it/r/warm-paper-calendar/blocks/monochrome-logo-grid.json
Looks exactly like cal.com: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/warm-paper-calendar/mine/monochrome-logo-grid.json
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 `caption` (string) and `logos` (array of {name, shape, style?}) to customize; renders standalone with defaults. The caption fades up on scroll with a 60ms delay and the 12 wordmarks form a 6×2 grid on large screens.
components/monochrome-logo-grid.tsx
"use client"; import { useEffect, useLayoutEffect, useRef, useState, type CSSProperties, type ElementType, type ReactNode, type RefObject } from "react"; type Logo = { name: string; shape: "circle" | "square" | "triangle" | "diamond" | "bars" | "ring"; style?: string }; type Props = { caption?: string; logos?: Logo[]; }; const defaultLogos: Logo[] = [ { name: "Northwind", shape: "circle" }, { name: "Altura", shape: "triangle" }, { name: "Lumen", shape: "ring" }, { name: "Kitefield", shape: "diamond" }, { name: "Brightpath", shape: "bars" }, { name: "Oakline", shape: "square" }, { name: "Harbor", shape: "ring" }, { name: "Meridian", shape: "square", style: "font-serif" }, { name: "Quillon", shape: "bars" }, { name: "Stonebridge", shape: "circle", style: "font-normal" }, { name: "Verdant", shape: "triangle" }, { name: "Pinecrest", shape: "diamond" }, ]; function Mark({ shape }: { shape: Logo["shape"] }) { const c = "currentColor"; return ( <svg width="22" height="22" viewBox="0 0 22 22" aria-hidden="true" className="shrink-0"> {shape === "circle" && <circle cx="11" cy="11" r="9" fill={c} />} {shape === "square" && <rect x="3" y="3" width="16" height="16" rx="3" fill={c} />} {shape === "triangle" && <path d="M11 3l9 16H2z" fill={c} />} {shape === "diamond" && <path d="M11 2l9 9-9 9-9-9z" fill={c} />} {shape === "ring" && <circle cx="11" cy="11" r="8" fill="none" stroke={c} strokeWidth="3" strokeDasharray="3 2.5" />} {shape === "bars" && ( <g fill={c}> <rect x="3" y="4" width="4" height="14" rx="1" /> <rect x="9" y="8" width="4" height="10" rx="1" /> <rect x="15" y="2" width="4" height="16" rx="1" /> </g> )} </svg> ); } export default function MonochromeLogoGrid({ caption = "Trusted by fast-moving teams for planning their week", logos = defaultLogos, }: Props) { return ( <section className="bg-canvas px-6 py-16 md:py-24"> <div className="mx-auto max-w-[1100px]"> <Reveal from="up" delay={60} duration={600}> <p className="text-center text-ui text-muted">{caption}</p> </Reveal> <Stagger step={50} from="up" className="mt-10 grid grid-cols-2 items-center gap-x-6 gap-y-10 sm:grid-cols-3 lg:grid-cols-6" > {logos.map((l) => ( <div key={l.name} className="flex h-[26px] items-center justify-center gap-2 text-ink opacity-80 grayscale" > <Mark shape={l.shape} /> <span className={`font-display text-[19px] font-semibold tracking-[-0.03em] ${l.style ?? ""}`}> {l.name} </span> </div> ))} </Stagger> </div> </section> ); } // ---- Yoink motion (inlined, no dependencies): Reveal, Stagger ---- const YK_EASE = "cubic-bezier(0.16, 1, 0.3, 1)"; const useYkLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect; function ykReducedMotion(): boolean { return typeof window !== "undefined" && !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches; } // "idle": untouched (visible) · "hidden": waiting below the fold · "shown": play the entrance. // Content is only hidden once we know we can show it again (IntersectionObserver exists, motion allowed, // and there is a box to watch), and a safety net reveals anything on screen that is still hidden. type YkRevealState = "idle" | "hidden" | "shown"; function useYkReveal(ref: RefObject<Element | null>, once = true): YkRevealState { const [state, setState] = useState<YkRevealState>("idle"); useYkLayoutEffect(() => { const el = ref.current; if (!el || ykReducedMotion() || typeof IntersectionObserver === "undefined") return; // watch the element's own box, or its children when it has none (display: contents) const boxes = () => (getComputedStyle(el).display === "contents" ? Array.from(el.children) : [el]); const onScreen = (t: Element) => { const r = t.getBoundingClientRect(); return (r.width > 0 || r.height > 0) && r.bottom > 0 && r.right > 0 && r.top < window.innerHeight && r.left < window.innerWidth; }; if (!boxes().some((t) => t.getBoundingClientRect().width > 0 || t.getBoundingClientRect().height > 0)) return; // e.g. hidden at mount: leave it visible let shown = false; const show = (v: boolean) => { if (v !== shown) (shown = v), setState(v ? "shown" : "hidden"); }; setState("hidden"); const inView = new Set<Element>(); const io = new IntersectionObserver((entries) => { for (const e of entries) { if (e.isIntersecting) inView.add(e.target); else inView.delete(e.target); } if (inView.size) { show(true); if (once) io.disconnect(); } else if (!once) show(false); }); const watched = new Set<Element>(); const watch = () => boxes().forEach((t) => !watched.has(t) && (watched.add(t), io.observe(t))); watch(); // safety net: styles that land after mount (display: contents) get watched too, and nothing // stays hidden for more than a moment while it is actually on screen const start = Date.now(); const net = setInterval(() => { if (shown) return once && clearInterval(net); watch(); if (Date.now() - start > 2400 && boxes().some(onScreen)) show(true); }, 600); return () => { io.disconnect(); clearInterval(net); }; }, [once]); return state; } type YkRevealFrom = "up" | "down" | "left" | "right" | "scale" | "blur" | "none"; /** Fades content in as it scrolls into view. */ function Reveal({ children, from = "up", delay = 0, duration = 700, distance = 24, once = true, as = "div", className, style, }: { children?: ReactNode; from?: YkRevealFrom; delay?: number; duration?: number; distance?: number; once?: boolean; as?: ElementType; className?: string; style?: CSSProperties; }) { const Tag = as; const ref = useRef<HTMLElement>(null); const state = useYkReveal(ref, once); const hidden = state === "hidden"; const offset = { up: `translate3d(0, ${distance}px, 0)`, down: `translate3d(0, ${-distance}px, 0)`, left: `translate3d(${-distance}px, 0, 0)`, right: `translate3d(${distance}px, 0, 0)`, scale: "scale(0.94)", blur: `translate3d(0, ${distance / 2}px, 0)`, none: "none", }[from]; const t = `${duration}ms ${YK_EASE} ${delay}ms`; return ( <Tag ref={ref} className={className} style={{ ...style, ...(hidden && { opacity: 0, transform: offset, filter: from === "blur" ? "blur(12px)" : undefined }), ...(state === "shown" && { transition: `opacity ${t}, transform ${t}, filter ${t}` }), }} > {children} </Tag> ); } /** Reveals each direct child one after another when the group scrolls into view. */ function Stagger({ children, step = 90, from = "up", distance = 20, duration = 650, delay = 0, once = true, as = "div", className, style, }: { children?: ReactNode; step?: number; from?: "up" | "down" | "left" | "right" | "scale" | "fade"; distance?: number; duration?: number; delay?: number; once?: boolean; as?: ElementType; className?: string; style?: CSSProperties; }) { const Tag = as; const ref = useRef<HTMLElement>(null); const state = useYkReveal(ref, once); useYkLayoutEffect(() => { const items = Array.from(ref.current?.children ?? []) as HTMLElement[]; if (state === "idle") return; const offset = { up: `translate3d(0, ${distance}px, 0)`, down: `translate3d(0, ${-distance}px, 0)`, left: `translate3d(${-distance}px, 0, 0)`, right: `translate3d(${distance}px, 0, 0)`, scale: "scale(0.92)", fade: "none", }[from]; if (state === "hidden") { for (const el of items) Object.assign(el.style, { transition: "none", opacity: "0", transform: offset }); return; } items.forEach((el, i) => { const t = `${duration}ms ${YK_EASE} ${delay + i * step}ms`; Object.assign(el.style, { transition: `opacity ${t}, transform ${t}`, opacity: "", transform: "" }); }); // hand the children their own transitions back once everything has landed const done = setTimeout(() => items.forEach((el) => (el.style.transition = "")), delay + items.length * step + duration + 50); return () => clearTimeout(done); }, [state]); return ( <Tag ref={ref} className={className} style={style}> {children} </Tag> ); }"use client"; import { useEffect, useLayoutEffect, useRef, useState, type CSSProperties, type ElementType, type ReactNode, type RefObject } from "react"; type Logo = { name: string; shape: "circle" | "square" | "triangle" | "diamond" | "bars" | "ring"; style?: string }; type Props = { caption?: string; logos?: Logo[]; }; const defaultLogos: Logo[] = [ { name: "Northwind", shape: "circle" }, { name: "Altura", shape: "triangle" }, { name: "Lumen", shape: "ring" }, { name: "Kitefield", shape: "diamond" }, { name: "Brightpath", shape: "bars" }, { name: "Oakline", shape: "square" }, { name: "Harbor", shape: "ring" }, { name: "Meridian", shape: "square", style: "font-serif" }, { name: "Quillon", shape: "bars" }, { name: "Stonebridge", shape: "circle", style: "font-normal" }, { name: "Verdant", shape: "triangle" }, { name: "Pinecrest", shape: "diamond" }, ]; function Mark({ shape }: { shape: Logo["shape"] }) { const c = "currentColor"; return ( <svg width="22" height="22" viewBox="0 0 22 22" aria-hidden="true" className="shrink-0"> {shape === "circle" && <circle cx="11" cy="11" r="9" fill={c} />} {shape === "square" && <rect x="3" y="3" width="16" height="16" rx="3" fill={c} />} {shape === "triangle" && <path d="M11 3l9 16H2z" fill={c} />} {shape === "diamond" && <path d="M11 2l9 9-9 9-9-9z" fill={c} />} {shape === "ring" && <circle cx="11" cy="11" r="8" fill="none" stroke={c} strokeWidth="3" strokeDasharray="3 2.5" />} {shape === "bars" && ( <g fill={c}> <rect x="3" y="4" width="4" height="14" rx="1" /> <rect x="9" y="8" width="4" height="10" rx="1" /> <rect x="15" y="2" width="4" height="16" rx="1" /> </g> )} </svg> ); } export default function MonochromeLogoGrid({ caption = "Trusted by fast-moving teams for planning their week", logos = defaultLogos, }: Props) { return ( <section className="bg-background px-6 py-16 md:py-24"> <div className="mx-auto max-w-[1100px]"> <Reveal from="up" delay={60} duration={600}> <p className="text-center text-warm-ui text-muted-foreground">{caption}</p> </Reveal> <Stagger step={50} from="up" className="mt-10 grid grid-cols-2 items-center gap-x-6 gap-y-10 sm:grid-cols-3 lg:grid-cols-6" > {logos.map((l) => ( <div key={l.name} className="flex h-[26px] items-center justify-center gap-2 text-foreground opacity-80 grayscale" > <Mark shape={l.shape} /> <span className={`font-sans text-[19px] font-semibold tracking-[-0.03em] ${l.style ?? ""}`}> {l.name} </span> </div> ))} </Stagger> </div> </section> ); } // ---- Yoink motion (inlined, no dependencies): Reveal, Stagger ---- const YK_EASE = "cubic-bezier(0.16, 1, 0.3, 1)"; const useYkLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect; function ykReducedMotion(): boolean { return typeof window !== "undefined" && !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches; } // "idle": untouched (visible) · "hidden": waiting below the fold · "shown": play the entrance. // Content is only hidden once we know we can show it again (IntersectionObserver exists, motion allowed, // and there is a box to watch), and a safety net reveals anything on screen that is still hidden. type YkRevealState = "idle" | "hidden" | "shown"; function useYkReveal(ref: RefObject<Element | null>, once = true): YkRevealState { const [state, setState] = useState<YkRevealState>("idle"); useYkLayoutEffect(() => { const el = ref.current; if (!el || ykReducedMotion() || typeof IntersectionObserver === "undefined") return; // watch the element's own box, or its children when it has none (display: contents) const boxes = () => (getComputedStyle(el).display === "contents" ? Array.from(el.children) : [el]); const onScreen = (t: Element) => { const r = t.getBoundingClientRect(); return (r.width > 0 || r.height > 0) && r.bottom > 0 && r.right > 0 && r.top < window.innerHeight && r.left < window.innerWidth; }; if (!boxes().some((t) => t.getBoundingClientRect().width > 0 || t.getBoundingClientRect().height > 0)) return; // e.g. hidden at mount: leave it visible let shown = false; const show = (v: boolean) => { if (v !== shown) (shown = v), setState(v ? "shown" : "hidden"); }; setState("hidden"); const inView = new Set<Element>(); const io = new IntersectionObserver((entries) => { for (const e of entries) { if (e.isIntersecting) inView.add(e.target); else inView.delete(e.target); } if (inView.size) { show(true); if (once) io.disconnect(); } else if (!once) show(false); }); const watched = new Set<Element>(); const watch = () => boxes().forEach((t) => !watched.has(t) && (watched.add(t), io.observe(t))); watch(); // safety net: styles that land after mount (display: contents) get watched too, and nothing // stays hidden for more than a moment while it is actually on screen const start = Date.now(); const net = setInterval(() => { if (shown) return once && clearInterval(net); watch(); if (Date.now() - start > 2400 && boxes().some(onScreen)) show(true); }, 600); return () => { io.disconnect(); clearInterval(net); }; }, [once]); return state; } type YkRevealFrom = "up" | "down" | "left" | "right" | "scale" | "blur" | "none"; /** Fades content in as it scrolls into view. */ function Reveal({ children, from = "up", delay = 0, duration = 700, distance = 24, once = true, as = "div", className, style, }: { children?: ReactNode; from?: YkRevealFrom; delay?: number; duration?: number; distance?: number; once?: boolean; as?: ElementType; className?: string; style?: CSSProperties; }) { const Tag = as; const ref = useRef<HTMLElement>(null); const state = useYkReveal(ref, once); const hidden = state === "hidden"; const offset = { up: `translate3d(0, ${distance}px, 0)`, down: `translate3d(0, ${-distance}px, 0)`, left: `translate3d(${-distance}px, 0, 0)`, right: `translate3d(${distance}px, 0, 0)`, scale: "scale(0.94)", blur: `translate3d(0, ${distance / 2}px, 0)`, none: "none", }[from]; const t = `${duration}ms ${YK_EASE} ${delay}ms`; return ( <Tag ref={ref} className={className} style={{ ...style, ...(hidden && { opacity: 0, transform: offset, filter: from === "blur" ? "blur(12px)" : undefined }), ...(state === "shown" && { transition: `opacity ${t}, transform ${t}, filter ${t}` }), }} > {children} </Tag> ); } /** Reveals each direct child one after another when the group scrolls into view. */ function Stagger({ children, step = 90, from = "up", distance = 20, duration = 650, delay = 0, once = true, as = "div", className, style, }: { children?: ReactNode; step?: number; from?: "up" | "down" | "left" | "right" | "scale" | "fade"; distance?: number; duration?: number; delay?: number; once?: boolean; as?: ElementType; className?: string; style?: CSSProperties; }) { const Tag = as; const ref = useRef<HTMLElement>(null); const state = useYkReveal(ref, once); useYkLayoutEffect(() => { const items = Array.from(ref.current?.children ?? []) as HTMLElement[]; if (state === "idle") return; const offset = { up: `translate3d(0, ${distance}px, 0)`, down: `translate3d(0, ${-distance}px, 0)`, left: `translate3d(${-distance}px, 0, 0)`, right: `translate3d(${distance}px, 0, 0)`, scale: "scale(0.92)", fade: "none", }[from]; if (state === "hidden") { for (const el of items) Object.assign(el.style, { transition: "none", opacity: "0", transform: offset }); return; } items.forEach((el, i) => { const t = `${duration}ms ${YK_EASE} ${delay + i * step}ms`; Object.assign(el.style, { transition: `opacity ${t}, transform ${t}`, opacity: "", transform: "" }); }); // hand the children their own transitions back once everything has landed const done = setTimeout(() => items.forEach((el) => (el.style.transition = "")), delay + items.length * step + duration + 50); return () => clearTimeout(done); }, [state]); return ( <Tag ref={ref} className={className} style={style}> {children} </Tag> ); }
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.