{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A call to action with logos, features, figures, icon rows or delivery zones; centered or beside a picture.",
  "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-proof.json\n\npackage blocks\n\nimport (\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// CtaProofProps are the props of CtaProof; the values are the JSON shapes of the TypeScript props.\ntype CtaProofProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tLead any `json:\"lead\"`\n\tBadge any `json:\"badge\"`\n\tActions any `json:\"actions\"`\n\tContent any `json:\"content\"`\n\tNote any `json:\"note\"`\n\tLayout any `json:\"layout\"`\n\tProof any `json:\"proof\"`\n\tMediaSide any `json:\"mediaSide\"`\n\tTone any `json:\"tone\"`\n\tImage any `json:\"image\"`\n\tImageAlt any `json:\"imageAlt\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// A call to action with proof: a badge, the heading, a lead, the proof, one or two actions and an optional note. Axes: layout (center: everything centred, the proof above the actions; split: beside a picture), proof (logos, features, stats, rows, zones), mediaSide, tone.\ntempl CtaProof(p CtaProofProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vLead := uiutils.Def(p.Lead, \"\") }}\n\t{{ vBadge := uiutils.Def(p.Badge, \"\") }}\n\t{{ vActions := p.Actions }}\n\t{{ vContent := p.Content }}\n\t{{ vNote := uiutils.Def(p.Note, \"\") }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"center\") }}\n\t{{ vProof := uiutils.Def(p.Proof, \"stats\") }}\n\t{{ vMediaSide := uiutils.Def(p.MediaSide, \"end\") }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t{{ vImage := p.Image }}\n\t{{ vImageAlt := p.ImageAlt }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{\"badge\": vBadge}, Tone: vTone, Align: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"center\")), \"center\", \"start\"), Layout: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"center\")), \"stack\", \"split\"), Media: map[string]any{\"show\": uiutils.Eq(vLayout, \"split\"), \"side\": vMediaSide}, LandmarkLabel: vLandmarkLabel, Aside: ctaProofFill1(p, vTitle, vImage, vImageAlt)}) {\n\t\t@CtaProofItems(CtaProofItemsProps{Content: vContent, Proof: vProof, Center: uiutils.Eq(vLayout, \"center\")})\n\t\t@ActionGroup(ActionGroupProps{Primary: uiutils.Get(vActions, \"cta\"), PrimaryHref: uiutils.Get(vActions, \"href\"), Secondary: uiutils.Cond(uiutils.T(uiutils.Eq(uiutils.Get(vActions, \"mode\"), \"two\")), uiutils.Get(vActions, \"secondary\"), nil), SecondaryHref: uiutils.Get(vActions, \"secondaryHref\"), Align: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"center\")), \"center\", \"start\")})\n\t\tif uiutils.T(vNote) {\n\t\t\t@compose.Text(compose.TextProps{Size: \"xs\", TextProps: text.TextProps{Class: \"text-muted-foreground\", Attrs: uiutils.Attrs(\"data-slot\", \"cta-note\")}}) {\n\t\t\t\t{ uiutils.Text(vNote) }\n\t\t\t}\n\t\t}\n\t}\n}\n\ntempl ctaProofFill1(p CtaProofProps, 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-proof.templ",
      "target": "blocks/cta-proof.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "cta",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "cta-proof",
  "registryDependencies": [
    "action-group",
    "cta-proof-items",
    "kit-text",
    "media-frame",
    "section-frame",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Cta Proof",
  "type": "registry:block"
}
