{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "photo-proof",
  "title": "Film proof",
  "description": "Compare three film stocks on the same landscape and check the framing with a thirds grid.",
  "registryDependencies": [
    "https://www.cyberspec.dev/r/recipe-layout.json",
    "https://www.cyberspec.dev/r/micro.json",
    "https://www.cyberspec.dev/r/segmented-control.json",
    "https://www.cyberspec.dev/r/switch.json"
  ],
  "files": [
    {
      "path": "registry/cyber/recipes/photo-proof.tsx",
      "content": "\"use client\"\n\nimport \"./recipe-layout.css\"\nimport { useState } from \"react\"\nimport { Corners } from \"@/registry/cyber/ui/micro\"\nimport { SegmentedControl } from \"@/registry/cyber/ui/segmented-control\"\nimport { Switch } from \"@/registry/cyber/ui/switch\"\n\nconst stocks = {\n  Dusk: [\"#ffcca0\", \"#ea7d89\", \"#575077\", \"#24233d\"],\n  Chrome: [\"#ccfffd\", \"#87c8cc\", \"#596d9c\", \"#1a3248\"],\n  Mono: [\"#f2eee4\", \"#b6b2a8\", \"#666766\", \"#282c2c\"],\n}\ntype Stock = keyof typeof stocks\n\nexport default function PhotoProof() {\n  const [stock, setStock] = useState<Stock>(\"Dusk\")\n  const [grid, setGrid] = useState(false)\n  const [sun, sky, ridge, shadow] = stocks[stock]\n\n  return (\n    <div className=\"sink-stack\">\n      <div role=\"img\" aria-label={`Two mountain ridges at sunset, printed on ${stock} stock${grid ? \" with a thirds grid\" : \"\"}`} style={{ position: \"relative\", overflow: \"hidden\", height: 140, background: `radial-gradient(circle at 68% 36%, ${sun} 0 14px, transparent 15px), linear-gradient(180deg, ${ridge}, ${sky} 78%, ${sun})` }}>\n        <div style={{ position: \"absolute\", inset: 0, background: ridge, clipPath: \"polygon(0 81%, 15% 60%, 24% 67%, 41% 33%, 55% 57%, 67% 46%, 81% 65%, 100% 41%, 100% 100%, 0 100%)\" }} />\n        <div style={{ position: \"absolute\", inset: 0, background: shadow, clipPath: \"polygon(0 69%, 11% 77%, 19% 73%, 33% 91%, 53% 66%, 61% 73%, 78% 48%, 94% 69%, 100% 64%, 100% 100%, 0 100%)\" }} />\n        {grid && <div style={{ position: \"absolute\", inset: 0, backgroundImage: \"linear-gradient(to right, #fff9 1px, transparent 1px), linear-gradient(to bottom, #fff9 1px, transparent 1px)\", backgroundSize: \"33.333% 33.333%\" }} />}\n        <Corners size={9} inset={6} style={{ color: \"white\" }} />\n      </div>\n      <SegmentedControl<Stock> label=\"Film stock\" options={[\"Dusk\", \"Chrome\", \"Mono\"]} value={stock} onValueChange={(next) => next && setStock(next)} fill />\n      <Switch label=\"Composition grid\" checked={grid} onCheckedChange={setGrid} />\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "@components/recipes/photo-proof.tsx"
    }
  ],
  "categories": [
    "recipe",
    "studio"
  ],
  "type": "registry:component"
}
