Mono Eyebrow Centered Hero
Centered page hero used on solution pages: emerald uppercase monospace eyebrow, Manrope headline, soft grey paragraph and a button pair, followed by a row of small greyscale partner logos.
Rebuilt from supabase.com/solutions/ai-builders in the Emerald Paper Precision style.
npx shadcn@latest add https://justyoink.it/r/emerald-paper-precision/blocks/centered-eyebrow-hero.json
Looks exactly like supabase.com: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/emerald-paper-precision/mine/centered-eyebrow-hero.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: eyebrow, title, description, primaryLabel/Href, secondaryLabel/Href, logos (name + shape) and interval (ms) for the logo blur-rise cycle. Renders standalone with defaults.
components/centered-eyebrow-hero.tsx
import { useEffect, useState } from "react"; type Logo = { name: string; shape: "circle" | "square" | "diamond" }; type Props = { eyebrow?: string; title?: string; description?: string; primaryLabel?: string; primaryHref?: string; secondaryLabel?: string; secondaryHref?: string; logos?: Logo[]; interval?: number; }; const defaultLogos: Logo[] = [ { name: "Northwind", shape: "circle" }, { name: "Altura", shape: "square" }, { name: "Kitefield", shape: "diamond" }, ]; function Mark({ shape }: { shape: Logo["shape"] }) { const c = "h-5 w-5 bg-ink-faint"; if (shape === "circle") return <span className={c + " rounded-pill"} aria-hidden />; if (shape === "square") return <span className={c + " rounded-xs"} aria-hidden />; return <span className={c + " rotate-45 scale-75 rounded-xs"} aria-hidden />; } export default function MonoEyebrowCenteredHero({ eyebrow = "DATA TEAMS", title = "Northgate for Analytics Teams", description = "Northgate is the managed database workspace that powers a new wave of reporting tools. Give your customers a reliable, scalable foundation so they can concentrate on insight instead of upkeep.", primaryLabel = "Start a workspace", primaryHref = "#", secondaryLabel = "Explore the docs", secondaryHref = "#", logos = defaultLogos, interval = 3200, }: Props) { const [shown, setShown] = useState(true); useEffect(() => { const t = setInterval(() => setShown((s) => !s), interval); return () => clearInterval(t); }, [interval]); return ( <section className="bg-canvas border-t border-hairline px-6 py-24 text-center"> <div className="mx-auto flex max-w-[680px] flex-col items-center"> <p className="font-mono text-eyebrow-mono uppercase text-brand">{eyebrow}</p> <h1 className="mt-4 font-display text-h1 tracking-[-0.02em] text-ink">{title}</h1> <p className="mt-4 text-lead text-ink-soft">{description}</p> <div className="mt-8 flex flex-wrap justify-center gap-2"> <a href={primaryHref} className="relative rounded-md bg-brand px-4 py-2 text-label text-surface transition-colors duration-hover-color ease-hover-color hover:bg-brand-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand" > {primaryLabel} </a> <a href={secondaryHref} className="rounded-md border border-hairline bg-surface px-4 py-2 text-label text-ink transition-colors duration-hover-color ease-hover-color hover:border-hairline-strong focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand" > {secondaryLabel} </a> </div> </div> <ul className="mx-auto mt-24 flex flex-wrap items-center justify-center gap-10"> {logos.map((l, i) => ( <li key={l.name}> <a href="#" aria-label={l.name} style={{ transitionDelay: `${i * 180}ms` }} className={ "flex h-8 items-center gap-2 text-ink-faint transition-all duration-500 ease-linear motion-reduce:transition-none " + (shown ? "translate-y-0 opacity-100 blur-0" : "-translate-y-8 opacity-0 blur-[4px]") } > <Mark shape={l.shape} /> <span className="font-display text-lead tracking-[-0.02em]">{l.name}</span> </a> </li> ))} </ul> </section> ); }import { useEffect, useState } from "react"; type Logo = { name: string; shape: "circle" | "square" | "diamond" }; type Props = { eyebrow?: string; title?: string; description?: string; primaryLabel?: string; primaryHref?: string; secondaryLabel?: string; secondaryHref?: string; logos?: Logo[]; interval?: number; }; const defaultLogos: Logo[] = [ { name: "Northwind", shape: "circle" }, { name: "Altura", shape: "square" }, { name: "Kitefield", shape: "diamond" }, ]; function Mark({ shape }: { shape: Logo["shape"] }) { const c = "h-5 w-5 bg-foreground"; if (shape === "circle") return <span className={c + " rounded-full"} aria-hidden />; if (shape === "square") return <span className={c + " rounded-md"} aria-hidden />; return <span className={c + " rotate-45 scale-75 rounded-md"} aria-hidden />; } export default function MonoEyebrowCenteredHero({ eyebrow = "DATA TEAMS", title = "Northgate for Analytics Teams", description = "Northgate is the managed database workspace that powers a new wave of reporting tools. Give your customers a reliable, scalable foundation so they can concentrate on insight instead of upkeep.", primaryLabel = "Start a workspace", primaryHref = "#", secondaryLabel = "Explore the docs", secondaryHref = "#", logos = defaultLogos, interval = 3200, }: Props) { const [shown, setShown] = useState(true); useEffect(() => { const t = setInterval(() => setShown((s) => !s), interval); return () => clearInterval(t); }, [interval]); return ( <section className="bg-background border-t border-border px-6 py-24 text-center"> <div className="mx-auto flex max-w-[680px] flex-col items-center"> <p className="font-mono text-emerald-eyebrow-mono uppercase text-primary">{eyebrow}</p> <h1 className="mt-4 font-sans text-emerald-h1 tracking-[-0.02em] text-foreground">{title}</h1> <p className="mt-4 text-emerald-lead text-muted-foreground">{description}</p> <div className="mt-8 flex flex-wrap justify-center gap-2"> <a href={primaryHref} className="relative rounded-md bg-primary px-4 py-2 text-emerald-label text-card transition-colors duration-emerald-hover-color ease-emerald-hover-color hover:bg-primary/90 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary" > {primaryLabel} </a> <a href={secondaryHref} className="rounded-md border border-border bg-card px-4 py-2 text-emerald-label text-foreground transition-colors duration-emerald-hover-color ease-emerald-hover-color hover:border-border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary" > {secondaryLabel} </a> </div> </div> <ul className="mx-auto mt-24 flex flex-wrap items-center justify-center gap-10"> {logos.map((l, i) => ( <li key={l.name}> <a href="#" aria-label={l.name} style={{ transitionDelay: `${i * 180}ms` }} className={ "flex h-8 items-center gap-2 text-muted-foreground transition-all duration-500 ease-linear motion-reduce:transition-none " + (shown ? "translate-y-0 opacity-100 blur-0" : "-translate-y-8 opacity-0 blur-[4px]") } > <Mark shape={l.shape} /> <span className="font-sans text-emerald-lead tracking-[-0.02em]">{l.name}</span> </a> </li> ))} </ul> </section> ); }
Quality checks
Automated, in a real browser · 4d ago- Accessible: not passedElements must meet minimum color contrast ratio thresholds (3 elements)
- 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: doesn't applyDoesn't animate, so there's nothing to check.