Page sections / Testimonials

Bold Colour Testimonial Cards

Two large 24px-quoted cards side by side: one soft blue-lavender gradient with a giant translucent logo watermark, one flat acid-lime. Each has a hanging quote, a vertical divider, a logo and a name/role footer in dark text.

Rebuilt from linear.app in the Obsidian Precision style.

npx shadcn@latest add https://yoink-app.fly.dev/r/obsidian-precision-5cbef2/blocks/pastel-quote-cards.json

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

Usage

Pass `cards` (tuple of two {quote, name, role}), `footnote` and `linkLabel` to override the defaults. Renders standalone with no props.

components/pastel-quote-cards.tsx
"use client";

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

type Props = {
  cards?: [Card, Card];
  footnote?: string;
  linkLabel?: string;
};

const defaults: [Card, Card] = [
  { quote: "Moving to Kitefield made our releases calmer, and honestly the whole team ships with more pride now.", name: "Maren Ostby", role: "Principal Designer, Northwind" },
  { quote: "We plan quickly and Kitefield keeps every handoff clean and light.", name: "Dario Valenti", role: "VP of Product, Altura" },
];

function Mark({ variant }: { variant: number }) {
  return variant === 0 ? (
    <svg width="36" height="36" viewBox="0 0 36 36" fill="none" stroke="#0b0b0c" strokeWidth="2" aria-hidden="true">
      <circle cx="18" cy="18" r="14" />
      <path d="M18 4v28M4 18h28" />
    </svg>
  ) : (
    <svg width="36" height="36" viewBox="0 0 36 36" fill="#0b0b0c" aria-hidden="true">
      <path d="M4 30C16 30 26 22 30 6c2 12-4 24-26 24z" />
    </svg>
  );
}

export default function BoldColourTestimonialCards({ cards = defaults, footnote = "Kitefield is trusted by thousands of crews, from tiny studios to global firms.", linkLabel = "Read more stories" }: Props) {
  return (
    <section className="bg-canvas px-4 py-4 font-sans md:px-[60px]">
      <div className="mx-auto grid max-w-[1320px] gap-2 md:grid-cols-[22fr_11fr]">
        {cards.map((c, i) => (
          <Reveal key={i} from="up" delay={i * 100}>
            <figure
              className={`relative flex min-h-[420px] flex-col justify-between overflow-hidden rounded-lg p-5 text-[#0b0b0c] transition-transform duration-300 hover:-translate-y-0.5 md:h-[480px] ${i === 0 ? "bg-[linear-gradient(180deg,#d2e5ff,#efe6ff)]" : "bg-highlight-lime"}`}
            >
              {i === 0 && (
                <svg className="pointer-events-none absolute -right-10 -top-10 h-[560px] w-[560px] text-white opacity-40" viewBox="0 0 100 100" fill="none" stroke="currentColor" strokeWidth="9" aria-hidden="true">
                  <circle cx="45" cy="50" r="36" />
                  <path d="M45 14l36 20v40L45 94" />
                </svg>
              )}
              <blockquote className="relative max-w-[540px] -indent-[0.45em] pl-3 text-[24px] leading-[36px] tracking-[-0.02em]">
                “{c.quote}”
              </blockquote>
              <figcaption className="relative flex items-center gap-4 pl-2">
                <Mark variant={i} />
                <span className="h-11 w-px bg-black/15" />
                <span className="flex flex-col">
                  <span className="text-ui font-medium">{c.name}</span>
                  <span className="text-ui text-black/60">{c.role}</span>
                </span>
              </figcaption>
            </figure>
          </Reveal>
        ))}
      </div>
      <div className="mx-auto mt-10 flex max-w-[1320px] flex-col gap-3 px-5 text-ui text-tertiary md:flex-row md:items-center md:justify-between">
        <p>{footnote}</p>
        <a href="#" className="transition-colors duration-link-color hover:text-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent-indigo">
          {linkLabel} →
        </a>
      </div>
    </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 Obsidian Precision

The whole style →

Mono Uppercase Feature Tab List with Document Preview

Tab bars

Nested Initiatives Table

Tables

Quarterly Roadmap Board

Cards

Blur-In Word Hero with Floating App Window

Heroes

Frosted Hairline Header

Headers & nav bars

Split Headline and Lead Section Intro

Feature sections