{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Projects as cards, a compact grid, captions over pictures, a bento or a list beside a collage.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{#- Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n    Source: packages/compose-gen/specs/organisms/project-grid.json\n    Projects of a studio or a person: cards with tags and links, a compact grid, tiles with the caption over the picture, a bento with one big project, or a list beside a collage. Axes: layout (cards, compact, overlay, bento, list), tone, density.\n    Props (p): id, title, lead, projects, empty, labels, layout, tone, density, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_lead = (p.lead ?? '') -%}\n{%- set v_projects = (p.projects ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_layout = (p.layout ?? 'cards') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set f_8 -%}\n  {%- set c_9 -%}\n    {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '3/4'}}, with_context = false) }}\n    {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '3/4', 'className': og_cnv(['mt-8'])}}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Box.html.twig', {'class': 'grid grid-cols-2 gap-4', 'attrs': og_attrs(['data-slot', 'collage']), 'children': c_9}, with_context = false) }}\n{%- endset -%}\n{%- set c_10 -%}\n  {%- if og_t(og_eq(og_len(v_projects), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'folder-open', 'title': v_empty}}, with_context = false) }}\n  {%- elseif og_t(og_eq(v_layout, 'list')) %}\n    {%- set c_7 -%}\n      {%- for v_p in og_l(v_projects) %}\n        {%- set c_6 -%}\n          {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_get(v_p, ['title']), 'src': og_get(v_p, ['image']), 'ratio': '1/1', 'className': og_cnv(['size-16 shrink-0'])}}, with_context = false) }}\n          {%- set c_5 -%}\n            {%- set c_3 -%}\n              {%- set c_1 -%}\n                {{ og_text(og_get(v_p, ['title'])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_1}, with_context = false) }}\n              {%- set c_2 -%}\n                {{ og_text(og_get(v_p, ['year'])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_2}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Group.html.twig', {'gap': '4', 'justify': 'between', 'children': c_3}, with_context = false) }}\n            {%- set c_4 -%}\n              {{ og_text(og_get(v_p, ['summary'])) }}\n            {%- endset -%}\n            {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_4}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Stack.html.twig', {'gap': '2', 'align': 'stretch', 'class': 'flex-1', 'children': c_5}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'start', 'class': 'border-b border-border pb-4', 'attrs': og_attrs(['data-slot', 'item']), 'children': c_6}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/Stack.html.twig', {'gap': '4', 'align': 'stretch', 'attrs': og_attrs(['data-slot', 'items']), 'children': c_7}, with_context = false) }}\n  {%- else %}\n    {{ include('blocks/project-tiles.html.twig', {'p': {'projects': v_projects, 'labels': v_labels, 'layout': v_layout}}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'tone': v_tone, 'density': v_density, 'layout': (og_t(og_eq(v_layout, 'list')) ? 'split' : 'stack'), 'media': {'show': og_eq(v_layout, 'list'), 'align': 'start'}, 'landmarkLabel': v_landmarkLabel, 'aside': og_markup(f_8)}, 'children': og_markup(c_10)}, with_context = false) }}\n",
      "path": "blocks/project-grid.html.twig",
      "target": "blocks/project-grid.html.twig"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "company",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "project-grid",
  "registryDependencies": [
    "box",
    "empty-state",
    "group",
    "media-frame",
    "project-tiles",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Project Grid",
  "type": "registry:block"
}
