{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The card layout of SitemapFooter: the brand mark and word, then the link groups in one row, in a rounded card.",
  "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-card.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/icons\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// FooterCardProps are the props of FooterCard; the values are the JSON shapes of the TypeScript props.\ntype FooterCardProps struct {\n\tLabel any `json:\"label\"`\n\tBrand any `json:\"brand\"`\n\tGroups any `json:\"groups\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// The card layout of SitemapFooter: the brand mark and word, then the link groups in one row, in a rounded card.\ntempl FooterCard(p FooterCardProps) {\n\t{{ vLabel := p.Label }}\n\t{{ vBrand := p.Brand }}\n\t{{ vGroups := p.Groups }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@compose.Block(compose.BlockProps{BoxProps: box.BoxProps{Tag: \"footer\", Class: \"py-8\", Attrs: uiutils.Attrs(\"data-layout\", \"card\", \"aria-label\", vLandmarkLabel, \"data-slot\", \"site-footer\")}}) {\n\t\t@compose.Container(compose.ContainerProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(uiutils.Cnv(\"mx-auto w-full px-4\", uiutils.Get(presetDefaults, \"section\", \"landing\")), \"px-0\")), Attrs: uiutils.Attrs(\"data-slot\", \"container\")}}) {\n\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"flex w-full flex-row items-start overflow-hidden bg-muted p-10\", uiutils.Get(presetDefaults, \"footer\", \"card\"))), Attrs: uiutils.Attrs(\"data-slot\", \"footer-card\")}}) {\n\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"4\", Align: \"center\", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"h-8 shrink-0\", uiutils.Get(presetDefaults, \"footer\", \"brand\"))), Attrs: uiutils.Attrs(\"data-slot\", \"footer-brand\")}}) {\n\t\t\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"flex size-8 items-center justify-center rounded bg-foreground text-background\"}}) {\n\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"hexagon\", Size: 16})\n\t\t\t\t\t}\n\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"base\", Weight: \"bold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t{ uiutils.Text(vBrand) }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif uiutils.Gt(uiutils.Len(vGroups), float64(0)) {\n\t\t\t\t\t@NavBlock(NavBlockProps{Label: uiutils.Cond(uiutils.T(vLandmarkLabel), uiutils.Uniq(uiutils.Tpl(\"{0}, {1}\", vLabel, vLandmarkLabel)), vLabel), Class: uiutils.Cnv(\"min-w-0 flex-1\")}) {\n\t\t\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"0\", Align: \"start\", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"flex w-full flex-nowrap justify-between\", uiutils.Get(presetDefaults, \"footer\", \"groups\"))), Attrs: uiutils.Attrs(\"data-slot\", \"footer-groups\")}}) {\n\t\t\t\t\t\t\tfor _, vG := range uiutils.L(vGroups) {\n\t\t\t\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"4\", BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"group\")}}) {\n\t\t\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"xs\", Weight: \"semibold\", TextProps: text.TextProps{Class: \"leading-5\"}}) {\n\t\t\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vG, \"title\")) }\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t@compose.List(compose.ListProps{BoxProps: box.BoxProps{Class: \"m-0 flex list-none flex-col gap-4 p-0\"}}) {\n\t\t\t\t\t\t\t\t\t\tfor _, vItem := range uiutils.L(uiutils.Get(vG, \"links\")) {\n\t\t\t\t\t\t\t\t\t\t\t@compose.ListItem(compose.ListItemProps{BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"links-row\")}}) {\n\t\t\t\t\t\t\t\t\t\t\t\t@MenuEntry(MenuEntryProps{Href: uiutils.Get(vItem, \"href\"), Class: uiutils.Cnv(\"text-xs leading-5 text-muted-foreground\")}) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vItem, \"name\")) }\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\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}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/footer-card.templ",
      "target": "blocks/footer-card.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "footer-card",
  "registryDependencies": [
    "block",
    "box",
    "container",
    "group",
    "inline",
    "kit-box",
    "kit-text",
    "list",
    "list-item",
    "lucide-icon",
    "menu-entry",
    "nav-block",
    "presets",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Footer Card",
  "type": "registry:component"
}
