Context · Full page

A full page from the Context blocks: console (search-first), split (code-first) or compact.

Blocks
contextlandingpagetemplate
40 new blocks this month. Free, forever.
Free and open · 120+ blocks

Give your pages a head start

Search, preview and install original blocks for React and Tailwind, from one prompt.

pricing table with a yearly toggle

Building pages for teams of every size.

northwindPAPERLANEtidepoolKiln&Columen/labsORCHARDdriftwoodAtlas.quarrynorthwindPAPERLANEtidepoolKiln&Columen/labsORCHARDdriftwoodAtlas.quarry

Everything your page needs, in one library.

Search, preview, install and theme original blocks without leaving your editor.

Search

Explore

Find blocks by what they do, not what they are called. Results come back ranked with a live preview.

By intentBy layoutBy mood
query"hero with a code card"
query"footer, giant wordmark"
query"pricing, three tiers"

Preview

Explore

See every block at phone, tablet and desktop widths, in light and dark, before you copy a line.

375 / 768 / fullLight + dark
375
768
full

Install

Explore

One command writes one file. No wrapper package, no runtime, nothing to keep in sync.

shadcn registrynpmCopy + paste
{
"name": "context-hero",
"files": 1,
"deps": []
}

Blocks read your tokens, so swapping one accent color updates every page that uses them.

CSS variablesTailwind v4
before
→
after

From prompt to page in four moves.

Every block works the same way, so once you have installed one you know them all.

TypeScriptCSSCLI
npx shadcn add shinui/context-hero

✓ wrote src/blocks/context-hero.tsx
✓ added tokens.css

How teams shipped faster with shinUI

From weekend projects to product launches, built from the same blocks you can install today.

See all stories

Oct 14

Northwind

Rebuilt a marketing site from six blocks in a weekend, then themed it with one accent change.

Read their story

Sep 30

Paperlane

Swapped a hand-rolled navbar for a library one and dropped two hundred lines of CSS.

Read their story

Sep 12

Tidepool

Shipped dark mode across every page by moving to shared tokens.

Read their story

Aug 27

Kiln & Co

Prototyped three landing pages in an afternoon to test which one converted.

Read their story

Aug 03

Lumen Labs

Used the registry from their editor to pull blocks straight into a new repo.

Read their story

Usage

Drop the file into your project, along with the shared files listed below, and import it.

usage.tsx
import { ContextLanding } from "@/registry/blocks/context-landing";

export function Example() {
  return <ContextLanding />;
}

Install prerequisites

Every component here relies only on Tailwind and the cn helper from shadcn/ui.

terminal
npm i clsx tailwind-merge

Also copy these files

Context · Full page imports these files. Keep the same paths, or update the imports to match.

src/registry/blocks/context-features.tsx
'use client'

import { useState, type ReactNode } from 'react'
import { Accent, Arrow, Blueprint, Chip, ContextRoot, DashedBox, DoubleCard, Pill, RailSection } from '@/registry/blocks/context-kit'
import { cn } from '@/lib/utils'

export interface ContextFeaturesProps {
  /** grid: 2x2 double cards with blueprint art. bento: a big stat, a live log and three small cards. tabs: a capability list driving a code panel. */
  variant?: 'grid' | 'bento' | 'tabs'
  /** Wrap a phrase in *asterisks* to color it blue. */
  title?: string
  description?: string
  /** Rails with plus joints around the section. */
  rails?: boolean
  className?: string
}

const CARDS: { title: string; body: string; chips: string[]; art: ReactNode }[] = [
  {
    title: 'Search',
    body: 'Find blocks by what they do, not what they are called. Results come back ranked with a live preview.',
    chips: ['By intent', 'By layout', 'By mood'],
    art: (
      <div className="flex flex-col gap-2 p-4">
        {['"hero with a code card"', '"footer, giant wordmark"', '"pricing, three tiers"'].map((q) => (
          <DashedBox key={q} label="query">
            {q}
          </DashedBox>
        ))}
      </div>
    ),
  },
  {
    title: 'Preview',
    body: 'See every block at phone, tablet and desktop widths, in light and dark, before you copy a line.',
    chips: ['375 / 768 / full', 'Light + dark'],
    art: (
      <div className="flex items-end justify-center gap-3 p-5">
        {[
          ['h-20 w-10', '375'],
          ['h-24 w-20', '768'],
          ['h-28 w-32', 'full'],
        ].map(([size, label]) => (
          <div key={label} className="flex flex-col items-center gap-1">
            <div className={cn('rounded-sm border border-dashed border-(--cx-blue)/60 bg-(--cx-paper)/85', size)} />
            <span className="font-mono text-[9px] text-(--cx-faint)">{label}</span>
          </div>
        ))}
      </div>
    ),
  },
  {
    title: 'Install',
    body: 'One command writes one file. No wrapper package, no runtime, nothing to keep in sync.',
    chips: ['shadcn registry', 'npm', 'Copy + paste'],
    art: (
      <div className="p-4 font-mono text-[11px] leading-5 text-(--cx-blue)">
        <DashedBox>
          {'{'}
          <br />
          {'  "name": "context-hero",'}
          <br />
          {'  "files": 1,'}
          <br />
          {'  "deps": []'}
          <br />
          {'}'}
        </DashedBox>
      </div>
    ),
  },
  {
    title: 'Theme',
    body: 'Blocks read your tokens, so swapping one accent color updates every page that uses them.',
    chips: ['CSS variables', 'Tailwind v4'],
    art: (
      <div className="flex items-center justify-center gap-4 p-6">
        <DashedBox label="before">
          <span className="block size-8 rounded bg-(--cx-ink)/80" />
        </DashedBox>
        <span className="text-(--cx-blue)">→</span>
        <DashedBox label="after">
          <span className="block size-8 rounded bg-(--cx-blue)" />
        </DashedBox>
      </div>
    ),
  },
]

const TABS = [
  { title: 'Install a block', body: 'Pull any block into your repo as one file.', code: "npx shadcn add shinui/context-hero\n\n✓ wrote src/blocks/context-hero.tsx\n✓ added tokens.css" },
  { title: 'Swap the theme', body: 'Point the tokens at your brand colors.', code: ':root {\n  --cx-blue: #0f9d76;\n  --cx-frame: #cdeee2;\n}' },
  { title: 'Pick a variant', body: 'Every block ships two or three layouts.', code: "<ContextHero\n  variant=\"split\"\n  title=\"Ship it *today*\"\n/>" },
  { title: 'Ask your editor', body: 'Search the library from any MCP client.', code: '> find a footer with a big wordmark\n\n1. context-footer (dark)\n2. folio-footer (cta)\n3. grid-footer (wordmark)' },
]

function Tabs() {
  const [active, setActive] = useState(0)
  return (
    <DoubleCard className="mt-10" innerClassName="grid gap-3 p-3 md:grid-cols-[0.9fr_1.3fr]">
      <ul className="flex flex-col gap-1">
        {TABS.map((t, i) => (
          <li key={t.title}>
            <button
              type="button"
              onClick={() => setActive(i)}
              className={cn('flex w-full cursor-pointer gap-3 rounded-lg p-3 text-left transition-colors duration-200', i === active ? 'bg-(--cx-tint)' : 'hover:bg-(--cx-tint)/60')}
            >
              <span className={cn('mt-0.5 grid size-5 shrink-0 place-items-center rounded text-[10px] text-white', i === active ? 'bg-(--cx-blue)' : 'bg-(--cx-blue)/40')}>{i + 1}</span>
              <span>
                <span className="block text-[14px] font-medium">{t.title}</span>
                <span className="block text-[12.5px] text-(--cx-soft)">{t.body}</span>
              </span>
            </button>
          </li>
        ))}
      </ul>
      <div className="flex min-h-64 flex-col overflow-hidden rounded-lg bg-(--cx-night)">
        <div className="flex gap-1 border-b border-white/10 px-3 py-2.5 text-[11px] text-white/45">
          {['TypeScript', 'CSS', 'CLI'].map((x, i) => (
            <span key={x} className={cn('rounded px-2 py-0.5', i === 0 && 'bg-white/10 text-white')}>
              {x}
            </span>
          ))}
        </div>
        <pre key={active} className="cx-anim flex-1 overflow-x-auto p-5 font-mono text-[12.5px] leading-6 whitespace-pre text-white/80 [animation:cx-rise_.25s_ease-out]">
          {TABS[active].code}
        </pre>
      </div>
    </DoubleCard>
  )
}

function Bento() {
  return (
    <div className="mt-10 grid gap-3 md:grid-cols-3">
      <DoubleCard className="md:col-span-1" innerClassName="flex flex-col items-center justify-center py-10 text-center">
        <p className="text-6xl font-light tracking-[-0.04em] text-(--cx-blue)">0kb</p>
        <p className="mt-3 text-[13px] text-(--cx-soft)">Runtime added. Blocks are plain files.</p>
      </DoubleCard>
      <DoubleCard className="md:col-span-2" innerClassName="p-2">
        <Blueprint className="h-full min-h-48 border-dashed p-3">
          <div className="grid h-full grid-cols-3 gap-2">
            {['Navbar', 'Hero', 'Features', 'Stats', 'Stories', 'Footer'].map((b, i) => (
              <div key={b} className="flex items-end rounded-md border border-(--cx-line) bg-(--cx-paper) p-2.5 text-[12px]">
                <span className="font-mono text-[10px] text-(--cx-faint)">0{i + 1}</span>
                <span className="ml-2">{b}</span>
              </div>
            ))}
          </div>
        </Blueprint>
      </DoubleCard>
      {[
        ['Responsive, always', 'Every block is checked at phone, tablet and desktop widths before it ships.'],
        ['Dark mode included', 'Light and dark palettes come from the same tokens. No second stylesheet.'],
        ['Motion that behaves', 'Animations stop for people who ask their OS for reduced motion.'],
      ].map(([t, b]) => (
        <DoubleCard key={t}>
          <h3 className="text-[15px] font-medium">{t}</h3>
          <p className="mt-1.5 text-[13px] leading-relaxed text-(--cx-soft)">{b}</p>
        </DoubleCard>
      ))}
    </div>
  )
}

/** Context feature section in three variants. */
export function ContextFeatures({
  variant = 'grid',
  title = 'Everything your page needs, *in one library*.',
  description = 'Search, preview, install and theme original blocks without leaving your editor.',
  rails = true,
  className,
}: ContextFeaturesProps) {
  const body = (
    <div className="px-6 py-16 md:px-10 md:py-20">
      <h2 className="max-w-xl text-[clamp(1.8rem,3.6vw,2.6rem)] leading-[1.1] font-light tracking-[-0.03em] text-balance">
        <Accent text={title} />
      </h2>
      <p className="mt-4 max-w-lg text-[15.5px] leading-relaxed text-(--cx-soft)">{description}</p>

      {variant === 'grid' && (
        <div className="mt-10 grid gap-3 md:grid-cols-2">
          {CARDS.map((c) => (
            <DoubleCard key={c.title} innerClassName="flex flex-col gap-4">
              <div className="flex items-start justify-between gap-4">
                <h3 className="text-[22px] font-light tracking-[-0.02em]">{c.title}</h3>
                <Pill variant="blue" className="h-7 px-3 text-[12px]">
                  Explore <Arrow />
                </Pill>
              </div>
              <p className="-mt-2 text-[13.5px] leading-relaxed text-(--cx-soft)">{c.body}</p>
              <div className="flex flex-wrap gap-1.5">
                {c.chips.map((x) => (
                  <Chip key={x}>{x}</Chip>
                ))}
              </div>
              <Blueprint className="mt-auto min-h-40">{c.art}</Blueprint>
            </DoubleCard>
          ))}
        </div>
      )}
      {variant === 'bento' && <Bento />}
      {variant === 'tabs' && <Tabs />}
    </div>
  )

  return <ContextRoot className={cn('w-full', className)}>{rails ? <RailSection>{body}</RailSection> : <div className="mx-auto max-w-6xl">{body}</div>}</ContextRoot>
}
src/registry/blocks/context-kit.tsx
'use client'

import { useEffect, useState, type ComponentProps, type ReactNode } from 'react'
import { cn } from '@/lib/utils'

/**
 * Context Kit: shared pieces behind the shinUI "Context" blocks.
 *
 * A blueprint look: white page framed by vertical guide rails with plus
 * joints, light-weight headlines with one phrase in blue, double-bordered
 * cards (a pale blue frame around a white card), dotted blueprint panels with
 * dashed boxes, pill buttons, and streams of pixel dots drifting down the
 * page edges. Wrap blocks in <ContextRoot> for the palette.
 */

const VARS = [
  '[--cx-paper:#ffffff] [--cx-ink:#030712] [--cx-soft:rgb(3_7_18/0.62)] [--cx-faint:rgb(3_7_18/0.42)] [--cx-line:#e7e9ef] [--cx-rail:#e2e5ec]',
  '[--cx-blue:#3b73ed] [--cx-blue-ink:#ffffff] [--cx-frame:#d9e4fc] [--cx-tint:#f2f6fe] [--cx-dot:#c7d6f8] [--cx-night:#121316] [--cx-night-ink:#f4f4f5]',
  'dark:[--cx-paper:#0e0f12] dark:[--cx-ink:#f4f4f5] dark:[--cx-soft:rgb(244_244_245/0.66)] dark:[--cx-faint:rgb(244_244_245/0.42)] dark:[--cx-line:#24262b] dark:[--cx-rail:#23252a]',
  'dark:[--cx-blue:#5b8cf5] dark:[--cx-frame:#1f2d4f] dark:[--cx-tint:#141b2b] dark:[--cx-dot:#2a3a62] dark:[--cx-night:#08090b]',
].join(' ')

const KEYFRAMES = `
@keyframes cx-twinkle{0%,100%{opacity:.25}50%{opacity:1}}
@keyframes cx-caret{50%{opacity:0}}
@keyframes cx-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cx-marquee{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.cx-anim{animation:none!important}}
`

export function ContextRoot({ className, children, ...props }: ComponentProps<'div'>) {
  return (
    <div className={cn(VARS, 'bg-(--cx-paper) font-sans text-(--cx-ink) antialiased', className)} {...props}>
      <style>{KEYFRAMES}</style>
      {children}
    </div>
  )
}

/** "Give your *agents* the internet" → the starred phrase in blue. */
export function Accent({ text }: { text: string }) {
  return (
    <>
      {text.split(/(\*[^*]+\*)/g).map((part, i) =>
        part.startsWith('*') ? (
          <span key={i} className="text-(--cx-blue)">
            {part.slice(1, -1)}
          </span>
        ) : (
          <span key={i}>{part}</span>
        ),
      )}
    </>
  )
}

/** A plus mark centered on a rail joint. Parent must be relative. */
export function Joint({ className }: { className?: string }) {
  return (
    <span aria-hidden className={cn('pointer-events-none absolute size-2.5 -translate-x-1/2 -translate-y-1/2 text-(--cx-faint)', className)}>
      <span className="absolute top-1/2 left-0 h-px w-full bg-current" />
      <span className="absolute top-0 left-1/2 h-full w-px bg-current" />
    </span>
  )
}

/**
 * A section framed by two vertical rails. `rule` draws a full-bleed line on
 * top with plus joints where it crosses the rails.
 */
export function RailSection({
  children,
  rule = true,
  className,
  innerClassName,
}: {
  children: ReactNode
  rule?: boolean
  className?: string
  innerClassName?: string
}) {
  return (
    <section className={cn('relative', rule && 'border-t border-(--cx-rail)', className)}>
      <div className={cn('relative mx-auto max-w-6xl border-x border-(--cx-rail)', innerClassName)}>
        {rule && (
          <>
            <Joint className="top-0 left-0" />
            <Joint className="top-0 left-full" />
          </>
        )}
        {children}
      </div>
    </section>
  )
}

/** Pale blue frame around a white card: the signature Context card. */
export function DoubleCard({ children, className, innerClassName }: { children: ReactNode; className?: string; innerClassName?: string }) {
  return (
    <div className={cn('rounded-[14px] border border-(--cx-frame) bg-(--cx-tint) p-1.5 transition-colors duration-300 hover:border-(--cx-blue)/50', className)}>
      <div className={cn('h-full rounded-[10px] border border-(--cx-line) bg-(--cx-paper) p-5', innerClassName)}>{children}</div>
    </div>
  )
}

/** Dotted blueprint well for illustrations. */
export function Blueprint({ children, className }: { children?: ReactNode; className?: string }) {
  return (
    <div
      className={cn('relative overflow-hidden rounded-md border border-(--cx-frame)', className)}
      style={{ backgroundImage: 'radial-gradient(var(--cx-dot) 1px, transparent 1.2px)', backgroundSize: '8px 8px' }}
    >
      {children}
    </div>
  )
}

/** A dashed box with a tiny caption, used inside blueprints. */
export function DashedBox({ label, children, className }: { label?: string; children?: ReactNode; className?: string }) {
  return (
    <div className={cn('relative rounded-sm border border-dashed border-(--cx-blue)/60 bg-(--cx-paper)/85 px-3 py-2 font-mono text-[10px] text-(--cx-blue)', className)}>
      {label && <span className="mb-1 block text-[9px] text-(--cx-faint)">{label}</span>}
      {children}
    </div>
  )
}

type PillVariant = 'solid' | 'outline' | 'blue' | 'ghost'

export function Pill({ variant = 'solid', className, children, ...props }: ComponentProps<'a'> & { variant?: PillVariant }) {
  return (
    <a
      href="#"
      className={cn(
        'inline-flex h-9 items-center justify-center gap-1.5 rounded-full px-4 text-[13px] font-medium whitespace-nowrap transition-[background-color,border-color,color,transform] duration-200 active:scale-[.98]',
        variant === 'solid' && 'bg-(--cx-ink) text-(--cx-paper) hover:opacity-85',
        variant === 'outline' && 'border border-(--cx-line) bg-(--cx-paper) text-(--cx-ink) hover:border-(--cx-ink)/40',
        variant === 'blue' && 'border border-(--cx-blue)/50 text-(--cx-blue) hover:bg-(--cx-tint)',
        variant === 'ghost' && 'text-(--cx-soft) hover:text-(--cx-ink)',
        className,
      )}
      {...props}
    >
      {children}
    </a>
  )
}

export function Chip({ children, className }: { children: ReactNode; className?: string }) {
  return <span className={cn('inline-flex items-center rounded-md border border-(--cx-line) px-2 py-0.5 text-[11px] text-(--cx-soft)', className)}>{children}</span>
}

export function Arrow({ className }: { className?: string }) {
  return (
    <svg viewBox="0 0 12 12" className={cn('size-3', className)} fill="none" stroke="currentColor" strokeWidth={1.4} aria-hidden>
      <path d="M2 6h8M6.5 2.5L10 6l-3.5 3.5" />
    </svg>
  )
}

/** Original mark: two offset blue squares. */
export function ContextMark({ className }: { className?: string }) {
  return (
    <svg viewBox="0 0 22 16" className={cn('h-4 w-[22px]', className)} aria-hidden>
      <rect x="0" y="5" width="11" height="11" rx="2" fill="var(--cx-blue)" opacity={0.55} />
      <rect x="8" y="0" width="14" height="14" rx="2.5" fill="var(--cx-blue)" />
    </svg>
  )
}

function rand(i: number, j: number) {
  const s = Math.sin(i * 91.7 + j * 47.3) * 43758.5453
  return s - Math.floor(s)
}

/**
 * Pixel dots drifting down a page edge in a diagonal band: rings, faint dots
 * and a few solid blue ones that twinkle. Pure SVG; pass `side` to mirror.
 */
export function PixelStream({
  side = 'left',
  rows = 64,
  cols = 16,
  animate = true,
  className,
}: {
  side?: 'left' | 'right'
  rows?: number
  cols?: number
  animate?: boolean
  className?: string
}) {
  const cells: ReactNode[] = []
  for (let r = 0; r < rows; r++) {
    const center = (r / rows) * cols * 0.9 + Math.sin(r / 7) * 2
    for (let c = 0; c < cols; c++) {
      const d = Math.abs(c - center)
      const n = rand(r, c)
      if (d > 3.2 + n * 2) continue
      const x = (side === 'left' ? c : cols - 1 - c) * 6 + 3
      const y = r * 6 + 3
      const solid = n > 0.88
      cells.push(
        solid ? (
          <circle
            key={`${r}-${c}`}
            cx={x}
            cy={y}
            r={1.7}
            fill="var(--cx-blue)"
            className={cn(animate && 'cx-anim')}
            style={animate ? { animation: `cx-twinkle ${2 + n * 3}s ease-in-out ${n * -5}s infinite` } : undefined}
          />
        ) : (
          <circle key={`${r}-${c}`} cx={x} cy={y} r={1.6} fill={n > 0.5 ? 'var(--cx-dot)' : 'none'} stroke="var(--cx-dot)" strokeWidth={0.7} />
        ),
      )
    }
  }
  return (
    <svg aria-hidden viewBox={`0 0 ${cols * 6} ${rows * 6}`} className={cn('pointer-events-none h-full w-auto', className)} preserveAspectRatio="xMidYMin slice">
      {cells}
    </svg>
  )
}

/** Cycles through "|"-separated phrases with a typing caret (static with reduced motion). */
export function Typewriter({ text, className }: { text: string; className?: string }) {
  const [state, setState] = useState({ i: 0, n: 0, back: false })
  useEffect(() => {
    const phrases = text.split('|')
    if (phrases.length === 0 || window.matchMedia('(prefers-reduced-motion: reduce)').matches) return
    const id = window.setInterval(() => {
      setState(({ i, n, back }) => {
        const full = phrases[i % phrases.length]
        if (!back && n < full.length) return { i, n: n + 1, back }
        if (!back) return { i, n: n + 6, back: n > full.length + 30 }
        if (n > full.length) return { i, n: full.length, back }
        if (n > 0) return { i, n: n - 2, back }
        return { i: i + 1, n: 0, back: false }
      })
    }, 55)
    return () => window.clearInterval(id)
  }, [text])
  const phrases = text.split('|')
  const full = phrases[state.i % phrases.length] ?? ''
  const shown = state.n === 0 && !state.back && state.i === 0 ? full : full.slice(0, Math.min(state.n, full.length))
  return (
    <span className={className}>
      {shown}
      <span className="cx-anim ml-px inline-block h-[1.1em] w-px translate-y-[0.2em] bg-current [animation:cx-caret_1s_steps(1)_infinite]" />
    </span>
  )
}
src/registry/blocks/context-footer.tsx
'use client'

import { ContextMark, ContextRoot, Joint, Pill } from '@/registry/blocks/context-kit'
import { cn } from '@/lib/utils'

export interface ContextFooterProps {
  /** night: dark footer with link columns and a giant dotted wordmark. light: the same on paper. minimal: one row. */
  variant?: 'night' | 'light' | 'minimal'
  brand?: string
  tagline?: string
  /** Giant dotted word at the bottom (night/light). Empty hides it. */
  wordmark?: string
  status?: string
  className?: string
}

const COLUMNS: [string, string[]][] = [
  ['Library', ['Blocks', 'Backgrounds', 'Components', 'Pixel art', 'Pricing']],
  ['Developers', ['Docs', 'Registry', 'CLI', 'MCP server', 'Changelog']],
  ['Resources', ['Journal', 'Showcase', 'Guides', 'Free tools']],
  ['Studio', ['About', 'Contact', 'Press kit', 'License']],
]

const YEAR = new Date().getFullYear()

/** Context footer in three variants. */
export function ContextFooter({
  variant = 'night',
  brand = 'shinUI',
  tagline = 'Original blocks for people who ship. Search it, preview it, install it.',
  wordmark = 'shinui',
  status = 'All systems normal',
  className,
}: ContextFooterProps) {
  const night = variant === 'night'
  const tone = night ? '[--cx-paper:var(--cx-night)] [--cx-ink:var(--cx-night-ink)] [--cx-soft:rgb(244_244_245/0.62)] [--cx-faint:rgb(244_244_245/0.4)] [--cx-line:rgb(255_255_255/0.1)] [--cx-rail:rgb(255_255_255/0.1)]' : ''

  if (variant === 'minimal') {
    return (
      <ContextRoot className={cn('border-t border-(--cx-line)', className)}>
        <footer className="mx-auto flex max-w-6xl flex-col gap-4 px-6 py-6 text-[12.5px] text-(--cx-soft) sm:flex-row sm:items-center sm:justify-between md:px-10">
          <a href="#" className="flex items-center gap-2 text-[14px] text-(--cx-ink)">
            <ContextMark />
            {brand}
          </a>
          <div className="flex flex-wrap gap-5">
            {['Docs', 'Pricing', 'Terms', 'Privacy'].map((l) => (
              <a key={l} href="#" className="hover:text-(--cx-ink)">
                {l}
              </a>
            ))}
          </div>
          <span>
            © {YEAR} {brand}
          </span>
        </footer>
      </ContextRoot>
    )
  }

  return (
    <ContextRoot className={cn(tone, 'overflow-hidden', className)}>
      <footer className="relative mx-auto max-w-6xl border-x border-(--cx-rail)">
        <div className="flex flex-col gap-6 px-6 pt-14 pb-8 md:flex-row md:items-start md:justify-between md:px-10">
          <div>
            <a href="#" className="flex items-center gap-2 text-[16px]">
              <ContextMark />
              {brand}
            </a>
            <p className="mt-4 max-w-xs text-[13px] leading-relaxed text-(--cx-soft)">{tagline}</p>
          </div>
          <div className="flex items-center gap-3 text-[12px] text-(--cx-soft)">
            <span className="flex items-center gap-1.5">
              <span className="size-1.5 rounded-full bg-[#4ade80]" />
              {status}
            </span>
            <Pill variant="outline" className="h-8 border-(--cx-line) bg-transparent text-[12px]">
              Get updates
            </Pill>
          </div>
        </div>
        <div className="grid grid-cols-2 gap-8 border-t border-(--cx-line) px-6 py-10 sm:grid-cols-4 md:px-10">
          {COLUMNS.map(([head, links]) => (
            <div key={head}>
              <p className="text-[13px] text-(--cx-ink)">{head}</p>
              <ul className="mt-4 flex flex-col gap-2.5 text-[12.5px] text-(--cx-soft)">
                {links.map((l) => (
                  <li key={l}>
                    <a href="#" className="transition-colors hover:text-(--cx-ink)">
                      {l}
                    </a>
                  </li>
                ))}
              </ul>
            </div>
          ))}
        </div>
        <div className="relative flex flex-col gap-2 border-t border-(--cx-rail) px-6 py-4 text-[12px] text-(--cx-faint) sm:flex-row sm:justify-between md:px-10">
          <Joint className="top-0 left-0" />
          <Joint className="top-0 left-full" />
          <span>
            © {YEAR} {brand}
          </span>
          <span>Made with care, one block at a time</span>
          <span className="flex gap-4">
            <a href="#">Terms</a>
            <a href="#">Privacy</a>
          </span>
        </div>
      </footer>
      {wordmark && (
        <div className="border-t border-(--cx-rail)">
          <p
            aria-hidden
            className="mx-auto max-w-6xl bg-clip-text px-4 text-center text-[clamp(5rem,21vw,17rem)] leading-[0.85] font-semibold tracking-[-0.06em] text-transparent select-none"
            style={{ backgroundImage: 'radial-gradient(var(--cx-soft) 1.4px, transparent 1.6px)', backgroundSize: '6px 6px' }}
          >
            {wordmark}
          </p>
        </div>
      )}
    </ContextRoot>
  )
}
src/registry/blocks/context-hero.tsx
'use client'

import { useState } from 'react'
import { Accent, Arrow, Blueprint, ContextRoot, DoubleCard, Pill, PixelStream, Typewriter } from '@/registry/blocks/context-kit'
import { cn } from '@/lib/utils'

export interface ContextHeroProps {
  /** console: centered headline over a blue command console. split: copy left, code card right. metric: a big success number beside a live log. */
  variant?: 'console' | 'split' | 'metric'
  /** Small line above the headline. */
  kicker?: string
  /** Wrap a phrase in *asterisks* to color it blue. */
  title?: string
  description?: string
  primaryCta?: string
  secondaryCta?: string
  /** Console tabs, comma separated. */
  tabs?: string
  /** Placeholder phrases the console types, separated by "|". */
  prompts?: string
  /** Pixel dot streams down both page edges. */
  streams?: boolean
  animate?: boolean
  className?: string
}

function Streams({ animate }: { animate: boolean }) {
  return (
    <div aria-hidden className="pointer-events-none absolute inset-0 overflow-hidden">
      <div className="absolute inset-y-0 left-0 w-24 opacity-80 sm:w-40">
        <PixelStream side="left" animate={animate} className="h-full" />
      </div>
      <div className="absolute inset-y-0 right-0 w-24 opacity-80 sm:w-40">
        <PixelStream side="right" animate={animate} rows={70} className="h-full" />
      </div>
    </div>
  )
}

function Console({ tabs, prompts, animate }: { tabs: string[]; prompts: string; animate: boolean }) {
  const [tab, setTab] = useState(0)
  return (
    <div className="rounded-[18px] bg-(--cx-blue) p-2.5 shadow-[0_20px_60px_-20px_var(--cx-blue)] sm:p-3.5">
      <div className="rounded-xl bg-(--cx-paper) p-2.5">
        <div className="flex gap-1 overflow-x-auto pb-2.5 text-[12px]">
          {tabs.map((t, i) => (
            <button
              key={t}
              type="button"
              onClick={() => setTab(i)}
              className={cn(
                'shrink-0 cursor-pointer rounded-md px-2.5 py-1 transition-colors',
                i === tab ? 'bg-(--cx-tint) text-(--cx-ink) shadow-[0_0_0_1px_var(--cx-line)]' : 'text-(--cx-faint) hover:text-(--cx-ink)',
              )}
            >
              {t}
            </button>
          ))}
        </div>
        <div className="flex items-center gap-3 rounded-lg border border-(--cx-line) px-3 py-2.5">
          <svg viewBox="0 0 16 16" className="size-4 shrink-0 text-(--cx-faint)" fill="none" stroke="currentColor" strokeWidth={1.3} aria-hidden>
            <circle cx="7" cy="7" r="4.5" />
            <path d="M10.5 10.5L14 14" />
          </svg>
          <span className="min-w-0 flex-1 truncate text-left font-mono text-[13px] text-(--cx-faint)">
            {animate ? <Typewriter key={tab} text={prompts} /> : prompts.split('|')[0]}
          </span>
          <a href="#" aria-label="Run" className="grid h-8 w-10 shrink-0 place-items-center rounded-md bg-(--cx-blue) text-(--cx-blue-ink) transition-opacity hover:opacity-90">
            <Arrow />
          </a>
        </div>
      </div>
    </div>
  )
}

const CODE = [
  ['import', ' { install } ', 'from', " 'shinui'"],
  ['', '', '', ''],
  ['const', ' hero ', '=', ' await install({'],
  ['', "  block: 'context-hero',", '', ''],
  ['', "  variant: 'console',", '', ''],
  ['', '  theme: { accent: ', "'#3b73ed'", ' },'],
  ['', '})', '', ''],
]

function CodeCard() {
  return (
    <DoubleCard innerClassName="p-0 overflow-hidden bg-(--cx-night) border-transparent">
      <div className="flex items-center gap-1.5 border-b border-white/10 px-4 py-3">
        {['#f87171', '#fbbf24', '#4ade80'].map((c) => (
          <span key={c} className="size-2.5 rounded-full" style={{ background: c }} />
        ))}
        <div className="ml-3 flex gap-1 text-[11px] text-white/50">
          {['TypeScript', 'CLI', 'MCP'].map((t, i) => (
            <span key={t} className={cn('rounded px-2 py-0.5', i === 0 && 'bg-white/10 text-white')}>
              {t}
            </span>
          ))}
        </div>
      </div>
      <pre className="overflow-x-auto p-5 font-mono text-[12.5px] leading-6 text-white/80">
        {CODE.map((row, i) => (
          <div key={i} className="cx-anim [animation:cx-rise_.4s_ease-out_both]" style={{ animationDelay: `${i * 70}ms` }}>
            <span className="text-[#8ab4ff]">{row[0]}</span>
            {row[1]}
            <span className="text-[#8ab4ff]">{row[2]}</span>
            <span className="text-[#a7f3d0]">{row[3]}</span>
            {row.every((c) => !c) && ' '}
          </div>
        ))}
      </pre>
      <div className="border-t border-white/10 px-5 py-2.5 font-mono text-[11px] text-white/40">→ wrote src/blocks/context-hero.tsx</div>
    </DoubleCard>
  )
}

const LOG: [string, string, string][] = [
  ['01', 'Resolved block and tokens', '12ms'],
  ['02', 'Matched your Tailwind theme', 'auto'],
  ['03', 'Swapped icons for local ones', '3 icons'],
  ['04', 'Checked dark mode contrast', 'AA'],
  ['05', 'Wrote one file to your repo', '1 file'],
]

function Metric() {
  return (
    <div className="grid gap-3 md:grid-cols-[1fr_1.3fr]">
      <DoubleCard innerClassName="flex flex-col items-center justify-center py-12 text-center">
        <p className="text-[clamp(3rem,7vw,4.5rem)] leading-none font-light tracking-[-0.04em] text-(--cx-blue)">99.2%</p>
        <p className="mt-3 text-[13px] text-(--cx-soft)">Installs that worked on the first try.</p>
      </DoubleCard>
      <DoubleCard innerClassName="p-0">
        <Blueprint className="m-2 border-dashed p-3">
          <div className="flex items-center justify-between rounded-md border border-(--cx-line) bg-(--cx-paper) px-3 py-2 text-[12px]">
            <span className="font-mono text-(--cx-soft)">install context-hero</span>
            <span className="rounded bg-(--cx-tint) px-1.5 py-0.5 font-mono text-[10px] text-(--cx-blue)">200 OK</span>
          </div>
          <ul className="mt-2 rounded-md border border-(--cx-line) bg-(--cx-paper) px-3 py-1 text-[12px]">
            {LOG.map(([n, label, meta], i) => (
              <li key={n} className="cx-anim flex items-center gap-3 border-b border-(--cx-line) py-2 last:border-0 [animation:cx-rise_.4s_ease-out_both]" style={{ animationDelay: `${i * 160}ms` }}>
                <span className="font-mono text-[10px] text-(--cx-faint)">{n}</span>
                <span className="size-1.5 rounded-full bg-(--cx-blue)" />
                <span className="flex-1">{label}</span>
                <span className="font-mono text-[10px] text-(--cx-faint)">{meta}</span>
              </li>
            ))}
          </ul>
        </Blueprint>
      </DoubleCard>
    </div>
  )
}

/** Context hero in three layouts. */
export function ContextHero({
  variant = 'console',
  kicker = 'Free and open · 120+ blocks',
  title = 'Give your *pages* a head start',
  description = 'Search, preview and install original blocks for React and Tailwind, from one prompt.',
  primaryCta = 'Start for free',
  secondaryCta = 'Connect your editor',
  tabs = 'Search blocks, Preview, Install, Theme, Tokens',
  prompts = 'pricing table with a yearly toggle|footer with a giant wordmark|hero with a live code card|navbar that floats on scroll',
  streams = true,
  animate = true,
  className,
}: ContextHeroProps) {
  const tabList = tabs
    .split(',')
    .map((t) => t.trim())
    .filter(Boolean)
  const heading = 'text-[clamp(2.3rem,5.4vw,3.6rem)] leading-[1.06] font-light tracking-[-0.035em] text-balance'
  const actions = (
    <div className="flex flex-wrap items-center gap-2">
      {primaryCta && <Pill className="h-10 px-5">{primaryCta}</Pill>}
      {secondaryCta && (
        <Pill variant="blue" className="h-10 px-5">
          {secondaryCta} <Arrow />
        </Pill>
      )}
    </div>
  )

  if (variant === 'split' || variant === 'metric') {
    return (
      <ContextRoot className={cn('relative overflow-hidden', className)}>
        {streams && <Streams animate={animate} />}
        <div className="relative mx-auto grid max-w-6xl items-center gap-12 px-6 py-20 md:px-10 lg:grid-cols-[1fr_1.1fr] lg:py-28">
          <div className="flex flex-col items-start gap-6">
            {kicker && <p className="text-[12.5px] text-(--cx-soft)">{kicker}</p>}
            <h1 className={heading}>
              <Accent text={title} />
            </h1>
            <p className="max-w-md text-[17px] leading-relaxed text-(--cx-soft)">{description}</p>
            {actions}
          </div>
          {variant === 'split' ? <CodeCard /> : <Metric />}
        </div>
      </ContextRoot>
    )
  }

  return (
    <ContextRoot className={cn('relative overflow-hidden', className)}>
      {streams && <Streams animate={animate} />}
      <div className="relative mx-auto flex max-w-3xl flex-col items-center px-6 pt-24 pb-20 text-center md:pt-32">
        {kicker && (
          <a href="#" className="mb-6 inline-flex items-center gap-1.5 text-[12.5px] text-(--cx-soft) transition-colors hover:text-(--cx-ink)">
            {kicker} <Arrow className="opacity-60" />
          </a>
        )}
        <h1 className={heading}>
          <Accent text={title} />
        </h1>
        <p className="mt-5 max-w-lg text-[17px] leading-relaxed text-(--cx-soft)">{description}</p>
        <div className="mt-8">{actions}</div>
        <div className="mt-14 w-full max-w-2xl">
          <Console tabs={tabList} prompts={prompts} animate={animate} />
        </div>
      </div>
    </ContextRoot>
  )
}
src/registry/blocks/context-navbar.tsx
'use client'

import { useState } from 'react'
import { ContextMark, ContextRoot, Joint, Pill } from '@/registry/blocks/context-kit'
import { cn } from '@/lib/utils'

export interface ContextNavbarProps {
  /** bar: announcement strip over a full-width bar. pill: a floating rounded bar. rail: boxed cells between page rails. */
  variant?: 'bar' | 'pill' | 'rail'
  brand?: string
  /** Comma separated links. End a label with "▾" to show a dropdown chevron. */
  links?: string
  /** Strip above the bar (bar variant). Empty hides it. */
  announcement?: string
  secondaryCta?: string
  ctaLabel?: string
  className?: string
}

const list = (v: string) =>
  v
    .split(',')
    .map((s) => s.trim())
    .filter(Boolean)

function Chevron() {
  return (
    <svg viewBox="0 0 10 10" className="size-2.5 opacity-60" fill="none" stroke="currentColor" strokeWidth={1.3} aria-hidden>
      <path d="M2.5 4l2.5 2.5L7.5 4" />
    </svg>
  )
}

function Links({ items, className }: { items: string[]; className?: string }) {
  return (
    <ul className={cn('flex items-center gap-6 text-[13px] text-(--cx-soft)', className)}>
      {items.map((l) => (
        <li key={l}>
          <a href="#" className="flex items-center gap-1 transition-colors duration-200 hover:text-(--cx-ink)">
            {l.replace('▾', '').trim()}
            {l.endsWith('▾') && <Chevron />}
          </a>
        </li>
      ))}
    </ul>
  )
}

function Brand({ brand }: { brand: string }) {
  return (
    <a href="#" className="flex items-center gap-2 text-[16px] font-medium tracking-[-0.02em]">
      <ContextMark />
      {brand}
    </a>
  )
}

function Burger({ open, onClick }: { open: boolean; onClick: () => void }) {
  return (
    <button type="button" aria-label={open ? 'Close menu' : 'Open menu'} aria-expanded={open} onClick={onClick} className="grid size-9 cursor-pointer place-items-center md:hidden">
      <svg viewBox="0 0 18 18" className="size-[18px]" fill="none" stroke="currentColor" strokeWidth={1.5} aria-hidden>
        {open ? <path d="M4 4l10 10M14 4L4 14" /> : <path d="M3 7h12M3 11h12" />}
      </svg>
    </button>
  )
}

function Sheet({ items, secondaryCta, ctaLabel }: { items: string[]; secondaryCta: string; ctaLabel: string }) {
  return (
    <div className="cx-anim border-t border-(--cx-line) px-5 pt-2 pb-5 [animation:cx-rise_.2s_ease-out] md:hidden">
      {items.map((l) => (
        <a key={l} href="#" className="flex items-center justify-between border-b border-(--cx-line) py-3 text-[15px]">
          {l.replace('▾', '').trim()}
          {l.endsWith('▾') && <Chevron />}
        </a>
      ))}
      <div className="mt-4 grid grid-cols-2 gap-2">
        {secondaryCta && <Pill variant="outline">{secondaryCta}</Pill>}
        <Pill>{ctaLabel}</Pill>
      </div>
    </div>
  )
}

/** Context navigation in three variants, each with a mobile sheet. */
export function ContextNavbar({
  variant = 'bar',
  brand = 'shinUI',
  links = 'Library ▾, Use cases ▾, Showcase ▾, Pricing, Docs',
  announcement = '40 new blocks this month. Free, forever.',
  secondaryCta = 'Book a tour',
  ctaLabel = 'Start for free',
  className,
}: ContextNavbarProps) {
  const [open, setOpen] = useState(false)
  const items = list(links)
  const actions = (
    <div className="hidden items-center gap-2 md:flex">
      {secondaryCta && <Pill variant="outline">{secondaryCta}</Pill>}
      <Pill>{ctaLabel}</Pill>
    </div>
  )

  if (variant === 'pill') {
    return (
      <ContextRoot className={cn('px-4 pt-4', className)}>
        <nav className="mx-auto max-w-5xl rounded-2xl border border-(--cx-line) bg-(--cx-paper)/85 shadow-[0_8px_30px_-12px_rgb(3_7_18/0.18)] backdrop-blur">
          <div className="flex h-14 items-center justify-between gap-6 pr-2 pl-5">
            <Brand brand={brand} />
            <Links items={items} className="hidden md:flex" />
            {actions}
            <Burger open={open} onClick={() => setOpen(!open)} />
          </div>
          {open && <Sheet items={items} secondaryCta={secondaryCta} ctaLabel={ctaLabel} />}
        </nav>
      </ContextRoot>
    )
  }

  if (variant === 'rail') {
    return (
      <ContextRoot className={cn('border-b border-(--cx-rail)', className)}>
        <nav className="relative mx-auto max-w-6xl border-x border-(--cx-rail)">
          <Joint className="top-full left-0" />
          <Joint className="top-full left-full" />
          <div className="flex h-14 items-stretch">
            <div className="flex items-center border-r border-(--cx-rail) px-5">
              <Brand brand={brand} />
            </div>
            <ul className="hidden flex-1 items-stretch md:flex">
              {items.map((l) => (
                <li key={l} className="flex border-r border-(--cx-rail)">
                  <a href="#" className="flex items-center gap-1 px-5 text-[13px] text-(--cx-soft) transition-colors hover:bg-(--cx-tint) hover:text-(--cx-ink)">
                    {l.replace('▾', '').trim()}
                    {l.endsWith('▾') && <Chevron />}
                  </a>
                </li>
              ))}
            </ul>
            <div className="ml-auto flex items-center gap-2 px-3">
              <span className="hidden md:block">
                <Pill>{ctaLabel}</Pill>
              </span>
              <Burger open={open} onClick={() => setOpen(!open)} />
            </div>
          </div>
          {open && <Sheet items={items} secondaryCta={secondaryCta} ctaLabel={ctaLabel} />}
        </nav>
      </ContextRoot>
    )
  }

  return (
    <ContextRoot className={className}>
      {announcement && (
        <a href="#" className="block bg-(--cx-tint) px-4 py-2 text-center text-[12px] text-(--cx-soft) transition-colors hover:text-(--cx-ink)">
          {announcement}
        </a>
      )}
      <nav className="border-b border-(--cx-line)">
        <div className="mx-auto flex h-16 max-w-6xl items-center justify-between gap-6 px-5">
          <Brand brand={brand} />
          <Links items={items} className="hidden md:flex" />
          {actions}
          <Burger open={open} onClick={() => setOpen(!open)} />
        </div>
        {open && <Sheet items={items} secondaryCta={secondaryCta} ctaLabel={ctaLabel} />}
      </nav>
    </ContextRoot>
  )
}
src/registry/blocks/context-stories.tsx
'use client'

import { useRef } from 'react'
import { Accent, Arrow, ContextRoot, DoubleCard, Pill, RailSection } from '@/registry/blocks/context-kit'
import { cn } from '@/lib/utils'

export interface ContextStoriesProps {
  /** carousel: blue story cards with pixel icons. logos: a scrolling strip of made-up wordmarks. trust: three cards with pixel badges. */
  variant?: 'carousel' | 'logos' | 'trust'
  title?: string
  description?: string
  ctaLabel?: string
  rails?: boolean
  animate?: boolean
  className?: string
}

/** A 7x7 pixel icon from a seed, mirrored so it reads as a symbol. */
function PixelIcon({ seed, className }: { seed: number; className?: string }) {
  const cells = []
  for (let y = 0; y < 7; y++)
    for (let x = 0; x < 4; x++) {
      const s = Math.sin(seed * 12.9 + x * 78.2 + y * 37.7) * 43758.5
      if (s - Math.floor(s) > 0.45) {
        cells.push(<rect key={`${x}-${y}`} x={x} y={y} width={0.86} height={0.86} />)
        if (x < 3) cells.push(<rect key={`m${x}-${y}`} x={6 - x} y={y} width={0.86} height={0.86} />)
      }
    }
  return (
    <svg viewBox="0 0 7 7" className={cn('size-14', className)} fill="currentColor" aria-hidden>
      {cells}
    </svg>
  )
}

const STORIES = [
  ['Oct 14', 'Northwind', 'Rebuilt a marketing site from six blocks in a weekend, then themed it with one accent change.'],
  ['Sep 30', 'Paperlane', 'Swapped a hand-rolled navbar for a library one and dropped two hundred lines of CSS.'],
  ['Sep 12', 'Tidepool', 'Shipped dark mode across every page by moving to shared tokens.'],
  ['Aug 27', 'Kiln & Co', 'Prototyped three landing pages in an afternoon to test which one converted.'],
  ['Aug 03', 'Lumen Labs', 'Used the registry from their editor to pull blocks straight into a new repo.'],
]

const WORDMARKS = ['northwind', 'PAPERLANE', 'tidepool', 'Kiln&Co', 'lumen/labs', 'ORCHARD', 'driftwood', 'Atlas.', 'quarry']

function Carousel({ animate }: { animate: boolean }) {
  const ref = useRef<HTMLDivElement>(null)
  const scroll = (dir: number) => ref.current?.scrollBy({ left: dir * 280, behavior: animate ? 'smooth' : 'auto' })
  return (
    <>
      <div ref={ref} className="mt-10 flex snap-x snap-mandatory gap-3 overflow-x-auto pb-2 [scrollbar-width:none]">
        {STORIES.map(([date, name, body], i) => (
          <article key={name} className="group flex w-64 shrink-0 snap-start flex-col rounded-xl bg-(--cx-blue) p-5 text-white">
            <div className="grid h-24 place-items-center rounded-lg" style={{ backgroundImage: 'radial-gradient(rgb(255 255 255/0.22) 1px, transparent 1.2px)', backgroundSize: '7px 7px' }}>
              <PixelIcon seed={i + 3} className="text-white transition-transform duration-500 group-hover:scale-110" />
            </div>
            <p className="mt-5 text-[11px] text-white/70">{date}</p>
            <h3 className="mt-1 text-[18px] font-light">{name}</h3>
            <p className="mt-2 line-clamp-3 text-[12.5px] leading-relaxed text-white/80">{body}</p>
            <a href="#" className="mt-5 inline-flex w-fit items-center gap-1 rounded-full border border-white/40 px-3 py-1 text-[12px] transition-colors hover:bg-white/10">
              Read their story <Arrow />
            </a>
          </article>
        ))}
      </div>
      <div className="mt-4 flex justify-center gap-2">
        {[-1, 1].map((d) => (
          <button key={d} type="button" aria-label={d < 0 ? 'Previous' : 'Next'} onClick={() => scroll(d)} className="grid size-8 cursor-pointer place-items-center rounded-full border border-(--cx-line) transition-colors hover:border-(--cx-blue) hover:text-(--cx-blue)">
            <Arrow className={cn(d < 0 && 'rotate-180')} />
          </button>
        ))}
      </div>
    </>
  )
}

/** Context social proof section in three variants. */
export function ContextStories({
  variant = 'carousel',
  title = 'How teams *shipped faster* with shinUI',
  description = 'From weekend projects to product launches, built from the same blocks you can install today.',
  ctaLabel = 'See all stories',
  rails = true,
  animate = true,
  className,
}: ContextStoriesProps) {
  const head = (
    <div className="flex flex-col items-center text-center">
      <h2 className="max-w-xl text-[clamp(1.8rem,3.6vw,2.6rem)] leading-[1.1] font-light tracking-[-0.03em] text-balance">
        <Accent text={title} />
      </h2>
      {description && <p className="mt-4 max-w-md text-[15px] leading-relaxed text-(--cx-soft)">{description}</p>}
      {ctaLabel && (
        <Pill variant="blue" className="mt-6">
          {ctaLabel}
        </Pill>
      )}
    </div>
  )

  let body
  if (variant === 'logos') {
    body = (
      <div className="flex flex-col items-stretch gap-6 px-6 py-10 md:flex-row md:items-center md:px-10">
        <p className="shrink-0 text-[13px] leading-snug text-(--cx-soft) md:w-48">
          Building pages for <span className="text-(--cx-blue)">teams of every size.</span>
        </p>
        <div className="relative overflow-hidden [mask-image:linear-gradient(90deg,transparent,black_12%,black_88%,transparent)]">
          <div className={cn('flex w-max', animate && 'cx-anim [animation:cx-marquee_36s_linear_infinite]')}>
            {[...WORDMARKS, ...WORDMARKS].map((w, i) => (
              <span key={i} className="flex h-14 w-40 shrink-0 items-center justify-center border-l border-(--cx-line) text-[19px] font-semibold tracking-[-0.03em] text-(--cx-ink)/55">
                {w}
              </span>
            ))}
          </div>
        </div>
      </div>
    )
  } else if (variant === 'trust') {
    body = (
      <div className="px-6 py-16 md:px-10 md:py-20">
        <div className="flex flex-wrap items-end justify-between gap-4">
          <h2 className="text-[clamp(1.8rem,3.6vw,2.4rem)] font-light tracking-[-0.03em]">
            <Accent text="Built to be *trusted*." />
          </h2>
          <Pill variant="blue">Read the policy</Pill>
        </div>
        <div className="mt-10 grid gap-3 md:grid-cols-3">
          {[
            ['MIT licensed', 'Use any block in personal or commercial work. Credit is welcome, never required.', 'View license'],
            ['Accessible by default', 'Landmarks, focus rings, labels and contrast are checked on every block.', 'See the checklist'],
            ['No tracking', 'Blocks never phone home. What you install is exactly what you read.', 'How it works'],
          ].map(([t, b, cta], i) => (
            <DoubleCard key={t} innerClassName="flex flex-col gap-3">
              <PixelIcon seed={i + 11} className="size-10 text-(--cx-blue)" />
              <h3 className="mt-2 text-[15px] font-medium">{t}</h3>
              <p className="text-[13px] leading-relaxed text-(--cx-soft)">{b}</p>
              <Pill variant="blue" className="mt-auto h-8 w-fit text-[12px]">
                {cta}
              </Pill>
            </DoubleCard>
          ))}
        </div>
      </div>
    )
  } else {
    body = (
      <div className="px-6 py-16 md:px-10 md:py-20">
        {head}
        <Carousel animate={animate} />
      </div>
    )
  }

  return <ContextRoot className={cn('w-full', className)}>{rails ? <RailSection>{body}</RailSection> : <div className="mx-auto max-w-6xl">{body}</div>}</ContextRoot>
}

More in Blocks