{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Skip link, brand, navigation, theme button and an optional call to action.",
  "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/site-header.json\n    The page header: a skip link to the main content, the brand, the two navigation links (the current one carries aria-current) and the theme button. `current` is the route area. Axes: layout (inline, stacked), position (static, sticky), actions (none, cta).\n    Props (p): labels, routes, current, layout, position, actions, cta, ctaHref, landmarkLabel. -#}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_routes = (p.routes ?? null) -%}\n{%- set v_current = (p.current ?? null) -%}\n{%- set v_layout = (p.layout ?? 'inline') -%}\n{%- set v_position = (p.position ?? 'static') -%}\n{%- set v_actions = (p.actions ?? 'none') -%}\n{%- set v_cta = (p.cta ?? null) -%}\n{%- set v_ctaHref = (p.ctaHref ?? null) -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_11 -%}\n  {%- set c_1 -%}\n    {{ og_text(og_get(v_labels, ['skip'])) }}\n  {%- endset -%}\n  {{ include('compose/LinkPlain.html.twig', {'href': '#main-content', 'class': 'sr-only focus:not-sr-only focus:fixed focus:left-2 focus:top-2 focus:z-50 focus:rounded focus:bg-background focus:px-4 focus:py-2 focus:text-sm focus:inset-ring focus:inset-ring-border', 'attrs': og_attrs(['data-slot', 'skip-link']), 'children': c_1}, with_context = false) }}\n  {%- set c_10 -%}\n    {%- set c_2 -%}\n      {{ og_text(og_get(v_labels, ['brand'])) }}\n    {%- endset -%}\n    {{ include('blocks/menu-entry.html.twig', {'p': {'href': og_get(v_routes, ['home']), 'className': og_cnv(['text-lg font-medium']), 'testid': 'brand'}, 'children': og_markup(c_2)}, with_context = false) }}\n    {%- set c_6 -%}\n      {%- set c_5 -%}\n        {%- set c_3 -%}\n          {{ og_text(og_get(v_labels, ['home'])) }}\n        {%- endset -%}\n        {{ include('blocks/menu-entry.html.twig', {'p': {'href': og_get(v_routes, ['home']), 'className': og_cnv(['font-semibold']), 'current': og_eq(v_current, 'home'), 'testid': 'nav-link'}, 'children': og_markup(c_3)}, with_context = false) }}\n        {%- set c_4 -%}\n          {{ og_text(og_get(v_labels, ['pricing'])) }}\n        {%- endset -%}\n        {{ include('blocks/menu-entry.html.twig', {'p': {'href': og_get(v_routes, ['pricing']), 'className': og_cnv(['font-semibold']), 'current': og_eq(v_current, 'pricing'), 'testid': 'nav-link'}, 'children': og_markup(c_4)}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'children': c_5}, with_context = false) }}\n    {%- endset -%}\n    {{ include('blocks/nav-block.html.twig', {'p': {'label': (og_t(v_landmarkLabel) ? og_uniq(og_tpl('{0}, {1}', [og_get(v_labels, ['nav']), v_landmarkLabel])) : og_get(v_labels, ['nav'])), 'testid': 'site-nav'}, 'children': og_markup(c_6)}, with_context = false) }}\n    {%- set c_9 -%}\n      {%- set c_7 -%}\n        {{ og_text(og_get(v_labels, ['theme'])) }}\n      {%- endset -%}\n      {{ include('compose/Button.html.twig', {'variant': 'outline', 'size': 'sm', 'children': c_7}, with_context = false) }}\n      {%- if og_t(og_and([og_eq(v_actions, 'cta'), v_cta])) %}\n        {%- set c_8 -%}\n          {{ og_text(v_cta) }}\n        {%- endset -%}\n        {{ include('compose/Button.html.twig', {'variant': 'default', 'size': 'sm', 'href': og_url(og_s(v_ctaHref)), 'children': c_8}, with_context = false) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'children': c_9}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Container.html.twig', {'class': og_s(og_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-wrap gap-4 py-4', (og_t(og_eq(v_layout, 'stacked')) ? 'flex-col items-center' : 'items-center justify-between')])), 'attrs': og_attrs(['data-slot', 'container']), 'children': c_10}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Block.html.twig', {'tag': 'header', 'class': og_s(og_cnv(['border-b border-border bg-background', (og_t(og_eq(v_position, 'sticky')) ? 'sticky top-0 z-40' : '')])), 'attrs': og_attrs(['data-layout', v_layout, 'aria-label', v_landmarkLabel, 'data-slot', 'site-header']), 'children': c_11}, with_context = false) }}\n",
      "path": "blocks/site-header.html.twig",
      "target": "blocks/site-header.html.twig"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "navigation",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "site-header",
  "registryDependencies": [
    "block",
    "button",
    "container",
    "group",
    "link-plain",
    "menu-entry",
    "nav-block",
    "utils"
  ],
  "runtime": "twig",
  "title": "Site Header",
  "type": "registry:block"
}
