{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The culture: a strip of pictures, figures and values.",
  "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/about-company.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// AboutCompanyProps are the props of AboutCompany; the values are the JSON shapes of the TypeScript props.\ntype AboutCompanyProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tLead any `json:\"lead\"`\n\tStats any `json:\"stats\"`\n\tValues any `json:\"values\"`\n\tLayout any `json:\"layout\"`\n\tTone any `json:\"tone\"`\n\tDensity any `json:\"density\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// The culture of a company: a strip of three pictures, the heading, a few figures and the values. Axes: layout (split: the pictures beside the text, stacked: the pictures under it), tone, density.\ntempl AboutCompany(p AboutCompanyProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vLead := uiutils.Def(p.Lead, \"\") }}\n\t{{ vStats := p.Stats }}\n\t{{ vValues := p.Values }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"split\") }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t{{ vDensity := uiutils.Def(p.Density, \"default\") }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Tone: vTone, Density: vDensity, Layout: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"split\")), \"split\", \"stack\"), Media: map[string]any{\"show\": true, \"side\": \"start\"}, LandmarkLabel: vLandmarkLabel, Aside: aboutCompanyFill1(p, vTitle)}) {\n\t\tif uiutils.Gt(uiutils.Len(vStats), float64(0)) {\n\t\t\t@compose.Grid(compose.GridProps{Cols: \"2-4\", BoxProps: box.BoxProps{Class: \"gap-4\", Attrs: uiutils.Attrs(\"data-slot\", \"stats\")}}) {\n\t\t\t\tfor _, vS := range uiutils.L(vStats) {\n\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"0\", BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"stat\")}}) {\n\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"3xl\", Weight: \"bold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vS, \"value\")) }\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"xs\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vS, \"label\")) }\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\tif uiutils.Gt(uiutils.Len(vValues), float64(0)) {\n\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"grid grid-cols-1 gap-4\", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"stacked\")), \"md:grid-cols-3\", \"\"))), Attrs: uiutils.Attrs(\"data-slot\", \"values\")}}) {\n\t\t\t\tfor _, vV := range uiutils.L(vValues) {\n\t\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"4\", Align: \"start\", BoxProps: box.BoxProps{Class: \"border-t border-border pt-4\", Attrs: uiutils.Attrs(\"data-slot\", \"value\")}}) {\n\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: uiutils.S(uiutils.Get(vV, \"icon\")), Size: 20})\n\t\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"2\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vV, \"title\")) }\n\t\t\t\t\t\t\t}\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(uiutils.Get(vV, \"text\")) }\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\ntempl aboutCompanyFill1(p AboutCompanyProps, vTitle any) {\n\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"grid grid-cols-3 gap-4\", Attrs: uiutils.Attrs(\"data-slot\", \"strip\")}}) {\n\t\t@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: \"3/4\"})\n\t\t@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: \"3/4\", Class: uiutils.Cnv(\"mt-8\")})\n\t\t@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: \"3/4\"})\n\t}\n}\n",
      "path": "blocks/about-company.templ",
      "target": "blocks/about-company.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "company",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "about-company",
  "registryDependencies": [
    "box",
    "grid",
    "group",
    "kit-box",
    "kit-text",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "About Company",
  "type": "registry:block"
}
