{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "integrations-03",
  "title": "Integration areas",
  "description": "One card per area of tools with a short line, a tool count, a link and a cluster of round marks that float gently.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/brand-logos.json",
    "https://ui.ndekocode.dev/r/button.json",
    "https://ui.ndekocode.dev/r/icons.json",
    "https://ui.ndekocode.dev/r/theme.json",
    "https://ui.ndekocode.dev/r/utils.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/blocks/integrations/integrations-03/index.tsx",
      "content": "import { ChevronRightIcon } from '@/registry/ndeko/lib/icons';\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport { Button } from '@/registry/ndeko/ui/button';\n\nimport { Constellation } from './constellation';\nimport { AREAS, SECTION } from './data';\n\nconst CARD_SURFACE =\n  'bg-card hairline-ring ring-border rounded-xl shadow-[0_1px_2px_rgb(0_0_0/0.04)] dark:bg-foreground/[0.03]';\n\nconst ALL_BRANDS = AREAS.flatMap((area) => area.brands);\n\nfunction toolCountOf(count: number) {\n  if (count === 1) {\n    return '1 tool';\n  }\n  return `${count} tools`;\n}\n\nfunction areaCountOf(count: number) {\n  if (count === 1) {\n    return '1 area';\n  }\n  return `${count} areas`;\n}\n\nconst LEAD = `${toolCountOf(ALL_BRANDS.length)} in ${areaCountOf(AREAS.length)}. ${SECTION.description}`;\n\nexport default function Integrations03() {\n  return (\n    <section className='px-4 py-16 sm:px-6 sm:py-24 lg:px-8'>\n      <div className='mx-auto flex max-w-6xl flex-col gap-10'>\n        <div className='flex max-w-2xl flex-col gap-3'>\n          <h2 className='text-2xl font-semibold text-balance sm:text-3xl'>\n            {SECTION.title}\n          </h2>\n          <p className='text-muted-foreground text-base text-pretty'>{LEAD}</p>\n        </div>\n        <ul className='grid gap-4 lg:grid-cols-2'>\n          {AREAS.map((area) => (\n            <li\n              key={area.id}\n              className={cn(\n                CARD_SURFACE,\n                'flex flex-col gap-1.5 p-1.5 sm:flex-row'\n              )}\n            >\n              <div className='flex flex-1 flex-col items-start p-3.5 sm:p-4'>\n                <div className='flex w-full items-baseline justify-between gap-3'>\n                  <h3 className='text-base font-semibold text-balance'>\n                    {area.title}\n                  </h3>\n                  <span className='text-muted-foreground shrink-0 text-xs tabular-nums'>\n                    {toolCountOf(area.brands.length)}\n                  </span>\n                </div>\n                <p className='text-muted-foreground mt-2 text-sm leading-relaxed text-pretty'>\n                  {area.description}\n                </p>\n                <div className='mt-auto pt-4'>\n                  <Button\n                    variant='link'\n                    className='h-auto px-0'\n                    nativeButton={false}\n                    render={<a href='#' />}\n                  >\n                    {area.linkLabel}\n                    <ChevronRightIcon className='size-3.5' />\n                  </Button>\n                </div>\n              </div>\n              <div className='bg-foreground/[0.025] flex shrink-0 items-center justify-center rounded-[calc(var(--radius-xl)-0.375rem)] sm:w-60'>\n                <Constellation\n                  label={`${area.title} tools`}\n                  brands={area.brands}\n                />\n              </div>\n            </li>\n          ))}\n        </ul>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/integrations-03/index.tsx"
    },
    {
      "path": "registry/ndeko/blocks/integrations/integrations-03/constellation.tsx",
      "content": "import {\n  BRANDS,\n  BrandLogo,\n  type BrandSlug,\n} from '@/registry/ndeko/lib/brand-logos';\n\ntype Slot = {\n  left: string;\n  top: string;\n};\n\n/** Three staggered rows, two, three and two marks, like cells of a honeycomb. */\nconst SLOTS: Slot[] = [\n  { left: '50%', top: '50%' },\n  { left: '34%', top: '15%' },\n  { left: '66%', top: '15%' },\n  { left: '20%', top: '50%' },\n  { left: '80%', top: '50%' },\n  { left: '34%', top: '85%' },\n  { left: '66%', top: '85%' },\n];\n\nconst FLOAT_STEP_SECONDS = 0.85;\n\nfunction floatStyleOf(index: number): React.CSSProperties {\n  const seconds = index * FLOAT_STEP_SECONDS;\n  return { animationDelay: `-${seconds}s` };\n}\n\ntype ConstellationProps = {\n  label: string;\n  brands: BrandSlug[];\n};\n\nexport function Constellation({ label, brands }: ConstellationProps) {\n  const shown = brands.slice(0, SLOTS.length);\n\n  return (\n    <ul aria-label={label} className='relative h-40 w-52'>\n      {shown.map((brand, index) => {\n        const slot = SLOTS[index];\n        const title = BRANDS[brand].title;\n\n        return (\n          <li\n            key={brand}\n            style={slot}\n            className='absolute -translate-x-1/2 -translate-y-1/2'\n          >\n            <span\n              style={floatStyleOf(index)}\n              className='keycap-3d animate-float flex size-9 items-center justify-center rounded-full motion-reduce:animate-none'\n            >\n              <BrandLogo brand={brand} title={title} />\n            </span>\n          </li>\n        );\n      })}\n    </ul>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/integrations-03/constellation.tsx"
    },
    {
      "path": "registry/ndeko/blocks/integrations/integrations-03/data.ts",
      "content": "import type { BrandSlug } from '@/registry/ndeko/lib/brand-logos';\n\nexport type ToolArea = {\n  id: string;\n  title: string;\n  description: string;\n  linkLabel: string;\n  brands: BrandSlug[];\n};\n\nexport const SECTION = {\n  title: 'Integrations by what they help with',\n  description:\n    'Each tool adds what it knows to the task it is about, and disconnects from the same page in Fernhollow.',\n};\n\nexport const AREAS: ToolArea[] = [\n  {\n    id: 'communication',\n    title: 'Communication',\n    description:\n      'Calls, chats and mail that point back to the task they are about.',\n    linkLabel: 'See communication tools',\n    brands: [\n      'gmail',\n      'element',\n      'zoom',\n      'googlemeet',\n      'telegram',\n      'loom',\n      'mattermost',\n    ],\n  },\n  {\n    id: 'files',\n    title: 'Files and docs',\n    description:\n      'Attach files and pages without copying them, and keep their titles current.',\n    linkLabel: 'See file and doc tools',\n    brands: [\n      'notion',\n      'googledrive',\n      'dropbox',\n      'figma',\n      'googledocs',\n      'confluence',\n      'box',\n    ],\n  },\n  {\n    id: 'finance',\n    title: 'Finance',\n    description:\n      'Approved hours and expenses go to invoices, payroll and your books.',\n    linkLabel: 'See finance tools',\n    brands: [\n      'stripe',\n      'quickbooks',\n      'xero',\n      'paypal',\n      'gusto',\n      'square',\n      'revolut',\n    ],\n  },\n  {\n    id: 'developer',\n    title: 'Developer',\n    description:\n      'Pull requests, issues, errors and deploys update the tasks they mention.',\n    linkLabel: 'See developer tools',\n    brands: [\n      'github',\n      'linear',\n      'gitlab',\n      'jira',\n      'sentry',\n      'bitbucket',\n      'zapier',\n    ],\n  },\n];\n",
      "type": "registry:component",
      "target": "components/blocks/integrations-03/data.ts"
    }
  ],
  "categories": [
    "blocks",
    "integrations"
  ],
  "type": "registry:block"
}