{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "golden-hour-features",
  "type": "registry:block",
  "title": "Golden Hour Features",
  "description": "Feature Section built with Golden Hour (sunset scene background): four moments of a day, each lit for its hour. A take on the animated background (backdrop). A feature section for a trip planner that plans around the light: four moments of one day (first light, midday, golden hour, after dark), each on a Golden Hour scene lit for its hour, with the plan's stop on a frosted card. Rest on a moment and its light moves on most of an hour.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "blocks",
    "feature-sections",
    "features",
    "animated-background"
  ],
  "docs": "Live preview and the components it's built with: https://keyframeui.com/blocks/feature-sections/golden-hour-features",
  "registryDependencies": [
    "https://keyframeui.com/r/golden-hour.json",
    "utils"
  ],
  "files": [
    {
      "path": "components/golden-hour-features.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { GoldenHour } from \"@/components/ui/golden-hour\";\nimport { cn } from \"@/lib/utils\";\n\n/* ── Content ─────────────────────────────────────────────────\n * Everything you'd change to make the section yours: the copy\n * and the four moments of a planned day, each with the hour its\n * scene is lit for and the hills it's drawn with (`seed`).\n * ─────────────────────────────────────────────────────────── */\n\nconst EYEBROW = \"Plans around the light\";\nconst HEADLINE = \"Every day is planned around sunrise and sunset.\";\nconst SUBLINE =\n  \"Meander knows when the light is best, when it's gone and when the last train leaves, and builds each day around all three.\";\n\ntype Moment = {\n  light: string;\n  time: string;\n  title: string;\n  detail: string;\n  hour: number;\n  seed: number;\n  horizon: number;\n  road?: boolean;\n  wide?: boolean;\n};\n\nconst MOMENTS: Moment[] = [\n  {\n    light: \"First light\",\n    time: \"06:52\",\n    title: \"Sunrise from the north ridge\",\n    detail: \"Leave the inn at 06:10. Forty minutes on the marked trail, headlamp optional.\",\n    hour: 6.5,\n    seed: 11,\n    horizon: 0.52,\n    wide: true,\n  },\n  {\n    light: \"Midday\",\n    time: \"12:30\",\n    title: \"Lunch where the boatmen eat\",\n    detail: \"Table for two at Casa Rio, booked.\",\n    hour: 12.6,\n    seed: 5,\n    horizon: 0.5,\n    road: false,\n  },\n  {\n    light: \"Golden hour\",\n    time: \"17:50\",\n    title: \"The old mill at its best\",\n    detail: \"Light is warmest until 18:20. Twelve minutes by car.\",\n    hour: 17.7,\n    seed: 8,\n    horizon: 0.5,\n    road: false,\n  },\n  {\n    light: \"After dark\",\n    time: \"19:48\",\n    title: \"Last train back, then the stars\",\n    detail: \"Platform 2 at Vila Brava. Clear skies forecast from 21:00.\",\n    hour: 21.4,\n    seed: 2,\n    horizon: 0.52,\n    wide: true,\n  },\n];\n\n/** Hours the light moves on while a visitor rests on a moment. */\nconst LINGER = 0.8;\n\n/* ── Section ─────────────────────────────────────────────── */\n\nexport function GoldenHourFeatures() {\n  const [resting, setResting] = React.useState<number | null>(null);\n\n  return (\n    <section\n      aria-labelledby=\"golden-hour-features-title\"\n      className=\"bg-[#f3f1ec] text-zinc-950 dark:bg-zinc-950 dark:text-white\"\n    >\n      <div className=\"mx-auto max-w-6xl px-6 py-24 sm:py-32\">\n        <div className=\"max-w-2xl\">\n          <p className=\"text-sm font-medium text-zinc-500 dark:text-zinc-400\">{EYEBROW}</p>\n          <h2\n            id=\"golden-hour-features-title\"\n            className=\"mt-3 text-4xl/[1.05] font-medium tracking-[-0.035em] text-balance sm:text-5xl/[1.02]\"\n          >\n            {HEADLINE}\n          </h2>\n          <p className=\"mt-5 max-w-xl text-base/7 text-pretty text-zinc-600 sm:text-lg/8 dark:text-zinc-400\">{SUBLINE}</p>\n        </div>\n\n        <ul className=\"mt-14 grid gap-4 md:grid-cols-5\">\n          {MOMENTS.map((moment, index) => (\n            <li\n              key={moment.title}\n              className={cn(moment.wide ? \"md:col-span-3\" : \"md:col-span-2\")}\n              onPointerEnter={(event) => event.pointerType === \"mouse\" && setResting(index)}\n              onPointerLeave={() => setResting((current) => (current === index ? null : current))}\n              onFocus={() => setResting(index)}\n              onBlur={() => setResting((current) => (current === index ? null : current))}\n            >\n              <GoldenHour\n                time={moment.hour + (resting === index ? LINGER : 0)}\n                seed={moment.seed}\n                horizon={moment.horizon}\n                road={moment.road ?? true}\n                className=\"flex h-80 flex-col justify-between rounded-3xl p-4 sm:h-96 sm:p-5\"\n              >\n                <p className=\"self-start rounded-full bg-zinc-950/25 px-3 py-1 text-xs font-medium text-white ring-1 ring-white/20 backdrop-blur-xl\">\n                  {moment.light}\n                </p>\n                <a\n                  href=\"#plan\"\n                  className=\"block max-w-sm rounded-2xl bg-white/80 p-4 text-zinc-950 shadow-sm ring-1 ring-white/60 backdrop-blur-xl transition-[background-color] duration-200 outline-none hover:bg-white/90 focus-visible:ring-2 focus-visible:ring-zinc-950 dark:bg-zinc-950/60 dark:text-white dark:ring-white/10 dark:hover:bg-zinc-950/70 dark:focus-visible:ring-white\"\n                >\n                  <span className=\"flex items-baseline gap-2\">\n                    <span className=\"text-sm font-semibold tabular-nums\">{moment.time}</span>\n                    <span className=\"text-[15px] font-medium tracking-tight\">{moment.title}</span>\n                  </span>\n                  <span className=\"mt-1 block text-sm/6 text-pretty text-zinc-600 dark:text-zinc-300\">{moment.detail}</span>\n                </a>\n              </GoldenHour>\n            </li>\n          ))}\n        </ul>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}