{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-01",
  "type": "registry:block",
  "description": "A simple footer.",
  "dependencies": [
    "@designali/logos"
  ],
  "registryDependencies": [
    "button",
    "dropdown-menu"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/footer/footer-01/page.tsx",
      "content": "import { Footer } from \"@/registry/designali/blocks/footer/footer-01/components/footer\"\n\nexport default function Header05() {\n  return (\n    <div className=\"flex mt-auto h-screen w-full flex-col\">\n      <Footer />\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "layout/footer/index.tsx"
    },
    {
      "path": "registry/designali/blocks/footer/footer-01/components/footer.tsx",
      "content": "import Link from \"next/link\"\nimport {\n  ChevronDown,\n  SquareArrowOutUpRight,\n} from \"@designali/icons\"\nimport { Instagram, LinkedIn, X } from \"@designali/logos\"\nimport { Logo } from \"@/src/components/logo\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport {\n  DropdownMenu,\n  DropdownMenuContent,\n  DropdownMenuItem,\n  DropdownMenuTrigger,\n} from \"@workspace/ui/components/dropdown-menu\"\n\nimport { ThemeSwitcher } from \"./theme\"\n\nconst linksPro = [\n  {\n    group: \"Products\",\n    items: [\n      {\n        title: \"Templates\",\n        href: \"/templates\",\n      },\n      {\n        title: \"Blocks\",\n        href: \"/blocks\",\n      },\n      {\n        title: \"Landing Pages\",\n        href: \"/blocks\",\n      },\n      {\n        title: \"UI Designs\",\n        href: \"/ui\",\n      },\n      {\n        title: \"Icons\",\n        href: \"/icons\",\n      },\n      {\n        title: \"Logos\",\n        href: \"/logos\",\n      },\n      {\n        title: \"Illustration\",\n        href: \"/illustration\",\n      },\n      {\n        title: \"Bento\",\n        href: \"/ui\",\n      },\n      {\n        title: \"Marquee\",\n        href: \"/ui\",\n      },\n      {\n        title: \"Device Mockups\",\n        href: \"/ui\",\n      },\n    ],\n  },\n]\n\nconst linksRes = [\n  {\n    group: \"Resources\",\n    items: [\n      {\n        title: \"Docs\",\n        href: \"/docs\",\n      },\n      {\n        title: \"Blogs\",\n        href: \"/blogs\",\n      },\n      {\n        title: \"Pricing\",\n        href: \"/pricing\",\n      },\n      {\n        title: \"Getting Started\",\n        href: \"/docs\",\n      },\n      {\n        title: \"Components\",\n        href: \"/docs\",\n      },\n      {\n        title: \"@designali/icons\",\n        href: \"/icons\",\n      },\n      {\n        title: \"@designali/logos\",\n        href: \"/logos\",\n      },\n      {\n        title: \"@designali/vectors\",\n        href: \"/illustration\",\n      },\n      {\n        title: \"Next.js\",\n        href: \"/docs\",\n      },\n      {\n        title: \"Tailwind CSS\",\n        href: \"/docs\",\n      },\n    ],\n  },\n]\n\nconst linksCom = [\n  {\n    group: \"Studio\",\n    items: [\n      {\n        title: \"Work\",\n        href: \"/work\",\n      },\n      {\n        title: \"Contact\",\n        href: \"/contact\",\n      },\n      {\n        title: \"Brand Identity\",\n        href: \"/work\",\n      },\n      {\n        title: \"UI/UX Design\",\n        href: \"/work\",\n      },\n      {\n        title: \"Web Development\",\n        href: \"/work\",\n      },\n      {\n        title: \"Design Systems\",\n        href: \"/work\",\n      },\n      {\n        title: \"CGI & Motion\",\n        href: \"/work\",\n      },\n      {\n        title: \"AI Workflows\",\n        href: \"/work\",\n      },\n      {\n        title: \"hello@designali.com\",\n        href: \"mailto:hello@designali.com\",\n      },\n      {\n        title: \"Terms\",\n        href: \"/docs/legal/terms\",\n      },\n    ],\n  },\n]\n\nexport function Footer() {\n  return (\n    <footer className=\"py-16 mt-auto border-t\">\n      <div className=\"mx-auto max-w-6xl px-6\">\n        <div className=\"\">\n          <div className=\"grid grid-cols-2 gap-14 md:grid-cols-3 lg:grid-cols-5\">\n            <div className=\"grid gap-3\">\n              {linksPro.map((link, index) => (\n                <div key={index} className=\"space-y-3 text-sm\">\n                  <span className=\"block font-medium\">{link.group}</span>\n                  {link.items.map((item, index) => (\n                    <Link\n                      key={index}\n                      href={item.href}\n                      className=\"block text-muted-foreground duration-150 hover:text-primary\"\n                    >\n                      <span>{item.title}</span>\n                    </Link>\n                  ))}\n                  <Link\n                    href=\"https://21st.dev/@designali-in\"\n                    className=\"flex items-center gap-1 text-sm text-muted-foreground duration-150 hover:text-primary\"\n                  >\n                    21st.dev\n                    <SquareArrowOutUpRight strokeWidth={2} size={16} />\n                  </Link>\n                </div>\n              ))}\n            </div>\n            <div className=\"grid gap-3\">\n              {linksRes.map((link, index) => (\n                <div key={index} className=\"space-y-3 text-sm\">\n                  <span className=\"block font-medium\">{link.group}</span>\n                  <Link\n                    href=\"https://www.instagram.com/designali.code/\"\n                    className=\"flex items-center gap-1 text-sm text-muted-foreground duration-150 hover:text-primary\"\n                  >\n                    Community\n                    <SquareArrowOutUpRight strokeWidth={2} size={16} />\n                  </Link>\n                  {link.items.map((item, index) => (\n                    <Link\n                      key={index}\n                      href={item.href}\n                      className=\"block text-muted-foreground duration-150 hover:text-primary\"\n                    >\n                      <span>{item.title}</span>\n                    </Link>\n                  ))}\n                  <DropdownMenu>\n                    <DropdownMenuTrigger className=\"flex items-center gap-1 text-sm text-muted-foreground hover:text-primary\">\n                      Packages <ChevronDown strokeWidth={2} size={16} />\n                    </DropdownMenuTrigger>\n                    <DropdownMenuContent\n                      side=\"top\"\n                      align=\"end\"\n                      className=\"w-60 p-1\"\n                    >\n                      <DropdownMenuItem className=\"h-10 px-4\">\n                        @designali/icons{\" \"}\n                        <SquareArrowOutUpRight strokeWidth={2} size={16} />\n                      </DropdownMenuItem>\n                      <DropdownMenuItem className=\"h-10 px-4\">\n                        @designali/logos{\" \"}\n                        <SquareArrowOutUpRight strokeWidth={2} size={16} />\n                      </DropdownMenuItem>\n                      <DropdownMenuItem className=\"h-10 px-4\">\n                        @designali/vectors{\" \"}\n                        <SquareArrowOutUpRight strokeWidth={2} size={16} />\n                      </DropdownMenuItem>\n                      <DropdownMenuItem className=\"h-10 px-4\">\n                        @workspace/ui{\" \"}\n                        <SquareArrowOutUpRight strokeWidth={2} size={16} />\n                      </DropdownMenuItem>\n                    </DropdownMenuContent>\n                  </DropdownMenu>\n                </div>\n              ))}\n            </div>\n            <div className=\"grid gap-3\">\n              {linksCom.map((link, index) => (\n                <div key={index} className=\"space-y-3 text-sm\">\n                  <span className=\"block font-medium\">{link.group}</span>\n\n                  {link.items.map((item, index) => (\n                    <Link\n                      key={index}\n                      href={item.href}\n                      className=\"block text-muted-foreground duration-150 hover:text-primary\"\n                    >\n                      <span>{item.title}</span>\n                    </Link>\n                  ))}\n                  <DropdownMenu>\n                    <DropdownMenuTrigger className=\"flex items-center gap-1 text-sm text-muted-foreground hover:text-primary\">\n                      Legal <ChevronDown strokeWidth={2} size={16} />\n                    </DropdownMenuTrigger>\n                    <DropdownMenuContent\n                      side=\"top\"\n                      align=\"end\"\n                      className=\"w-60 p-1\"\n                    >\n                      <DropdownMenuItem className=\"h-10 px-4\">\n                        Terms of Use\n                      </DropdownMenuItem>\n                      <DropdownMenuItem className=\"h-10 px-4\">\n                        License\n                      </DropdownMenuItem>\n                      <DropdownMenuItem className=\"h-10 px-4\">\n                        Privacy Policy\n                      </DropdownMenuItem>\n                    </DropdownMenuContent>\n                  </DropdownMenu>\n                </div>\n              ))}\n            </div>\n            <div className=\"grid gap-3\">\n              <div className=\"space-y-3 text-sm\">\n                <span className=\"block font-medium\">Social</span>\n                <Link\n                  href=\"https://www.instagram.com/designali.code/\"\n                  className=\"block text-muted-foreground duration-150 hover:text-primary\"\n                >\n                  <span className=\"flex items-center gap-2\">\n                    <Instagram size={14} />\n                    Instagram\n                  </span>\n                </Link>\n                <Link\n                  href=\"https://www.linkedin.com/company/designali-com/\"\n                  className=\"block text-muted-foreground duration-150 hover:text-primary\"\n                >\n                  <span className=\"flex items-center gap-2\">\n                    <LinkedIn className=\"grayscale\" size={14} />\n                    LinkedIn\n                  </span>\n                </Link>\n                <Link\n                  href=\"https://x.com/designali_com\"\n                  className=\"block text-muted-foreground duration-150 hover:text-primary\"\n                >\n                  <span className=\"flex items-center gap-2\">\n                    <X size={14} />\n                    X\n                  </span>\n                </Link>\n                <Link\n                  href=\"https://www.linkedin.com/in/aliimam-in/\"\n                  className=\"block text-muted-foreground duration-150 hover:text-primary\"\n                >\n                  <span className=\"flex items-center gap-2\">\n                    <LinkedIn className=\"grayscale\" size={14} />\n                    Ali Imam\n                  </span>\n                </Link>\n              </div>\n            </div>\n            <div className=\"flex justify-end\">\n              <Logo className=\"h-5 w-auto\" />\n            </div>\n          </div>\n        </div>\n        <div className=\"mt-10 flex flex-wrap items-end justify-between gap-6 py-6\">\n          <Button\n            className=\"cursor-pointer text-primary hover:text-primary\"\n            variant={\"ghost\"}\n          >\n            <span className=\"block size-3 rounded-full border border-background bg-primary\" />\n            All Designali systems normal.\n          </Button>\n          <ThemeSwitcher />\n        </div>\n      </div>\n    </footer>\n  )\n}\n",
      "type": "registry:component",
      "target": "layout/footer/footer.tsx"
    },
    {
      "path": "registry/designali/blocks/footer/footer-01/components/theme.tsx",
      "content": "\"use client\"\n\nimport { useCallback, useEffect, useState } from \"react\"\nimport {\n  Monitor,\n  Moon,\n  Sun,\n} from \"@designali/icons\"\nimport { useTheme } from \"next-themes\"\n\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst themes = [\n  {\n    key: \"system\",\n    icon: Monitor,\n    label: \"System theme\",\n  },\n  {\n    key: \"light\",\n    icon: Sun,\n    label: \"Light theme\",\n  },\n  {\n    key: \"dark\",\n    icon: Moon,\n    label: \"Dark theme\",\n  },\n]\n\nexport type ThemeSwitcherProps = {\n  value?: \"light\" | \"dark\" | \"system\"\n  onChange?: (theme: \"light\" | \"dark\" | \"system\") => void\n  defaultValue?: \"light\" | \"dark\" | \"system\"\n  className?: string\n}\n\nexport const ThemeSwitcher = ({ className }: ThemeSwitcherProps) => {\n  const { theme, setTheme } = useTheme()\n  const [mounted, setMounted] = useState(false)\n\n  const handleThemeClick = useCallback(\n    (themeKey: \"light\" | \"dark\" | \"system\") => {\n      setTheme(themeKey)\n    },\n    [setTheme]\n  )\n\n  // Prevent hydration mismatch\n  useEffect(() => {\n    setMounted(true)\n  }, [])\n\n  if (!mounted) {\n    return null\n  }\n\n  return (\n    <div\n      className={cn(\n        \"relative isolate flex h-7 rounded-full bg-background p-1 ring-1 ring-border\",\n        className\n      )}\n    >\n      {themes.map(({ key, icon: Icon, label }) => {\n        const isActive = theme === key\n\n        return (\n          <button\n            aria-label={label}\n            className=\"relative h-5 w-6 rounded-full\"\n            key={key}\n            onClick={() => handleThemeClick(key as \"light\" | \"dark\" | \"system\")}\n            type=\"button\"\n          >\n            {isActive && (\n              <div className=\"absolute inset-0 rounded-full bg-secondary\" />\n            )}\n            <Icon\n              className={cn(\n                \"relative z-10 m-auto h-3.5 w-3.5\",\n                isActive ? \"text-foreground\" : \"text-muted-foreground\"\n              )}\n            />\n          </button>\n        )\n      })}\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "layout/footer/theme.tsx"
    }
  ],
  "meta": {
    "iframeHeight": "700px"
  },
  "categories": [
    "footer"
  ]
}