{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "comparison-section-v1",
  "title": "Comparison Section v1",
  "description": "NVIDIA, AMD, and Intel compared on the same points: products, GPU software, and who builds the chips. Every column is treated the same. Every cell is a short fact.",
  "dependencies": [
    "geist"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/new-york/blocks/comparison-section-v1/page.tsx",
      "content": "import ComparisonSectionV1 from \"./components/comparison-section-v1\"\n\nexport default function Page() {\n  return <ComparisonSectionV1 />\n}\n",
      "type": "registry:page",
      "target": "app/comparison-section-v1/page.tsx"
    },
    {
      "path": "registry/new-york/blocks/comparison-section-v1/components/comparison-section-v1.tsx",
      "content": "import { GeistSans } from \"geist/font/sans\"\n\nimport ComparisonBoard from \"./comparison-board\"\nimport { comparisonHeader } from \"../lib/comparison\"\n\nexport default function ComparisonSectionV1() {\n  return (\n    <section className={`py-16 font-sans md:py-24 ${GeistSans.className}`}>\n      <div className=\"mx-auto max-w-6xl px-6\">\n        <header className=\"max-w-2xl\">\n          <h2 className=\"text-4xl font-medium leading-[1.1] tracking-[-0.03em] text-balance text-foreground md:text-5xl\">\n            {comparisonHeader.title}\n          </h2>\n        </header>\n        <ComparisonBoard />\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/comparison-section-v1/components/comparison-section-v1.tsx"
    },
    {
      "path": "registry/new-york/blocks/comparison-section-v1/components/comparison-board.tsx",
      "content": "import {\n  groups,\n  products,\n  type ComparisonGroup,\n  type ComparisonRow,\n  type Product,\n} from \"../lib/comparison\"\n\nexport default function ComparisonBoard() {\n  return (\n    <div className=\"mt-12 overflow-x-auto md:mt-16\">\n      <div\n        role=\"table\"\n        aria-label=\"NVIDIA, AMD, and Intel\"\n        className=\"grid min-w-[44rem] grid-cols-[minmax(8.75rem,11.5rem)_repeat(3,minmax(0,1fr))] gap-x-4\"\n      >\n        <div role=\"row\" className=\"col-span-full grid grid-cols-subgrid\">\n          <div role=\"columnheader\" className=\"flex items-end pb-5\">\n            <span className=\"sr-only\">Point</span>\n            <span aria-hidden className=\"text-xs text-muted-foreground\">\n              {groups[0].label}\n            </span>\n          </div>\n          {products.map((product) => (\n            <div\n              key={product.id}\n              role=\"columnheader\"\n              className=\"px-1 pt-6 pb-5 text-foreground\"\n            >\n              <ProductIdentity product={product} />\n            </div>\n          ))}\n        </div>\n\n        {groups.map((group, groupIndex) => (\n          <GroupRows key={group.id} group={group} groupIndex={groupIndex} />\n        ))}\n      </div>\n    </div>\n  )\n}\n\nfunction GroupRows({\n  group,\n  groupIndex,\n}: {\n  group: ComparisonGroup\n  groupIndex: number\n}) {\n  const lastGroup = groupIndex === groups.length - 1\n\n  return (\n    <>\n      {groupIndex > 0 ? (\n        <div role=\"row\" className=\"col-span-full grid grid-cols-subgrid\">\n          <div\n            role=\"rowheader\"\n            className=\"flex items-end pt-10 pb-2 text-xs text-muted-foreground\"\n          >\n            {group.label}\n          </div>\n        </div>\n      ) : null}\n      {group.rows.map((row, rowIndex) => (\n        <DataRow\n          key={row.id}\n          row={row}\n          groupLabel={groupIndex === 0 && rowIndex === 0 ? group.label : undefined}\n          last={lastGroup && rowIndex === group.rows.length - 1}\n        />\n      ))}\n    </>\n  )\n}\n\nfunction DataRow({\n  row,\n  last,\n  groupLabel,\n}: {\n  row: ComparisonRow\n  last: boolean\n  groupLabel?: string\n}) {\n  return (\n    <div role=\"row\" className=\"col-span-full grid grid-cols-subgrid\">\n      <div\n        role=\"rowheader\"\n        className={\n          last\n            ? \"flex items-end pr-4 pt-4 pb-6 text-sm leading-snug font-medium text-foreground\"\n            : \"flex items-end py-4 pr-4 text-sm leading-snug font-medium text-foreground\"\n        }\n      >\n        {groupLabel ? (\n          <span className=\"sr-only\">{`${groupLabel}, ${row.criterion}`}</span>\n        ) : null}\n        {groupLabel ? <span aria-hidden>{row.criterion}</span> : row.criterion}\n      </div>\n      {products.map((product) => (\n        <div key={product.id} role=\"cell\" className={cellClass(last)}>\n          <span className=\"text-pretty\">{row.cells[product.id]}</span>\n        </div>\n      ))}\n    </div>\n  )\n}\n\nfunction cellClass(last: boolean) {\n  return [\n    \"flex items-end border-t border-border px-1 pt-4 text-sm leading-snug text-pretty text-foreground\",\n    last ? \"border-b pb-6\" : \"pb-4\",\n  ].join(\" \")\n}\n\nfunction ProductIdentity({ product }: { product: Product }) {\n  return (\n    <div>\n      <span className=\"flex h-8 items-center\">\n        <CompanyLogo product={product} />\n      </span>\n      <span className=\"sr-only\">{product.name}</span>\n    </div>\n  )\n}\n\nfunction CompanyLogo({ product }: { product: Product }) {\n  const Light = product.logoLight\n  const Dark = product.logoDark\n\n  return (\n    <span aria-hidden className=\"inline-flex items-center\">\n      <Light\n        aria-hidden\n        className={Dark ? `${product.logoClassName} dark:hidden` : product.logoClassName}\n      />\n      {Dark ? (\n        <Dark\n          aria-hidden\n          className={`${product.logoClassName} hidden dark:block`}\n        />\n      ) : null}\n    </span>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/comparison-section-v1/components/comparison-board.tsx"
    },
    {
      "path": "components/ui/svgs/nvidiaWordmarkLight.tsx",
      "content": "import type { SVGProps } from \"react\";\n\nconst NvidiaWordmarkLight = (props: SVGProps<SVGSVGElement>) => (\n  <svg\n    {...props}\n    xmlSpace=\"preserve\"\n    style={{\n      fillRule: \"evenodd\",\n      clipRule: \"evenodd\",\n      strokeLinejoin: \"round\",\n      strokeMiterlimit: \"2\",\n    }}\n    viewBox=\"0 0 164 30\"\n  >\n    <path\n      d=\"M160.352 24.069v-.449h.288c.157 0 .371.012.371.204 0 .208-.11.245-.296.245h-.363m0 .315h.192l.447.784h.49l-.494-.816c.255-.019.465-.14.465-.484 0-.427-.295-.565-.793-.565h-.721v1.865h.414v-.784m2.098-.146c0-1.095-.851-1.73-1.8-1.73-.955 0-1.805.635-1.805 1.73s.85 1.733 1.805 1.733c.948 0 1.8-.638 1.8-1.733m-.52 0c0 .798-.587 1.334-1.28 1.334v-.006c-.713.006-1.289-.53-1.289-1.328 0-.797.577-1.331 1.289-1.331.694 0 1.28.534 1.28 1.331M96.374 5.707l.002 19.66h5.552V5.707h-5.554Zm-43.677-.026v19.686H58.3V10.086l4.37.014c1.437 0 2.43.345 3.123 1.084.879.936 1.237 2.444 1.237 5.205v8.978h5.427V14.49c0-7.763-4.948-8.81-9.789-8.81h-9.97l-.001.001Zm52.617.027v19.659h9.006c4.798 0 6.364-.798 8.057-2.587 1.198-1.256 1.971-4.014 1.971-7.027 0-2.763-.655-5.228-1.797-6.763-2.057-2.745-5.02-3.282-9.445-3.282h-7.792Zm5.508 4.28h2.387c3.463 0 5.703 1.556 5.703 5.591 0 4.037-2.24 5.592-5.703 5.592h-2.387V9.988Zm-22.453-4.28-4.634 15.58-4.44-15.579-5.993-.001 6.34 19.659h8.003l6.391-19.659h-5.667Zm38.563 19.659h5.553V5.709l-5.555-.001.002 19.659Zm15.564-19.652-7.753 19.645h5.475l1.227-3.472h9.175l1.161 3.472h5.944l-7.812-19.646-7.417.001ZM146.1 9.3l3.364 9.204h-6.833l3.47-9.204h-.001Z\"\n      style={{ fill: \"#000\" }}\n    />\n    <path\n      d=\"M16.889 8.985V6.28c.262-.02.528-.033.798-.042 7.4-.232 12.255 6.359 12.255 6.359s-5.244 7.282-10.866 7.282a6.83 6.83 0 0 1-2.187-.35v-8.204c2.88.348 3.46 1.62 5.192 4.508l3.852-3.248s-2.812-3.688-7.552-3.688c-.515 0-1.008.036-1.492.088Zm0-8.938V4.09c.265-.021.531-.038.798-.048 10.29-.346 16.995 8.44 16.995 8.44s-7.7 9.364-15.723 9.364c-.735 0-1.424-.068-2.07-.183v2.498c.553.07 1.126.112 1.724.112 7.465 0 12.864-3.812 18.092-8.325.867.694 4.416 2.383 5.145 3.123-4.971 4.16-16.555 7.515-23.123 7.515a18.807 18.807 0 0 1-1.838-.096V30h28.375V.047H16.889Zm0 19.482v2.133c-6.905-1.23-8.822-8.408-8.822-8.408s3.316-3.674 8.822-4.269v2.34l-.011-.001c-2.89-.347-5.147 2.353-5.147 2.353s1.265 4.544 5.158 5.852ZM4.625 12.943s4.092-6.04 12.264-6.663V4.088C7.838 4.815 0 12.48 0 12.48s4.439 12.833 16.889 14.008V24.16C7.753 23.011 4.625 12.943 4.625 12.943Z\"\n      style={{ fill: \"#76b900\" }}\n    />\n  </svg>\n);\n\nexport { NvidiaWordmarkLight };\n",
      "type": "registry:component",
      "target": "@ui/svgs/nvidiaWordmarkLight.tsx"
    },
    {
      "path": "components/ui/svgs/nvidiaWordmarkDark.tsx",
      "content": "import type { SVGProps } from \"react\";\n\nconst NvidiaWordmarkDark = (props: SVGProps<SVGSVGElement>) => (\n  <svg\n    {...props}\n    xmlSpace=\"preserve\"\n    style={{\n      fillRule: \"evenodd\",\n      clipRule: \"evenodd\",\n      strokeLinejoin: \"round\",\n      strokeMiterlimit: \"2\",\n    }}\n    viewBox=\"0 0 164 30\"\n  >\n    <path\n      d=\"M160.352 24.069v-.449h.288c.157 0 .371.012.371.204 0 .208-.11.245-.296.245h-.363m0 .315h.192l.447.784h.49l-.494-.816c.255-.019.465-.14.465-.484 0-.427-.295-.565-.793-.565h-.721v1.865h.414v-.784m2.098-.146c0-1.095-.851-1.73-1.8-1.73-.955 0-1.805.635-1.805 1.73s.85 1.733 1.805 1.733c.948 0 1.8-.638 1.8-1.733m-.52 0c0 .798-.587 1.334-1.28 1.334v-.006c-.713.006-1.289-.53-1.289-1.328 0-.797.577-1.331 1.289-1.331.694 0 1.28.534 1.28 1.331M96.374 5.707l.002 19.66h5.552V5.707h-5.554Zm-43.677-.026v19.686H58.3V10.086l4.37.014c1.437 0 2.43.345 3.123 1.084.879.936 1.237 2.444 1.237 5.205v8.978h5.427V14.49c0-7.763-4.948-8.81-9.789-8.81h-9.97l-.001.001Zm52.617.027v19.659h9.006c4.798 0 6.364-.798 8.057-2.587 1.198-1.256 1.971-4.014 1.971-7.027 0-2.763-.655-5.228-1.797-6.763-2.057-2.745-5.02-3.282-9.445-3.282h-7.792Zm5.508 4.28h2.387c3.463 0 5.703 1.556 5.703 5.591 0 4.037-2.24 5.592-5.703 5.592h-2.387V9.988Zm-22.453-4.28-4.634 15.58-4.44-15.579-5.993-.001 6.34 19.659h8.003l6.391-19.659h-5.667Zm38.563 19.659h5.553V5.709l-5.555-.001.002 19.659Zm15.564-19.652-7.753 19.645h5.475l1.227-3.472h9.175l1.161 3.472h5.944l-7.812-19.646-7.417.001ZM146.1 9.3l3.364 9.204h-6.833l3.47-9.204h-.001Z\"\n      style={{ fill: \"#fff\" }}\n    />\n    <path\n      d=\"M16.889 8.985V6.28c.262-.02.528-.033.798-.042 7.4-.232 12.255 6.359 12.255 6.359s-5.244 7.282-10.866 7.282a6.83 6.83 0 0 1-2.187-.35v-8.204c2.88.348 3.46 1.62 5.192 4.508l3.852-3.248s-2.812-3.688-7.552-3.688c-.515 0-1.008.036-1.492.088Zm0-8.938V4.09c.265-.021.531-.038.798-.048 10.29-.346 16.995 8.44 16.995 8.44s-7.7 9.364-15.723 9.364c-.735 0-1.424-.068-2.07-.183v2.498c.553.07 1.126.112 1.724.112 7.465 0 12.864-3.812 18.092-8.325.867.694 4.416 2.383 5.145 3.123-4.971 4.16-16.555 7.515-23.123 7.515a18.807 18.807 0 0 1-1.838-.096V30h28.375V.047H16.889Zm0 19.482v2.133c-6.905-1.23-8.822-8.408-8.822-8.408s3.316-3.674 8.822-4.269v2.34l-.011-.001c-2.89-.347-5.147 2.353-5.147 2.353s1.265 4.544 5.158 5.852ZM4.625 12.943s4.092-6.04 12.264-6.663V4.088C7.838 4.815 0 12.48 0 12.48s4.439 12.833 16.889 14.008V24.16C7.753 23.011 4.625 12.943 4.625 12.943Z\"\n      style={{ fill: \"#76b900\" }}\n    />\n  </svg>\n);\n\nexport { NvidiaWordmarkDark };\n",
      "type": "registry:component",
      "target": "@ui/svgs/nvidiaWordmarkDark.tsx"
    },
    {
      "path": "components/ui/svgs/amd.tsx",
      "content": "import type { SVGProps } from \"react\";\n\nconst Amd = (props: SVGProps<SVGSVGElement>) => (\n  <svg {...props} viewBox=\"0 8.6 24 6.8\" fill=\"#ED1C24\">\n    <path d=\"M18.324 9.137l1.559 1.56h2.556v2.557L24 14.814V9.137zM2 9.52l-2 4.96h1.309l.37-.982H3.9l.408.982h1.338L3.432 9.52zm4.209 0v4.955h1.238v-3.092l1.338 1.562h.188l1.338-1.556v3.091h1.238V9.52H10.47l-1.592 1.845L7.287 9.52zm6.283 0v4.96h2.057c1.979 0 2.88-1.046 2.88-2.472 0-1.36-.937-2.488-2.747-2.488zm1.237.91h.792c1.17 0 1.63.711 1.63 1.57 0 .728-.372 1.572-1.616 1.572h-.806zm-10.985.273l.791 1.932H2.008zm17.137.307l-1.604 1.603v2.25h2.246l1.604-1.607h-2.246z\" />\n  </svg>\n);\n\nexport { Amd };\n",
      "type": "registry:component",
      "target": "@ui/svgs/amd.tsx"
    },
    {
      "path": "components/ui/svgs/intel.tsx",
      "content": "import type { SVGProps } from \"react\";\n\nconst Intel = (props: SVGProps<SVGSVGElement>) => (\n  <svg {...props} viewBox=\"0 6.9 24 10\" fill=\"#0071C5\">\n    <path d=\"M20.42 7.345v9.18h1.651v-9.18zM0 7.475v1.737h1.737V7.474zm9.78.352v6.053c0 .513.044.945.13 1.292.087.34.235.618.44.828.203.21.475.359.803.451.334.093.754.136 1.255.136h.216v-1.533c-.24 0-.445-.012-.593-.037a.672.672 0 0 1-.39-.173.693.693 0 0 1-.173-.377 4.002 4.002 0 0 1-.037-.606v-2.182h1.193v-1.416h-1.193V7.827zm-3.505 2.312c-.396 0-.76.08-1.082.241-.327.161-.6.384-.822.668l-.087.117v-.902H2.658v6.256h1.639v-3.214c.018-.588.16-1.02.433-1.299.29-.297.642-.445 1.044-.445.476 0 .841.149 1.082.433.235.284.359.686.359 1.2v3.324h1.663V12.97c.006-.89-.229-1.595-.686-2.09-.458-.495-1.1-.742-1.917-.742zm10.065.006a3.252 3.252 0 0 0-2.306.946c-.29.29-.525.637-.692 1.033a3.145 3.145 0 0 0-.254 1.273c0 .452.08.878.241 1.274.161.395.39.742.674 1.032.284.29.637.526 1.045.693.408.173.86.26 1.342.26 1.397 0 2.262-.637 2.782-1.23l-1.187-.904c-.248.297-.841.699-1.583.699-.464 0-.847-.105-1.138-.321a1.588 1.588 0 0 1-.593-.872l-.019-.056h4.915v-.587c0-.451-.08-.872-.235-1.267a3.393 3.393 0 0 0-.661-1.033 3.013 3.013 0 0 0-1.02-.692 3.345 3.345 0 0 0-1.311-.248zm-16.297.118v6.256h1.651v-6.256zm16.278 1.286c1.132 0 1.664.797 1.664 1.255l-3.32.006c0-.458.525-1.255 1.656-1.261zm7.073 3.814a.606.606 0 0 0-.606.606.606.606 0 0 0 .606.606.606.606 0 0 0 .606-.606.606.606 0 0 0-.606-.606zm-.008.105a.5.5 0 0 1 .002 0 .5.5 0 0 1 .5.501.5.5 0 0 1-.5.5.5.5 0 0 1-.5-.5.5.5 0 0 1 .498-.5zm-.233.155v.699h.13v-.285h.093l.173.285h.136l-.18-.297a.191.191 0 0 0 .118-.056c.03-.03.05-.074.05-.136 0-.068-.02-.117-.063-.154-.037-.038-.105-.056-.185-.056zm.13.099h.154c.019 0 .037.006.056.012a.064.064 0 0 1 .037.031c.013.013.012.031.012.056a.124.124 0 0 1-.012.055.164.164 0 0 1-.037.031c-.019.006-.037.013-.056.013h-.154Z\" />\n  </svg>\n);\n\nexport { Intel };\n",
      "type": "registry:component",
      "target": "@ui/svgs/intel.tsx"
    },
    {
      "path": "registry/new-york/blocks/comparison-section-v1/lib/comparison.ts",
      "content": "import type { ComponentType, SVGProps } from \"react\"\n\nimport { Amd } from \"@/components/ui/svgs/amd\"\nimport { Intel } from \"@/components/ui/svgs/intel\"\nimport { NvidiaWordmarkDark } from \"@/components/ui/svgs/nvidiaWordmarkDark\"\nimport { NvidiaWordmarkLight } from \"@/components/ui/svgs/nvidiaWordmarkLight\"\n\nexport type SvgComponent = ComponentType<SVGProps<SVGSVGElement>>\n\nexport type ProductId = \"nvidia\" | \"amd\" | \"intel\"\n\nexport type Product = {\n  id: ProductId\n  name: string\n  logoLight: SvgComponent\n  /** Black wordmark for light backgrounds, white wordmark for dark backgrounds. */\n  logoDark?: SvgComponent\n  logoClassName: string\n}\n\nexport type ComparisonRow = {\n  id: string\n  criterion: string\n  cells: Record<ProductId, string>\n}\n\nexport type ComparisonGroup = {\n  id: string\n  label: string\n  rows: ComparisonRow[]\n}\n\nexport const comparisonHeader = {\n  title: \"What NVIDIA, AMD, and Intel sell\",\n} as const\n\nexport const products: Product[] = [\n  {\n    id: \"nvidia\",\n    name: \"NVIDIA\",\n    logoLight: NvidiaWordmarkLight,\n    logoDark: NvidiaWordmarkDark,\n    logoClassName: \"h-[1.125rem] w-auto\",\n  },\n  {\n    id: \"amd\",\n    name: \"AMD\",\n    logoLight: Amd,\n    logoClassName: \"h-8 w-auto\",\n  },\n  {\n    id: \"intel\",\n    name: \"Intel\",\n    logoLight: Intel,\n    logoClassName: \"h-5 w-auto\",\n  },\n]\n\nexport const groups: ComparisonGroup[] = [\n  {\n    id: \"products\",\n    label: \"Products\",\n    rows: [\n      {\n        id: \"discrete-gpu\",\n        criterion: \"Discrete GPU\",\n        cells: {\n          nvidia: \"GeForce\",\n          amd: \"Radeon\",\n          intel: \"Arc\",\n        },\n      },\n      {\n        id: \"desktop-cpu\",\n        criterion: \"Desktop CPU\",\n        cells: {\n          nvidia: \"No desktop CPU\",\n          amd: \"Ryzen\",\n          intel: \"Core\",\n        },\n      },\n      {\n        id: \"server-cpu\",\n        criterion: \"Server CPU\",\n        cells: {\n          nvidia: \"Grace\",\n          amd: \"EPYC\",\n          intel: \"Xeon\",\n        },\n      },\n      {\n        id: \"integrated-graphics\",\n        criterion: \"Integrated graphics\",\n        cells: {\n          nvidia: \"No integrated graphics\",\n          amd: \"Most Ryzen chips\",\n          intel: \"Most Core chips\",\n        },\n      },\n    ],\n  },\n  {\n    id: \"software\",\n    label: \"Software\",\n    rows: [\n      {\n        id: \"compute\",\n        criterion: \"GPU compute\",\n        cells: {\n          nvidia: \"CUDA\",\n          amd: \"ROCm\",\n          intel: \"oneAPI\",\n        },\n      },\n    ],\n  },\n  {\n    id: \"manufacturing\",\n    label: \"Manufacturing\",\n    rows: [\n      {\n        id: \"fabrication\",\n        criterion: \"Chip fabrication\",\n        cells: {\n          nvidia: \"TSMC\",\n          amd: \"TSMC\",\n          intel: \"Its own fabs\",\n        },\n      },\n      {\n        id: \"foundry\",\n        criterion: \"Foundry service\",\n        cells: {\n          nvidia: \"Does not offer it\",\n          amd: \"Does not offer it\",\n          intel: \"Intel Foundry\",\n        },\n      },\n    ],\n  },\n]\n",
      "type": "registry:lib",
      "target": "app/comparison-section-v1/lib/comparison.ts"
    }
  ],
  "type": "registry:block"
}