{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "team-block",
  "type": "registry:block",
  "title": "Team Block",
  "description": "A Team Block component for displaying a team section.",
  "files": [
    {
      "path": "src/registry/blocks/teams/team-block.tsx",
      "type": "registry:block",
      "content": "import { useId, type ComponentProps } from \"react\";\nimport { ArrowUpRight } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\n\nexport type TeamMember = {\n  name: string;\n  role: string;\n  /** City and timezone, e.g. \"Lisbon · UTC+0\". */\n  location: string;\n  /** One short, personal line. */\n  note?: string;\n  /** Portrait URL (4:5 works best). Falls back to an initials monogram. */\n  image?: string;\n};\n\nexport type TeamHiring = {\n  label: string;\n  href: string;\n  linkLabel?: string;\n};\n\nexport type TeamBlockProps = {\n  eyebrow?: string;\n  title?: string;\n  description?: string;\n  members?: TeamMember[];\n  hiring?: TeamHiring | null;\n} & ComponentProps<\"section\">;\n\nconst portrait = (id: string) =>\n  `https://images.unsplash.com/${id}?w=600&h=750&fit=crop&crop=faces`;\n\nconst DEFAULT_MEMBERS: TeamMember[] = [\n  {\n    name: \"Ines Carvalho\",\n    role: \"Founder, Design\",\n    location: \"Lisbon · UTC+0\",\n    note: \"Still sketches every screen on paper first.\",\n    image: portrait(\"photo-1438761681033-6461ffad8d80\"),\n  },\n  {\n    name: \"Theo Lindqvist\",\n    role: \"Engineering\",\n    location: \"Stockholm · UTC+1\",\n    note: \"Wrote our sync engine twice. The second one stuck.\",\n    image: portrait(\"photo-1500648767791-00dcc994a43e\"),\n  },\n  {\n    name: \"Adaeze Nwosu\",\n    role: \"Product\",\n    location: \"Lagos · UTC+1\",\n    note: \"Reads every support ticket, including the angry ones.\",\n    image: portrait(\"photo-1531123897727-8f129e1688ce\"),\n  },\n  {\n    name: \"Kenji Mori\",\n    role: \"Engineering\",\n    location: \"Osaka · UTC+9\",\n    note: \"Keeps the p95 under 80ms and the build under a minute.\",\n    image: portrait(\"photo-1506794778202-cad84cf45f1d\"),\n  },\n  {\n    name: \"Clara Weiss\",\n    role: \"Customer Success\",\n    location: \"Berlin · UTC+1\",\n    note: \"Has onboarded 300-odd teams and remembers most of them.\",\n    image: portrait(\"photo-1544005313-94ddf0286df2\"),\n  },\n  {\n    name: \"Marcus Bell\",\n    role: \"Brand & Writing\",\n    location: \"Toronto · UTC−5\",\n    note: \"Deletes adjectives for a living.\",\n    image: portrait(\"photo-1472099645785-5658abf4ff4e\"),\n  },\n  {\n    name: \"Sofía Ramírez\",\n    role: \"Design Engineering\",\n    location: \"Mexico City · UTC−6\",\n    note: \"Owns the component library and the coffee budget.\",\n    image: portrait(\"photo-1534528741775-53994a69daeb\"),\n  },\n  {\n    name: \"Arjun Mehta\",\n    role: \"Infrastructure\",\n    location: \"Bengaluru · UTC+5:30\",\n    note: \"On call this week. Probably asleep right now.\",\n    image: portrait(\"photo-1539571696357-5a69c17a67c6\"),\n  },\n];\n\nconst DEFAULT_HIRING: TeamHiring = {\n  label: \"We're hiring — 3 open roles in engineering and support\",\n  href: \"#careers\",\n  linkLabel: \"See open roles\",\n};\n\nconst pad = (n: number) => String(n).padStart(2, \"0\");\n\nconst initials = (name: string) =>\n  name\n    .split(\" \")\n    .map((part) => part[0])\n    .slice(0, 2)\n    .join(\"\");\n\nexport function TeamBlock({\n  eyebrow = \"Team\",\n  title = \"Eight people, five timezones, one product\",\n  description = \"Halden is built by a small, fully remote team. We overlap for two hours a day and write everything else down.\",\n  members = DEFAULT_MEMBERS,\n  hiring = DEFAULT_HIRING,\n  className,\n  ...props\n}: TeamBlockProps) {\n  const titleId = useId();\n\n  return (\n    <section\n      data-slot=\"team-block\"\n      aria-labelledby={titleId}\n      className={cn(\"w-full bg-background text-foreground\", className)}\n      {...props}\n    >\n      <div className=\"mx-auto max-w-6xl px-6 py-20 md:py-28\">\n        <div className=\"grid grid-cols-1 gap-x-8 gap-y-6 border-t pt-8 md:grid-cols-12\">\n          <p className=\"font-mono text-xs uppercase tracking-wider text-muted-foreground md:col-span-4\">\n            {eyebrow}\n            <span className=\"ml-2 tabular-nums\">({pad(members.length)})</span>\n          </p>\n          <div className=\"md:col-span-8\">\n            <h2\n              id={titleId}\n              className=\"max-w-xl text-3xl font-medium tracking-tight text-balance md:text-5xl md:tracking-[-0.03em]\"\n            >\n              {title}\n            </h2>\n            {description && (\n              <p className=\"mt-5 max-w-md text-base leading-relaxed text-muted-foreground\">\n                {description}\n              </p>\n            )}\n          </div>\n        </div>\n\n        <ul className=\"mt-14 grid grid-cols-2 gap-x-4 gap-y-10 sm:gap-x-6 md:grid-cols-3 lg:grid-cols-4\">\n          {members.map((member, i) => (\n            <li key={`${member.name}-${i}`} className=\"group\">\n              <div className=\"relative aspect-[4/5] overflow-hidden rounded-sm bg-muted\">\n                {member.image ? (\n                  // eslint-disable-next-line @next/next/no-img-element -- plain <img> keeps the block portable outside Next.js\n                  <img\n                    src={member.image}\n                    alt={`Portrait of ${member.name}`}\n                    width={600}\n                    height={750}\n                    loading=\"lazy\"\n                    className=\"size-full object-cover grayscale transition-[filter] duration-500 group-hover:grayscale-0 motion-reduce:transition-none\"\n                  />\n                ) : (\n                  <span\n                    aria-hidden=\"true\"\n                    className=\"flex size-full items-center justify-center font-mono text-2xl text-muted-foreground\"\n                  >\n                    {initials(member.name)}\n                  </span>\n                )}\n              </div>\n              <div className=\"mt-4 flex items-baseline justify-between gap-3 border-t pt-3\">\n                <h3 className=\"text-sm font-medium\">{member.name}</h3>\n                <span\n                  aria-hidden=\"true\"\n                  className=\"font-mono text-xs tabular-nums text-muted-foreground\"\n                >\n                  {pad(i + 1)}\n                </span>\n              </div>\n              <p className=\"mt-1 text-sm text-muted-foreground\">{member.role}</p>\n              <p className=\"mt-2 font-mono text-[0.7rem] uppercase tracking-wider text-muted-foreground\">\n                {member.location}\n              </p>\n              {member.note && (\n                <p className=\"mt-3 text-sm leading-snug text-pretty\">\n                  {member.note}\n                </p>\n              )}\n            </li>\n          ))}\n        </ul>\n\n        {hiring && (\n          <div className=\"mt-16 flex flex-col gap-3 border-y py-5 sm:flex-row sm:items-center sm:justify-between\">\n            <p className=\"flex items-center gap-3 text-sm\">\n              <span aria-hidden=\"true\" className=\"size-2 shrink-0 bg-primary\" />\n              {hiring.label}\n            </p>\n            <a\n              href={hiring.href}\n              className=\"group/link inline-flex items-center gap-1 font-mono text-xs uppercase tracking-wider underline-offset-4 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-ring\"\n            >\n              {hiring.linkLabel ?? \"Open roles\"}\n              <ArrowUpRight\n                aria-hidden=\"true\"\n                className=\"size-3.5 transition-transform group-hover/link:-translate-y-0.5 group-hover/link:translate-x-0.5 motion-reduce:transition-none\"\n              />\n            </a>\n          </div>\n        )}\n      </div>\n    </section>\n  );\n}\n"
    }
  ],
  "dependencies": [
    "lucide-react"
  ]
}
