{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Features beside a picture: plain in two columns, as cards with actions, two figures over checked rows, or four metric cards with actions.",
  "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/feature-split.json\n    Features beside a picture. Axes: layout (grid: four plain features in two columns, cards: four features as cards and the actions, stats: two figure cards over three checked rows beside a square picture, metrics: four metric cards and the actions), mediaSide, tone.\n    Props (p): id, title, lead, badge, level, features, stats, actions, layout, mediaSide, tone, image, imageAlt, landmarkLabel. -#}\n{%- set v_id = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_lead = og_def(p['lead'], '') -%}\n{%- set v_badge = og_def(p['badge'], '') -%}\n{%- set v_level = og_def(p['level'], 2) -%}\n{%- set v_features = og_def(p['features'], none) -%}\n{%- set v_stats = og_def(p['stats'], none) -%}\n{%- set v_actions = og_def(p['actions'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'grid') -%}\n{%- set v_mediaSide = og_def(p['mediaSide'], 'end') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_image = og_def(p['image'], none) -%}\n{%- set v_imageAlt = og_def(p['imageAlt'], none) -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set f_1 -%}\n  {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': (v_imageAlt if og_t(v_imageAlt) else v_title), 'src': v_image, 'ratio': ('1/1' if og_t(og_eq(v_layout, 'stats')) else '4/3')}}) }}\n{%- endset -%}\n{%- set c_2 -%}\n  {%- if og_t(og_eq(v_layout, 'grid')) %}\n    {%- if og_t(og_gt(og_len(v_features), 0)) %}\n      {{ og_include('blocks/feature-pairs.html.j2', {'p': {'features': v_features}}) }}\n    {%- endif %}\n  {%- endif %}\n  {%- if og_t(og_eq(v_layout, 'cards')) %}\n    {%- if og_t(og_gt(og_len(v_features), 0)) %}\n      {{ og_include('blocks/feature-cards.html.j2', {'p': {'features': v_features, 'cols': '1-2', 'item': 'tile'}}) }}\n    {%- endif %}\n  {%- endif %}\n  {%- if og_t(og_eq(v_layout, 'stats')) %}\n    {%- if og_t(og_gt(og_len(v_features), 0)) %}\n      {{ og_include('blocks/feature-stat-rows.html.j2', {'p': {'features': v_features, 'stats': v_stats}}) }}\n    {%- endif %}\n  {%- endif %}\n  {%- if og_t(og_eq(v_layout, 'metrics')) %}\n    {%- if og_t(og_gt(og_len(v_stats), 0)) %}\n      {{ og_include('blocks/feature-metric-cards.html.j2', {'p': {'stats': v_stats}}) }}\n    {%- endif %}\n  {%- endif %}\n  {%- if og_t(og_or([og_eq(v_layout, 'cards'), og_eq(v_layout, 'metrics')])) %}\n    {{ og_include('blocks/action-group.html.j2', {'p': {'primary': og_get(v_actions, ['cta']), 'primaryHref': og_get(v_actions, ['href']), 'secondary': (og_get(v_actions, ['secondary']) if og_t(og_eq(og_get(v_actions, ['mode']), 'two')) else none), 'secondaryHref': og_get(v_actions, ['secondaryHref'])}}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge, 'level': v_level}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true, 'side': v_mediaSide}, 'landmarkLabel': v_landmarkLabel, 'aside': og_markup(f_1)}, 'children': og_markup(c_2)}) }}\n",
      "path": "blocks/feature-split.html.j2",
      "target": "blocks/feature-split.html.j2"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "feature-split",
  "registryDependencies": [
    "action-group",
    "feature-cards",
    "feature-metric-cards",
    "feature-pairs",
    "feature-stat-rows",
    "media-frame",
    "section-frame",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Feature Split",
  "type": "registry:block"
}
