{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footers-03",
  "title": "Footer with a wordmark",
  "description": "Three lists of links beside the brand and a contact address, a back to top button whose arrow travels on hover, and the product name set across the full width at the bottom.",
  "dependencies": [],
  "registryDependencies": [
    "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/use-prefers-reduced-motion.json",
    "https://ui.ndekocode.dev/r/utils.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/blocks/footers/footers-03/index.tsx",
      "content": "import { BackToTop } from './back-to-top';\nimport { FernwickMark } from './brand-mark';\nimport { BRAND, CATEGORIES, LEGAL_LINKS } from './data';\n\nconst LINK =\n  'text-foreground/80 hover:text-foreground focus-visible:ring-ring/25 rounded-sm text-[13px] transition-colors outline-none focus-visible:ring-[3px]';\n\nexport default function Footers03() {\n  return (\n    <footer className='overflow-hidden px-4 pt-16 sm:px-6 lg:px-8'>\n      <div className='@container mx-auto flex max-w-6xl flex-col'>\n        <div className='grid gap-12 md:grid-cols-[minmax(0,1fr)_minmax(0,1.5fr)] md:gap-16'>\n          <div className='flex flex-col items-start gap-4'>\n            <a\n              href='#'\n              className='focus-visible:ring-ring/25 flex items-center gap-2 rounded-md text-sm font-semibold outline-none focus-visible:ring-[3px]'\n            >\n              <FernwickMark />\n              {BRAND.name}\n            </a>\n            <p className='text-muted-foreground max-w-xs text-[13px] text-pretty'>\n              {BRAND.tagline}\n            </p>\n            <a\n              href={`mailto:${BRAND.email}`}\n              className='text-primary-ink focus-visible:ring-ring/25 rounded-sm text-[13px] font-medium underline-offset-4 outline-none hover:underline focus-visible:ring-[3px]'\n            >\n              {BRAND.email}\n            </a>\n          </div>\n          <nav\n            aria-label='Footer'\n            className='grid grid-cols-2 gap-x-6 gap-y-10 sm:grid-cols-3'\n          >\n            {CATEGORIES.map((category) => (\n              <div key={category.title} className='flex flex-col gap-3'>\n                <h2 className='text-muted-foreground text-xs font-medium'>\n                  {category.title}\n                </h2>\n                <ul className='flex flex-col gap-2'>\n                  {category.links.map((link) => (\n                    <li key={link.label}>\n                      <a href={link.href} className={LINK}>\n                        {link.label}\n                      </a>\n                    </li>\n                  ))}\n                </ul>\n              </div>\n            ))}\n          </nav>\n        </div>\n        <div className='mt-14 flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between'>\n          <div className='flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-6'>\n            <p className='text-muted-foreground text-xs'>{BRAND.copyright}</p>\n            <ul className='flex flex-wrap gap-x-5 gap-y-2'>\n              {LEGAL_LINKS.map((link) => (\n                <li key={link.label}>\n                  <a\n                    href={link.href}\n                    className='text-muted-foreground hover:text-foreground focus-visible:ring-ring/25 rounded-sm text-xs transition-colors outline-none focus-visible:ring-[3px]'\n                  >\n                    {link.label}\n                  </a>\n                </li>\n              ))}\n            </ul>\n          </div>\n          <div className='-ms-2.5 sm:ms-0 sm:-me-2.5'>\n            <BackToTop />\n          </div>\n        </div>\n        <p\n          aria-hidden='true'\n          className='text-foreground/[0.07] pointer-events-none mt-6 -mb-[0.2em] text-center text-[length:20cqw] leading-none font-semibold whitespace-nowrap select-none'\n        >\n          {BRAND.wordmark}\n        </p>\n      </div>\n    </footer>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/footers-03/index.tsx"
    },
    {
      "path": "registry/ndeko/blocks/footers/footers-03/back-to-top.tsx",
      "content": "'use client';\n\nimport { usePrefersReducedMotion } from '@/registry/ndeko/hooks/use-prefers-reduced-motion';\nimport { ArrowRightIcon } from '@/registry/ndeko/lib/icons';\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport { Button } from '@/registry/ndeko/ui/button';\n\nconst TRAVEL = '-rotate-90 transition-[translate] ease-(--ease-out-strong)';\n\nconst LEAVING_ARROW =\n  'duration-200 group-hover/button:-translate-y-full group-hover/button:duration-150';\n\nconst ARRIVING_ARROW =\n  'absolute inset-0 translate-y-full duration-150 group-hover/button:translate-y-0 group-hover/button:duration-200';\n\nfunction scrollBehaviorOf(shouldReduceMotion: boolean | null): ScrollBehavior {\n  if (shouldReduceMotion) {\n    return 'auto';\n  }\n  return 'smooth';\n}\n\nexport function BackToTop() {\n  const shouldReduceMotion = usePrefersReducedMotion();\n\n  function scrollToTop() {\n    const behavior = scrollBehaviorOf(shouldReduceMotion);\n    window.scrollTo({ top: 0, behavior });\n  }\n\n  return (\n    <Button\n      variant='ghost'\n      size='sm'\n      className='text-muted-foreground'\n      onClick={scrollToTop}\n    >\n      Back to top\n      <span\n        aria-hidden='true'\n        className='relative flex size-3.5 overflow-hidden'\n      >\n        <ArrowRightIcon className={cn(TRAVEL, LEAVING_ARROW, 'size-3.5')} />\n        <ArrowRightIcon className={cn(TRAVEL, ARRIVING_ARROW, 'size-3.5')} />\n      </span>\n    </Button>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/footers-03/back-to-top.tsx"
    },
    {
      "path": "registry/ndeko/blocks/footers/footers-03/brand-mark.tsx",
      "content": "import { cn } from '@/registry/ndeko/lib/utils';\n\nexport function FernwickMark({ className }: { className?: string }) {\n  return (\n    <svg\n      viewBox='0 0 24 24'\n      aria-hidden='true'\n      className={cn('size-6 shrink-0', className)}\n    >\n      <rect width='24' height='24' rx='7' className='fill-primary' />\n      <path\n        d='M8.5 6h7A2.5 2.5 0 0 1 18 8.5v5a2.5 2.5 0 0 1-2.5 2.5H11l-3 2.5V16a2 2 0 0 1-2-2V8.5A2.5 2.5 0 0 1 8.5 6Z'\n        className='fill-white'\n      />\n      <path\n        d='M9.5 10h5M9.5 12.5h3'\n        fill='none'\n        strokeWidth='1.5'\n        strokeLinecap='round'\n        className='stroke-primary'\n      />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/footers-03/brand-mark.tsx"
    },
    {
      "path": "registry/ndeko/blocks/footers/footers-03/data.ts",
      "content": "export type FooterLink = {\n  label: string;\n  href: string;\n};\n\nexport type FooterCategory = {\n  title: string;\n  links: FooterLink[];\n};\n\nexport const BRAND = {\n  name: 'Fernwick',\n  wordmark: 'fernwick',\n  tagline: 'One shared inbox for every customer conversation your team answers',\n  email: 'hello@fernwick.app',\n  copyright: '© 2026 Fernwick Labs',\n};\n\nexport const CATEGORIES: FooterCategory[] = [\n  {\n    title: 'Product',\n    links: [\n      { label: 'Shared inbox', href: '#' },\n      { label: 'Saved replies', href: '#' },\n      { label: 'Routing rules', href: '#' },\n      { label: 'Reports', href: '#' },\n      { label: 'Pricing', href: '#' },\n    ],\n  },\n  {\n    title: 'Help',\n    links: [\n      { label: 'Documentation', href: '#' },\n      { label: 'Guides', href: '#' },\n      { label: 'Changelog', href: '#' },\n      { label: 'Status', href: '#' },\n    ],\n  },\n  {\n    title: 'Company',\n    links: [\n      { label: 'About', href: '#' },\n      { label: 'Careers', href: '#' },\n      { label: 'Press kit', href: '#' },\n      { label: 'Contact', href: '#' },\n    ],\n  },\n];\n\nexport const LEGAL_LINKS: FooterLink[] = [\n  { label: 'Privacy', href: '#' },\n  { label: 'Terms', href: '#' },\n  { label: 'Security', href: '#' },\n];\n",
      "type": "registry:component",
      "target": "components/blocks/footers-03/data.ts"
    }
  ],
  "categories": [
    "blocks",
    "footers"
  ],
  "type": "registry:block"
}