{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The projects of ProjectGrid as tiles: cards (picture, featured badge, category and year, title, summary, tags, two links), compact cards in four columns, captions over the pictures, or a bento where the first project takes a big tile.",
  "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-tiles.json\n    The projects of ProjectGrid as tiles: cards (picture, featured badge, category and year, title, summary, tags, two links), compact cards in four columns, captions over the pictures, or a bento where the first project takes a big tile.\n    Props (p): projects, labels, layout. -#}\n{%- set v_projects = (p.projects ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_layout = (p.layout ?? 'cards') -%}\n{%- set v_over = (og_t(og_eq(v_layout, 'overlay')) ? true : og_eq(v_layout, 'bento')) -%}\n{%- set c_13 -%}\n  {%- for v_p in og_l(v_projects) %}\n    {%- set v_i = loop.index0 -%}\n    {%- set c_12 -%}\n      {%- set c_2 -%}\n        {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_get(v_p, ['title']), 'src': og_get(v_p, ['image']), 'ratio': (og_t(og_eq(v_layout, 'compact')) ? '1/1' : (og_t(v_over) ? '3/4' : '4/3')), 'className': og_cnv([(og_t(v_over) ? 'h-full' : '')])}}, with_context = false) }}\n        {%- if og_t(og_and([og_get(v_p, ['featured']), not (og_eq(v_layout, 'compact'))])) %}\n          {%- set c_1 -%}\n            {{ og_text(og_get(v_labels, ['featured'])) }}\n          {%- endset -%}\n          {{ include('compose/Badge.html.twig', {'variant': 'default', 'size': 'default', 'class': 'absolute left-4 top-4', 'children': c_1}, with_context = false) }}\n        {%- endif %}\n      {%- endset -%}\n      {{ include('compose/Box.html.twig', {'class': og_s((og_t(v_over) ? 'h-full' : 'relative')), 'children': c_2}, with_context = false) }}\n      {%- set c_11 -%}\n        {%- set c_3 -%}\n          {{ og_text(og_tpl('{0}, {1}', [og_get(v_p, ['category']), og_get(v_p, ['year'])])) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_3}, with_context = false) }}\n        {%- set c_4 -%}\n          {{ og_text(og_get(v_p, ['title'])) }}\n        {%- endset -%}\n        {{ include('compose/Title.html.twig', {'as': 3, 'size': og_s((og_t(og_eq(v_layout, 'compact')) ? 'sm' : 'lg')), 'weight': 'semibold', 'children': c_4}, with_context = false) }}\n        {%- if og_t(not (og_eq(v_layout, 'compact'))) %}\n          {%- set c_5 -%}\n            {{ og_text(og_get(v_p, ['summary'])) }}\n          {%- endset -%}\n          {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_5}, with_context = false) }}\n        {%- endif %}\n        {%- if og_t(og_eq(v_layout, 'cards')) %}\n          {%- set c_7 -%}\n            {%- for v_k in og_l(og_get(v_p, ['tags'])) %}\n              {%- set c_6 -%}\n                {{ og_text(v_k) }}\n              {%- endset -%}\n              {{ include('compose/Badge.html.twig', {'variant': 'secondary', 'size': 'sm', 'children': c_6}, with_context = false) }}\n            {%- endfor %}\n          {%- endset -%}\n          {{ include('compose/Group.html.twig', {'gap': '2', 'class': 'flex-wrap', 'children': c_7}, with_context = false) }}\n          {%- set c_10 -%}\n            {%- set c_8 -%}\n              {{ og_text(og_get(v_labels, ['case'])) }}\n              {{ include('icons/LucideIcon.html.twig', {'name': 'arrow-right', 'size': 16}, with_context = false) }}\n            {%- endset -%}\n            {{ include('blocks/menu-entry.html.twig', {'p': {'href': og_get(v_p, ['href']), 'className': og_cnv(['inline-flex items-center gap-2 text-sm font-medium'])}, 'children': og_markup(c_8)}, with_context = false) }}\n            {%- set c_9 -%}\n              {{ og_text(og_get(v_labels, ['view'])) }}\n              {{ include('icons/LucideIcon.html.twig', {'name': 'external-link', 'size': 16}, with_context = false) }}\n            {%- endset -%}\n            {{ include('blocks/menu-entry.html.twig', {'p': {'href': og_get(v_p, ['href']), 'className': og_cnv(['inline-flex items-center gap-2 text-sm font-medium'])}, 'children': og_markup(c_9)}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Group.html.twig', {'gap': '4', 'class': 'pt-2', 'children': c_10}, with_context = false) }}\n        {%- endif %}\n      {%- endset -%}\n      {{ include('compose/Stack.html.twig', {'gap': '2', 'align': 'stretch', 'class': og_s((og_t(v_over) ? 'absolute right-4 bottom-4 left-4 rounded bg-background p-4' : '')), 'children': c_11}, with_context = false) }}\n    {%- endset -%}\n    {{ include('blocks/article-block.html.twig', {'p': {'className': og_cnv([og_cnv(['flex flex-col gap-4', (og_t(v_over) ? 'relative' : 'rounded bg-card inset-ring inset-ring-border p-4'), (og_t(og_and([og_eq(v_layout, 'bento'), og_eq(v_i, 0)])) ? 'sm:col-span-2 lg:row-span-2' : '')])]), 'testid': 'item'}, 'children': og_markup(c_12)}, with_context = false) }}\n  {%- endfor %}\n{%- endset -%}\n{{ include('compose/Box.html.twig', {'class': og_s((og_t(og_eq(v_layout, 'compact')) ? 'grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4' : 'grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3')), 'attrs': og_attrs(['data-slot', 'items']), 'children': c_13}, with_context = false) }}\n",
      "path": "blocks/project-tiles.html.twig",
      "target": "blocks/project-tiles.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "project-tiles",
  "registryDependencies": [
    "article-block",
    "badge",
    "box",
    "group",
    "lucide-icon",
    "media-frame",
    "menu-entry",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Project Tiles",
  "type": "registry:component"
}
