{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "grid-12",
  "type": "registry:block",
  "description": "Month calendar grid with colour-coded events, a legend and dot markers on mobile.",
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/grid/grid-12.tsx",
      "content": "const events: Record<number, { title: string; tone: string }[]> = {\n  3: [{ title: \"Design crit\", tone: \"bg-primary\" }],\n  6: [{ title: \"Workshop: Design tokens\", tone: \"bg-primary\" }],\n  10: [{ title: \"Community call\", tone: \"bg-primary\" }],\n  12: [{ title: \"Office hours with Ali\", tone: \"bg-primary\" }, { title: \"New blocks drop\", tone: \"bg-primary\" }],\n  17: [{ title: \"Design crit\", tone: \"bg-primary\" }],\n  19: [{ title: \"Live: Figma to Next.js\", tone: \"bg-primary\" }],\n  20: [{ title: \"Workshop: Motion\", tone: \"bg-primary\" }],\n  24: [{ title: \"Community call\", tone: \"bg-primary\" }],\n  26: [{ title: \"Office hours\", tone: \"bg-primary\" }],\n  30: [{ title: \"Designali year in review\", tone: \"bg-primary\" }],\n}\n\nconst weekdays = [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"]\n// December 2026 starts on a Tuesday, so one leading empty cell on a Monday-first grid\nconst leading = 1\nconst daysInMonth = 31\n\nconst legend = [\n  { label: \"Crit\", tone: \"bg-primary\" },\n  { label: \"Workshop\", tone: \"bg-primary\" },\n  { label: \"Community\", tone: \"bg-primary\" },\n  { label: \"Office hours\", tone: \"bg-primary\" },\n  { label: \"Release\", tone: \"bg-primary\" },\n]\n\nexport default function Grid12() {\n  const cells = Array.from({ length: leading + daysInMonth }, (_, i) => (i < leading ? null : i - leading + 1))\n  while (cells.length % 7 !== 0) cells.push(null)\n\n  return (\n    <section className=\"w-full bg-background py-24\">\n      <div className=\"mx-auto max-w-7xl px-6\">\n        <div className=\"flex flex-col gap-6 md:flex-row md:items-end md:justify-between\">\n          <div>\n            <p className=\"text-xs tracking-widest text-muted-foreground uppercase\">Designali events calendar</p>\n            <h2 className=\"mt-3 text-4xl font-semibold tracking-tight\">December 2026</h2>\n          </div>\n          <ul className=\"flex flex-wrap gap-x-4 gap-y-2\">\n            {legend.map((item) => (\n              <li key={item.label} className=\"flex items-center gap-1.5 text-xs text-muted-foreground\">\n                <span className={`size-2 ${item.tone}`} />\n                {item.label}\n              </li>\n            ))}\n          </ul>\n        </div>\n\n        <div className=\"mt-10 border-t border-l border-border\">\n          <div className=\"grid grid-cols-7\">\n            {weekdays.map((day) => (\n              <div key={day} className=\"border-r border-b border-border bg-muted/50 px-2 py-2 text-[10px] font-medium tracking-wider text-muted-foreground uppercase md:px-3\">\n                <span className=\"md:hidden\">{day[0]}</span>\n                <span className=\"hidden md:inline\">{day}</span>\n              </div>\n            ))}\n          </div>\n          <div className=\"grid grid-cols-7\">\n            {cells.map((day, index) => {\n              const dayEvents = day ? events[day] ?? [] : []\n              return (\n                <div\n                  key={index}\n                  className={`min-h-14 border-r border-b border-border p-1.5 md:min-h-28 md:p-2 ${\n                    day ? \"bg-background\" : \"bg-muted/30\"\n                  }`}\n                >\n                  {day && (\n                    <>\n                      <span\n                        className={`inline-flex size-6 items-center justify-center font-sans text-xs ${\n                          day === 12 ? \"bg-foreground text-background\" : \"\"\n                        }`}\n                      >\n                        {day}\n                      </span>\n                      <div className=\"mt-1 flex gap-1 md:hidden\">\n                        {dayEvents.map((event) => (\n                          <span key={event.title} className={`size-1.5 ${event.tone}`} />\n                        ))}\n                      </div>\n                      <ul className=\"mt-1 hidden space-y-1 md:block\">\n                        {dayEvents.map((event) => (\n                          <li key={event.title} className=\"flex items-center gap-1.5 truncate bg-muted px-1.5 py-1 text-[11px]\">\n                            <span className={`size-1.5 shrink-0 ${event.tone}`} />\n                            <span className=\"truncate\">{event.title}</span>\n                          </li>\n                        ))}\n                      </ul>\n                    </>\n                  )}\n                </div>\n              )\n            })}\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "900px"
  },
  "categories": [
    "grid"
  ]
}