{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "header-02",
  "type": "registry:block",
  "description": "A simple header section.",
  "dependencies": [
    "next-themes"
  ],
  "registryDependencies": [
    "button",
    "command",
    "navigation-menu",
    "toggle",
    "accordion",
    "sheet"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/header/header-02/page.tsx",
      "content": "import { Header } from \"@/registry/designali/blocks/header/header-02/components/header\"\n\nexport default function Header02() {\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-02/components/header.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  ArrowRight,\n  Equal,\n} from \"@designali/icons\"\n\nimport { Search } from \"@/registry/designali/blocks/header/header-02/components/search\"\nimport { ModeToggle } from \"@/registry/designali/blocks/header/header-02/components/theme-switch\"\n\nimport {\n  Accordion,\n  AccordionContent,\n  AccordionItem,\n  AccordionTrigger,\n} from \"@workspace/ui/components/accordion\"\n\nimport { Button } from \"@workspace/ui/components/button\"\n\nimport {\n  Sheet,\n  SheetContent,\n  SheetTrigger,\n} from \"@workspace/ui/components/sheet\"\n\nimport { Logo } from \"@/src/components/logo\"\n\nexport function Header() {\n  const [mobileOpen, setMobileOpen] = useState(false)\n\n  const navItems = [\n    {\n      label: \"Templates\",\n      href: \"/templates\",\n      active: true,\n    },\n    {\n      label: \"Blocks\",\n      href: \"/blocks\",\n    },\n    {\n      label: \"UI Designs\",\n      href: \"/ui\",\n    },\n    {\n      label: \"Icons\",\n      href: \"/icons\",\n    },\n    {\n      label: \"Logos\",\n      href: \"/logos\",\n    },\n    {\n      label: \"Illustration\",\n      href: \"/illustration\",\n    },\n    {\n      label: \"Pricing\",\n      href: \"/pricing\",\n    },\n    {\n      label: \"Docs\",\n      href: \"/docs\",\n    },\n    {\n      label: \"Blogs\",\n      href: \"/blogs\",\n    },\n  ]\n\n  const properties = [\n    {\n      location: \"Studio\",\n      venues: [\n        {\n          name: \"Work\",\n          href: \"/work\",\n        },\n      ],\n    },\n    {\n      location: \"Get in touch\",\n      venues: [\n        {\n          name: \"Contact\",\n          href: \"/contact\",\n        },\n        {\n          name: \"hello@designali.com\",\n          href: \"mailto:hello@designali.com\",\n        },\n      ],\n    },\n  ]\n\n  return (\n    <header className=\"sticky top-0 z-50 border-b bg-background\">\n      <div className=\"mx-auto px-4\">\n        {/* Main Header */}\n        <div className=\"flex h-16 items-center justify-between\">\n          {/* Logo */}\n          <a\n            href=\"/\"\n            aria-label=\"Designali home\"\n            className=\"flex items-center gap-2 whitespace-nowrap\"\n          >\n            <Logo className=\"ml-3 size-8\" />\n\n            <span className=\"text-lg font-medium\">designali</span>\n          </a>\n\n          {/* Search */}\n          <Search />\n\n          {/* Actions */}\n          <div className=\"flex items-center gap-2\">\n            <ModeToggle />\n\n            {/* Desktop CTA */}\n            <Button className=\"hidden items-center gap-2 md:flex\">\n              <span>Start Designing</span>\n              <ArrowRight className=\"h-4 w-4\" />\n            </Button>\n\n            {/* Mobile Menu */}\n            <Sheet open={mobileOpen} onOpenChange={setMobileOpen}>\n              <SheetTrigger\n                render={\n                  <Button variant=\"ghost\" size=\"icon\" className=\"lg:hidden\" />\n                }\n              >\n                <Equal className=\"h-6 w-6\" />\n                <span className=\"sr-only\">Open menu</span>\n              </SheetTrigger>\n\n              <SheetContent\n                side=\"right\"\n                className=\"w-full overflow-y-auto sm:w-[400px]\"\n              >\n                <div className=\"m-6 mt-14\">\n                  {/* Mobile Navigation */}\n                  <Accordion className=\"mb-8\">\n                    <AccordionItem value=\"navigation\" className=\"border-none\">\n                      <AccordionTrigger className=\"rounded-lg bg-accent px-4 hover:bg-accent/80 hover:no-underline\">\n                        <div className=\"text-left\">\n                          <div className=\"font-medium\">designali</div>\n\n                          <div className=\"text-sm text-muted-foreground\">\n                            / Templates\n                          </div>\n                        </div>\n                      </AccordionTrigger>\n\n                      <AccordionContent className=\"pt-2\">\n                        <div className=\"overflow-hidden rounded-lg border\">\n                          {navItems.map((item) => (\n                            <a\n                              key={item.label}\n                              href={item.href}\n                              className={`block border-b px-4 py-3 text-sm transition-colors last:border-b-0 hover:bg-accent ${\n                                item.active ? \"bg-accent font-medium\" : \"\"\n                              }`}\n                              onClick={() => setMobileOpen(false)}\n                            >\n                              {item.label}\n                            </a>\n                          ))}\n                        </div>\n                      </AccordionContent>\n                    </AccordionItem>\n                  </Accordion>\n\n                  {/* Properties */}\n                  <div className=\"space-y-6\">\n                    {properties.map((property) => (\n                      <div key={property.location}>\n                        <p className=\"mb-2 text-xs tracking-wider text-muted-foreground uppercase\">\n                          {property.location}\n                        </p>\n\n                        <ul className=\"space-y-2\">\n                          {property.venues.map((venue) => (\n                            <li\n                              key={venue.name}\n                              className=\"border-t border-border\"\n                            >\n                              <a\n                                href={venue.href}\n                                className=\"block py-3 text-lg font-medium transition-colors hover:text-muted-foreground\"\n                                onClick={() => setMobileOpen(false)}\n                              >\n                                {venue.name}\n                              </a>\n                            </li>\n                          ))}\n                        </ul>\n                      </div>\n                    ))}\n                  </div>\n                </div>\n              </SheetContent>\n            </Sheet>\n          </div>\n        </div>\n\n        {/* Desktop Secondary Navigation */}\n        <nav className=\"hidden border-t lg:block\">\n          <ul className=\"-mx-2 flex items-center justify-center\">\n            {navItems.map((item) => (\n              <li key={item.label}>\n                <a\n                  href={item.href}\n                  className={`block px-4 py-3 text-xs transition-colors ${\n                    item.active\n                      ? \"border-b-2 border-primary font-semibold\"\n                      : \"text-muted-foreground hover:bg-primary/20\"\n                  }`}\n                >\n                  {item.label}\n                </a>\n              </li>\n            ))}\n          </ul>\n        </nav>\n      </div>\n    </header>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/header.tsx"
    },
    {
      "path": "registry/designali/blocks/header/header-02/components/theme-switch.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { useEffect, useState } from \"react\"\nimport {\n  Moon,\n  Sun,\n} from \"@designali/icons\"\nimport { useTheme } from \"next-themes\"\n\nimport { Toggle } from \"@workspace/ui/components/toggle\"\n\nexport function ModeToggle() {\n  const { theme, setTheme } = useTheme()\n  const [mounted, setMounted] = useState(false)\n\n  useEffect(() => {\n    setMounted(true)\n  }, [])\n\n  if (!mounted) return null\n\n  return (\n    <div className=\"flex flex-col justify-center\">\n      <div>\n        <Toggle\n          className=\"group size-9 cursor-pointer bg-secondary data-[state=on]:bg-transparent data-[state=on]:hover:bg-muted dark:bg-secondary\"\n          pressed={theme === \"dark\"}\n          onPressedChange={() => setTheme(theme === \"dark\" ? \"light\" : \"dark\")}\n          aria-label={`Switch to ${theme === \"dark\" ? \"light\" : \"dark\"} mode`}\n        >\n          <Moon\n            size={16}\n            className=\"shrink-0 scale-0 opacity-0 transition-all group-data-[state=on]:scale-100 group-data-[state=on]:opacity-100\"\n            aria-hidden=\"true\"\n          />\n          <Sun\n            size={16}\n            className=\"absolute shrink-0 scale-100 opacity-100 transition-all group-data-[state=on]:scale-0 group-data-[state=on]:opacity-0\"\n            aria-hidden=\"true\"\n          />\n        </Toggle>\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/theme-switch.tsx"
    },
    {
      "path": "registry/designali/blocks/header/header-02/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  Command,\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\n    return () => {\n      document.removeEventListener(\"keydown\", down)\n    }\n  }, [])\n\n  return (\n    <div className=\"absolute left-1/2 -translate-x-1/2\">\n      <button\n        type=\"button\"\n        onClick={() => setOpen(true)}\n        className=\"hidden h-9 w-full max-w-sm items-center border border-input bg-background px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 lg:inline-flex\"\n      >\n        <span className=\"flex grow items-center\">\n          <SearchIcon\n            className=\"-ms-1 me-3 text-muted-foreground/80\"\n            size={16}\n            aria-hidden=\"true\"\n          />\n\n          <span className=\"font-normal text-muted-foreground/70\">\n            Search Designali...\n          </span>\n        </span>\n\n        <kbd className=\"ms-12 -me-1 inline-flex h-5 items-center border bg-background px-1 font-[inherit] text-[0.625rem] font-medium text-muted-foreground/70\">\n          ⌘K\n        </kbd>\n      </button>\n\n      {/* Command Dialog */}\n      <CommandDialog open={open} onOpenChange={setOpen}>\n        <Command>\n          <CommandInput placeholder=\"Search blocks, templates, icons, or docs...\" />\n\n          <CommandList>\n            <CommandEmpty>No matches found.</CommandEmpty>\n\n            {/* Create */}\n            <CommandGroup heading=\"Create\">\n              <CommandItem>\n                <FilePlus2Icon\n                  size={16}\n                  className=\"opacity-60\"\n                  aria-hidden=\"true\"\n                />\n\n                <span>New project</span>\n\n                <CommandShortcut>⌘N</CommandShortcut>\n              </CommandItem>\n\n              <CommandItem>\n                <LayoutTemplateIcon\n                  size={16}\n                  className=\"opacity-60\"\n                  aria-hidden=\"true\"\n                />\n\n                <span>New template</span>\n\n                <CommandShortcut>⌘T</CommandShortcut>\n              </CommandItem>\n\n              <CommandItem>\n                <PenToolIcon\n                  size={16}\n                  className=\"opacity-60\"\n                  aria-hidden=\"true\"\n                />\n\n                <span>Start design</span>\n\n                <CommandShortcut>⌘S</CommandShortcut>\n              </CommandItem>\n            </CommandGroup>\n\n            <CommandSeparator />\n\n            {/* Navigate */}\n            <CommandGroup heading=\"Navigate\">\n              <CommandItem>\n                <ArrowUpRightIcon\n                  size={16}\n                  className=\"opacity-60\"\n                  aria-hidden=\"true\"\n                />\n\n                <span>Go to work</span>\n              </CommandItem>\n\n              <CommandItem>\n                <ArrowUpRightIcon\n                  size={16}\n                  className=\"opacity-60\"\n                  aria-hidden=\"true\"\n                />\n\n                <span>Go to templates</span>\n              </CommandItem>\n\n              <CommandItem>\n                <ArrowUpRightIcon\n                  size={16}\n                  className=\"opacity-60\"\n                  aria-hidden=\"true\"\n                />\n\n                <span>Go to documentation</span>\n              </CommandItem>\n\n              <CommandItem>\n                <ArrowUpRightIcon\n                  size={16}\n                  className=\"opacity-60\"\n                  aria-hidden=\"true\"\n                />\n\n                <span>Go to blocks</span>\n              </CommandItem>\n\n              <CommandItem>\n                <ArrowUpRightIcon\n                  size={16}\n                  className=\"opacity-60\"\n                  aria-hidden=\"true\"\n                />\n\n                <span>Go to icons</span>\n              </CommandItem>\n            </CommandGroup>\n\n            <CommandSeparator />\n\n            {/* Themes */}\n            <CommandGroup heading=\"Themes\">\n              <CommandItem>\n                <PaletteIcon\n                  size={16}\n                  className=\"opacity-60\"\n                  aria-hidden=\"true\"\n                />\n\n                <span>Switch theme</span>\n\n                <CommandShortcut>⌘⇧T</CommandShortcut>\n              </CommandItem>\n            </CommandGroup>\n          </CommandList>\n        </Command>\n      </CommandDialog>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/search.tsx"
    }
  ],
  "meta": {
    "iframeHeight": "500px"
  },
  "categories": [
    "header"
  ]
}