{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Heading, lead, one or two actions and optional media.",
  "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/hero-classic.json\n    The top of a page: heading, lead and actions, with optional media (image, backdrop, code window, cluster). Axes: layout, media kind and side, scale, tone, density, actions mode.\n    Props (p): id, title, text, level, badge, topics, actions, media, layout, scale, tone, density, image, imageAlt, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_text = (p.text ?? null) -%}\n{%- set v_level = (p.level ?? 1) -%}\n{%- set v_badge = (p.badge ?? null) -%}\n{%- set v_topics = (p.topics ?? null) -%}\n{%- set v_actions = (p.actions ?? null) -%}\n{%- set v_media = (p.media ?? null) -%}\n{%- set v_layout = (p.layout ?? 'centered') -%}\n{%- set v_scale = (p.scale ?? 'default') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_density = (p.density ?? 'roomy') -%}\n{%- set v_image = (p.image ?? null) -%}\n{%- set v_imageAlt = (p.imageAlt ?? null) -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set v_mediaKind = og_coalesce([og_get(v_media, ['kind']), 'none']) -%}\n{%- set v_mediaSide = og_coalesce([og_get(v_media, ['side']), 'end']) -%}\n{%- set f_5 -%}\n  {%- if og_t(og_and([og_eq(v_mediaKind, 'code'), og_get(v_media, ['lines']), og_gt(og_len(og_get(v_media, ['lines'])), 0), og_get(v_media, ['codeTitle']), og_get(v_media, ['prompt'])])) %}\n    {{ include('blocks/code-window.html.twig', {'p': {'title': og_get(v_media, ['codeTitle']), 'prompt': og_get(v_media, ['prompt']), 'lines': og_get(v_media, ['lines'])}}, with_context = false) }}\n  {%- endif %}\n  {%- if og_t(og_eq(v_mediaKind, 'cluster')) %}\n    {%- set c_9 -%}\n      {%- set c_6 -%}\n        {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '3/4'}}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['w-full', ''])), 'children': c_6}, with_context = false) }}\n      {%- set c_7 -%}\n        {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '4/3'}}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['w-full', '-translate-y-4'])), 'children': c_7}, with_context = false) }}\n      {%- set c_8 -%}\n        {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '3/4'}}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['w-full', ''])), 'children': c_8}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Grid.html.twig', {'cols': '3', 'class': 'items-end gap-4', 'attrs': og_attrs(['data-slot', 'cluster']), 'children': c_9}, with_context = false) }}\n  {%- endif %}\n  {%- if og_t(og_or([og_eq(v_mediaKind, 'image')])) %}\n    {{ include('blocks/media-frame.html.twig', {'p': {'alt': (og_t(v_imageAlt) ? v_imageAlt : v_title), 'src': v_image, 'ratio': '4/3'}}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{%- set c_10 -%}\n  {{ include('blocks/backdrop.html.twig', {'p': {'kind': (og_t(og_eq(v_mediaKind, 'backdrop')) ? 'image' : 'none'), 'alt': (og_t(v_imageAlt) ? v_imageAlt : v_title), 'image': v_image}}, with_context = false) }}\n  {%- if og_t(og_get(v_actions, ['cta'])) %}\n    {%- if og_t(og_eq(og_get(v_actions, ['mode']), 'form')) %}\n      {%- set c_4 -%}\n        {%- set c_1 -%}\n          {{ og_text(og_get(v_actions, ['emailLabel'])) }}\n        {%- endset -%}\n        {{ include('compose/Label.html.twig', {'htmlFor': og_s(og_tpl('{0}-email', [v_id])), 'class': 'sr-only', 'children': c_1}, with_context = false) }}\n        {%- set c_3 -%}\n          {{ include('compose/Input.html.twig', {'type': 'text', 'name': 'prompt', 'class': 'min-w-0 flex-1', 'placeholder': og_s(og_get(v_actions, ['emailLabel'])), 'attrs': og_attrs(['id', og_tpl('{0}-email', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n          {%- set c_2 -%}\n            {{ og_text(og_get(v_actions, ['cta'])) }}\n          {%- endset -%}\n          {{ include('compose/Button.html.twig', {'variant': 'default', 'size': 'default', 'href': og_url(og_s(og_get(v_actions, ['href']))), 'children': c_2}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'start', 'class': 'w-full flex-wrap', 'children': c_3}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['w-full max-w-xl', (og_t(og_eq(v_layout, 'centered')) ? 'mx-auto' : '')])), 'attrs': og_attrs(['data-slot', 'email-form']), 'children': c_4}, with_context = false) }}\n    {%- else %}\n      {{ include('blocks/action-group.html.twig', {'p': {'primary': og_get(v_actions, ['cta']), 'primaryHref': og_get(v_actions, ['href']), 'secondary': (og_t(og_eq(og_get(v_actions, ['mode']), 'two')) ? og_get(v_actions, ['secondary']) : null), 'secondaryHref': og_get(v_actions, ['secondaryHref']), 'align': (og_t(og_eq(v_layout, 'centered')) ? 'center' : 'start')}}, with_context = false) }}\n    {%- endif %}\n  {%- endif %}\n  {%- if og_t(og_and([v_topics, og_gt(og_len(v_topics), 0)])) %}\n    {{ include('blocks/topic-chips.html.twig', {'p': {'topics': v_topics}}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_text, 'heading': {'level': v_level, 'scale': v_scale, 'badge': v_badge}, 'layout': (og_t(og_eq(v_layout, 'split')) ? 'split' : 'stack'), 'align': (og_t(og_eq(v_layout, 'split')) ? 'start' : 'center'), 'media': {'show': og_or([og_eq(v_mediaKind, 'image'), og_eq(v_mediaKind, 'code'), og_eq(v_mediaKind, 'cluster')]), 'side': v_mediaSide}, 'tone': v_tone, 'density': v_density, 'className': og_cnv([(og_t(og_eq((og_t(og_eq(v_mediaKind, 'backdrop')) ? 'image' : 'none'), 'image')) ? 'relative isolate overflow-hidden' : '')]), 'landmarkLabel': v_landmarkLabel, 'aside': og_markup(f_5)}, 'children': og_markup(c_10)}, with_context = false) }}\n",
      "path": "blocks/hero-classic.html.twig",
      "target": "blocks/hero-classic.html.twig"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "hero",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "hero-classic",
  "registryDependencies": [
    "action-group",
    "backdrop",
    "box",
    "button",
    "code-window",
    "grid",
    "group",
    "input",
    "label",
    "media-frame",
    "section-frame",
    "topic-chips",
    "utils"
  ],
  "runtime": "twig",
  "title": "Hero Classic",
  "type": "registry:block"
}
