{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "integrations-02",
  "title": "Integrations marquee",
  "description": "Three rows of tool marks drifting at their own pace, the middle one the other way, under the product mark, with a heading, a line and one action.",
  "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/motion-infinite-slider.json",
    "https://ui.ndekocode.dev/r/theme.json",
    "https://ui.ndekocode.dev/r/utils.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/blocks/integrations/integrations-02/index.tsx",
      "content": "import { InfiniteSlider } from '@/components/core/infinite-slider';\nimport {\n  BRANDS,\n  BrandLogo,\n  type BrandSlug,\n} from '@/registry/ndeko/lib/brand-logos';\nimport { ArrowRightIcon } from '@/registry/ndeko/lib/icons';\nimport { Button } from '@/registry/ndeko/ui/button';\n\nimport { ROWS, SECTION } from './data';\nimport { FernhollowMark } from './fernhollow-mark';\n\nconst TILE_GAP = 16;\n\nconst ALL_BRANDS = ROWS.flatMap((row) => row.brands);\n\nconst TOOL_NAMES = ALL_BRANDS.map((brand) => BRANDS[brand].title);\n\nconst TOOL_LIST = `Works with ${TOOL_NAMES.join(', ')}`;\n\ntype GemStyle = React.CSSProperties & { '--gem': string };\n\nconst HUB_STYLE: GemStyle = { '--gem': 'var(--primary)' };\n\nfunction LogoTile({ brand }: { brand: BrandSlug }) {\n  return (\n    <span className='keycap-3d flex size-14 shrink-0 items-center justify-center rounded-lg sm:size-16'>\n      <BrandLogo brand={brand} className='size-7 sm:size-8' />\n    </span>\n  );\n}\n\nfunction HubTile() {\n  return (\n    <div aria-hidden='true' className='absolute inset-0 m-auto size-fit'>\n      <div className='surface-raised rounded-2xl p-1.5'>\n        <span\n          style={HUB_STYLE}\n          className='gem-plate flex size-16 items-center justify-center rounded-[calc(var(--radius-2xl)-0.375rem)] sm:size-18'\n        >\n          <FernhollowMark className='size-8 sm:size-9' />\n        </span>\n      </div>\n    </div>\n  );\n}\n\nexport default function Integrations02() {\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-5xl flex-col items-center'>\n        <div className='relative w-full max-w-3xl'>\n          <div\n            aria-hidden='true'\n            className='flex flex-col gap-4 mask-x-from-80%'\n          >\n            {ROWS.map((row) => (\n              <InfiniteSlider\n                key={row.id}\n                gap={TILE_GAP}\n                speed={row.speed}\n                reverse={row.reverse}\n              >\n                {row.brands.map((brand) => (\n                  <LogoTile key={brand} brand={brand} />\n                ))}\n              </InfiniteSlider>\n            ))}\n          </div>\n          <HubTile />\n        </div>\n        <div className='mt-10 flex max-w-xl flex-col items-center gap-3 text-center sm:mt-14'>\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'>\n            {SECTION.description}\n          </p>\n          <p className='sr-only'>{TOOL_LIST}</p>\n          <Button\n            size='lg'\n            className='mt-3'\n            nativeButton={false}\n            render={<a href='#' />}\n          >\n            {SECTION.action}\n            <ArrowRightIcon />\n          </Button>\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/integrations-02/index.tsx"
    },
    {
      "path": "registry/ndeko/blocks/integrations/integrations-02/fernhollow-mark.tsx",
      "content": "import { cn } from '@/registry/ndeko/lib/utils';\n\ntype FernhollowMarkProps = {\n  className?: string;\n};\n\nexport function FernhollowMark({ className }: FernhollowMarkProps) {\n  return (\n    <svg\n      viewBox='0 0 24 24'\n      fill='currentColor'\n      aria-hidden='true'\n      focusable='false'\n      className={cn('size-6 shrink-0', className)}\n    >\n      <path\n        d='M12 20V5'\n        fill='none'\n        stroke='currentColor'\n        strokeWidth='1.75'\n        strokeLinecap='round'\n      />\n      <path d='M12 16.2Q7.6 16.4 5.2 12.6Q9.7 12.3 12 16.2Z' />\n      <path d='M12 13.2Q16.4 13.4 18.8 9.6Q14.3 9.3 12 13.2Z' />\n      <path d='M12 10.2Q8.7 10.3 6.9 6.9Q10.3 6.7 12 10.2Z' />\n      <path d='M12 7.2Q14.9 7.3 16.3 3.9Q13.3 3.8 12 7.2Z' />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/integrations-02/fernhollow-mark.tsx"
    },
    {
      "path": "registry/ndeko/blocks/integrations/integrations-02/data.ts",
      "content": "import type { BrandSlug } from '@/registry/ndeko/lib/brand-logos';\n\nexport type LogoRow = {\n  id: string;\n  /** Pixels per second. */\n  speed: number;\n  reverse: boolean;\n  brands: BrandSlug[];\n};\n\nexport const SECTION = {\n  title: 'Connect Fernhollow to the tools your studio already uses',\n  description:\n    'Mail, calls, files, invoices and pull requests land on the task they belong to, so nobody copies links between tabs.',\n  action: 'Browse integrations',\n};\n\nexport const ROWS: LogoRow[] = [\n  {\n    id: 'top',\n    speed: 22,\n    reverse: false,\n    brands: [\n      'gmail',\n      'github',\n      'googledrive',\n      'stripe',\n      'zoom',\n      'figma',\n      'linear',\n      'xero',\n      'telegram',\n      'notion',\n    ],\n  },\n  {\n    id: 'middle',\n    speed: 15,\n    reverse: true,\n    brands: [\n      'element',\n      'quickbooks',\n      'gitlab',\n      'dropbox',\n      'googlemeet',\n      'sentry',\n      'paypal',\n      'confluence',\n      'zapier',\n    ],\n  },\n  {\n    id: 'bottom',\n    speed: 29,\n    reverse: false,\n    brands: [\n      'jira',\n      'loom',\n      'googledocs',\n      'square',\n      'bitbucket',\n      'mattermost',\n      'box',\n      'gusto',\n      'revolut',\n    ],\n  },\n];\n",
      "type": "registry:component",
      "target": "components/blocks/integrations-02/data.ts"
    }
  ],
  "categories": [
    "blocks",
    "integrations"
  ],
  "type": "registry:block"
}