{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "podcast-01",
  "title": "Podcast Episodes",
  "author": "VenusUI",
  "description": "A podcast page with expandable episodes to save and a rotary guest file.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "https://venusui.com/r/rolodex.json"
  ],
  "files": [
    {
      "path": "registry/default/blocks/podcast-01/components/podcast-01.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Bookmark, ChevronDown } from \"lucide-react\"\n\nimport { Button } from \"@/components/ui/button\"\nimport { cn } from \"@/lib/utils\"\nimport { Rolodex, type RolodexCard } from \"@/registry/default/ui/rolodex\"\n\n// Photo: Unsplash (free under the Unsplash License). The show and guests are made up.\nconst COVER = \"https://images.unsplash.com/photo-1478737270239-2f02b77fc618?w=640&h=640&fit=crop&auto=format&q=80\"\n\nconst episodes = [\n  { number: 42, title: \"The last lighthouse keeper\", date: \"Nov 12\", length: \"48 min\", notes: \"After forty years on the rock, Elias Brandt talks about solitude, storms and the day the lamp went automatic.\" },\n  { number: 41, title: \"Bread before sunrise\", date: \"Nov 5\", length: \"36 min\", notes: \"Why a village baker still starts at 3 am, and what a sourdough culture passed down since 1952 tastes like.\" },\n  { number: 40, title: \"Mapping the deep\", date: \"Oct 29\", length: \"54 min\", notes: \"Oceanographer Lena Okafor explains how little of the sea floor we have seen, and how that is changing.\" },\n  { number: 39, title: \"A piano in the desert\", date: \"Oct 22\", length: \"41 min\", notes: \"One tuner, one truck and four hundred kilometres of dirt road to keep a town's only piano in key.\" },\n]\n\nconst guests: RolodexCard[] = [\n  { name: \"Amara Diallo\", role: \"Radio producer\", note: \"Episode 37\" },\n  { name: \"Elias Brandt\", role: \"Lighthouse keeper\", note: \"Episode 42\" },\n  { name: \"Hugo Martin\", role: \"Master baker\", note: \"Episode 41\" },\n  { name: \"Lena Okafor\", role: \"Oceanographer\", note: \"Episode 40\" },\n  { name: \"Noor Rahman\", role: \"Piano tuner\", note: \"Episode 39\" },\n  { name: \"Sofia Lindgren\", role: \"Glacier guide\", note: \"Episode 38\" },\n]\n\n/** A podcast page: show details, expandable episodes to save, and the guest file. */\nexport function Podcast01() {\n  const [open, setOpen] = React.useState(42)\n  const [saved, setSaved] = React.useState<number[]>([])\n\n  return (\n    <section aria-labelledby=\"podcast-01-title\" className=\"py-24 sm:py-28\">\n      <div className=\"mx-auto grid max-w-6xl gap-12 px-4 sm:px-6 lg:grid-cols-[minmax(0,1fr)_minmax(0,24rem)] lg:gap-16\">\n        <div className=\"min-w-0\">\n          <div className=\"flex flex-col gap-6 sm:flex-row sm:items-center\">\n            <img src={COVER} alt=\"A studio microphone in a dark room\" className=\"size-36 shrink-0 rounded-xl bg-muted object-cover\" />\n            <div>\n              <p className=\"text-sm text-muted-foreground\">A weekly podcast</p>\n              <h2 id=\"podcast-01-title\" className=\"mt-1 text-3xl font-semibold tracking-tight sm:text-4xl\">\n                The Long Way Round\n              </h2>\n              <p className=\"mt-2 leading-7 text-muted-foreground\">Unhurried conversations with people who do one thing, far from anywhere.</p>\n              <Button asChild className=\"mt-4\">\n                <a href=\"#\">Follow the show</a>\n              </Button>\n            </div>\n          </div>\n\n          <ul className=\"mt-10 border-t\">\n            {episodes.map((episode) => {\n              const expanded = open === episode.number\n              const isSaved = saved.includes(episode.number)\n              return (\n                <li key={episode.number} className=\"border-b\">\n                  <div className=\"flex items-center gap-1\">\n                    <button\n                      type=\"button\"\n                      aria-expanded={expanded}\n                      aria-controls={`podcast-01-${episode.number}`}\n                      onClick={() => setOpen(expanded ? 0 : episode.number)}\n                      className=\"flex min-w-0 flex-1 items-center gap-3 rounded-md py-4 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50\"\n                    >\n                      <span className=\"font-mono text-xs text-muted-foreground tabular-nums\">{episode.number}</span>\n                      <span className=\"min-w-0 flex-1\">\n                        <span className=\"block truncate font-medium\">{episode.title}</span>\n                        <span className=\"block text-sm text-muted-foreground\">\n                          {episode.date} · {episode.length}\n                        </span>\n                      </span>\n                      <ChevronDown aria-hidden=\"true\" className={cn(\"size-4 shrink-0 text-muted-foreground transition-transform motion-reduce:transition-none\", expanded && \"rotate-180\")} />\n                    </button>\n                    <Button\n                      type=\"button\"\n                      variant=\"ghost\"\n                      size=\"icon\"\n                      aria-pressed={isSaved}\n                      aria-label={`Save ${episode.title}`}\n                      onClick={() => setSaved(isSaved ? saved.filter((n) => n !== episode.number) : [...saved, episode.number])}\n                    >\n                      <Bookmark aria-hidden=\"true\" className={cn(\"size-4\", isSaved && \"fill-current\")} />\n                    </Button>\n                  </div>\n                  <p id={`podcast-01-${episode.number}`} hidden={!expanded} className=\"pr-10 pb-4 pl-7 text-sm leading-6 text-muted-foreground\">\n                    {episode.notes}\n                  </p>\n                </li>\n              )\n            })}\n          </ul>\n        </div>\n        <aside aria-labelledby=\"podcast-01-guests\">\n          <h3 id=\"podcast-01-guests\" className=\"mb-4 font-medium\">\n            Guest file\n          </h3>\n          <Rolodex cards={guests} defaultIndex={1} />\n        </aside>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "content"
  ],
  "type": "registry:block"
}