{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Customer videos as thumbnails with a play button. Playing is a port contract (VideoEmbed).",
  "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/video-grid.json\n    Video testimonials as thumbnails: a picture, a play button, the name and the company. The player is a port contract (VideoEmbed); here the button emits `play`. Axes: columns (2, 3), caption (below, overlay), tone, density.\n    Props (p): id, title, quotes, empty, playLabel, byLine, cols, caption, tone, density, landmarkLabel. -#}\n{%- set v_id = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_quotes = og_def(p['quotes'], none) -%}\n{%- set v_empty = og_def(p['empty'], '') -%}\n{%- set v_playLabel = og_def(p['playLabel'], none) -%}\n{%- set v_byLine = og_def(p['byLine'], none) -%}\n{%- set v_cols = og_def(p['cols'], '1-3') -%}\n{%- set v_caption = og_def(p['caption'], 'below') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_density = og_def(p['density'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_11 -%}\n  {%- if og_t(og_eq(og_len(v_quotes), 0)) %}\n    {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'video', 'title': v_empty}}) }}\n  {%- else %}\n    {%- set c_10 -%}\n      {%- for v_q in og_l(v_quotes) %}\n        {%- set c_9 -%}\n          {%- set c_5 -%}\n            {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': og_get(v_q, ['author']), 'src': og_get(v_q, ['image'])}}) }}\n            {%- set c_1 -%}\n              {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'play', 'Size': 20}}) }}\n            {%- endset -%}\n            {{ og_include('compose/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'button', 'Class': 'absolute top-1/2 left-1/2 size-12 -translate-x-1/2 -translate-y-1/2 rounded p-0', 'Attrs': og_attrs(['aria-label', og_tpl(v_playLabel, [og_get(v_q, ['author'])])])}, 'children': c_1}) }}\n            {%- if og_t(og_eq(v_caption, 'overlay')) %}\n              {%- set c_4 -%}\n                {%- set c_2 -%}\n                  {{ og_text(og_get(v_q, ['author'])) }}\n                {%- endset -%}\n                {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_2}) }}\n                {%- set c_3 -%}\n                  {{ og_text(og_tpl(v_byLine, [og_get(v_q, ['role']), og_get(v_q, ['company'])])) }}\n                {%- endset -%}\n                {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_3}) }}\n              {%- endset -%}\n              {{ og_include('compose/box.html.j2', {'p': {'Class': 'absolute inset-x-0 bottom-0 rounded bg-background p-4', 'Attrs': og_attrs(['data-slot', 'caption'])}, 'children': c_4}) }}\n            {%- endif %}\n          {%- endset -%}\n          {{ og_include('compose/box.html.j2', {'p': {'Class': 'relative'}, 'children': c_5}) }}\n          {%- if og_t(og_eq(v_caption, 'below')) %}\n            {%- set c_8 -%}\n              {%- set c_6 -%}\n                {{ og_text(og_get(v_q, ['author'])) }}\n              {%- endset -%}\n              {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_6}) }}\n              {%- set c_7 -%}\n                {{ og_text(og_tpl(v_byLine, [og_get(v_q, ['role']), og_get(v_q, ['company'])])) }}\n              {%- endset -%}\n              {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_7}) }}\n            {%- endset -%}\n            {{ og_include('compose/text.html.j2', {'p': {'Tag': 'figcaption', 'Attrs': og_attrs(['data-slot', 'caption'])}, 'children': c_8}) }}\n          {%- endif %}\n        {%- endset -%}\n        {{ og_include('blocks/figure-block.html.j2', {'p': {'className': og_cnv(['m-0 flex flex-col gap-4']), 'testid': 'item'}, 'children': og_markup(c_9)}) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ og_include('compose/grid.html.j2', {'p': {'Cols': og_s(v_cols), 'Class': 'gap-4', 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_10}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_11)}) }}\n",
      "path": "blocks/video-grid.html.j2",
      "target": "blocks/video-grid.html.j2"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "video-grid",
  "registryDependencies": [
    "box",
    "button",
    "empty-state",
    "figure-block",
    "grid",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Video Grid",
  "type": "registry:block"
}
