{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Customer videos as thumbnails with a play button. Playing is a port contract (VideoEmbed).",
  "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/video-grid.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/button\"\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// VideoGridProps are the props of VideoGrid; the values are the JSON shapes of the TypeScript props.\ntype VideoGridProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tQuotes any `json:\"quotes\"`\n\tEmpty any `json:\"empty\"`\n\tPlayLabel any `json:\"playLabel\"`\n\tByLine any `json:\"byLine\"`\n\tCols any `json:\"cols\"`\n\tCaption any `json:\"caption\"`\n\tTone any `json:\"tone\"`\n\tDensity any `json:\"density\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// Video testimonials as thumbnails: a picture, a play button, the name and the company. The player is a port contract (VideoEmbed); here the button emits `play`. Axes: columns (2, 3), caption (below, overlay), tone, density.\ntempl VideoGrid(p VideoGridProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vQuotes := p.Quotes }}\n\t{{ vEmpty := uiutils.Def(p.Empty, \"\") }}\n\t{{ vPlayLabel := p.PlayLabel }}\n\t{{ vByLine := p.ByLine }}\n\t{{ vCols := uiutils.Def(p.Cols, \"1-3\") }}\n\t{{ vCaption := uiutils.Def(p.Caption, \"below\") }}\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, Tone: vTone, Density: vDensity, LandmarkLabel: vLandmarkLabel}) {\n\t\tif uiutils.Eq(uiutils.Len(vQuotes), float64(0)) {\n\t\t\t@EmptyState(EmptyStateProps{Icon: \"video\", Title: vEmpty})\n\t\t} else {\n\t\t\t@compose.Grid(compose.GridProps{Cols: uiutils.S(vCols), BoxProps: box.BoxProps{Class: \"gap-4\", Attrs: uiutils.Attrs(\"data-slot\", \"items\")}}) {\n\t\t\t\tfor _, vQ := range uiutils.L(vQuotes) {\n\t\t\t\t\t@FigureBlock(FigureBlockProps{Class: uiutils.Cnv(\"m-0 flex flex-col gap-4\"), Testid: \"item\"}) {\n\t\t\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"relative\"}}) {\n\t\t\t\t\t\t\t@MediaFrame(MediaFrameProps{Alt: uiutils.Get(vQ, \"author\"), Src: uiutils.Get(vQ, \"image\")})\n\t\t\t\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"default\", Size: \"default\", ButtonProps: button.ButtonProps{Type: \"button\", Class: \"absolute top-1/2 left-1/2 size-12 -translate-x-1/2 -translate-y-1/2 rounded p-0\", Attrs: uiutils.Attrs(\"aria-label\", uiutils.Tpl(vPlayLabel, uiutils.Get(vQ, \"author\")))}}) {\n\t\t\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"play\", Size: 20})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif uiutils.Eq(vCaption, \"overlay\") {\n\t\t\t\t\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"absolute inset-x-0 bottom-0 rounded bg-background p-4\", Attrs: uiutils.Attrs(\"data-slot\", \"caption\")}}) {\n\t\t\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\t\t{ uiutils.Text(uiutils.Get(vQ, \"author\")) }\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\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\t\t\t{ uiutils.Text(uiutils.Tpl(vByLine, uiutils.Get(vQ, \"role\"), uiutils.Get(vQ, \"company\"))) }\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\tif uiutils.Eq(vCaption, \"below\") {\n\t\t\t\t\t\t\t@compose.Text(compose.TextProps{TextProps: text.TextProps{Tag: \"figcaption\", Attrs: uiutils.Attrs(\"data-slot\", \"caption\")}}) {\n\t\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\t{ uiutils.Text(uiutils.Get(vQ, \"author\")) }\n\t\t\t\t\t\t\t\t}\n\t\t\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\t\t{ uiutils.Text(uiutils.Tpl(vByLine, uiutils.Get(vQ, \"role\"), uiutils.Get(vQ, \"company\"))) }\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/video-grid.templ",
      "target": "blocks/video-grid.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "video-grid",
  "registryDependencies": [
    "box",
    "button",
    "empty-state",
    "figure-block",
    "grid",
    "kit-box",
    "kit-button",
    "kit-text",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Video Grid",
  "type": "registry:block"
}
