{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "relay-carousel-speakers-demo",
  "type": "registry:block",
  "title": "Relay Carousel: Conference Speakers",
  "description": "Testimonial Carousel example, Conference Speakers: A speaker lineup with each talk's line in a serif through `quoteClassName`. The schedule under the heading follows the lead through `index` and `onIndexChange`, and picking a time moves the strip the short way round. A take on the carousel (slider). Fits testimonials, team, careers, events and features sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "testimonials",
    "team",
    "careers",
    "events",
    "features",
    "carousel",
    "motion"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/relay-carousel#relay-carousel-speakers-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/relay-carousel.json"
  ],
  "files": [
    {
      "path": "components/relay-carousel-speakers-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\nimport { RelayCarousel, RelayCarouselItem } from \"@/components/ui/relay-carousel\";\n\nconst talks = [\n  {\n    name: \"Ana Duarte\",\n    role: \"Head of Design, Tinta\",\n    day: \"Thu\",\n    time: \"10:00\",\n    title: \"Designing for the second visit\",\n    quote:\n      \"The first visit is a demo. The second one is the product, and that's where most of us stop designing.\",\n    photo: \"1679579664878-2c025e3f87b0\",\n    alt: \"A speaker with a headset microphone gesturing on a pink-lit stage\",\n  },\n  {\n    name: \"Kwame Asante\",\n    role: \"CTO, Okto\",\n    day: \"Thu\",\n    time: \"11:30\",\n    title: \"Boring infrastructure, on purpose\",\n    quote:\n      \"Every clever system I've built has paged me at three in the morning. The boring ones keep running while I sleep.\",\n    photo: \"1731395157985-76af28b68afa\",\n    alt: \"A speaker in a varsity jacket talking into a handheld microphone\",\n  },\n  {\n    name: \"Mei Lin\",\n    role: \"Research Lead, Northwind\",\n    day: \"Thu\",\n    time: \"14:00\",\n    title: \"What people do when nobody's watching\",\n    quote:\n      \"Interviews tell you what people remember. Session notes tell you what they did, and the two rarely agree.\",\n    photo: \"1772419216340-fd8abb4f55de\",\n    alt: \"A speaker with a handheld microphone at a lectern against a dark backdrop\",\n  },\n  {\n    name: \"Jonas Berg\",\n    role: \"Founder, Field & Fold\",\n    day: \"Thu\",\n    time: \"16:30\",\n    title: \"Pricing a tool for small shops\",\n    quote:\n      \"Small shops don't want a cheaper plan. They want a price they can explain to their accountant in one sentence.\",\n    photo: \"1575707751065-42256084fbb7\",\n    alt: \"A speaker in a navy blazer mid-sentence against warm event lights\",\n  },\n  {\n    name: \"Oliver Grant\",\n    role: \"Principal Engineer, Northwind\",\n    day: \"Fri\",\n    time: \"09:30\",\n    title: \"Accessibility is a performance problem\",\n    quote:\n      \"A page that waits on twelve scripts before it answers a screen reader isn't slow for some people. It's broken for them.\",\n    photo: \"1762158007969-eb58e74ee3d3\",\n    alt: \"A speaker in glasses with his arms open wide at a podium\",\n  },\n  {\n    name: \"Ravi Menon\",\n    role: \"Motion Designer, Tinta\",\n    day: \"Fri\",\n    time: \"11:00\",\n    title: \"Motion with a job to do\",\n    quote:\n      \"Animation earns its place when it explains where something went. The rest is a loading spinner in disguise.\",\n    photo: \"1769755409608-e61191208f91\",\n    alt: \"A speaker in a black blazer holding a microphone on a dark stage\",\n  },\n];\n\nconst photo = (id: string) =>\n  `https://images.unsplash.com/photo-${id}?auto=format&fit=crop&w=880&h=840&q=80`;\n\nexport function RelayCarouselSpeakersDemo() {\n  const [index, setIndex] = React.useState(0);\n  const talk = talks[index];\n\n  return (\n    <div className=\"flex min-h-[var(--demo-height,auto)] w-full flex-col justify-center overflow-hidden rounded-2xl border border-stone-200 bg-stone-100 py-14 text-stone-950 sm:py-20 dark:border-stone-800 dark:bg-stone-950 dark:text-stone-50\">\n      <RelayCarousel\n        aria-labelledby=\"relay-speakers-heading\"\n        index={index}\n        onIndexChange={setIndex}\n        heading={\n          <div>\n            <h2\n              id=\"relay-speakers-heading\"\n              className=\"text-[2rem] leading-[1.02] font-semibold tracking-[-0.035em] text-balance @2xl:text-5xl\"\n            >\n              On stage at{\" \"}\n              <br />\n              <span className=\"text-stone-400 dark:text-stone-500\">Northwind Live.</span>\n            </h2>\n            <p className=\"mt-5 max-w-sm text-sm leading-6 text-stone-600 dark:text-stone-400\">\n              <span className=\"font-medium text-stone-950 tabular-nums dark:text-stone-50\">\n                {talk.day} {talk.time}\n              </span>{\" \"}\n              · {talk.title}\n            </p>\n            <ol aria-label=\"Schedule\" className=\"mt-4 flex flex-wrap items-center gap-1.5\">\n              {talks.map((item, i) => (\n                <li key={item.name} className=\"flex items-center gap-1.5\">\n                  {item.day !== talks[i - 1]?.day && (\n                    <span\n                      aria-hidden\n                      className={cn(\n                        \"pr-1 text-xs font-medium text-stone-500 dark:text-stone-400\",\n                        i > 0 && \"pl-2.5\",\n                      )}\n                    >\n                      {item.day}\n                    </span>\n                  )}\n                  <button\n                    type=\"button\"\n                    aria-current={i === index ? \"true\" : undefined}\n                    aria-label={`${item.day} ${item.time}, ${item.name}`}\n                    onClick={() => setIndex(i)}\n                    className={cn(\n                      \"h-8 cursor-pointer rounded-full border px-3 text-xs font-medium tabular-nums transition-colors duration-200\",\n                      \"outline-stone-950 focus-visible:outline-2 focus-visible:outline-offset-2 dark:outline-stone-50\",\n                      i === index\n                        ? \"border-stone-950 bg-stone-950 text-stone-50 dark:border-stone-50 dark:bg-stone-50 dark:text-stone-950\"\n                        : \"border-stone-300 text-stone-600 hover:border-stone-500 hover:text-stone-950 dark:border-stone-700 dark:text-stone-400 dark:hover:border-stone-500 dark:hover:text-stone-50\",\n                    )}\n                  >\n                    {item.time}\n                  </button>\n                </li>\n              ))}\n            </ol>\n          </div>\n        }\n      >\n        {talks.map((item) => (\n          <RelayCarouselItem\n            key={item.name}\n            name={item.name}\n            role={item.role}\n            label={`${item.day} ${item.time} · Main stage`}\n            quote={item.quote}\n            quoteClassName=\"font-serif font-normal tracking-normal text-[clamp(1.0625rem,calc(var(--relay-l)_*_0.056),1.4375rem)] leading-[1.32]\"\n            image={photo(item.photo)}\n            alt={item.alt}\n          />\n        ))}\n      </RelayCarousel>\n    </div>\n  );\n}\n"
    }
  ]
}