{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A closing 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/cta-band.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// CtaBandProps are the props of CtaBand; the values are the JSON shapes of the TypeScript props.\ntype CtaBandProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tText any `json:\"text\"`\n\tActions any `json:\"actions\"`\n\tQuote any `json:\"quote\"`\n\tLayout any `json:\"layout\"`\n\tTone any `json:\"tone\"`\n\tProof any `json:\"proof\"`\n\tDensity any `json:\"density\"`\n\tImage any `json:\"image\"`\n\tImageAlt any `json:\"imageAlt\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// A closing call to action: a heading, one sentence and one or two links. Axes: layout (card, band, split picture, row: heading beside the button in a card), tone, actions (one, two, form: an email field), proof (none, quote), density.\ntempl CtaBand(p CtaBandProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vText := p.Text }}\n\t{{ vActions := p.Actions }}\n\t{{ vQuote := p.Quote }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"card\") }}\n\t{{ vTone := uiutils.Def(p.Tone, \"muted\") }}\n\t{{ vProof := uiutils.Def(p.Proof, \"none\") }}\n\t{{ vDensity := uiutils.Def(p.Density, \"default\") }}\n\t{{ vImage := p.Image }}\n\t{{ vImageAlt := p.ImageAlt }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t{{ vCenter := any(uiutils.Or(uiutils.Eq(vLayout, \"band\"), uiutils.Eq(vLayout, \"banner\"))) }}\n\tif uiutils.Eq(vLayout, \"banner\") {\n\t\t@CtaBanner(CtaBannerProps{Id: vId, Title: vTitle, Text: vText, Cta: uiutils.Get(vActions, \"cta\"), Href: uiutils.Get(vActions, \"href\"), Tone: vTone, LandmarkLabel: vLandmarkLabel})\n\t} else if uiutils.Eq(vLayout, \"row\") {\n\t\t@compose.Block(compose.BlockProps{BoxProps: box.BoxProps{Tag: \"section\", Class: \"py-8\", Attrs: uiutils.Attrs(\"aria-labelledby\", uiutils.Cond(uiutils.T(vLandmarkLabel), nil, uiutils.Tpl(\"{0}-title\", vId)), \"data-tone\", vTone, \"data-density\", vDensity, \"aria-label\", vLandmarkLabel, \"data-slot\", \"section\")}}) {\n\t\t\t@compose.Container(compose.ContainerProps{BoxProps: box.BoxProps{Class: \"mx-auto w-full max-w-6xl px-4\", Attrs: uiutils.Attrs(\"data-slot\", \"container\")}}) {\n\t\t\t\t@compose.Card(compose.CardProps{Variant: \"muted\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t@compose.CardContent(compose.CardContentProps{BoxProps: box.BoxProps{Class: \"flex flex-col gap-4 md:flex-row md:items-center md:justify-between\"}}) {\n\t\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"2\", BoxProps: box.BoxProps{Class: \"min-w-0\"}}) {\n\t\t\t\t\t\t\t@compose.Title(compose.TitleProps{As: \"2\", Size: \"2xl\", Weight: \"bold\", TextProps: text.TextProps{Attrs: uiutils.Attrs(\"id\", uiutils.Tpl(\"{0}-title\", vId))}}) {\n\t\t\t\t\t\t\t\t{ uiutils.Text(vTitle) }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"base\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t\t\t{ uiutils.Text(vText) }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif uiutils.Eq(vProof, \"quote\") {\n\t\t\t\t\t\t\t@QuoteProof(QuoteProofProps{Quote: uiutils.Get(vQuote, \"text\"), QuoteBy: uiutils.Get(vQuote, \"by\"), Center: vCenter})\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@CtaActions(CtaActionsProps{Id: vId, Actions: vActions, Center: vCenter})\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else {\n\t\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vText, Layout: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"split\")), \"split\", \"stack\"), Align: uiutils.Cond(uiutils.T(vCenter), \"center\", \"start\"), Boxed: uiutils.Eq(vLayout, \"card\"), Media: map[string]any{\"show\": uiutils.Eq(vLayout, \"split\")}, Tone: vTone, Density: vDensity, LandmarkLabel: vLandmarkLabel, Aside: ctaBandFill1(p, vTitle, vImage, vImageAlt)}) {\n\t\t\tif uiutils.Eq(vProof, \"quote\") {\n\t\t\t\t@QuoteProof(QuoteProofProps{Quote: uiutils.Get(vQuote, \"text\"), QuoteBy: uiutils.Get(vQuote, \"by\"), Center: vCenter})\n\t\t\t}\n\t\t\t@CtaActions(CtaActionsProps{Id: vId, Actions: vActions, Center: vCenter})\n\t\t}\n\t}\n}\n\ntempl ctaBandFill1(p CtaBandProps, vTitle any, vImage any, vImageAlt any) {\n\t@MediaFrame(MediaFrameProps{Alt: uiutils.Cond(uiutils.T(vImageAlt), vImageAlt, vTitle), Src: vImage, Ratio: \"4/3\"})\n}\n",
      "path": "blocks/cta-band.templ",
      "target": "blocks/cta-band.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "cta",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "cta-band",
  "registryDependencies": [
    "block",
    "card",
    "card-content",
    "container",
    "cta-actions",
    "cta-banner",
    "kit-box",
    "kit-text",
    "media-frame",
    "quote-proof",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "templ",
  "title": "Cta Band",
  "type": "registry:block"
}
