Page sections / Logo clouds

Monochrome Logo Rows

Tracked uppercase eyebrow above a single row of seven black enterprise wordmarks at ~39px tall on the aurora background; the customers page uses a 6-column grid of black logos separated by faint vertical hairlines with top/bottom canvas fades.

Rebuilt from vercel.com/solutions/turborepo in the Monochrome Precision style.

npx shadcn@latest add https://justyoink.it/r/monochrome-precision/blocks/mono-logo-cloud.json

Looks exactly like vercel.com: brings its fonts and colours, namespaced so your own theme stays untouched.

Usage

Props: eyebrow (string), logos and moreLogos (arrays of {name, mark}). The 'Show More' pill toggles the extra row of logos; the eyebrow and row fade up on scroll.

components/mono-logo-cloud.tsx
"use client";

import { useEffect, useLayoutEffect, useRef, type CSSProperties, type ElementType, type ReactNode, type RefObject } from "react";
import { useState } from "react";

type Logo = { name: string; mark: "circle" | "square" | "triangle" | "bars" | "ring" | "diamond" | "hex" };

const defaultLogos: Logo[] = [
  { name: "Northwind", mark: "square" },
  { name: "ALTURA", mark: "triangle" },
  { name: "Lumen", mark: "circle" },
  { name: "Kitefield", mark: "diamond" },
  { name: "Harborline", mark: "bars" },
  { name: "Cobalt Group", mark: "ring" },
  { name: "Verdant", mark: "hex" },
];

const extraLogos: Logo[] = [
  { name: "Pinecrest", mark: "triangle" },
  { name: "Orbital", mark: "ring" },
  { name: "Quarry", mark: "square" },
  { name: "Meridian", mark: "hex" },
  { name: "Fathom", mark: "bars" },
];

function Mark({ type }: { type: Logo["mark"] }) {
  const c = "currentColor";
  return (
    <svg width="34" height="34" viewBox="0 0 34 34" aria-hidden="true" fill={c}>
      {type === "circle" && <circle cx="17" cy="17" r="15" />}
      {type === "square" && (<><rect x="2" y="2" width="14" height="14" /><rect x="18" y="2" width="14" height="14" /><rect x="2" y="18" width="14" height="14" /><rect x="18" y="18" width="14" height="14" /></>)}
      {type === "triangle" && <path d="M17 2 32 31H2z" />}
      {type === "bars" && (<><rect x="3" y="6" width="6" height="24" /><rect x="14" y="2" width="6" height="28" /><rect x="25" y="12" width="6" height="18" /></>)}
      {type === "ring" && <path fillRule="evenodd" d="M17 2a15 15 0 100 30 15 15 0 000-30zm0 8a7 7 0 110 14 7 7 0 010-14z" />}
      {type === "diamond" && <path d="M17 1 33 17 17 33 1 17z" />}
      {type === "hex" && <path d="M17 2 30 9.5v15L17 32 4 24.5v-15z" />}
    </svg>
  );
}

function LogoItem({ logo }: { logo: Logo }) {
  return (
    <div className="flex h-[39px] items-center gap-2 text-ink">
      <Mark type={logo.mark} />
      <span className="font-sans text-[22px] font-bold leading-none tracking-[-0.03em]">{logo.name}</span>
    </div>
  );
}

export default function MonochromeLogoRows({
  eyebrow = "Trusted by engineering teams across every industry",
  logos = defaultLogos,
  moreLogos = extraLogos,
}: {
  eyebrow?: string;
  logos?: Logo[];
  moreLogos?: Logo[];
}) {
  const [open, setOpen] = useState(false);
  return (
    <section className="relative isolate overflow-hidden bg-canvas py-24">
      <div className="pointer-events-none absolute inset-0 -z-10 bg-aurora-split opacity-70" />
      <div className="pointer-events-none absolute inset-x-0 bottom-0 -z-10 h-32 bg-gradient-to-b from-transparent to-canvas" />
      <div className="mx-auto max-w-[1280px] px-6">
        <Reveal from="up" duration={500} distance={24}>
          <p className="text-center font-sans text-[11px] font-semibold uppercase tracking-[0.18em] text-secondary">{eyebrow}</p>
        </Reveal>
        <Stagger step={70} from="up" className="mt-12 flex flex-wrap items-center justify-center gap-x-12 gap-y-8">
          {logos.map((l) => (<LogoItem key={l.name} logo={l} />))}
        </Stagger>
        {open && (
          <Stagger step={60} from="up" className="mt-8 flex flex-wrap items-center justify-center gap-x-12 gap-y-8">
            {moreLogos.map((l) => (<LogoItem key={l.name} logo={l} />))}
          </Stagger>
        )}
        <div className="mt-12 flex justify-center">
          <button
            type="button"
            aria-expanded={open}
            onClick={() => setOpen((v) => !v)}
            className="rounded-pill bg-surface px-4 py-2 text-ui text-ink shadow-ring transition-colors duration-hover-fill ease-hover-fill hover:bg-surface-muted focus-visible:outline focus-visible:outline-2 focus-visible:outline-link-blue"
          >
            {open ? "Show Less" : "Show More"}
          </button>
        </div>
      </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
—

More from Monochrome Precision

The whole style →

Ink and Ghost Button Pair

Buttons

Dashed Orbit Integration Ring

Animated graphics

Customer Story Index List

Lists

Centered Quote with Meta Row

Testimonials

Hairline Navigation Bar

Headers & nav bars

Floating Triangle Hero with Logo Strip

Heroes