Page sections / Logo clouds

Monochrome Client Logo Row

Six black logos evenly distributed on one line with very generous vertical padding (~200px) and a closing hairline rule.

Rebuilt from thisislandscape.com in the Gallery White Editorial style.

npx shadcn@latest add https://justyoink.it/r/gallery-white-editorial/blocks/monochrome-logo-row.json

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

Usage

Pass `logos` (array of {name}) to change the six generic wordmarks and `label` for the screen-reader heading. Renders standalone with defaults; fades in on scroll via Reveal.

components/monochrome-logo-row.tsx
"use client";

import { useEffect, useLayoutEffect, useRef, useState, type CSSProperties, type ElementType, type ReactNode, type RefObject } from "react";
type Logo = { name: string };

type Props = {
  logos?: Logo[];
  label?: string;
};

function Mark({ index, name }: { index: number; name: string }) {
  const common = "h-10 w-auto text-ink";
  switch (index % 6) {
    case 0:
      return (
        <span className="font-sans text-[34px] font-black leading-none tracking-[-0.06em] text-ink">{name}</span>
      );
    case 1:
      return (
        <span className="block text-center font-sans text-[19px] font-extrabold uppercase leading-[0.95] tracking-[0.02em] text-ink">
          {name.split(" ").map((w) => (
            <span key={w} className="block">{w}</span>
          ))}
        </span>
      );
    case 2:
      return (
        <span className="flex items-center gap-1.5 font-sans text-[32px] font-normal leading-none tracking-[-0.04em] text-ink">
          {name}
          <svg viewBox="0 0 24 24" className="h-6 w-6" aria-hidden="true"><circle cx="12" cy="12" r="11" fill="currentColor" /></svg>
        </span>
      );
    case 3:
      return (
        <span className="font-sans text-[34px] font-medium leading-none tracking-[-0.05em] text-ink">{name}</span>
      );
    case 4:
      return (
        <svg viewBox="0 0 40 40" className={common} fill="none" stroke="currentColor" strokeWidth="1.6" aria-label={name} role="img">
          <circle cx="20" cy="20" r="18" />
          <path d="M20 4v16M20 20L6 28M20 20l14 8" />
        </svg>
      );
    default:
      return (
        <span className="font-sans text-[30px] font-black italic uppercase leading-none tracking-[-0.04em] text-ink">{name}</span>
      );
  }
}

export default function MonochromeClientLogoRow({
  logos = [
    { name: "Northwind" },
    { name: "Altura Labs" },
    { name: "Kitefield" },
    { name: "Lumen" },
    { name: "Orbit Star" },
    { name: "Veyra" },
  ],
  label = "Trusted by teams worldwide",
}: Props) {
  return (
    <section aria-label={label} className="bg-canvas">
      <Reveal from="none" duration={800}>
        <div className="mx-auto max-w-[1440px] px-6 py-24 md:px-10 md:py-[200px]">
          <h2 className="sr-only">{label}</h2>
          <ul className="grid grid-cols-2 items-center justify-items-center gap-x-6 gap-y-12 sm:grid-cols-3 lg:grid-cols-6">
            {logos.map((l, i) => (
              <li key={l.name + i} className="flex h-12 items-center justify-center">
                <Mark index={i} name={l.name} />
              </li>
            ))}
          </ul>
        </div>
        <hr className="border-0 border-t border-hairline" />
      </Reveal>
    </section>
  );
}

// ---- Yoink motion (inlined, no dependencies): Reveal ----

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>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Gallery White Editorial

The whole style →

Hairline Pill Nav Header

Headers & nav bars

Giant Type CTA with Arrow Glyph

Calls to action

Pill Footer Link Row

Footers

Hanging-Quote Testimonial Carousel

Testimonials

Twin-Panel Project Slideshow Hero

Heroes

Oversized Statement Paragraph with Underlined Keywords

Other