{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "portfolio-04",
  "type": "registry:block",
  "description": "A filterable project archive grid.",
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/portfolio/portfolio-04.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\n\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst filters = [\"All\", \"Branding\", \"Product\", \"Templates\", \"Type\"]\n\nconst works = [\n  {\n    title: \"Dalim\",\n    type: \"Branding\",\n    ratio: \"aspect-square\",\n    color: \"var(--chart-1)\",\n    image: \"/images/templates/dalim-old.jpg\",\n  },\n  {\n    title: \"Dalim UI\",\n    type: \"Product\",\n    ratio: \"aspect-[3/4]\",\n    color: \"var(--chart-2)\",\n    image: \"/images/templates/dalim-ui-old.jpg\",\n  },\n  {\n    title: \"Portfolio Simple\",\n    type: \"Templates\",\n    ratio: \"aspect-[4/3]\",\n    color: \"var(--chart-3)\",\n    image: \"/images/templates/portfolio-simple.jpg\",\n  },\n  {\n    title: \"Dalim Fonts\",\n    type: \"Type\",\n    ratio: \"aspect-[3/4]\",\n    color: \"var(--chart-4)\",\n    image: \"/images/templates/dalim-fonts-old.jpg\",\n  },\n  {\n    title: \"Dalim Tools\",\n    type: \"Product\",\n    ratio: \"aspect-square\",\n    color: \"var(--chart-5)\",\n    image: \"/images/templates/dalim-tools-old.jpg\",\n  },\n  {\n    title: \"Dalim Graphic\",\n    type: \"Branding\",\n    ratio: \"aspect-[4/3]\",\n    color: \"var(--chart-2)\",\n    image: \"/images/templates/dalim-graphic-old.jpg\",\n  },\n  {\n    title: \"Resort\",\n    type: \"Templates\",\n    ratio: \"aspect-square\",\n    color: \"var(--chart-1)\",\n    image: \"/images/templates/resort.jpg\",\n  },\n  {\n    title: \"Dalim Icons\",\n    type: \"Type\",\n    ratio: \"aspect-[4/3]\",\n    color: \"var(--chart-3)\",\n    image: \"/images/templates/dalim-icons-old.jpg\",\n  },\n]\n\nexport default function Portfolio04() {\n  const [filter, setFilter] = useState(\"All\")\n  const visible =\n    filter === \"All\" ? works : works.filter((w) => w.type === filter)\n\n  return (\n    <section className=\"w-full bg-background py-16 text-foreground md:py-24\">\n      <div className=\"mx-auto max-w-6xl px-6\">\n        <div className=\"flex flex-col justify-between gap-6 border-b border-border pb-6 md:flex-row md:items-end\">\n          <div>\n            <h2 className=\"text-3xl font-medium tracking-tight md:text-5xl\">\n              Designali archive\n            </h2>\n            <p className=\"mt-2 text-sm text-muted-foreground\">\n              {visible.length} projects shown\n            </p>\n          </div>\n          <div className=\"flex flex-wrap gap-x-5 gap-y-2 text-sm\">\n            {filters.map((item) => (\n              <button\n                key={item}\n                type=\"button\"\n                onClick={() => setFilter(item)}\n                className={cn(\n                  \"pb-1 transition-colors\",\n                  filter === item\n                    ? \"border-b border-foreground text-foreground\"\n                    : \"text-muted-foreground hover:text-foreground\"\n                )}\n              >\n                {item}\n              </button>\n            ))}\n          </div>\n        </div>\n\n        <div className=\"mt-8 columns-1 gap-4 sm:columns-2 lg:columns-3\">\n          {visible.map((work) => (\n            <a\n              key={work.title}\n              href=\"#\"\n              className=\"group mb-4 block break-inside-avoid\"\n            >\n              <div\n                className={cn(\n                  \"relative overflow-hidden border border-border bg-muted\",\n                  work.ratio\n                )}\n              >\n                <img\n                  src={work.image}\n                  alt={`${work.title} by Designali`}\n                  loading=\"lazy\"\n                  className=\"absolute inset-0 h-full w-full object-cover opacity-90 transition-opacity group-hover:opacity-100\"\n                />\n                <div\n                  className=\"absolute inset-0 opacity-30 transition-opacity group-hover:opacity-0\"\n                  style={{\n                    background: `radial-gradient(circle at 70% 30%, ${work.color}, transparent 70%)`,\n                  }}\n                />\n                <div className=\"absolute inset-x-0 bottom-0 flex items-center justify-between bg-background/90 px-4 py-3 text-sm backdrop-blur transition-transform md:translate-y-full md:group-hover:translate-y-0\">\n                  <span className=\"font-medium\">{work.title}</span>\n                  <span className=\"text-xs text-muted-foreground\">\n                    {work.type}\n                  </span>\n                </div>\n              </div>\n            </a>\n          ))}\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "1000px"
  },
  "categories": [
    "portfolio"
  ]
}