{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "profile-dev-card",
  "type": "registry:component",
  "title": "Profile Dev Card",
  "description": "A developer profile with avatar, role, location, stack chips, a year of contributions as an animated heatmap with hover tooltips, and pinned project cards with stars and forks.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "profile",
    "profile",
    "developer",
    "heatmap",
    "contributions",
    "projects",
    "portfolio"
  ],
  "docs": "https://hyperblur.dev/effects/profile-dev-card",
  "files": [
    {
      "path": "registry/hyperblur/profile-dev-card.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/profile-dev-card.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface ProfileDevCardProject {\n  name: string;\n  description: string;\n  language: string;\n  languageColor: string;\n  stars: number;\n  forks: number;\n  href: string;\n}\n\nexport interface ProfileDevCardStat {\n  label: string;\n  value: string;\n}\n\nexport interface ProfileDevCardProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  name?: string;\n  handle?: string;\n  role?: string;\n  location?: string;\n  bio?: string;\n  status?: string;\n  stack?: string[];\n  stats?: ProfileDevCardStat[];\n  projects?: ProfileDevCardProject[];\n  weeks?: number;\n  seed?: number;\n  endDate?: string;\n  following?: boolean;\n  defaultFollowing?: boolean;\n  onFollowChange?: (following: boolean) => void;\n  accent?: string;\n}\n\nconst defaultProjects: ProfileDevCardProject[] = [\n  { name: \"tidewave\", description: \"Local-first sync engine with CRDT merging and durable offline queues.\", language: \"Rust\", languageColor: \"#dea584\", stars: 8421, forks: 312, href: \"#tidewave\" },\n  { name: \"quill-ts\", description: \"A tiny, fully typed parser combinator library for TypeScript.\", language: \"TypeScript\", languageColor: \"#3178c6\", stars: 5108, forks: 201, href: \"#quill-ts\" },\n  { name: \"pgshift\", description: \"Zero-downtime Postgres schema migrations from the command line.\", language: \"Go\", languageColor: \"#00add8\", stars: 2964, forks: 140, href: \"#pgshift\" },\n  { name: \"lumen-ui\", description: \"Accessible React primitives that ship with zero runtime styles.\", language: \"TypeScript\", languageColor: \"#3178c6\", stars: 1873, forks: 96, href: \"#lumen-ui\" },\n];\n\nconst defaultStats: ProfileDevCardStat[] = [\n  { label: \"followers\", value: \"3.4k\" },\n  { label: \"following\", value: \"128\" },\n  { label: \"stars earned\", value: \"21.7k\" },\n];\n\nconst css = `\n.hb-kg7 {\n  --hb-kg7-accent: #34d399;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  isolation: isolate;\n  container-type: inline-size;\n  background: #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-kg7 *, .hb-kg7 *::before, .hb-kg7 *::after { box-sizing: border-box; }\n.hb-kg7::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  background: radial-gradient(50% 50% at 10% 0%, color-mix(in srgb, var(--hb-kg7-accent) 10%, transparent), transparent 70%);\n  pointer-events: none;\n}\n.hb-kg7-inner { display: grid; gap: 28px; max-width: 1120px; margin: 0 auto; padding: 48px 16px 64px; }\n.hb-kg7-mono { font-family: ui-monospace, \"SFMono-Regular\", Menlo, Consolas, monospace; }\n.hb-kg7-side { min-width: 0; }\n.hb-kg7-head { display: flex; align-items: center; gap: 16px; }\n.hb-kg7-avatar {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 84px;\n  aspect-ratio: 1;\n  flex: none;\n  border-radius: 50%;\n  background: conic-gradient(from 210deg, #0f766e, var(--hb-kg7-accent), #a3e635, #0f766e);\n  color: #04130d;\n  font-size: 30px;\n  font-weight: 750;\n  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 0 0 4px #0a0a0a, 0 0 0 5px rgba(255, 255, 255, .08);\n}\n.hb-kg7-dot { position: absolute; right: 2px; bottom: 4px; width: 16px; height: 16px; border: 3px solid #0a0a0a; border-radius: 50%; background: var(--hb-kg7-accent); }\n.hb-kg7-name { margin: 0; font-size: clamp(22px, 3cqi, 26px); font-weight: 680; letter-spacing: -.02em; line-height: 1.15; }\n.hb-kg7-handle { margin: 4px 0 0; color: #8f8f8f; font-size: 14px; }\n.hb-kg7-status {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  margin-top: 18px;\n  padding: 6px 12px;\n  border: 1px solid color-mix(in srgb, var(--hb-kg7-accent) 30%, transparent);\n  border-radius: 999px;\n  background: color-mix(in srgb, var(--hb-kg7-accent) 8%, transparent);\n  color: color-mix(in srgb, var(--hb-kg7-accent) 70%, #fff);\n  font-size: 12px;\n  font-weight: 500;\n}\n.hb-kg7-status svg { width: 14px; height: 14px; }\n.hb-kg7-bio { margin: 14px 0 0; color: #cfcfcf; font-size: 14px; line-height: 1.6; text-wrap: pretty; }\n.hb-kg7-facts { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; color: #a1a1a1; font-size: 13px; }\n.hb-kg7-facts li { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.hb-kg7-facts svg { width: 15px; height: 15px; flex: none; color: #6b6b6b; }\n.hb-kg7-facts b { color: #ededed; font-weight: 600; }\n.hb-kg7-row { display: flex; gap: 8px; margin-top: 18px; }\n.hb-kg7-btn {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 7px;\n  flex: 1;\n  height: 38px;\n  padding: 0 14px;\n  border: 1px solid rgba(255, 255, 255, .12);\n  border-radius: 10px;\n  background: #171717;\n  color: #ededed;\n  font: inherit;\n  font-size: 13px;\n  font-weight: 600;\n  cursor: pointer;\n  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;\n}\n.hb-kg7-btn svg { width: 15px; height: 15px; }\n.hb-kg7-btn:hover { border-color: rgba(255, 255, 255, .24); background: #1d1d1d; }\n.hb-kg7-btn:active { transform: scale(.98); }\n.hb-kg7-btn[aria-pressed=\"false\"] { border-color: transparent; background: var(--hb-kg7-accent); color: #04130d; }\n.hb-kg7-btn[aria-pressed=\"false\"]:hover { background: color-mix(in srgb, var(--hb-kg7-accent) 85%, #fff); }\n.hb-kg7-btn-heart:hover svg { color: #f472b6; }\n.hb-kg7 button:focus-visible, .hb-kg7 a:focus-visible { outline: 2px solid var(--hb-kg7-accent); outline-offset: 2px; }\n.hb-kg7-stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }\n.hb-kg7-chip {\n  padding: 4px 9px;\n  border: 1px solid rgba(255, 255, 255, .08);\n  border-radius: 7px;\n  background: #121212;\n  color: #cfcfcf;\n  font-size: 12px;\n  transition: border-color .2s ease, color .2s ease;\n}\n.hb-kg7-chip:hover { border-color: color-mix(in srgb, var(--hb-kg7-accent) 50%, transparent); color: #fff; }\n.hb-kg7-main { display: grid; gap: 22px; min-width: 0; }\n.hb-kg7-panel {\n  position: relative;\n  min-width: 0;\n  padding: 16px 18px 14px;\n  border: 1px solid rgba(255, 255, 255, .08);\n  border-radius: 16px;\n  background: linear-gradient(180deg, #121212, #0f0f0f);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);\n}\n.hb-kg7-ptop { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }\n.hb-kg7-total { margin: 0; font-size: 14px; font-weight: 600; }\n.hb-kg7-total span { color: #8f8f8f; font-weight: 400; }\n.hb-kg7-legend { display: inline-flex; align-items: center; gap: 4px; color: #6b6b6b; font-size: 11px; }\n.hb-kg7-legend i { width: 10px; height: 10px; border-radius: 2.5px; }\n.hb-kg7-scroll { position: relative; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }\n.hb-kg7-scroll::-webkit-scrollbar { display: none; }\n.hb-kg7-map { position: relative; min-width: 560px; }\n.hb-kg7-map svg { display: block; width: 100%; height: auto; }\n.hb-kg7-cell {\n  transform-box: fill-box;\n  transform-origin: center;\n  animation: hb-kg7-pop .5s cubic-bezier(.2, .9, .3, 1.3) both;\n  animation-delay: var(--hb-kg7-d);\n  transition: stroke .15s ease;\n}\n.hb-kg7-cell:hover { stroke: #fff; stroke-width: 1.2; }\n.hb-kg7-l0 { fill: rgba(255, 255, 255, .055); }\n.hb-kg7-l1 { fill: color-mix(in srgb, var(--hb-kg7-accent) 24%, #161616); }\n.hb-kg7-l2 { fill: color-mix(in srgb, var(--hb-kg7-accent) 46%, #161616); }\n.hb-kg7-l3 { fill: color-mix(in srgb, var(--hb-kg7-accent) 72%, #161616); }\n.hb-kg7-l4 { fill: var(--hb-kg7-accent); }\n.hb-kg7-axis { fill: #6b6b6b; font-size: 9px; font-family: inherit; }\n.hb-kg7-tip {\n  position: absolute;\n  z-index: 2;\n  padding: 5px 9px;\n  border: 1px solid rgba(255, 255, 255, .12);\n  border-radius: 7px;\n  background: #1c1c1c;\n  color: #ededed;\n  font-size: 11px;\n  white-space: nowrap;\n  pointer-events: none;\n  transform: translate(var(--hb-kg7-tx), calc(-100% - 6px));\n  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .8);\n}\n.hb-kg7-tip[data-below] { transform: translate(var(--hb-kg7-tx), 6px); }\n.hb-kg7-tip b { color: var(--hb-kg7-accent); font-weight: 600; }\n.hb-kg7-label { display: flex; align-items: center; justify-content: space-between; margin: 0 0 -10px; color: #a1a1a1; font-size: 13px; font-weight: 600; }\n.hb-kg7-label a { color: #8f8f8f; font-size: 12px; font-weight: 500; text-decoration: none; }\n.hb-kg7-label a:hover { color: #ededed; }\n.hb-kg7-pins { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }\n.hb-kg7-pin {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n  height: 100%;\n  padding: 14px 16px;\n  border: 1px solid rgba(255, 255, 255, .08);\n  border-radius: 14px;\n  background: #101010;\n  color: inherit;\n  text-decoration: none;\n  animation: hb-kg7-up .5s cubic-bezier(.2, .8, .2, 1) both;\n  animation-delay: var(--hb-kg7-i);\n  transition: border-color .2s ease, background-color .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1);\n}\n.hb-kg7-pin:hover { border-color: color-mix(in srgb, var(--hb-kg7-accent) 40%, transparent); background: #131313; transform: translateY(-2px); }\n.hb-kg7-repo { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.hb-kg7-repo svg { width: 15px; height: 15px; flex: none; color: #6b6b6b; }\n.hb-kg7-rname { overflow: hidden; color: color-mix(in srgb, var(--hb-kg7-accent) 60%, #fff); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }\n.hb-kg7-public { margin-left: auto; padding: 1px 7px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; color: #8f8f8f; font-size: 10px; }\n.hb-kg7-desc { display: -webkit-box; flex: 1; margin: 0; overflow: hidden; color: #8f8f8f; font-size: 13px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }\n.hb-kg7-meta { display: flex; align-items: center; gap: 14px; color: #8f8f8f; font-size: 12px; }\n.hb-kg7-meta span { display: inline-flex; align-items: center; gap: 5px; }\n.hb-kg7-meta i { width: 10px; height: 10px; border-radius: 50%; }\n.hb-kg7-meta svg { width: 14px; height: 14px; transition: color .2s ease, fill .2s ease; }\n.hb-kg7-pin:hover .hb-kg7-star { color: #fbbf24; fill: #fbbf24; }\n@container (min-width: 600px) {\n  .hb-kg7-pins { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n}\n@container (min-width: 900px) {\n  .hb-kg7-inner { grid-template-columns: 290px minmax(0, 1fr); gap: 40px; padding: 64px 40px 72px; }\n  .hb-kg7-head { flex-direction: column; align-items: flex-start; }\n  .hb-kg7-avatar { width: 112px; font-size: 38px; }\n  .hb-kg7-map { min-width: 0; }\n}\n@keyframes hb-kg7-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }\n@keyframes hb-kg7-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }\n@media (prefers-reduced-motion: reduce) {\n  .hb-kg7-cell, .hb-kg7-pin { animation: none; }\n  .hb-kg7-btn, .hb-kg7-pin, .hb-kg7-chip, .hb-kg7-cell { transition: none; }\n  .hb-kg7-pin:hover { transform: none; }\n}\n`;\n\nconst MONTHS = [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"];\nconst CELL = 11;\nconst STEP = 14;\nconst LEFT = 28;\nconst TOP = 16;\n\nfunction rand(i: number, salt: number) {\n  let h = Math.imul(i + 1, 2654435761) ^ Math.imul(salt + 11, 1597334677);\n  h ^= h >>> 15;\n  h = Math.imul(h, 2246822519);\n  h ^= h >>> 13;\n  h = Math.imul(h, 3266489917);\n  h ^= h >>> 16;\n  return (h >>> 0) / 4294967295;\n}\n\nfunction daysFromCivil(y: number, m: number, d: number) {\n  const yy = m <= 2 ? y - 1 : y;\n  const era = Math.floor(yy / 400);\n  const yoe = yy - era * 400;\n  const doy = Math.floor((153 * (m + (m > 2 ? -3 : 9)) + 2) / 5) + d - 1;\n  const doe = yoe * 365 + Math.floor(yoe / 4) - Math.floor(yoe / 100) + doy;\n  return era * 146097 + doe - 719468;\n}\n\nfunction civilFromDays(z: number) {\n  const zz = z + 719468;\n  const era = Math.floor(zz / 146097);\n  const doe = zz - era * 146097;\n  const yoe = Math.floor((doe - Math.floor(doe / 1460) + Math.floor(doe / 36524) - Math.floor(doe / 146096)) / 365);\n  const doy = doe - (365 * yoe + Math.floor(yoe / 4) - Math.floor(yoe / 100));\n  const mp = Math.floor((5 * doy + 2) / 153);\n  const d = doy - Math.floor((153 * mp + 2) / 5) + 1;\n  const m = mp < 10 ? mp + 3 : mp - 9;\n  return { y: yoe + era * 400 + (m <= 2 ? 1 : 0), m, d };\n}\n\nfunction initialsOf(name: string) {\n  return name\n    .split(/\\s+/)\n    .filter(Boolean)\n    .slice(0, 2)\n    .map((w) => w.charAt(0).toUpperCase())\n    .join(\"\");\n}\n\ninterface Cell {\n  c: number;\n  r: number;\n  count: number;\n  level: number;\n  label: string;\n}\n\nexport function ProfileDevCard({\n  name = \"Priya Raman\",\n  handle = \"priyar\",\n  role = \"Staff engineer at Fieldnote\",\n  location = \"Toronto, Canada\",\n  bio = \"I work on sync engines, local-first data and the occasional compiler. Maintainer of tidewave and quill-ts.\",\n  status = \"Open to mentoring\",\n  stack = [\"TypeScript\", \"Rust\", \"Go\", \"PostgreSQL\", \"React\", \"WebAssembly\", \"SQLite\"],\n  stats = defaultStats,\n  projects = defaultProjects,\n  weeks = 52,\n  seed = 11,\n  endDate = \"2026-11-01\",\n  following,\n  defaultFollowing = false,\n  onFollowChange,\n  accent = \"#34d399\",\n  className = \"\",\n  style,\n  ...rest\n}: ProfileDevCardProps) {\n  const uid = React.useId().replace(/[^a-zA-Z0-9_-]/g, \"\");\n  const [innerFollowing, setInnerFollowing] = React.useState(defaultFollowing);\n  const [hover, setHover] = React.useState<Cell | null>(null);\n  const scrollRef = React.useRef<HTMLDivElement>(null);\n  const isFollowing = following ?? innerFollowing;\n  const vars = { \"--hb-kg7-accent\": accent, ...style } as React.CSSProperties;\n\n  const { cells, total, months } = React.useMemo(() => {\n    const [ey, em, ed] = endDate.split(\"-\").map(Number);\n    const end = daysFromCivil(ey || 2026, em || 11, ed || 1);\n    const endWeekday = (((end + 4) % 7) + 7) % 7;\n    const list: Cell[] = [];\n    const monthMarks: { c: number; label: string }[] = [];\n    let sum = 0;\n    let lastMonth = -1;\n    for (let c = 0; c < weeks; c++) {\n      const firstDay = civilFromDays(end - ((weeks - 1 - c) * 7 + endWeekday));\n      if (firstDay.m !== lastMonth) {\n        if (c < weeks - 2 && (monthMarks.length === 0 || c - monthMarks[monthMarks.length - 1].c >= 3)) {\n          monthMarks.push({ c, label: MONTHS[firstDay.m - 1] });\n        }\n        lastMonth = firstDay.m;\n      }\n      const phase = 0.3 + 0.35 * rand(c >> 2, seed + 50) + 0.35 * rand(c, seed + 90);\n      for (let r = 0; r < 7; r++) {\n        const ago = (weeks - 1 - c) * 7 + (endWeekday - r);\n        if (ago < 0) continue;\n        const i = c * 7 + r;\n        const weekend = r === 0 || r === 6 ? 0.35 : 1;\n        const base = rand(i, seed);\n        const raw = base * base * 16 * weekend * phase;\n        const count = base < 0.2 ? 0 : Math.round(raw);\n        const level = count === 0 ? 0 : count <= 2 ? 1 : count <= 5 ? 2 : count <= 9 ? 3 : 4;\n        const day = civilFromDays(end - ago);\n        sum += count;\n        list.push({ c, r, count, level, label: `${MONTHS[day.m - 1]} ${day.d}, ${day.y}` });\n      }\n    }\n    return { cells: list, total: sum, months: monthMarks };\n  }, [endDate, weeks, seed]);\n\n  React.useEffect(() => {\n    const el = scrollRef.current;\n    if (el) el.scrollLeft = el.scrollWidth;\n  }, []);\n\n  const toggleFollow = () => {\n    const next = !isFollowing;\n    if (following === undefined) setInnerFollowing(next);\n    onFollowChange?.(next);\n  };\n\n  const vbW = LEFT + weeks * STEP;\n  const vbH = TOP + 7 * STEP;\n\n  const onOver = (e: React.PointerEvent<SVGSVGElement>) => {\n    const idx = (e.target as Element).getAttribute(\"data-i\");\n    setHover(idx === null ? null : cells[Number(idx)] ?? null);\n  };\n\n  return (\n    <section className={`hb-kg7 ${className}`} style={vars} aria-labelledby={`${uid}-name`} {...rest}>\n      <style href=\"hb-profile-dev-card\" precedence=\"default\">{css}</style>\n      <div className=\"hb-kg7-inner\">\n        <aside className=\"hb-kg7-side\">\n          <div className=\"hb-kg7-head\">\n            <div className=\"hb-kg7-avatar\" aria-hidden=\"true\">\n              {initialsOf(name)}\n              <span className=\"hb-kg7-dot\" />\n            </div>\n            <div>\n              <h2 id={`${uid}-name`} className=\"hb-kg7-name\">{name}</h2>\n              <p className=\"hb-kg7-handle hb-kg7-mono\">{handle}</p>\n            </div>\n          </div>\n          {status && (\n            <span className=\"hb-kg7-status\">\n              <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\"><path d=\"M8 2.5 9.6 6l3.9.4-2.9 2.6.8 3.8L8 10.9l-3.4 1.9.8-3.8L2.5 6.4 6.4 6 8 2.5Z\" stroke=\"currentColor\" strokeWidth=\"1.3\" strokeLinejoin=\"round\" /></svg>\n              {status}\n            </span>\n          )}\n          {bio && <p className=\"hb-kg7-bio\">{bio}</p>}\n          <div className=\"hb-kg7-row\">\n            <button type=\"button\" className=\"hb-kg7-btn\" aria-pressed={isFollowing} onClick={toggleFollow}>\n              {isFollowing ? (\n                <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\"><path d=\"m3.5 8.5 3 3 6-7\" stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinecap=\"round\" strokeLinejoin=\"round\" /></svg>\n              ) : (\n                <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\"><path d=\"M8 3.5v9M3.5 8h9\" stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinecap=\"round\" /></svg>\n              )}\n              {isFollowing ? \"Following\" : \"Follow\"}\n            </button>\n            <button type=\"button\" className=\"hb-kg7-btn hb-kg7-btn-heart\">\n              <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\"><path d=\"M8 13.5S2.5 10.3 2.5 6.4A2.9 2.9 0 0 1 8 5a2.9 2.9 0 0 1 5.5 1.4C13.5 10.3 8 13.5 8 13.5Z\" stroke=\"currentColor\" strokeWidth=\"1.4\" strokeLinejoin=\"round\" /></svg>\n              Sponsor\n            </button>\n          </div>\n          <ul className=\"hb-kg7-facts\">\n            {stats.length > 0 && (\n              <li>\n                <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\"><circle cx=\"6\" cy=\"5.5\" r=\"2.5\" stroke=\"currentColor\" strokeWidth=\"1.3\" /><path d=\"M1.5 13.5c.5-2.5 2.3-4 4.5-4s4 1.5 4.5 4M11 3.2a2.5 2.5 0 0 1 0 4.6M12.5 9.8c1 .6 1.7 1.9 2 3.7\" stroke=\"currentColor\" strokeWidth=\"1.3\" strokeLinecap=\"round\" /></svg>\n                <span>\n                  {stats.map((s, i) => (\n                    <React.Fragment key={s.label}>\n                      {i > 0 && \" · \"}\n                      <b>{s.value}</b> {s.label}\n                    </React.Fragment>\n                  ))}\n                </span>\n              </li>\n            )}\n            {role && (\n              <li>\n                <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\"><rect x=\"2.5\" y=\"4.5\" width=\"11\" height=\"9\" rx=\"1.5\" stroke=\"currentColor\" strokeWidth=\"1.3\" /><path d=\"M5.5 4.5v-1a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1M2.5 8.5h11\" stroke=\"currentColor\" strokeWidth=\"1.3\" /></svg>\n                {role}\n              </li>\n            )}\n            {location && (\n              <li>\n                <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\"><path d=\"M8 14s4.5-4.2 4.5-7.5a4.5 4.5 0 0 0-9 0C3.5 9.8 8 14 8 14Z\" stroke=\"currentColor\" strokeWidth=\"1.3\" /><circle cx=\"8\" cy=\"6.5\" r=\"1.6\" stroke=\"currentColor\" strokeWidth=\"1.3\" /></svg>\n                {location}\n              </li>\n            )}\n          </ul>\n          {stack.length > 0 && (\n            <ul className=\"hb-kg7-stack\" aria-label=\"Tech stack\">\n              {stack.map((s) => (\n                <li key={s} className=\"hb-kg7-chip hb-kg7-mono\">{s}</li>\n              ))}\n            </ul>\n          )}\n        </aside>\n        <div className=\"hb-kg7-main\">\n          <div className=\"hb-kg7-panel\">\n            <div className=\"hb-kg7-ptop\">\n              <p className=\"hb-kg7-total\">{total.toLocaleString(\"en-US\")} contributions <span>in the last year</span></p>\n              <span className=\"hb-kg7-legend\" aria-hidden=\"true\">\n                Less\n                {[0, 1, 2, 3, 4].map((l) => (\n                  <svg key={l} viewBox=\"0 0 10 10\" width=\"10\" height=\"10\"><rect className={`hb-kg7-l${l}`} width=\"10\" height=\"10\" rx=\"2.5\" /></svg>\n                ))}\n                More\n              </span>\n            </div>\n            <div ref={scrollRef} className=\"hb-kg7-scroll\">\n              <div className=\"hb-kg7-map\">\n                <svg\n                  viewBox={`0 0 ${vbW} ${vbH}`}\n                  role=\"img\"\n                  aria-label={`${total} contributions in the last year`}\n                  onPointerOver={onOver}\n                  onPointerLeave={() => setHover(null)}\n                >\n                  {months.map((m) => (\n                    <text key={m.c} className=\"hb-kg7-axis\" x={LEFT + m.c * STEP} y={10}>{m.label}</text>\n                  ))}\n                  {[[\"Mon\", 1], [\"Wed\", 3], [\"Fri\", 5]].map(([label, r]) => (\n                    <text key={label} className=\"hb-kg7-axis\" x={0} y={TOP + Number(r) * STEP + 9}>{label}</text>\n                  ))}\n                  {cells.map((cell, i) => (\n                    <rect\n                      key={i}\n                      data-i={i}\n                      className={`hb-kg7-cell hb-kg7-l${cell.level}`}\n                      x={LEFT + cell.c * STEP}\n                      y={TOP + cell.r * STEP}\n                      width={CELL}\n                      height={CELL}\n                      rx={2.5}\n                      style={{ \"--hb-kg7-d\": `${(cell.c * 14 + cell.r * 20).toFixed(0)}ms` } as React.CSSProperties}\n                    />\n                  ))}\n                </svg>\n                {hover && (\n                  <div\n                    className=\"hb-kg7-tip\"\n                    data-below={hover.r < 3 ? \"\" : undefined}\n                    style={{\n                      left: `${(((LEFT + hover.c * STEP + CELL / 2) / vbW) * 100).toFixed(2)}%`,\n                      top: `${(((TOP + (hover.r < 3 ? hover.r + 1 : hover.r) * STEP) / vbH) * 100).toFixed(2)}%`,\n                      \"--hb-kg7-tx\": hover.c < 8 ? \"-12%\" : hover.c > weeks - 9 ? \"-88%\" : \"-50%\",\n                    } as React.CSSProperties}\n                  >\n                    <b>{hover.count === 0 ? \"No\" : hover.count} {hover.count === 1 ? \"contribution\" : \"contributions\"}</b> on {hover.label}\n                  </div>\n                )}\n              </div>\n            </div>\n          </div>\n          <p className=\"hb-kg7-label\">\n            Pinned\n            <a href=\"#repositories\">All repositories</a>\n          </p>\n          <ul className=\"hb-kg7-pins\">\n            {projects.map((p, i) => (\n              <li key={p.name}>\n                <a className=\"hb-kg7-pin\" href={p.href} style={{ \"--hb-kg7-i\": `${(200 + i * 80).toFixed(0)}ms` } as React.CSSProperties}>\n                  <span className=\"hb-kg7-repo\">\n                    <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\"><path d=\"M3.5 12.5v-9a1.5 1.5 0 0 1 1.5-1.5h7.5v9H5a1.5 1.5 0 0 0-1.5 1.5Zm0 0A1.5 1.5 0 0 0 5 14h7.5v-3\" stroke=\"currentColor\" strokeWidth=\"1.3\" strokeLinejoin=\"round\" /></svg>\n                    <span className=\"hb-kg7-rname hb-kg7-mono\">{p.name}</span>\n                    <span className=\"hb-kg7-public\">Public</span>\n                  </span>\n                  <p className=\"hb-kg7-desc\">{p.description}</p>\n                  <span className=\"hb-kg7-meta\">\n                    <span><i style={{ background: p.languageColor }} />{p.language}</span>\n                    <span>\n                      <svg className=\"hb-kg7-star\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.3\" strokeLinejoin=\"round\" aria-hidden=\"true\"><path d=\"M8 1.8 9.9 5.7l4.3.6-3.1 3 .7 4.3L8 11.6l-3.8 2 .7-4.3-3.1-3 4.3-.6L8 1.8Z\" /></svg>\n                      {p.stars.toLocaleString(\"en-US\")}\n                    </span>\n                    <span>\n                      <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\"><circle cx=\"4.5\" cy=\"3.5\" r=\"1.5\" stroke=\"currentColor\" strokeWidth=\"1.3\" /><circle cx=\"11.5\" cy=\"3.5\" r=\"1.5\" stroke=\"currentColor\" strokeWidth=\"1.3\" /><circle cx=\"8\" cy=\"12.5\" r=\"1.5\" stroke=\"currentColor\" strokeWidth=\"1.3\" /><path d=\"M4.5 5v1a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2V5M8 8v3\" stroke=\"currentColor\" strokeWidth=\"1.3\" /></svg>\n                      {p.forks}\n                    </span>\n                  </span>\n                </a>\n              </li>\n            ))}\n          </ul>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}