{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The brand with figures and a sitemap link over link-group cards; or a split beside a picture with points, link columns, a newsletter card, the contacts or the community channels.",
  "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/footer-split.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// FooterSplitProps are the props of FooterSplit; the values are the JSON shapes of the TypeScript props.\ntype FooterSplitProps struct {\n\tId any `json:\"id\"`\n\tLabel any `json:\"label\"`\n\tBrand any `json:\"brand\"`\n\tTagline any `json:\"tagline\"`\n\tCopyright any `json:\"copyright\"`\n\tGroups any `json:\"groups\"`\n\tExtras any `json:\"extras\"`\n\tLabels any `json:\"labels\"`\n\tLayout any `json:\"layout\"`\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 footer with more than links. Axes: layout (stats: the brand with three figures and a sitemap link over the link groups as cards; points, links, newsletter, contacts, channels: a split beside a picture with the brand and four points, the brand and small link columns, a newsletter card and link columns, the contacts and two actions, or the community channels and figures), mediaSide, tone.\ntempl FooterSplit(p FooterSplitProps) {\n\t{{ vId := uiutils.Def(p.Id, \"footer\") }}\n\t{{ vLabel := p.Label }}\n\t{{ vBrand := p.Brand }}\n\t{{ vTagline := p.Tagline }}\n\t{{ vCopyright := p.Copyright }}\n\t{{ vGroups := p.Groups }}\n\t{{ vExtras := p.Extras }}\n\t{{ vLabels := p.Labels }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"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@compose.Block(compose.BlockProps{BoxProps: box.BoxProps{Tag: \"footer\", Class: uiutils.S(uiutils.Cnv(\"border-t border-border\", uiutils.Cond(uiutils.T(uiutils.Eq(vTone, \"muted\")), \"bg-muted\", \"\"))), Attrs: uiutils.Attrs(\"data-layout\", vLayout, \"aria-label\", vLandmarkLabel, \"data-slot\", \"footer-split\")}}) {\n\t\t@compose.Container(compose.ContainerProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"mx-auto w-full max-w-6xl px-4\", \"py-12\")), Attrs: uiutils.Attrs(\"data-slot\", \"container\")}}) {\n\t\t\tif uiutils.Eq(vLayout, \"stats\") {\n\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"8\", Align: \"stretch\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"6\", Align: \"start\", Justify: \"between\", BoxProps: box.BoxProps{Class: \"flex-wrap\"}}) {\n\t\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"6\", Align: \"start\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t\t\t@FooterBrand(FooterBrandProps{Brand: vBrand, Tagline: vTagline})\n\t\t\t\t\t\t\t@FooterFigures(FooterFiguresProps{Extras: vExtras})\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@FooterSitemap(FooterSitemapProps{Href: uiutils.Get(vExtras, \"sitemapHref\"), Label: uiutils.Get(vLabels, \"sitemap\")})\n\t\t\t\t\t}\n\t\t\t\t\t@FooterGroupCards(FooterGroupCardsProps{Label: vLabel, Groups: vGroups, LandmarkLabel: vLandmarkLabel})\n\t\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"border-t border-border pt-6\"}}) {\n\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(vCopyright) }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"grid grid-cols-1 items-center gap-8 lg:grid-cols-2\"}}) {\n\t\t\t\t\tif uiutils.Eq(vMediaSide, \"start\") {\n\t\t\t\t\t\t@MediaFrame(MediaFrameProps{Alt: uiutils.Cond(uiutils.T(vImageAlt), vImageAlt, vBrand), Src: vImage, Ratio: \"4/3\"})\n\t\t\t\t\t}\n\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"8\", Align: \"stretch\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t\tif uiutils.T(uiutils.Or(uiutils.Eq(vLayout, \"points\"), uiutils.Eq(vLayout, \"links\"))) {\n\t\t\t\t\t\t\t@FooterBrand(FooterBrandProps{Brand: vBrand, Tagline: vTagline})\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"2\", Align: \"start\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"xl\", Weight: \"bold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"newsletter\")), uiutils.Get(vLabels, \"loopTitle\"), uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"channels\")), uiutils.Get(vLabels, \"joinTitle\"), uiutils.Get(vLabels, \"title\")))) }\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"newsletter\")), uiutils.Get(vLabels, \"loopText\"), uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"channels\")), uiutils.Get(vLabels, \"joinText\"), uiutils.Get(vLabels, \"text\")))) }\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif uiutils.Eq(vLayout, \"points\") {\n\t\t\t\t\t\t\t@FooterPoints(FooterPointsProps{Extras: vExtras, Title: uiutils.Get(vLabels, \"points\")})\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif uiutils.Eq(vLayout, \"newsletter\") {\n\t\t\t\t\t\t\t@FooterSignupCard(FooterSignupCardProps{Id: vId, Labels: vLabels})\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif uiutils.T(uiutils.Or(uiutils.Eq(vLayout, \"links\"), uiutils.Eq(vLayout, \"newsletter\"))) {\n\t\t\t\t\t\t\t@FooterLinkColumns(FooterLinkColumnsProps{Label: vLabel, Groups: vGroups, LandmarkLabel: vLandmarkLabel})\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif uiutils.Eq(vLayout, \"contacts\") {\n\t\t\t\t\t\t\t@FooterContacts(FooterContactsProps{Extras: vExtras})\n\t\t\t\t\t\t\t@ActionGroup(ActionGroupProps{Primary: uiutils.Get(vLabels, \"cta\"), PrimaryHref: uiutils.Get(vExtras, \"ctaHref\"), Secondary: uiutils.Get(vLabels, \"secondary\"), SecondaryHref: uiutils.Get(vExtras, \"secondaryHref\")})\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif uiutils.Eq(vLayout, \"channels\") {\n\t\t\t\t\t\t\t@FooterChannels(FooterChannelsProps{Extras: vExtras})\n\t\t\t\t\t\t\t@FooterFigures(FooterFiguresProps{Extras: vExtras})\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"border-t border-border pt-6\"}}) {\n\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t\t\t{ uiutils.Text(vCopyright) }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif !uiutils.Eq(vMediaSide, \"start\") {\n\t\t\t\t\t\t@MediaFrame(MediaFrameProps{Alt: uiutils.Cond(uiutils.T(vImageAlt), vImageAlt, vBrand), Src: vImage, Ratio: \"4/3\"})\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/footer-split.templ",
      "target": "blocks/footer-split.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "navigation",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "footer-split",
  "registryDependencies": [
    "action-group",
    "block",
    "box",
    "container",
    "footer-brand",
    "footer-channels",
    "footer-contacts",
    "footer-figures",
    "footer-group-cards",
    "footer-link-columns",
    "footer-points",
    "footer-signup-card",
    "footer-sitemap",
    "group",
    "kit-box",
    "kit-text",
    "media-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Footer Split",
  "type": "registry:block"
}
