ORO · Full page
A full page from the ORO blocks: research (leaderboard + chart), launch (centered + tabs) or numbers (counter-first).
Blocks testedon real pages.
We build and score layouts in live projects, so the ones that reach the library have already earned their place.
2,814
Blocks run
640
Reviewers
0
Regressions
Block bench · round 13
Evaluating now
- Round 12 · Bento gridScored · 9.4
- #1 Roma steps91.0% · kept
- #2 Context hero94.8% · kept
- #3 Folio landing96.1% · kept
- #4 Grid footer93.2% · kept
Every block earns its spot.
Each candidate goes through the same brief, the same budget and the same scorer. Only the winner ships.
Brief
Pricing page, three plans, under one screen.
- · Budget: one block
- · Must work on phones
- · Dark mode included
Result
Grid steps · pricing
Kept on 9 of 10 test pages.
The kept block beat two others on the same brief and the same budget.
Every round leaves a record.
Scores, briefs and the losing candidates are all published, so you can see why a block made the cut.
128,604
Scored comparisons.
See how your pages score.
Tell us what you are building. We will send back the blocks that won on briefs like yours.
Request a sampleTrusted by
Usage
Drop the file into your project, along with the shared files listed below, and import it.
import { OroLanding } from "@/registry/blocks/oro-landing";
export function Example() {
return <OroLanding />;
}Install prerequisites
Every component here relies only on Tailwind and the cn helper from shadcn/ui.
npm i clsx tailwind-mergeAlso copy these files
ORO · Full page imports these files. Keep the same paths, or update the imports to match.
'use client'
import { OroButton, OroHeading, OroMark, OroRoot } from '@/registry/blocks/oro-kit'
import { cn } from '@/lib/utils'
export interface OroFooterProps {
/** cta: dark green call-to-action card, a "backed by" row and a slim bar. simple: the slim bar only. columns: link columns on sand. */
variant?: 'cta' | 'simple' | 'columns'
brand?: string
ctaTitle?: string
ctaBody?: string
ctaLabel?: string
/** Comma separated names for the "backed by" row (cta). Empty hides it. */
backers?: string
className?: string
}
const YEAR = new Date().getFullYear()
function Bar({ brand }: { brand: string }) {
return (
<div className="mx-auto flex max-w-6xl flex-col items-center gap-4 px-6 py-6 text-[13px] text-(--oro-soft) sm:flex-row sm:justify-between md:px-8">
<a href="#" aria-label={brand} className="text-(--oro-ink)">
<OroMark className="h-4 w-10" />
</a>
<div className="flex gap-5">
{['Journal', 'Privacy', 'Terms', 'GitHub'].map((l) => (
<a key={l} href="#" className="transition-colors hover:text-(--oro-ink)">
{l}
</a>
))}
</div>
<span className="text-[12px]">
© {YEAR} {brand}
</span>
</div>
)
}
/** ORO footer in three variants. */
export function OroFooter({
variant = 'cta',
brand = 'shinui',
ctaTitle = 'See how your pages score.',
ctaBody = 'Tell us what you are building. We will send back the blocks that won on briefs like yours.',
ctaLabel = 'Request a sample',
backers = 'Northwind, Paperlane, Tidepool, Kiln & Co',
className,
}: OroFooterProps) {
if (variant === 'simple') {
return (
<OroRoot className={cn('border-t border-(--oro-line)', className)}>
<Bar brand={brand} />
</OroRoot>
)
}
if (variant === 'columns') {
return (
<OroRoot className={cn('bg-(--oro-sand)', className)}>
<div className="mx-auto grid max-w-6xl gap-10 px-6 py-16 md:grid-cols-[1.4fr_1fr_1fr_1fr] md:px-8">
<div>
<a href="#" className="flex items-center gap-2 font-display text-[22px] font-semibold tracking-[-0.03em]">
<OroMark />
{brand}
</a>
<p className="mt-4 max-w-xs text-[14px] text-(--oro-soft)">Blocks that won on real pages, free to use.</p>
</div>
{[
['Library', ['Blocks', 'Backgrounds', 'Pixel art']],
['Research', ['Method', 'Rounds', 'Data']],
['Studio', ['Journal', 'Contact', 'License']],
].map(([h, ls]) => (
<div key={h as string}>
<p className="font-display text-[14px] font-bold">{h as string}</p>
<ul className="mt-4 space-y-2.5 text-[14px] text-(--oro-soft)">
{(ls as string[]).map((l) => (
<li key={l}>
<a href="#" className="hover:text-(--oro-ink)">
{l}
</a>
</li>
))}
</ul>
</div>
))}
</div>
<div className="border-t border-(--oro-line)">
<Bar brand={brand} />
</div>
</OroRoot>
)
}
const names = backers
.split(',')
.map((s) => s.trim())
.filter(Boolean)
return (
<OroRoot className={className}>
<div className="mx-auto max-w-6xl px-6 pt-16 md:px-8">
<div className="relative mx-auto max-w-3xl overflow-hidden rounded-3xl bg-(--oro-panel) px-6 py-14 text-center text-(--oro-panel-ink) md:px-16">
<div aria-hidden className="absolute -right-16 -bottom-20 size-56 rounded-full opacity-40 blur-3xl" style={{ background: 'var(--oro-amber)' }} />
<OroHeading className="relative text-[clamp(1.9rem,4vw,2.8rem)] leading-[1.05]">{ctaTitle}</OroHeading>
<p className="relative mx-auto mt-4 max-w-md text-[16px] text-white/75">{ctaBody}</p>
<OroButton variant="light" className="relative mt-8">
{ctaLabel}
</OroButton>
</div>
{names.length > 0 && (
<div className="mx-auto mt-14 flex max-w-3xl flex-col gap-5 border-t border-(--oro-line) pt-8 sm:flex-row sm:items-center sm:justify-between">
<p className="font-mono text-[10.5px] tracking-wider text-(--oro-orange) uppercase">Trusted by</p>
<div className="flex flex-wrap gap-x-8 gap-y-3">
{names.map((n) => (
<span key={n} className="font-display text-[16px] font-bold tracking-[-0.02em] text-(--oro-ink)/60">
{n}
</span>
))}
</div>
</div>
)}
</div>
<div className="mt-14 border-t border-(--oro-line)">
<Bar brand={brand} />
</div>
</OroRoot>
)
}
'use client'
import { useEffect, useRef, useState, type ComponentProps, type ReactNode } from 'react'
import { cn } from '@/lib/utils'
/**
* ORO Kit: shared pieces behind the shinUI "ORO" blocks.
*
* A warm research-lab look: chalk-white paper and sand panels, deep forest
* green ink, extra-bold tight headlines over light body copy, a big blurred
* sun glow (yellow to orange) drifting behind the hero, dark green data
* panels in mono, numbered tabs, count-up numbers and a hand-drawn-feeling
* line chart. Wrap blocks in <OroRoot> for the palette.
*/
const VARS = [
'[--oro-paper:#fcfcfa] [--oro-sand:#f3f0e2] [--oro-ink:#0a3815] [--oro-soft:rgb(10_56_21/0.72)] [--oro-faint:rgb(10_56_21/0.48)] [--oro-line:rgb(10_56_21/0.12)]',
'[--oro-panel:#0a3815] [--oro-panel-ink:#f3f1e6] [--oro-btn:#0a3815] [--oro-btn-ink:#fcfcfa] [--oro-amber:#f6a21a] [--oro-orange:#f2711c] [--oro-gold:#f1c039] [--oro-sky:#d6ebfb] [--oro-card:#ffffff]',
'dark:[--oro-paper:#0b1a0f] dark:[--oro-sand:#102417] dark:[--oro-ink:#f3f1e6] dark:[--oro-soft:rgb(243_241_230/0.72)] dark:[--oro-faint:rgb(243_241_230/0.46)] dark:[--oro-line:rgb(243_241_230/0.12)]',
'dark:[--oro-panel:#14301c] dark:[--oro-btn:#f6a21a] dark:[--oro-btn-ink:#0a3815] dark:[--oro-sky:#1d3a4f] dark:[--oro-card:#12261a]',
].join(' ')
const KEYFRAMES = `
@keyframes oro-drift{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-4%,3%) scale(1.06)}}
@keyframes oro-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.15);opacity:.85}}
@keyframes oro-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes oro-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes oro-blink{50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){.oro-anim{animation:none!important}}
`
export function OroRoot({ className, children, ...props }: ComponentProps<'div'>) {
return (
<div className={cn(VARS, 'bg-(--oro-paper) font-sans font-light text-(--oro-ink) antialiased', className)} {...props}>
<style>{KEYFRAMES}</style>
{children}
</div>
)
}
/** Extra-bold, tight display type. */
export function OroHeading({ as: Tag = 'h2', className, children }: { as?: 'h1' | 'h2' | 'h3'; className?: string; children: ReactNode }) {
return <Tag className={cn('font-display font-extrabold tracking-[-0.025em] text-balance', className)}>{children}</Tag>
}
/** Big blurred sun: gold core, orange ring, amber haze. */
export function SunGlow({ animate = true, className }: { animate?: boolean; className?: string }) {
return (
<div aria-hidden className={cn('pointer-events-none absolute', className)}>
<div
className={cn('size-full rounded-full blur-3xl', animate && 'oro-anim [animation:oro-drift_14s_ease-in-out_infinite]')}
style={{
background:
'radial-gradient(circle at 45% 50%, var(--oro-gold) 0%, var(--oro-amber) 30%, var(--oro-orange) 48%, color-mix(in oklab, var(--oro-orange) 30%, transparent) 62%, transparent 72%)',
}}
/>
</div>
)
}
export function OroButton({ variant = 'solid', className, children, ...props }: ComponentProps<'a'> & { variant?: 'solid' | 'outline' | 'light' }) {
return (
<a
href="#"
className={cn(
'inline-flex h-11 items-center justify-center rounded-full px-6 font-display text-[15px] font-medium transition-[background-color,color,transform,box-shadow] duration-200 hover:-translate-y-px active:translate-y-0',
variant === 'solid' && 'bg-(--oro-btn) text-(--oro-btn-ink) hover:shadow-[0_8px_20px_-8px_var(--oro-btn)]',
variant === 'outline' && 'border border-(--oro-ink) text-(--oro-ink) hover:bg-(--oro-ink)/5',
variant === 'light' && 'bg-(--oro-panel-ink) text-[#0a3815] hover:bg-white',
className,
)}
{...props}
>
{children}
</a>
)
}
/** Original mark: three dots growing into a pill. */
export function OroMark({ className }: { className?: string }) {
return (
<svg viewBox="0 0 34 14" className={cn('h-3.5 w-[34px]', className)} fill="currentColor" aria-hidden>
<circle cx="3" cy="7" r="3" />
<circle cx="11" cy="7" r="4.5" />
<rect x="17" y="1" width="17" height="12" rx="6" />
</svg>
)
}
/** Counts up to `value` when scrolled into view. Shows the final number for reduced motion. */
export function CountUp({ value, className, duration = 1600 }: { value: number; className?: string; duration?: number }) {
const ref = useRef<HTMLSpanElement>(null)
const [shown, setShown] = useState(value)
useEffect(() => {
const el = ref.current
if (!el || window.matchMedia('(prefers-reduced-motion: reduce)').matches) return
let raf = 0
const io = new IntersectionObserver(([e]) => {
if (!e.isIntersecting) return
io.disconnect()
const start = performance.now()
const tick = (now: number) => {
const t = Math.min(1, (now - start) / duration)
setShown(Math.round(value * (1 - Math.pow(1 - t, 3))))
if (t < 1) raf = requestAnimationFrame(tick)
}
raf = requestAnimationFrame(tick)
})
io.observe(el)
return () => {
io.disconnect()
cancelAnimationFrame(raf)
}
}, [value, duration])
return (
<span ref={ref} className={cn('tabular-nums', className)}>
{shown.toLocaleString('en-US')}
</span>
)
}
/** A rising line with a soft gold fill under it. Draws itself in. */
export function GrowthChart({ points, animate = true, className, start = 'Jan', end = 'Now' }: { points: number[]; animate?: boolean; className?: string; start?: string; end?: string }) {
const w = 600
const h = 200
const max = Math.max(...points)
const xy = points.map((p, i) => [(i / (points.length - 1)) * w, h - (p / max) * (h - 12)] as const)
const line = xy.map(([x, y], i) => `${i ? 'L' : 'M'}${x.toFixed(1)} ${y.toFixed(1)}`).join(' ')
return (
<figure className={className}>
<svg viewBox={`0 0 ${w} ${h + 2}`} className="w-full overflow-visible" aria-hidden>
<defs>
<linearGradient id="oro-fill" x1="0" x2="0" y1="0" y2="1">
<stop offset="0" stopColor="var(--oro-gold)" stopOpacity="0.45" />
<stop offset="1" stopColor="var(--oro-gold)" stopOpacity="0" />
</linearGradient>
</defs>
{[0.25, 0.5, 0.75].map((g) => (
<line key={g} x1="0" x2={w} y1={h * g} y2={h * g} stroke="var(--oro-line)" />
))}
<path d={`${line} L${w} ${h} L0 ${h} Z`} fill="url(#oro-fill)" />
<path
d={line}
fill="none"
stroke="var(--oro-ink)"
strokeWidth={2}
pathLength={1}
strokeDasharray={1}
className={cn(animate && 'oro-anim [animation:oro-draw_2.4s_ease-out_both]')}
/>
<circle cx={xy[xy.length - 1][0]} cy={xy[xy.length - 1][1]} r={4} fill="var(--oro-orange)" />
</svg>
<figcaption className="mt-2 flex justify-between font-mono text-[10px] text-(--oro-faint) uppercase">
<span>{start}</span>
<span>{end}</span>
</figcaption>
</figure>
)
}
/** Dark green data panel with a mono header row of stats. */
export function DataPanel({ stats, children, className }: { stats: [string, string][]; children?: ReactNode; className?: string }) {
return (
<div className={cn('overflow-hidden rounded-2xl bg-(--oro-panel) font-mono text-(--oro-panel-ink) shadow-[0_30px_60px_-30px_rgb(10_56_21/0.6)]', className)}>
<div className="grid border-b border-white/10" style={{ gridTemplateColumns: `repeat(${stats.length}, minmax(0,1fr))` }}>
{stats.map(([v, l]) => (
<div key={l} className="px-3 py-3 text-center">
<p className="text-[18px] font-semibold">{v}</p>
<p className="text-[9px] tracking-wider text-white/55 uppercase">{l}</p>
</div>
))}
</div>
{children}
</div>
)
}
'use client'
import { useEffect, useState } from 'react'
import { CountUp, DataPanel, GrowthChart, OroButton, OroHeading, OroRoot, SunGlow } from '@/registry/blocks/oro-kit'
import { cn } from '@/lib/utils'
export interface OroHeroProps {
/** glow: headline left, sun glow and a live leaderboard right. centered: headline over the glow with a tab strip. counter: sand panel with a big count and a growth chart. */
variant?: 'glow' | 'centered' | 'counter'
/** Use a line break (\n) to control where the headline wraps. */
title?: string
description?: string
primaryCta?: string
secondaryCta?: string
/** Big number in the counter variant. */
count?: number
countLabel?: string
animate?: boolean
className?: string
}
const ROWS = [
['Round 12 · Bento grid', 'Scored · 9.4'],
['#1 Folio landing', '96.1% · kept'],
['#2 Context hero', '94.8% · kept'],
['#3 Grid footer', '93.2% · kept'],
['#4 Roma steps', '91.0% · kept'],
]
/** Leaderboard rows that re-rank every few seconds. */
function Leaderboard({ animate }: { animate: boolean }) {
const [tick, setTick] = useState(0)
useEffect(() => {
if (!animate || window.matchMedia('(prefers-reduced-motion: reduce)').matches) return
const id = window.setInterval(() => setTick((t) => t + 1), 2600)
return () => window.clearInterval(id)
}, [animate])
const order = [1, 2, 3, 4].sort((a, b) => Math.sin(a * 3.1 + tick) - Math.sin(b * 3.1 + tick))
return (
<DataPanel stats={[['2,814', 'Blocks run'], ['640', 'Reviewers'], ['0', 'Regressions']]} className="w-full max-w-sm">
<div className="border-b border-white/10 px-4 py-3 text-[11px]">
<p className="text-white/55 uppercase">Block bench · round 13</p>
<p className="mt-1 flex items-center gap-2 text-[#f1c039]">
<span className="oro-anim size-1.5 rounded-full bg-[#f1c039] [animation:oro-blink_1.2s_ease-in-out_infinite]" />
Evaluating now
</p>
</div>
<ul className="px-4 py-2 text-[11.5px]">
<li className="flex justify-between py-1.5 text-white/55 uppercase">
<span>{ROWS[0][0]}</span>
<span>{ROWS[0][1]}</span>
</li>
{order.map((i, rank) => (
<li key={ROWS[i][0]} className="oro-anim flex justify-between border-t border-white/10 py-2 [animation:oro-rise_.4s_ease-out]">
<span className="font-semibold">
#{rank + 1} {ROWS[i][0].slice(3)}
</span>
<span className="text-white/60">{ROWS[i][1]}</span>
</li>
))}
</ul>
<a href="#" className="block border-t border-white/10 px-4 py-3 text-center text-[11.5px] transition-colors hover:bg-white/5">
View the full board →
</a>
</DataPanel>
)
}
const TABS = [
['01', 'Landing', 'Heroes + navs'],
['02', 'Content', 'Features + stats'],
['03', 'Commerce', 'Pricing + checkout'],
['04', 'Footers', 'Coming soon'],
]
function TabStrip() {
const [active, setActive] = useState(0)
return (
<div className="grid grid-cols-2 gap-1 rounded-2xl border border-(--oro-line) bg-(--oro-card)/80 p-1.5 shadow-[0_20px_40px_-30px_rgb(10_56_21/0.5)] backdrop-blur md:grid-cols-4">
{TABS.map(([n, t, s], i) => (
<button
key={n}
type="button"
onClick={() => setActive(i)}
className={cn('cursor-pointer rounded-xl px-4 py-3 text-left transition-colors duration-200', i === active ? 'bg-(--oro-sky)' : 'hover:bg-(--oro-ink)/5')}
>
<span className="block font-mono text-[10px] text-(--oro-faint)">{n}</span>
<span className="mt-1 block font-display text-[15px] font-bold">{t}</span>
<span className="block text-[11.5px] text-(--oro-soft)">{s}</span>
</button>
))}
</div>
)
}
const GROWTH = [2, 3, 3, 4, 6, 7, 9, 12, 14, 18, 22, 25, 31, 36, 40, 47, 55, 61, 66, 74, 80, 88, 94, 100]
/** ORO hero in three layouts. */
export function OroHero({
variant = 'glow',
title = 'Blocks tested\non real pages.',
description = 'We build and score layouts in live projects, so the ones that reach the library have already earned their place.',
primaryCta = 'Request a sample',
secondaryCta = 'Read the method',
count = 4729412,
countLabel = 'Page views served by shinUI blocks.',
animate = true,
className,
}: OroHeroProps) {
const lines = title.split('\n')
const heading = (size: string) => (
<OroHeading as="h1" className={cn(size, 'leading-[0.98]')}>
{lines.map((l, i) => (
<span key={i} className="block">
{l}
</span>
))}
</OroHeading>
)
const actions = (
<div className="flex w-full flex-col gap-3 sm:w-auto sm:flex-row">
{primaryCta && <OroButton>{primaryCta}</OroButton>}
{secondaryCta && <OroButton variant="outline">{secondaryCta}</OroButton>}
</div>
)
if (variant === 'counter') {
return (
<OroRoot className={cn('relative overflow-hidden bg-(--oro-sand)', className)}>
<div className="relative mx-auto max-w-6xl px-6 py-20 md:px-8 md:py-28">
<div className="grid gap-8 md:grid-cols-2 md:items-start">
{heading('text-[clamp(2.4rem,5vw,3.6rem)]')}
<p className="max-w-md text-[18px] leading-relaxed text-(--oro-soft) md:justify-self-end">{description}</p>
</div>
<p className="mt-16 font-display text-[clamp(3.4rem,10vw,7rem)] leading-none font-extrabold tracking-[-0.03em]">
<CountUp value={count} />
</p>
<p className="mt-3 font-display text-[18px] font-bold">{countLabel}</p>
<p className="text-[13px] text-(--oro-faint)">Counted since the first block shipped. Updated weekly.</p>
<GrowthChart points={GROWTH} animate={animate} start="Week 1" end="This week" className="mt-12" />
</div>
</OroRoot>
)
}
if (variant === 'centered') {
return (
<OroRoot className={cn('relative overflow-hidden', className)}>
<SunGlow animate={animate} className="top-[-30%] left-1/2 size-[46rem] -translate-x-1/2 opacity-70" />
<div className="relative mx-auto flex max-w-4xl flex-col items-center px-6 pt-24 pb-16 text-center md:pt-32">
{heading('text-[clamp(2.8rem,8vw,5.5rem)]')}
<p className="mt-6 max-w-lg text-[19px] leading-relaxed text-(--oro-soft)">{description}</p>
<div className="mt-9">{actions}</div>
<div className="mt-16 w-full">
<TabStrip />
</div>
</div>
</OroRoot>
)
}
return (
<OroRoot className={cn('relative overflow-hidden', className)}>
<SunGlow animate={animate} className="top-[-10%] right-[-12%] size-[44rem] opacity-90 max-md:top-[30%] max-md:right-[-50%]" />
<div className="relative mx-auto grid max-w-6xl items-center gap-12 px-6 py-16 md:grid-cols-[1.15fr_1fr] md:px-8 md:py-24">
<div className="flex flex-col items-start gap-7">
{heading('text-[clamp(2.8rem,7vw,5.4rem)]')}
<p className="max-w-md text-[19px] leading-relaxed text-(--oro-soft)">{description}</p>
{actions}
</div>
<div className="flex justify-center md:justify-end">
<Leaderboard animate={animate} />
</div>
</div>
</OroRoot>
)
}
'use client'
import { useState } from 'react'
import { OroButton, OroMark, OroRoot } from '@/registry/blocks/oro-kit'
import { cn } from '@/lib/utils'
export interface OroNavbarProps {
/** simple: logo left, links right. centered: links in the middle with a CTA. glass: a floating frosted pill. */
variant?: 'simple' | 'centered' | 'glass'
brand?: string
/** Comma separated links. End with "▾" for a dropdown chevron. */
links?: string
ctaLabel?: string
className?: string
}
const list = (v: string) =>
v
.split(',')
.map((s) => s.trim())
.filter(Boolean)
function Item({ label }: { label: string }) {
return (
<a href="#" className="flex items-center gap-1 rounded-full px-3 py-1.5 font-display text-[14.5px] font-medium transition-colors duration-200 hover:bg-(--oro-ink)/6">
{label.replace('▾', '').trim()}
{label.endsWith('▾') && (
<svg viewBox="0 0 10 10" className="size-2.5" fill="none" stroke="currentColor" strokeWidth={1.6} aria-hidden>
<path d="M2.5 4l2.5 2.5L7.5 4" />
</svg>
)}
</a>
)
}
function Brand({ brand }: { brand: string }) {
return (
<a href="#" className="flex items-center gap-2 font-display text-[22px] font-semibold tracking-[-0.03em]">
<OroMark />
{brand}
</a>
)
}
/** ORO navigation in three variants with a round menu button on mobile. */
export function OroNavbar({ variant = 'simple', brand = 'shinui', links = 'Journal, Library ▾, Research ▾', ctaLabel = 'Request a demo', className }: OroNavbarProps) {
const [open, setOpen] = useState(false)
const items = list(links)
const burger = (
<button
type="button"
aria-label={open ? 'Close menu' : 'Open menu'}
aria-expanded={open}
onClick={() => setOpen(!open)}
className="grid size-10 cursor-pointer place-items-center rounded-full border border-(--oro-ink)/40 md:hidden"
>
<svg viewBox="0 0 16 16" className="size-4" fill="none" stroke="currentColor" strokeWidth={1.6} aria-hidden>
{open ? <path d="M4 4l8 8M12 4l-8 8" /> : <path d="M3 5h10M3 8h10M3 11h10" />}
</svg>
</button>
)
const sheet = open && (
<div className="oro-anim flex flex-col gap-1 bg-(--oro-paper) px-5 pb-5 [animation:oro-rise_.2s_ease-out] md:hidden">
{items.map((l) => (
<a key={l} href="#" className="border-b border-(--oro-line) py-3 font-display text-[18px] font-semibold">
{l.replace('▾', '').trim()}
</a>
))}
{ctaLabel && <OroButton className="mt-4">{ctaLabel}</OroButton>}
</div>
)
if (variant === 'glass') {
return (
<OroRoot className={cn('bg-transparent px-4 pt-4', className)}>
<nav className="mx-auto max-w-5xl rounded-[28px] border border-(--oro-line) bg-(--oro-paper)/70 shadow-[0_10px_40px_-20px_rgb(10_56_21/0.35)] backdrop-blur-xl">
<div className="flex h-16 items-center justify-between pr-3 pl-6">
<Brand brand={brand} />
<div className="hidden items-center gap-1 md:flex">
{items.map((l) => (
<Item key={l} label={l} />
))}
{ctaLabel && <OroButton className="ml-3 h-10 px-5 text-[14px]">{ctaLabel}</OroButton>}
</div>
{burger}
</div>
{sheet}
</nav>
</OroRoot>
)
}
return (
<OroRoot className={cn('bg-transparent', className)}>
<nav className="relative mx-auto max-w-6xl">
<div className="flex h-20 items-center justify-between gap-6 px-6 md:px-8">
<Brand brand={brand} />
<div className={cn('hidden items-center gap-1 md:flex', variant === 'centered' && 'absolute left-1/2 -translate-x-1/2')}>
{items.map((l) => (
<Item key={l} label={l} />
))}
</div>
{variant === 'centered' && ctaLabel && <OroButton className="hidden h-10 px-5 text-[14px] md:inline-flex">{ctaLabel}</OroButton>}
{burger}
</div>
{sheet}
</nav>
</OroRoot>
)
}
'use client'
import { CountUp, GrowthChart, OroHeading, OroRoot } from '@/registry/blocks/oro-kit'
import { cn } from '@/lib/utils'
export interface OroStatsProps {
/** chart: sand band with a big count and a growth line. cards: three count-up cards with mini bars. */
variant?: 'chart' | 'cards'
title?: string
description?: string
count?: number
countLabel?: string
animate?: boolean
className?: string
}
const GROWTH = [1, 2, 2, 3, 5, 6, 8, 11, 13, 17, 20, 24, 29, 35, 41, 46, 53, 60, 64, 72, 79, 86, 93, 100]
/** ORO stats section in two variants. */
export function OroStats({
variant = 'chart',
title = 'Every round leaves a record.',
description = 'Scores, briefs and the losing candidates are all published, so you can see why a block made the cut.',
count = 128604,
countLabel = 'Scored comparisons.',
animate = true,
className,
}: OroStatsProps) {
if (variant === 'cards') {
return (
<OroRoot className={cn('w-full', className)}>
<section className="mx-auto max-w-6xl px-6 py-20 md:px-8">
<OroHeading className="max-w-xl text-[clamp(2rem,4.4vw,3rem)] leading-[1.02]">{title}</OroHeading>
<div className="mt-10 grid gap-3 md:grid-cols-3">
{[
[count, countLabel, [3, 5, 4, 7, 8, 10]],
[312, 'Blocks kept so far.', [2, 3, 5, 5, 6, 8]],
[41, 'Rounds published.', [1, 2, 3, 4, 5, 6]],
].map(([n, label, bars]) => (
<div key={String(label)} className="rounded-3xl bg-(--oro-sand) p-6">
<p className="font-display text-[clamp(2.4rem,5vw,3.4rem)] leading-none font-extrabold tracking-[-0.03em]">
<CountUp value={n as number} />
</p>
<p className="mt-2 font-display text-[15px] font-bold">{label as string}</p>
<div className="mt-6 flex h-14 items-end gap-1.5">
{(bars as number[]).map((b, i, a) => (
<span key={i} className={cn('flex-1 rounded-t-md', i === a.length - 1 ? 'bg-(--oro-orange)' : 'bg-(--oro-ink)/15')} style={{ height: `${(b / Math.max(...a)) * 100}%` }} />
))}
</div>
</div>
))}
</div>
</section>
</OroRoot>
)
}
return (
<OroRoot className={cn('w-full bg-(--oro-sand)', className)}>
<section className="mx-auto max-w-6xl px-6 py-20 md:px-8 md:py-24">
<div className="grid gap-6 md:grid-cols-2 md:items-start">
<OroHeading className="text-[clamp(2rem,4.4vw,3rem)] leading-[1.02]">{title}</OroHeading>
<p className="max-w-md text-[17px] leading-relaxed text-(--oro-soft) md:justify-self-end">{description}</p>
</div>
<p className="mt-14 font-display text-[clamp(3rem,9vw,6rem)] leading-none font-extrabold tracking-[-0.03em]">
<CountUp value={count} />
</p>
<p className="mt-2 font-display text-[17px] font-bold">{countLabel}</p>
<GrowthChart points={GROWTH} animate={animate} start="Round 1" end="Round 41" className="mt-10" />
</section>
</OroRoot>
)
}
'use client'
import { useState } from 'react'
import { OroHeading, OroRoot } from '@/registry/blocks/oro-kit'
import { cn } from '@/lib/utils'
export interface OroTracksProps {
/** flow: a brief, a glowing scorer and a result card joined by dashed paths. tabs: numbered tracks that swap a detail card. */
variant?: 'flow' | 'tabs'
title?: string
description?: string
animate?: boolean
className?: string
}
const TRACKS = [
{ n: '01', name: 'Landing', tag: 'Heroes + navs', steps: ['Brief: launch page for a note app', 'Scorer tries 3 heroes on real traffic', 'Kept: editorial hero, +18% sign-ups'] },
{ n: '02', name: 'Content', tag: 'Features + stats', steps: ['Brief: explain four features fast', 'Scorer compares bento vs list', 'Kept: list, read 2x further'] },
{ n: '03', name: 'Commerce', tag: 'Pricing + checkout', steps: ['Brief: three plans, one highlighted', 'Scorer swaps toggle and order', 'Kept: yearly toggle on the left'] },
{ n: '04', name: 'Footers', tag: 'Coming soon', steps: ['Brief: big footer with a CTA', 'Scorer queued', 'Results next round'] },
]
function Flow({ animate }: { animate: boolean }) {
return (
<div className="relative mt-12 overflow-hidden rounded-3xl border border-(--oro-line) bg-(--oro-card) p-6 md:p-10">
<div className="grid items-center gap-8 md:grid-cols-[1fr_auto_1fr]">
<div className="rounded-xl bg-(--oro-sky) p-4 text-[13px]">
<p className="font-mono text-[10px] text-(--oro-faint) uppercase">Brief</p>
<p className="mt-1 font-medium">Pricing page, three plans, under one screen.</p>
<ul className="mt-3 space-y-1.5 text-(--oro-soft)">
<li>· Budget: one block</li>
<li>· Must work on phones</li>
<li>· Dark mode included</li>
</ul>
</div>
<div className="relative flex flex-col items-center gap-2">
<svg viewBox="0 0 160 20" className="absolute top-1/2 left-1/2 hidden w-[140%] -translate-x-1/2 -translate-y-1/2 md:block" fill="none" aria-hidden>
<path d="M0 10H160" stroke="var(--oro-faint)" strokeDasharray="4 5" />
</svg>
<span
className={cn('relative grid size-20 place-items-center rounded-full font-display text-[13px] font-bold text-white', animate && 'oro-anim [animation:oro-pulse_2.8s_ease-in-out_infinite]')}
style={{ background: 'radial-gradient(circle at 35% 35%, var(--oro-gold), var(--oro-orange) 70%)', boxShadow: '0 0 40px var(--oro-amber)' }}
>
Scorer
</span>
<span className="font-mono text-[10px] text-(--oro-faint) uppercase">3 runs · 12 min</span>
</div>
<div className="rounded-xl border border-(--oro-line) p-4 text-[13px]">
<p className="font-mono text-[10px] text-(--oro-faint) uppercase">Result</p>
<p className="mt-1 font-display text-[17px] font-bold">Grid steps · pricing</p>
<p className="mt-1 text-(--oro-soft)">Kept on 9 of 10 test pages.</p>
<div className="mt-3 h-1.5 overflow-hidden rounded-full bg-(--oro-line)">
<div className={cn('h-full w-[90%] rounded-full bg-(--oro-orange)', animate && 'oro-anim origin-left [animation:oro-rise_1s_ease-out_both]')} />
</div>
</div>
</div>
<p className="mt-8 text-center text-[13px] text-(--oro-faint)">
<span className="font-medium text-(--oro-ink)">The kept block</span> beat two others on the same brief and the same budget.
</p>
</div>
)
}
function Tabs() {
const [active, setActive] = useState(0)
const t = TRACKS[active]
return (
<div className="mt-12">
<div className="grid grid-cols-2 gap-1 rounded-2xl border border-(--oro-line) bg-(--oro-card) p-1.5 md:grid-cols-4">
{TRACKS.map((x, i) => (
<button
key={x.n}
type="button"
onClick={() => setActive(i)}
className={cn('cursor-pointer rounded-xl px-4 py-3 text-left transition-colors duration-200', i === active ? 'bg-(--oro-sky)' : 'hover:bg-(--oro-ink)/5')}
>
<span className="block font-mono text-[10px] text-(--oro-faint)">{x.n}</span>
<span className="mt-1 block font-display text-[15px] font-bold">{x.name}</span>
<span className="block text-[11.5px] text-(--oro-soft)">{x.tag}</span>
</button>
))}
</div>
<ol key={active} className="oro-anim mt-3 grid gap-3 [animation:oro-rise_.3s_ease-out] md:grid-cols-3">
{t.steps.map((s, i) => (
<li key={s} className="rounded-2xl border border-(--oro-line) bg-(--oro-card) p-5">
<span className="font-mono text-[10px] text-(--oro-orange)">Step {i + 1}</span>
<p className="mt-2 font-display text-[16px] leading-snug font-bold">{s}</p>
</li>
))}
</ol>
</div>
)
}
/** ORO "how it works" section in two variants. */
export function OroTracks({
variant = 'flow',
title = 'Every block earns its spot.',
description = 'Each candidate goes through the same brief, the same budget and the same scorer. Only the winner ships.',
animate = true,
className,
}: OroTracksProps) {
return (
<OroRoot className={cn('w-full', className)}>
<section className="mx-auto max-w-6xl px-6 py-20 md:px-8 md:py-24">
<div className="grid gap-6 md:grid-cols-2 md:items-end">
<OroHeading className="text-[clamp(2rem,4.4vw,3rem)] leading-[1.02]">{title}</OroHeading>
<p className="max-w-md text-[17px] leading-relaxed text-(--oro-soft) md:justify-self-end">{description}</p>
</div>
{variant === 'flow' ? <Flow animate={animate} /> : <Tabs />}
</section>
</OroRoot>
)
}
More in Blocks
Bento Grid
A responsive bento layout that collapses to a single column on mobile, with per-card column and row spans and a hover glow that scales from the corner.
Timeline
A vertical timeline with a brand dot per milestone and a left rule — enough structure for changelogs, roadmaps and onboarding steps.
ASCII Footer
The brand set in monospace characters that shimmer in a slow wave and scramble under the cursor, or an ASCII sunset sea.