{
  "$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 = og_def(p['projects'], none) -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'cards') -%}\n{%- set v_over = (true if og_t(og_eq(v_layout, 'overlay')) else 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        {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': og_get(v_p, ['title']), 'src': og_get(v_p, ['image']), 'ratio': ('1/1' if og_t(og_eq(v_layout, 'compact')) else ('3/4' if og_t(v_over) else '4/3')), 'className': og_cnv([('h-full' if og_t(v_over) else '')])}}) }}\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          {{ og_include('compose/badge.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Class': 'absolute left-4 top-4'}, 'children': c_1}) }}\n        {%- endif %}\n      {%- endset -%}\n      {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(('h-full' if og_t(v_over) else 'relative'))}, 'children': c_2}) }}\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        {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_3}) }}\n        {%- set c_4 -%}\n          {{ og_text(og_get(v_p, ['title'])) }}\n        {%- endset -%}\n        {{ og_include('compose/title.html.j2', {'p': {'As': 3, 'Size': og_s(('sm' if og_t(og_eq(v_layout, 'compact')) else 'lg')), 'Weight': 'semibold'}, 'children': c_4}) }}\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          {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_5}) }}\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              {{ og_include('compose/badge.html.j2', {'p': {'Variant': 'secondary', 'Size': 'sm'}, 'children': c_6}) }}\n            {%- endfor %}\n          {%- endset -%}\n          {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Class': 'flex-wrap'}, 'children': c_7}) }}\n          {%- set c_10 -%}\n            {%- set c_8 -%}\n              {{ og_text(og_get(v_labels, ['case'])) }}\n              {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'arrow-right', 'Size': 16}}) }}\n            {%- endset -%}\n            {{ og_include('blocks/menu-entry.html.j2', {'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)}) }}\n            {%- set c_9 -%}\n              {{ og_text(og_get(v_labels, ['view'])) }}\n              {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'external-link', 'Size': 16}}) }}\n            {%- endset -%}\n            {{ og_include('blocks/menu-entry.html.j2', {'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)}) }}\n          {%- endset -%}\n          {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Class': 'pt-2'}, 'children': c_10}) }}\n        {%- endif %}\n      {%- endset -%}\n      {{ og_include('compose/stack.html.j2', {'p': {'Gap': '2', 'Align': 'stretch', 'Class': og_s(('absolute right-4 bottom-4 left-4 rounded bg-background p-4' if og_t(v_over) else ''))}, 'children': c_11}) }}\n    {%- endset -%}\n    {{ og_include('blocks/article-block.html.j2', {'p': {'className': og_cnv([og_cnv(['flex flex-col gap-4', ('relative' if og_t(v_over) else 'rounded bg-card inset-ring inset-ring-border p-4'), ('sm:col-span-2 lg:row-span-2' if og_t(og_and([og_eq(v_layout, 'bento'), og_eq(v_i, 0)])) else '')])]), 'testid': 'item'}, 'children': og_markup(c_12)}) }}\n  {%- endfor %}\n{%- endset -%}\n{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(('grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4' if og_t(og_eq(v_layout, 'compact')) else 'grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3')), 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_13}) }}\n",
      "path": "blocks/project-tiles.html.j2",
      "target": "blocks/project-tiles.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "project-tiles",
  "registryDependencies": [
    "article-block",
    "badge",
    "box",
    "group",
    "lucide-icon",
    "media-frame",
    "menu-entry",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Project Tiles",
  "type": "registry:component"
}
