{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A personal about section beside a portrait: key facts or skills.",
  "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-me.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/progress\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// AboutMeProps are the props of AboutMe; the values are the JSON shapes of the TypeScript props.\ntype AboutMeProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tLead any `json:\"lead\"`\n\tBadge any `json:\"badge\"`\n\tLevel any `json:\"level\"`\n\tFacts any `json:\"facts\"`\n\tSkills any `json:\"skills\"`\n\tLabels any `json:\"labels\"`\n\tActions any `json:\"actions\"`\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 personal about section beside a portrait: a badge, the heading, a lead, then key facts and a list of specialities, or skill chips and expertise bars, and one or two links. Axes: layout (facts, skills), mediaSide, tone.\ntempl AboutMe(p AboutMeProps) {\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{{ vLevel := uiutils.Def(p.Level, float64(1)) }}\n\t{{ vFacts := p.Facts }}\n\t{{ vSkills := p.Skills }}\n\t{{ vLabels := p.Labels }}\n\t{{ vActions := p.Actions }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"facts\") }}\n\t{{ vMediaSide := uiutils.Def(p.MediaSide, \"start\") }}\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, \"level\": vLevel}, Layout: \"split\", Media: map[string]any{\"show\": true, \"side\": vMediaSide}, Tone: vTone, LandmarkLabel: vLandmarkLabel, Aside: aboutMeFill1(p, vTitle, vImage, vImageAlt)}) {\n\t\tif uiutils.Eq(vLayout, \"facts\") {\n\t\t\tif uiutils.Gt(uiutils.Len(vFacts), float64(0)) {\n\t\t\t\t@compose.List(compose.ListProps{BoxProps: box.BoxProps{Tag: \"ul\", Class: \"grid grid-cols-1 gap-4 sm:grid-cols-2\", Attrs: uiutils.Attrs(\"data-slot\", \"facts\")}}) {\n\t\t\t\t\tfor _, vF := range uiutils.L(vFacts) {\n\t\t\t\t\t\t@compose.ListItem(compose.ListItemProps{BoxProps: box.BoxProps{Class: \"rounded bg-card inset-ring inset-ring-border flex flex-col gap-0 p-4\", Attrs: uiutils.Attrs(\"data-slot\", \"fact\")}}) {\n\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{ uiutils.Text(uiutils.Get(vF, \"label\")) }\n\t\t\t\t\t\t\t}\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(vF, \"value\")) }\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} else if uiutils.Gt(uiutils.Len(vSkills), float64(0)) {\n\t\t\t@compose.Stack(compose.StackProps{Gap: \"4\", Align: \"stretch\", BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"skills\")}}) {\n\t\t\t\tfor _, vS := range uiutils.L(vSkills) {\n\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"2\", Align: \"stretch\", BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"skill\")}}) {\n\t\t\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"4\", Justify: \"between\", 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(vS, \"label\")) }\n\t\t\t\t\t\t\t}\n\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{ uiutils.Text(uiutils.Tpl(uiutils.Get(vLabels, \"level\"), uiutils.Get(vS, \"level\"))) }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@compose.Progress(compose.ProgressProps{ProgressProps: progress.ProgressProps{Value: uiutils.SP(uiutils.Str(uiutils.Get(vS, \"level\"))), Max: \"100\", Attrs: uiutils.Attrs(\"aria-label\", uiutils.Get(vS, \"label\"))}})\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\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\")})\n\t}\n}\n\ntempl aboutMeFill1(p AboutMeProps, vTitle any, vImage any, vImageAlt any) {\n\t@MediaFrame(MediaFrameProps{Alt: uiutils.Cond(uiutils.T(vImageAlt), vImageAlt, vTitle), Src: vImage, Ratio: \"3/4\"})\n}\n",
      "path": "blocks/about-me.templ",
      "target": "blocks/about-me.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "company",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "about-me",
  "registryDependencies": [
    "action-group",
    "group",
    "kit-box",
    "kit-progress",
    "kit-text",
    "list",
    "list-item",
    "media-frame",
    "progress",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "About Me",
  "type": "registry:block"
}
