{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ecommerce-18",
  "type": "registry:block",
  "description": "Product spotlight with recolourable SVG speaker, finish swatches, highlight icons and overview/specs tabs.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "tabs"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/ecommerce/ecommerce-18.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Code,\n  Download,\n  Layers,\n  Zap,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport {\n  Tabs,\n  TabsContent,\n  TabsList,\n  TabsTrigger,\n} from \"@workspace/ui/components/tabs\"\nimport { cn } from \"@workspace/ui/lib/utils\"\nimport { Macbook } from \"@/registry/designali/ui/apple/macbook\"\n\nconst finishes = [\n  { id: \"graphite\", label: \"Outline\", body: \"black\", accent: \"var(--primary)\" },\n  { id: \"sage\", label: \"Duotone\", body: \"var(--chart-3)\", accent: \"var(--chart-1)\" },\n  { id: \"clay\", label: \"Solid\", body: \"var(--primary)\", accent: \"white\" },\n]\n\nconst highlights = [\n  { icon: Layers, label: \"4,000+ icons\" },\n  { icon: Zap, label: \"Tree-shakeable\" },\n  { icon: Code, label: \"React + SVG\" },\n  { icon: Download, label: \"Figma file\" },\n]\n\nconst specs = [\n  { label: \"Icons\", value: \"4,000+ in outline and solid\" },\n  { label: \"Formats\", value: \"SVG, React, Figma\" },\n  { label: \"Install\", value: \"npm i @designali/icons\" },\n  { label: \"Grid\", value: \"24 x 24 px, 1.5px stroke\" },\n  { label: \"Pairs with\", value: \"@designali/logos and @designali/vectors\" },\n]\n\nconst inBox = [\"@designali/icons package\", \"Figma library\", \"SVG source files\", \"Quick start guide\"]\n\nexport default function Ecommerce18() {\n  const [finish, setFinish] = useState(finishes[0]!)\n\n  return (\n    <section className=\"w-full bg-background py-16 text-foreground md:py-24\">\n      <div className=\"mx-auto max-w-6xl px-6\">\n        <div className=\"grid gap-10 border border-border lg:grid-cols-2\">\n          <div className=\"relative flex min-h-80 items-center justify-center overflow-hidden bg-muted p-10 lg:min-h-[520px]\">\n            <div\n              aria-hidden=\"true\"\n              className=\"absolute size-[70%] rounded-full opacity-40 blur-3xl transition-colors duration-500\"\n              style={{ background: finish.body }}\n            />\n            <Macbook variant=\"macbook-pro\" color=\"black\" size=\"sm\" className=\"relative w-full! max-w-md drop-shadow-2xl\">\n              <div className=\"relative size-full\">\n                <img src=\"/images/templates/dalim-icons-old.jpg\" alt=\"Designali Icons Pro preview\" className=\"size-full object-cover object-top\" />\n                <div\n                  aria-hidden=\"true\"\n                  className=\"absolute inset-0 opacity-25 mix-blend-color transition-colors duration-500\"\n                  style={{ background: finish.accent }}\n                />\n              </div>\n            </Macbook>\n          </div>\n\n          <div className=\"p-6 pt-0 md:p-10 lg:pt-10 lg:pl-0\">\n            <p className=\"text-xs tracking-widest text-muted-foreground uppercase\">Icon pack</p>\n            <div className=\"mt-2 flex items-baseline justify-between gap-4\">\n              <h2 className=\"text-3xl font-medium tracking-tight md:text-4xl\">Designali Icons Pro</h2>\n              <span className=\"text-2xl tabular-nums\">$39</span>\n            </div>\n\n            <div className=\"mt-6\">\n              <p className=\"text-sm\">\n                Finish: <span className=\"text-muted-foreground\">{finish.label}</span>\n              </p>\n              <div className=\"mt-3 flex gap-3\">\n                {finishes.map((f) => (\n                  <button\n                    key={f.id}\n                    type=\"button\"\n                    aria-label={f.label}\n                    aria-pressed={finish.id === f.id}\n                    onClick={() => setFinish(f)}\n                    className={cn(\n                      \"size-9 rounded-full ring-offset-2 ring-offset-background transition-shadow\",\n                      finish.id === f.id ? \"ring-2 ring-foreground\" : \"ring-1 ring-border\"\n                    )}\n                    style={{ background: f.body }}\n                  />\n                ))}\n              </div>\n            </div>\n\n            <ul className=\"mt-6 grid grid-cols-2 gap-px border border-border bg-border sm:grid-cols-4\">\n              {highlights.map((h) => (\n                <li key={h.label} className=\"flex flex-col items-center gap-2 bg-background p-3 text-center text-xs\">\n                  <h.icon className=\"size-4\" />\n                  {h.label}\n                </li>\n              ))}\n            </ul>\n\n            <Tabs defaultValue=\"overview\" className=\"mt-8\">\n              <TabsList variant=\"line\" className=\"w-full justify-start gap-5 border-b border-border\">\n                <TabsTrigger value=\"overview\" className=\"flex-none px-0 text-sm\">Overview</TabsTrigger>\n                <TabsTrigger value=\"specs\" className=\"flex-none px-0 text-sm\">Specs</TabsTrigger>\n                <TabsTrigger value=\"box\" className=\"flex-none px-0 text-sm\">What&apos;s included</TabsTrigger>\n              </TabsList>\n              <TabsContent value=\"overview\" className=\"pt-4 text-sm leading-6 text-muted-foreground\">\n                Designali Icons Pro is built for design engineers. Lucide-compatible names,\n                a Figma library that matches the code, and enough icons for every\n                product you ship.\n              </TabsContent>\n              <TabsContent value=\"specs\" className=\"pt-2 text-sm\">\n                <dl className=\"divide-y divide-border\">\n                  {specs.map((s) => (\n                    <div key={s.label} className=\"flex justify-between gap-4 py-2.5\">\n                      <dt className=\"text-muted-foreground\">{s.label}</dt>\n                      <dd className=\"text-right\">{s.value}</dd>\n                    </div>\n                  ))}\n                </dl>\n              </TabsContent>\n              <TabsContent value=\"box\" className=\"pt-4 text-sm\">\n                <ul className=\"space-y-2\">\n                  {inBox.map((item) => (\n                    <li key={item} className=\"flex items-center gap-3\">\n                      <span className=\"size-1.5 bg-foreground\" />\n                      {item}\n                    </li>\n                  ))}\n                </ul>\n              </TabsContent>\n            </Tabs>\n\n            <Button size=\"lg\" className=\"mt-8 w-full\">\n              Add {finish.label} Designali Icons to cart\n            </Button>\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "900px"
  },
  "categories": [
    "ecommerce"
  ]
}