{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ecommerce-08",
  "type": "registry:block",
  "description": "Three-column product comparison table with highlighted popular model, feature checks and add-to-cart row.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/ecommerce/ecommerce-08.tsx",
      "content": "import {\n  Check,\n  Minus,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { cn } from \"@workspace/ui/lib/utils\"\nimport { IMac } from \"@/registry/designali/ui/apple/imac\"\nimport { IPhone } from \"@/registry/designali/ui/apple/iphone\"\nimport { Macbook } from \"@/registry/designali/ui/apple/macbook\"\n\nconst models = [\n  { name: \"Designali Solo\", price: 49, tag: \"\" },\n  { name: \"Designali Pro\", price: 149, tag: \"Most popular\" },\n  { name: \"Designali Studio\", price: 349, tag: \"\" },\n]\n\nconst rows: { label: string; values: (string | boolean)[] }[] = [\n  { label: \"Templates\", values: [\"1 template\", \"All templates\", \"All templates\"] },\n  { label: \"Seats\", values: [\"1 seat\", \"1 seat\", \"10 seats\"] },\n  { label: \"460+ blocks\", values: [false, true, true] },\n  { label: \"Designali Icons Pro\", values: [false, true, true] },\n  { label: \"Figma files\", values: [\"Template only\", \"Included\", \"Included, editable\"] },\n  { label: \"Projects\", values: [\"1 project\", \"Unlimited\", \"Unlimited\"] },\n  { label: \"Call with Ali Imam\", values: [false, false, true] },\n  { label: \"Free updates\", values: [\"1 year\", \"2 years\", \"Lifetime\"] },\n]\n\nfunction Device({ index }: { index: number }) {\n  const screen = (\n    <img src=\"/images/templates/design-agency.jpg\" alt=\"\" className=\"size-full object-cover object-top\" />\n  )\n  return (\n    <div className=\"mx-auto flex aspect-square w-full max-w-36 items-end justify-center\">\n      {index === 0 && (\n        <IPhone size=\"sm\" color=\"silver\" className=\"h-full! max-w-full\">\n          {screen}\n        </IPhone>\n      )}\n      {index === 1 && (\n        <Macbook variant=\"macbook-pro\" color=\"silver\" size=\"sm\" className=\"w-full! max-w-full\">\n          {screen}\n        </Macbook>\n      )}\n      {index === 2 && (\n        <IMac size=\"sm\" color=\"silver\" className=\"w-full! max-w-full\">\n          {screen}\n        </IMac>\n      )}\n    </div>\n  )\n}\n\nexport default function Ecommerce08() {\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=\"text-center\">\n          <h2 className=\"text-3xl font-medium tracking-tight md:text-4xl\">Compare Designali licenses</h2>\n          <p className=\"mt-2 text-sm text-muted-foreground\">\n            Every license includes Next.js, React and Tailwind CSS source code and a 14-day refund window.\n          </p>\n        </div>\n\n        <div className=\"mt-10 overflow-x-auto\">\n          <table className=\"w-full min-w-[640px] border-collapse text-sm\">\n            <thead>\n              <tr>\n                <th className=\"w-1/4\" />\n                {models.map((m, index) => (\n                  <th\n                    key={m.name}\n                    scope=\"col\"\n                    className={cn(\n                      \"w-1/4 border-x border-t border-transparent p-4 align-bottom font-normal\",\n                      m.tag && \"border-border bg-muted/40\"\n                    )}\n                  >\n                    {m.tag ? (\n                      <span className=\"mb-3 inline-block bg-primary px-2 py-0.5 text-[10px] tracking-wide text-primary-foreground uppercase\">\n                        {m.tag}\n                      </span>\n                    ) : (\n                      <span className=\"mb-3 inline-block h-5\" />\n                    )}\n                    <Device index={index} />\n                    <p className=\"mt-4 font-medium\">{m.name}</p>\n                    <p className=\"mt-1 text-muted-foreground tabular-nums\">${m.price}</p>\n                  </th>\n                ))}\n              </tr>\n            </thead>\n            <tbody>\n              {rows.map((row) => (\n                <tr key={row.label} className=\"border-b border-border\">\n                  <th scope=\"row\" className=\"py-3 pr-4 text-left font-normal text-muted-foreground\">\n                    {row.label}\n                  </th>\n                  {row.values.map((v, i) => (\n                    <td\n                      key={i}\n                      className={cn(\"border-x border-transparent px-4 py-3 text-center\", models[i]?.tag && \"border-border bg-muted/40\")}\n                    >\n                      {typeof v === \"boolean\" ? (\n                        v ? (\n                          <Check className=\"mx-auto size-4\" aria-label=\"Yes\" />\n                        ) : (\n                          <Minus className=\"mx-auto size-4 text-muted-foreground/50\" aria-label=\"No\" />\n                        )\n                      ) : (\n                        v\n                      )}\n                    </td>\n                  ))}\n                </tr>\n              ))}\n              <tr>\n                <td />\n                {models.map((m) => (\n                  <td\n                    key={m.name}\n                    className={cn(\"border-x border-b border-transparent p-4\", m.tag && \"border-border bg-muted/40\")}\n                  >\n                    <Button className=\"w-full\" variant={m.tag ? \"default\" : \"outline\"}>\n                      Add to cart\n                    </Button>\n                  </td>\n                ))}\n              </tr>\n            </tbody>\n          </table>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "900px"
  },
  "categories": [
    "ecommerce"
  ]
}