Monochrome Logo Cloud
Two rows of six white monochrome customer logos under a centered gray tagline, inside a large rounded container with top glow, ending in a gray 'Explore' arrow link.
Rebuilt from resend.com in the Obsidian Serif Glow style.
npx shadcn@latest add https://justyoink.it/r/obsidian-serif-glow/blocks/logo-cloud-grid.json
Looks exactly like resend.com: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/obsidian-serif-glow/mine/logo-cloud-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
Props: tagline, logos (array of {name, mark, style}), linkLabel, href. Renders with no props; logos are generic fictional marks drawn in SVG.
components/logo-cloud-grid.tsx
"use client"; import { useEffect, useLayoutEffect, useRef, useState, type CSSProperties, type ElementType, type ReactNode, type RefObject } from "react"; type Logo = { name: string; mark: "circle" | "square" | "bolt" | "diamond" | "bars" | "half"; style?: string }; type Props = { tagline?: string; logos?: Logo[]; linkLabel?: string; href?: string; }; const defaultLogos: Logo[] = [ { name: "Northwind", mark: "circle", style: "font-bold tracking-tight" }, { name: "altura", mark: "half", style: "font-extrabold lowercase" }, { name: "Lumen", mark: "diamond", style: "font-medium" }, { name: "KITEFIELD", mark: "bars", style: "font-mono text-sm tracking-widest" }, { name: "harbor", mark: "square", style: "font-mono font-semibold" }, { name: "Orbital", mark: "circle", style: "font-semibold" }, { name: "Cobalt", mark: "half", style: "font-bold" }, { name: "FERNWAY", mark: "diamond", style: "font-black tracking-tight" }, { name: "quartz", mark: "bolt", style: "font-semibold lowercase" }, { name: "Meridian", mark: "square", style: "font-medium" }, { name: "Tidewater", mark: "bolt", style: "font-normal" }, { name: "Basalt", mark: "bars", style: "font-semibold" }, ]; function Mark({ type }: { type: Logo["mark"] }) { const c = "h-6 w-6 shrink-0 fill-current"; switch (type) { case "circle": return <svg viewBox="0 0 24 24" className={c} aria-hidden><circle cx="12" cy="12" r="10" /><circle cx="12" cy="12" r="4" className="fill-background" /></svg>; case "square": return <svg viewBox="0 0 24 24" className={c} aria-hidden><rect x="2" y="2" width="14" height="14" rx="2" /><rect x="9" y="9" width="13" height="13" rx="2" opacity=".6" /></svg>; case "bolt": return <svg viewBox="0 0 24 24" className={c} aria-hidden><path d="M13 2 4 14h6l-1 8 9-12h-6z" /></svg>; case "diamond": return <svg viewBox="0 0 24 24" className={c} aria-hidden><path d="M12 2 22 12 12 22 2 12z" /></svg>; case "bars": return <svg viewBox="0 0 24 24" className={c} aria-hidden><rect x="2" y="3" width="5" height="18" /><rect x="9.5" y="8" width="5" height="13" /><rect x="17" y="3" width="5" height="18" /></svg>; default: return <svg viewBox="0 0 24 24" className={c} aria-hidden><path d="M12 2a10 10 0 1 0 0 20z" /></svg>; } } export default function MonochromeLogoCloud({ tagline = "Teams of every size rely on Northline to ship their most critical messages.", logos = defaultLogos, linkLabel = "Explore Plans", href = "#", }: Props) { return ( <section className="bg-background px-4 py-10 sm:px-8"> <div className="relative mx-auto max-w-[1280px] overflow-hidden rounded-xl border border-hairline-soft bg-background px-6 pb-20 pt-24 sm:px-12"> <div className="pointer-events-none absolute inset-x-0 top-0 h-28 bg-top-glow" aria-hidden /> <div className="pointer-events-none absolute left-1/2 top-0 h-24 w-[400px] -translate-x-1/2 bg-[radial-gradient(50%_100%_at_50%_0%,rgba(255,255,255,0.10),transparent)]" aria-hidden /> <p className="relative mx-auto max-w-[320px] text-center text-lead text-secondary">{tagline}</p> <Stagger step={80} from="up" className="relative mx-auto mt-14 grid max-w-[1040px] grid-cols-2 gap-x-6 gap-y-10 sm:grid-cols-3 lg:grid-cols-6"> {logos.map((l, i) => ( <div key={i} className="flex h-12 items-center justify-center gap-2 text-primary"> <Mark type={l.mark} /> <span className={`text-xl ${l.style ?? ""}`}>{l.name}</span> </div> ))} </Stagger> <div className="relative mt-14 flex justify-center"> <a href={href} className="group inline-flex items-center gap-2 rounded-md text-ui font-medium text-secondary transition-colors duration-hover-color ease-hover-color hover:text-[#f0f0f0] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-accent-blue"> {linkLabel} <svg viewBox="0 0 16 16" className="h-3.5 w-3.5 transition-transform duration-200 group-hover:translate-x-1" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden><path d="m6 3 5 5-5 5" /></svg> </a> </div> </div> </section> ); } // ---- Yoink motion (inlined, no dependencies): 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; } /** 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; mark: "circle" | "square" | "bolt" | "diamond" | "bars" | "half"; style?: string }; type Props = { tagline?: string; logos?: Logo[]; linkLabel?: string; href?: string; }; const defaultLogos: Logo[] = [ { name: "Northwind", mark: "circle", style: "font-bold tracking-tight" }, { name: "altura", mark: "half", style: "font-extrabold lowercase" }, { name: "Lumen", mark: "diamond", style: "font-medium" }, { name: "KITEFIELD", mark: "bars", style: "font-mono text-sm tracking-widest" }, { name: "harbor", mark: "square", style: "font-mono font-semibold" }, { name: "Orbital", mark: "circle", style: "font-semibold" }, { name: "Cobalt", mark: "half", style: "font-bold" }, { name: "FERNWAY", mark: "diamond", style: "font-black tracking-tight" }, { name: "quartz", mark: "bolt", style: "font-semibold lowercase" }, { name: "Meridian", mark: "square", style: "font-medium" }, { name: "Tidewater", mark: "bolt", style: "font-normal" }, { name: "Basalt", mark: "bars", style: "font-semibold" }, ]; function Mark({ type }: { type: Logo["mark"] }) { const c = "h-6 w-6 shrink-0 fill-current"; switch (type) { case "circle": return <svg viewBox="0 0 24 24" className={c} aria-hidden><circle cx="12" cy="12" r="10" /><circle cx="12" cy="12" r="4" className="fill-background" /></svg>; case "square": return <svg viewBox="0 0 24 24" className={c} aria-hidden><rect x="2" y="2" width="14" height="14" rx="2" /><rect x="9" y="9" width="13" height="13" rx="2" opacity=".6" /></svg>; case "bolt": return <svg viewBox="0 0 24 24" className={c} aria-hidden><path d="M13 2 4 14h6l-1 8 9-12h-6z" /></svg>; case "diamond": return <svg viewBox="0 0 24 24" className={c} aria-hidden><path d="M12 2 22 12 12 22 2 12z" /></svg>; case "bars": return <svg viewBox="0 0 24 24" className={c} aria-hidden><rect x="2" y="3" width="5" height="18" /><rect x="9.5" y="8" width="5" height="13" /><rect x="17" y="3" width="5" height="18" /></svg>; default: return <svg viewBox="0 0 24 24" className={c} aria-hidden><path d="M12 2a10 10 0 1 0 0 20z" /></svg>; } } export default function MonochromeLogoCloud({ tagline = "Teams of every size rely on Northline to ship their most critical messages.", logos = defaultLogos, linkLabel = "Explore Plans", href = "#", }: Props) { return ( <section className="bg-background px-4 py-10 sm:px-8"> <div className="relative mx-auto max-w-[1280px] overflow-hidden rounded-2xl border border-obsidian-hairline-soft bg-background px-6 pb-20 pt-24 sm:px-12"> <div className="pointer-events-none absolute inset-x-0 top-0 h-28 " aria-hidden /> <div className="pointer-events-none absolute left-1/2 top-0 h-24 w-[400px] -translate-x-1/2 bg-[radial-gradient(50%_100%_at_50%_0%,rgba(255,255,255,0.10),transparent)]" aria-hidden /> <p className="relative mx-auto max-w-[320px] text-center text-obsidian-lead text-muted-foreground">{tagline}</p> <Stagger step={80} from="up" className="relative mx-auto mt-14 grid max-w-[1040px] grid-cols-2 gap-x-6 gap-y-10 sm:grid-cols-3 lg:grid-cols-6"> {logos.map((l, i) => ( <div key={i} className="flex h-12 items-center justify-center gap-2 text-foreground"> <Mark type={l.mark} /> <span className={`text-xl ${l.style ?? ""}`}>{l.name}</span> </div> ))} </Stagger> <div className="relative mt-14 flex justify-center"> <a href={href} className="group inline-flex items-center gap-2 rounded-lg text-obsidian-ui font-medium text-muted-foreground transition-colors duration-obsidian-hover-color ease-obsidian-hover-color hover:text-foreground focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-primary"> {linkLabel} <svg viewBox="0 0 16 16" className="h-3.5 w-3.5 transition-transform duration-200 group-hover:translate-x-1" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden><path d="m6 3 5 5-5 5" /></svg> </a> </div> </div> </section> ); } // ---- Yoink motion (inlined, no dependencies): 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; } /** 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 · 5d 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.