{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "header-05",
  "type": "registry:block",
  "description": "A simple header section.",
  "registryDependencies": [
    "command",
    "sheet"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/header/header-05/page.tsx",
      "content": "import { Header } from \"@/registry/designali/blocks/header/header-05/components/header\"\n\nexport default function Header05() {\n  return (\n    <div className=\"flex min-h-screen w-full flex-col\">\n      <Header />\n      <main className=\"flex-1\">\n        <section className=\"flex h-screen items-center justify-center\">\n          <h1 className=\"text-4xl font-bold\">Hero</h1>\n        </section>\n\n        <section className=\"flex h-screen items-center justify-center\">\n          <h1 className=\"text-4xl font-bold\">Section</h1>\n        </section>\n      </main>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "header/index.tsx"
    },
    {
      "path": "registry/designali/blocks/header/header-05/components/header.tsx",
      "content": "/* eslint-disable @next/next/no-img-element */\n\n\"use client\"\n\nimport React from \"react\"\n\nimport {\n  Equal,\n  ShoppingBag,\n} from \"@designali/icons\"\n\nimport { Menus } from \"@/registry/designali/blocks/header/header-05/components/menus\"\nimport { PhoneMenu } from \"@/registry/designali/blocks/header/header-05/components/phone-menus\"\nimport { Search } from \"@/registry/designali/blocks/header/header-05/components/search\"\n\nimport {\n  Sheet,\n  SheetContent,\n  SheetTrigger,\n} from \"@workspace/ui/components/sheet\"\n\nimport { Logo } from \"@workspace/ui/designali/logo\"\n\nconst Header = () => {\n  return (\n    <header className=\"sticky top-0 flex h-12 w-full justify-center bg-foreground\">\n      <div className=\"flex w-full max-w-4xl justify-center gap-6\">\n        <div className=\"flex w-full items-center justify-between\">\n          {/* Logo */}\n          <a\n            href=\"/\"\n            aria-label=\"Designali home\"\n            className=\"flex items-center gap-2 px-6 whitespace-nowrap\"\n          >\n            <Logo className=\"size-8\" />\n          </a>\n\n          {/* Desktop Menu */}\n          <Menus />\n\n          {/* Actions + Mobile Menu */}\n          <Sheet>\n            <div className=\"flex items-center gap-2 px-2\">\n              <Search />\n\n              {/* Shopping Bag */}\n              <button\n                type=\"button\"\n                aria-label=\"Designali cart\"\n                className=\"relative flex h-9 w-9 items-center justify-center text-background hover:text-background/80\"\n              >\n                <ShoppingBag className=\"h-4 w-4\" />\n              </button>\n\n              {/* Mobile Menu Trigger */}\n              <SheetTrigger\n                className=\"flex h-9 w-9 items-center justify-center text-background hover:text-background/80 lg:hidden\"\n                aria-label=\"Open menu\"\n              >\n                <Equal className=\"h-5 w-5\" />\n              </SheetTrigger>\n            </div>\n\n            {/* Mobile Sheet */}\n            <SheetContent side=\"right\" className=\"\">\n              <PhoneMenu />\n            </SheetContent>\n          </Sheet>\n        </div>\n      </div>\n    </header>\n  )\n}\n\nexport { Header }\n",
      "type": "registry:component"
    },
    {
      "path": "registry/designali/blocks/header/header-05/components/menus.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { useState } from \"react\"\n\nimport {\n  NavigationMenu,\n  NavigationMenuContent,\n  NavigationMenuItem,\n  NavigationMenuList,\n  NavigationMenuTrigger,\n} from \"@/registry/designali/blocks/header/header-05/components/navigation\"\n\nexport function Menus() {\n  type MenuName =\n    | \"design\"\n    | \"dev\"\n    | \"learning\"\n    | \"community\"\n    | \"resources\"\n    | \"tools\"\n    | \"services\"\n    | \"company\"\n    | null\n\n  const [activeMenu, setActiveMenu] = useState<MenuName>(null)\n\n  const handleMouseEnter = (menuName: MenuName) => setActiveMenu(menuName)\n  const handleMouseLeave = () => setActiveMenu(null)\n\n  return (\n    <div className=\"hidden md:block\">\n      <NavigationMenu>\n        <NavigationMenuList>\n          {/* 1. Design */}\n          <NavigationMenuItem\n            onMouseEnter={() => handleMouseEnter(\"design\")}\n            onMouseLeave={handleMouseLeave}\n          >\n            <NavigationMenuTrigger isActive={activeMenu === \"design\"}>\n              Design\n            </NavigationMenuTrigger>\n            <NavigationMenuContent isOpen={activeMenu === \"design\"}>\n              <ul className=\"grid w-full grid-cols-1 gap-6 md:grid-cols-5\">\n                <li>\n                  <a href=\"/work\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      Brand Identity\n                    </div>\n                  </a>\n                  <a href=\"/work\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      UI/UX Design\n                    </div>\n                  </a>\n                  <a href=\"/work\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      Design Systems\n                    </div>\n                  </a>\n                </li>\n              </ul>\n            </NavigationMenuContent>\n          </NavigationMenuItem>\n\n          {/* 2. Development */}\n          <NavigationMenuItem\n            onMouseEnter={() => handleMouseEnter(\"dev\")}\n            onMouseLeave={handleMouseLeave}\n          >\n            <NavigationMenuTrigger isActive={activeMenu === \"dev\"}>\n              Development\n            </NavigationMenuTrigger>\n            <NavigationMenuContent isOpen={activeMenu === \"dev\"}>\n              <ul className=\"grid w-full grid-cols-1 gap-6 md:grid-cols-5\">\n                <li>\n                  <a href=\"/work\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      Next.js\n                    </div>\n                  </a>\n                  <a href=\"/work\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      Web Development\n                    </div>\n                  </a>\n                  <a href=\"/work\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      AI Workflows\n                    </div>\n                  </a>\n                </li>\n              </ul>\n            </NavigationMenuContent>\n          </NavigationMenuItem>\n\n          {/* 3. Learning */}\n          <NavigationMenuItem\n            onMouseEnter={() => handleMouseEnter(\"learning\")}\n            onMouseLeave={handleMouseLeave}\n          >\n            <NavigationMenuTrigger isActive={activeMenu === \"learning\"}>\n              Templates\n            </NavigationMenuTrigger>\n            <NavigationMenuContent isOpen={activeMenu === \"learning\"}>\n              <ul className=\"grid w-full grid-cols-1 gap-6 md:grid-cols-5\">\n                <li>\n                  <a href=\"/templates\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      Portfolio\n                    </div>\n                  </a>\n                  <a href=\"/templates\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      Design Agency\n                    </div>\n                  </a>\n                  <a href=\"/templates\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      AI Templates\n                    </div>\n                  </a>\n                </li>\n              </ul>\n            </NavigationMenuContent>\n          </NavigationMenuItem>\n\n          {/* 4. Community */}\n          <NavigationMenuItem\n            onMouseEnter={() => handleMouseEnter(\"community\")}\n            onMouseLeave={handleMouseLeave}\n          >\n            <NavigationMenuTrigger isActive={activeMenu === \"community\"}>\n              Community\n            </NavigationMenuTrigger>\n            <NavigationMenuContent isOpen={activeMenu === \"community\"}>\n              <ul className=\"grid w-full grid-cols-1 gap-6 md:grid-cols-5\">\n                <li>\n                  <a href=\"https://www.instagram.com/designali.code/\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      Instagram\n                    </div>\n                  </a>\n                  <a href=\"https://x.com/designali_com\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      X\n                    </div>\n                  </a>\n                  <a href=\"https://www.linkedin.com/company/designali-com/\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      LinkedIn\n                    </div>\n                  </a>\n                </li>\n              </ul>\n            </NavigationMenuContent>\n          </NavigationMenuItem>\n\n          {/* 5. Resources */}\n          <NavigationMenuItem\n            onMouseEnter={() => handleMouseEnter(\"resources\")}\n            onMouseLeave={handleMouseLeave}\n          >\n            <NavigationMenuTrigger isActive={activeMenu === \"resources\"}>\n              Resources\n            </NavigationMenuTrigger>\n            <NavigationMenuContent isOpen={activeMenu === \"resources\"}>\n              <ul className=\"grid w-full grid-cols-1 gap-6 md:grid-cols-5\">\n                <li>\n                  <a href=\"/docs\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      Docs\n                    </div>\n                  </a>\n                  <a href=\"/blogs\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      Blogs\n                    </div>\n                  </a>\n                  <a href=\"/docs/legal/terms\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      Terms\n                    </div>\n                  </a>\n                </li>\n              </ul>\n            </NavigationMenuContent>\n          </NavigationMenuItem>\n\n          {/* 6. Tools */}\n          <NavigationMenuItem\n            onMouseEnter={() => handleMouseEnter(\"tools\")}\n            onMouseLeave={handleMouseLeave}\n          >\n            <NavigationMenuTrigger isActive={activeMenu === \"tools\"}>\n              Assets\n            </NavigationMenuTrigger>\n            <NavigationMenuContent isOpen={activeMenu === \"tools\"}>\n              <ul className=\"grid w-full grid-cols-1 gap-6 md:grid-cols-5\">\n                <li>\n                  <a href=\"/icons\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      Icons\n                    </div>\n                  </a>\n                  <a href=\"/logos\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      Logos\n                    </div>\n                  </a>\n                  <a href=\"/illustration\" className=\"group block\">\n                    <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                      Illustration\n                    </div>\n                  </a>\n                </li>\n              </ul>\n            </NavigationMenuContent>\n          </NavigationMenuItem>\n\n          <div className=\"hidden lg:flex\">\n            <NavigationMenuItem\n              onMouseEnter={() => handleMouseEnter(\"services\")}\n              onMouseLeave={handleMouseLeave}\n            >\n              <NavigationMenuTrigger isActive={activeMenu === \"services\"}>\n                Blocks\n              </NavigationMenuTrigger>\n              <NavigationMenuContent isOpen={activeMenu === \"services\"}>\n                <ul className=\"grid w-full grid-cols-1 gap-6 md:grid-cols-5\">\n                  <li>\n                    <a href=\"/blocks\" className=\"group block\">\n                      <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                        Blocks\n                      </div>\n                    </a>\n                    <a href=\"/ui\" className=\"group block\">\n                      <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                        UI Designs\n                      </div>\n                    </a>\n                    <a href=\"/pricing\" className=\"group block\">\n                      <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                        Pricing\n                      </div>\n                    </a>\n                  </li>\n                </ul>\n              </NavigationMenuContent>\n            </NavigationMenuItem>\n\n            <NavigationMenuItem\n              onMouseEnter={() => handleMouseEnter(\"company\")}\n              onMouseLeave={handleMouseLeave}\n            >\n              <NavigationMenuTrigger isActive={activeMenu === \"company\"}>\n                Company\n              </NavigationMenuTrigger>\n              <NavigationMenuContent isOpen={activeMenu === \"company\"}>\n                <ul className=\"grid w-full grid-cols-1 gap-6 md:grid-cols-5\">\n                  <li>\n                    <a href=\"https://www.linkedin.com/in/aliimam-in/\" className=\"group block\">\n                      <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                        Ali Imam\n                      </div>\n                    </a>\n                    <a href=\"/work\" className=\"group block\">\n                      <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                        Work\n                      </div>\n                    </a>\n                    <a href=\"/contact\" className=\"group block\">\n                      <div className=\"mb-3 text-xl font-semibold text-background/80 hover:text-background\">\n                        Contact\n                      </div>\n                    </a>\n                  </li>\n                </ul>\n              </NavigationMenuContent>\n            </NavigationMenuItem>\n          </div>\n        </NavigationMenuList>\n      </NavigationMenu>\n    </div>\n  )\n}\n",
      "type": "registry:component"
    },
    {
      "path": "registry/designali/blocks/header/header-05/components/phone-menus.tsx",
      "content": "const PhoneMenu = () => {\n  const mainNav = [\n    {\n      title: \"Templates\",\n      items: [\n        { label: \"Portfolio\", href: \"/templates\" },\n        { label: \"Design Agency\", href: \"/templates\" },\n        { label: \"AI\", href: \"/templates\" },\n      ],\n    },\n    {\n      title: \"Blocks\",\n      items: [\n        { label: \"Heroes\", href: \"/blocks\" },\n        { label: \"Features\", href: \"/blocks\" },\n        { label: \"Pricing\", href: \"/blocks\" },\n        { label: \"Footers\", href: \"/blocks\" },\n      ],\n    },\n    {\n      title: \"UI Designs\",\n      items: [{ label: \"2300+ UI examples\", href: \"/ui\" }],\n    },\n    {\n      title: \"Icons\",\n      items: [{ label: \"@designali/icons\", href: \"/icons\" }],\n    },\n    {\n      title: \"Logos\",\n      items: [{ label: \"@designali/logos\", href: \"/logos\" }],\n    },\n    {\n      title: \"Illustration\",\n      items: [{ label: \"@designali/vectors\", href: \"/illustration\" }],\n    },\n    {\n      title: \"Pricing\",\n      items: [{ label: \"Plans\", href: \"/pricing\" }],\n    },\n    {\n      title: \"Docs\",\n      items: [{ label: \"Getting started\", href: \"/docs\" }],\n    },\n    {\n      title: \"Blogs\",\n      items: [{ label: \"Latest posts\", href: \"/blogs\" }],\n    },\n    {\n      title: \"Contact\",\n      items: [{ label: \"hello@designali.com\", href: \"mailto:hello@designali.com\" }],\n    },\n  ]\n\n  return (\n    <nav className=\"flex flex-col py-6\">\n      {mainNav.map((item) => (\n        <div key={item.title} className=\"border-b border-white/10\">\n          <button className=\"w-full px-6 py-3 text-left text-sm text-white transition-colors hover:bg-white/5\">\n            {item.title}\n          </button>\n        </div>\n      ))}\n    </nav>\n  )\n}\n\nexport { PhoneMenu }\n",
      "type": "registry:component"
    },
    {
      "path": "registry/designali/blocks/header/header-05/components/navigation.tsx",
      "content": "\"use client\"\n\nimport React, { ReactNode } from \"react\"\n\ninterface ChildrenProps {\n  children: ReactNode\n}\n\n/* =========================\n   Navigation Menu\n========================= */\n\nconst NavigationMenu: React.FC<ChildrenProps> = ({ children }) => (\n  <nav className=\"relative z-50 flex items-center justify-center\">\n    {children}\n  </nav>\n)\n\n/* =========================\n   Navigation Menu List\n========================= */\n\nconst NavigationMenuList: React.FC<ChildrenProps> = ({ children }) => (\n  <ul className=\"flex list-none items-center justify-center\">{children}</ul>\n)\n\n/* =========================\n   Navigation Menu Item\n========================= */\n\ninterface NavigationMenuItemProps extends ChildrenProps {\n  onMouseEnter?: () => void\n  onMouseLeave?: () => void\n}\n\nconst NavigationMenuItem: React.FC<NavigationMenuItemProps> = ({\n  children,\n  onMouseEnter,\n  onMouseLeave,\n}) => (\n  <li\n    onMouseEnter={onMouseEnter}\n    onMouseLeave={onMouseLeave}\n    className=\"relative\"\n  >\n    {children}\n  </li>\n)\n\n/* =========================\n   Navigation Menu Trigger\n========================= */\n\ninterface NavigationMenuTriggerProps extends ChildrenProps {\n  isActive?: boolean\n}\n\nconst NavigationMenuTrigger: React.FC<NavigationMenuTriggerProps> = ({\n  children,\n  isActive = false,\n}) => (\n  <button\n    type=\"button\"\n    className={`inline-flex h-10 items-center justify-center px-4 py-2 text-xs transition-colors duration-300 focus:outline-none ${\n      isActive ? \"text-background\" : \"text-background/90 hover:text-background\"\n    }`}\n  >\n    {children}\n  </button>\n)\n\n/* =========================\n   Navigation Menu Content\n========================= */\n\ninterface NavigationMenuContentProps extends ChildrenProps {\n  isOpen?: boolean\n}\n\nconst NavigationMenuContent: React.FC<NavigationMenuContentProps> = ({\n  children,\n  isOpen = false,\n}) => {\n  return (\n    <div\n      aria-hidden={!isOpen}\n      className={`fixed top-12 right-0 left-0 z-40 w-screen transform-gpu overflow-hidden bg-foreground transition-[opacity,transform,visibility] duration-400 ease-[cubic-bezier(0.16,1,0.3,1)] ${\n        isOpen\n          ? \"visible translate-y-0 opacity-100\"\n          : \"pointer-events-none invisible -translate-y-2 opacity-0\"\n      } `}\n    >\n      <div className=\"mx-auto w-full max-w-4xl px-8 py-12\">{children}</div>\n    </div>\n  )\n}\n\n/* =========================\n   Exports\n========================= */\n\nexport {\n  NavigationMenu,\n  NavigationMenuList,\n  NavigationMenuItem,\n  NavigationMenuTrigger,\n  NavigationMenuContent,\n}\n",
      "type": "registry:component"
    },
    {
      "path": "registry/designali/blocks/header/header-05/components/search.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n  ArrowUpRight as ArrowUpRightIcon,\n  FilePlusCorner as FilePlus2Icon,\n  LayoutTemplate as LayoutTemplateIcon,\n  Palette as PaletteIcon,\n  PenTool as PenToolIcon,\n  Search as SearchIcon,\n} from \"@designali/icons\"\n\nimport {\n  CommandDialog,\n  CommandEmpty,\n  CommandGroup,\n  CommandInput,\n  CommandItem,\n  CommandList,\n  CommandSeparator,\n  CommandShortcut,\n} from \"@workspace/ui/components/command\"\n\nexport function Search() {\n  const [open, setOpen] = React.useState(false)\n\n  React.useEffect(() => {\n    const down = (e: KeyboardEvent) => {\n      if (e.key === \"k\" && (e.metaKey || e.ctrlKey)) {\n        e.preventDefault()\n        setOpen((open) => !open)\n      }\n    }\n\n    document.addEventListener(\"keydown\", down)\n    return () => document.removeEventListener(\"keydown\", down)\n  }, [])\n\n  return (\n    <>\n      <button className=\"\" onClick={() => setOpen(true)}>\n        <span className=\"flex grow items-center\">\n          <SearchIcon\n            className=\"-ms-1 me-3 text-background hover:text-background/80\"\n            size={16}\n            aria-hidden=\"true\"\n          />\n        </span>\n      </button>\n      <CommandDialog open={open} onOpenChange={setOpen}>\n        <CommandInput placeholder=\"Search blocks, templates, icons, or docs...\" />\n        <CommandList>\n          <CommandEmpty>No matches found.</CommandEmpty>\n\n          <CommandGroup heading=\"Create\">\n            <CommandItem>\n              <FilePlus2Icon\n                size={16}\n                className=\"opacity-60\"\n                aria-hidden=\"true\"\n              />\n              <span>New project</span>\n              <CommandShortcut className=\"justify-center\">⌘N</CommandShortcut>\n            </CommandItem>\n            <CommandItem>\n              <LayoutTemplateIcon\n                size={16}\n                className=\"opacity-60\"\n                aria-hidden=\"true\"\n              />\n              <span>New template</span>\n              <CommandShortcut className=\"justify-center\">⌘T</CommandShortcut>\n            </CommandItem>\n            <CommandItem>\n              <PenToolIcon\n                size={16}\n                className=\"opacity-60\"\n                aria-hidden=\"true\"\n              />\n              <span>Start design</span>\n              <CommandShortcut className=\"justify-center\">⌘S</CommandShortcut>\n            </CommandItem>\n          </CommandGroup>\n\n          <CommandSeparator />\n\n          <CommandGroup heading=\"Navigate\">\n            <CommandItem>\n              <ArrowUpRightIcon\n                size={16}\n                className=\"opacity-60\"\n                aria-hidden=\"true\"\n              />\n              <span>Go to work</span>\n            </CommandItem>\n            <CommandItem>\n              <ArrowUpRightIcon\n                size={16}\n                className=\"opacity-60\"\n                aria-hidden=\"true\"\n              />\n              <span>Go to assets</span>\n            </CommandItem>\n            <CommandItem>\n              <ArrowUpRightIcon\n                size={16}\n                className=\"opacity-60\"\n                aria-hidden=\"true\"\n              />\n              <span>Go to documentation</span>\n            </CommandItem>\n          </CommandGroup>\n\n          <CommandSeparator />\n\n          <CommandGroup heading=\"Themes\">\n            <CommandItem>\n              <PaletteIcon\n                size={16}\n                className=\"opacity-60\"\n                aria-hidden=\"true\"\n              />\n              <span>Switch theme</span>\n              <CommandShortcut>⌘⇧T</CommandShortcut>\n            </CommandItem>\n          </CommandGroup>\n        </CommandList>\n      </CommandDialog>\n    </>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "500px"
  },
  "categories": [
    "header"
  ]
}