{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "event-01",
  "title": "Festival Section",
  "author": "VenusUI",
  "description": "A festival section over a photo, with the lineup by day in tabs and a tearable ticket.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "https://venusui.com/r/event-ticket.json"
  ],
  "files": [
    {
      "path": "registry/default/blocks/event-01/components/event-01.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { CalendarDays, MapPin } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { EventTicket } from \"@/registry/default/ui/event-ticket\"\n\n// Photos: Unsplash (free under the Unsplash License). The festival and artists are made up.\nconst BACKDROP = \"https://images.unsplash.com/photo-1506157786151-b8491531f063?w=1800&h=1100&fit=crop&auto=format&q=70\"\nconst TICKET_PHOTO = \"https://images.unsplash.com/photo-1459749411175-04bf5292ceea?w=900&h=320&fit=crop&auto=format&q=75\"\n\nconst days = [\n  {\n    id: \"sat\",\n    label: \"Saturday\",\n    date: \"14 March\",\n    sets: [\n      { time: \"16:00\", artist: \"The Paper Moons\", stage: \"Garden\" },\n      { time: \"17:30\", artist: \"Ola & the Tides\", stage: \"Hall B\" },\n      { time: \"19:15\", artist: \"Kestrel Sound System\", stage: \"Garden\" },\n      { time: \"21:00\", artist: \"Mara Lune\", stage: \"Main stage\", headline: true },\n    ],\n  },\n  {\n    id: \"sun\",\n    label: \"Sunday\",\n    date: \"15 March\",\n    sets: [\n      { time: \"15:30\", artist: \"Fernway Choir\", stage: \"Hall B\" },\n      { time: \"17:00\", artist: \"Neon Orchard\", stage: \"Garden\" },\n      { time: \"18:45\", artist: \"Juniper Static\", stage: \"Main stage\" },\n      { time: \"20:45\", artist: \"Glass Harbour\", stage: \"Main stage\", headline: true },\n    ],\n  },\n]\n\n/** A festival section over a photo: dates, the lineup by day (tabs), and a ticket. Dark in both themes. */\nexport function Event01() {\n  const [active, setActive] = React.useState(0)\n  const tabRefs = React.useRef<(HTMLButtonElement | null)[]>([])\n  const baseId = React.useId()\n\n  const select = (index: number) => {\n    setActive(index)\n    tabRefs.current[index]?.focus()\n  }\n\n  return (\n    <section aria-labelledby={`${baseId}-title`} className=\"dark relative isolate overflow-hidden bg-background text-foreground\">\n      <img src={BACKDROP} alt=\"\" className=\"absolute inset-0 -z-20 size-full object-cover\" />\n      <div aria-hidden=\"true\" className=\"absolute inset-0 -z-10 bg-linear-to-b from-black/80 via-black/75 to-black/90\" />\n\n      <div className=\"mx-auto grid max-w-6xl items-center gap-12 px-4 py-24 sm:px-6 lg:grid-cols-[minmax(0,1fr)_minmax(0,1.05fr)]\">\n        <div>\n          <p className=\"text-sm font-medium text-amber-300\">Two days · four stages · one riverside venue</p>\n          <h2 id={`${baseId}-title`} className=\"mt-3 text-4xl font-semibold tracking-tight sm:text-5xl\">\n            Golden Hour Festival\n          </h2>\n          <div className=\"mt-5 flex flex-wrap gap-x-6 gap-y-2 text-sm text-white/80\">\n            <span className=\"inline-flex items-center gap-2\">\n              <CalendarDays aria-hidden=\"true\" className=\"size-4\" /> 14–15 March 2026\n            </span>\n            <span className=\"inline-flex items-center gap-2\">\n              <MapPin aria-hidden=\"true\" className=\"size-4\" /> The Roundhouse, London\n            </span>\n          </div>\n\n          <div\n            role=\"tablist\"\n            aria-label=\"Festival days\"\n            className=\"mt-10 inline-flex rounded-lg border border-white/15 bg-white/5 p-1 backdrop-blur\"\n            onKeyDown={(event) => {\n              if (event.key === \"ArrowRight\") select((active + 1) % days.length)\n              if (event.key === \"ArrowLeft\") select((active - 1 + days.length) % days.length)\n            }}\n          >\n            {days.map((day, index) => (\n              <button\n                key={day.id}\n                ref={(el) => {\n                  tabRefs.current[index] = el\n                }}\n                type=\"button\"\n                role=\"tab\"\n                id={`${baseId}-tab-${day.id}`}\n                aria-selected={active === index}\n                aria-controls={`${baseId}-panel`}\n                tabIndex={active === index ? 0 : -1}\n                onClick={() => setActive(index)}\n                className={cn(\n                  \"rounded-md px-4 py-1.5 text-sm font-medium outline-none focus-visible:ring-3 focus-visible:ring-ring/50\",\n                  active === index ? \"bg-white text-neutral-900\" : \"text-white/70 hover:text-white\"\n                )}\n              >\n                {day.label} <span className=\"font-normal opacity-60\">{day.date}</span>\n              </button>\n            ))}\n          </div>\n\n          <div id={`${baseId}-panel`} role=\"tabpanel\" aria-labelledby={`${baseId}-tab-${days[active].id}`} className=\"mt-6\">\n            <ol className=\"space-y-2\">\n              {days[active].sets.map((set) => (\n                <li\n                  key={set.artist}\n                  className={cn(\n                    \"flex items-center gap-4 rounded-xl border border-white/10 bg-white/5 px-4 py-3 backdrop-blur\",\n                    set.headline && \"border-amber-300/40 bg-amber-300/10\"\n                  )}\n                >\n                  <span className=\"w-12 font-mono text-sm text-white/60 tabular-nums\">{set.time}</span>\n                  <span className=\"flex-1 font-medium\">\n                    {set.artist}\n                    {set.headline ? <span className=\"ml-2 rounded-full bg-amber-300 px-2 py-0.5 text-[10px] font-semibold text-neutral-900 uppercase\">Headliner</span> : null}\n                  </span>\n                  <span className=\"text-sm text-white/60\">{set.stage}</span>\n                </li>\n              ))}\n            </ol>\n          </div>\n        </div>\n\n        <div className=\"flex flex-col items-center gap-4\">\n          <EventTicket\n            event=\"Golden Hour Festival: weekend pass\"\n            date=\"14–15 Mar 2026\"\n            time=\"Gates 14:00\"\n            venue=\"The Roundhouse, London\"\n            seat=\"Weekend · All stages\"\n            code=\"GHF-WKND-2026\"\n            image={{ src: TICKET_PHOTO, alt: \"A crowd with raised hands under golden stage lights\" }}\n          />\n          <p className=\"text-sm text-white/60\">Weekend passes from £89 · Drag the stub to tear it off</p>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "version": "0.1.1"
  },
  "categories": [
    "content"
  ],
  "type": "registry:block"
}