{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "profile-resume-timeline",
  "type": "registry:component",
  "title": "Profile Resume Timeline",
  "description": "A resume profile with a sticky card holding the person, availability, summary and animated skill bars, beside an experience timeline whose line draws down and whose current role pulses, plus education.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "profile",
    "profile",
    "resume",
    "timeline",
    "skills",
    "portfolio",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/profile-resume-timeline",
  "files": [
    {
      "path": "registry/hyperblur/profile-resume-timeline.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/profile-resume-timeline.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface ProfileResumeRole {\n  role: string;\n  company: string;\n  period: string;\n  location: string;\n  points: string[];\n  stack?: string[];\n  current?: boolean;\n}\n\nexport interface ProfileResumeSkill {\n  name: string;\n  level: number;\n}\n\nexport interface ProfileResumeEducation {\n  degree: string;\n  school: string;\n  period: string;\n}\n\nexport interface ProfileResumeTimelineProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  name?: string;\n  headline?: string;\n  location?: string;\n  available?: boolean;\n  summary?: string;\n  roles?: ProfileResumeRole[];\n  skills?: ProfileResumeSkill[];\n  education?: ProfileResumeEducation[];\n  links?: { label: string; href: string }[];\n  cv?: { label: string; href: string };\n  accent?: string;\n}\n\nconst defaultRoles: ProfileResumeRole[] = [\n  {\n    role: \"Staff Frontend Engineer\",\n    company: \"Pallet\",\n    period: \"2023 to now\",\n    location: \"Remote\",\n    current: true,\n    points: [\"Led the rewrite of the editor to a canvas renderer, cutting input latency from 48 to 9 ms.\", \"Mentor four engineers and run the frontend guild across three product teams.\"],\n    stack: [\"React\", \"TypeScript\", \"WebGL\"],\n  },\n  {\n    role: \"Senior Engineer, Design Systems\",\n    company: \"Brightwave\",\n    period: \"2020 to 2023\",\n    location: \"Copenhagen\",\n    points: [\"Built the component library used by 140 engineers and 31 product surfaces.\", \"Introduced visual regression testing, reducing UI bugs in production by 62%.\"],\n    stack: [\"React\", \"Storybook\", \"CSS\"],\n  },\n  {\n    role: \"Frontend Engineer\",\n    company: \"Ticketfly\",\n    period: \"2017 to 2020\",\n    location: \"Berlin\",\n    points: [\"Shipped the seat picker that sold 2.3 million tickets in its first season.\"],\n    stack: [\"Vue\", \"SVG\", \"Node\"],\n  },\n];\n\nconst defaultSkills: ProfileResumeSkill[] = [\n  { name: \"TypeScript\", level: 95 },\n  { name: \"React and rendering\", level: 92 },\n  { name: \"Design systems\", level: 88 },\n  { name: \"Accessibility\", level: 80 },\n  { name: \"WebGL and canvas\", level: 70 },\n];\n\nconst defaultEducation: ProfileResumeEducation[] = [\n  { degree: \"MSc Human-Computer Interaction\", school: \"KTH Royal Institute of Technology\", period: \"2015 to 2017\" },\n];\n\nconst css = `\n@keyframes hb-ygb-line { from { transform: scaleY(0); } }\n@keyframes hb-ygb-fill { from { transform: scaleX(0); } }\n@keyframes hb-ygb-node {\n  0% { transform: scale(0); }\n  70% { transform: scale(1.25); }\n  100% { transform: scale(1); }\n}\n@keyframes hb-ygb-in {\n  from { opacity: 0; transform: translateY(12px); }\n  to { opacity: 1; transform: none; }\n}\n@keyframes hb-ygb-pulse {\n  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hb-ygb-accent) 50%, transparent); }\n  100% { box-shadow: 0 0 0 10px transparent; }\n}\n.hb-ygb {\n  --hb-ygb-accent: #f59e0b;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  container-type: inline-size;\n  background: #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-ygb *, .hb-ygb *::before, .hb-ygb *::after { box-sizing: border-box; }\n.hb-ygb-in {\n  display: grid;\n  gap: 40px;\n  max-width: 1120px;\n  margin: 0 auto;\n  padding: 80px 24px 96px;\n}\n@container (min-width: 860px) {\n  .hb-ygb-in { grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }\n  .hb-ygb-aside { position: sticky; top: 24px; }\n}\n.hb-ygb-aside {\n  padding: 24px;\n  border: 1px solid rgba(255, 255, 255, 0.08);\n  border-radius: 22px;\n  background:\n    radial-gradient(80% 50% at 0% 0%, color-mix(in srgb, var(--hb-ygb-accent) 12%, transparent), transparent 70%),\n    linear-gradient(180deg, #131313, #0f0f0f);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);\n  animation: hb-ygb-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;\n}\n.hb-ygb-id { display: flex; align-items: center; gap: 14px; }\n.hb-ygb-av {\n  display: grid;\n  place-items: center;\n  flex: none;\n  width: 60px;\n  height: 60px;\n  border-radius: 18px;\n  background: linear-gradient(140deg, color-mix(in srgb, var(--hb-ygb-accent) 80%, #fff), color-mix(in srgb, var(--hb-ygb-accent) 50%, #3b0a00));\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);\n  color: #1a1203;\n  font-size: 21px;\n  font-weight: 700;\n}\n.hb-ygb-name { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }\n.hb-ygb-head { margin: 3px 0 0; color: #a1a1a1; font-size: 14px; }\n.hb-ygb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }\n.hb-ygb-tag {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  height: 26px;\n  padding: 0 10px;\n  border: 1px solid rgba(255, 255, 255, 0.08);\n  border-radius: 999px;\n  color: #a1a1a1;\n  font-size: 12px;\n}\n.hb-ygb-avail { color: #4ade80; border-color: rgba(74, 222, 128, 0.25); }\n.hb-ygb-avail i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }\n.hb-ygb-summary { margin: 16px 0 0; color: #b4b4b4; font-size: 14px; line-height: 1.6; }\n.hb-ygb-h { margin: 24px 0 12px; color: #6f6f6f; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }\n.hb-ygb-skills { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }\n.hb-ygb-skill-top { display: flex; justify-content: space-between; font-size: 13px; }\n.hb-ygb-skill-top span:last-child { color: #8f8f8f; font-variant-numeric: tabular-nums; }\n.hb-ygb-bar { position: relative; height: 6px; margin-top: 7px; overflow: hidden; border-radius: 6px; background: rgba(255, 255, 255, 0.06); }\n.hb-ygb-bar span {\n  position: absolute;\n  inset: 0 auto 0 0;\n  border-radius: 6px;\n  background: linear-gradient(90deg, color-mix(in srgb, var(--hb-ygb-accent) 45%, transparent), var(--hb-ygb-accent));\n  transform-origin: left;\n  animation: hb-ygb-fill 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;\n}\n.hb-ygb-bar span::after {\n  content: \"\";\n  position: absolute;\n  right: 0;\n  top: 50%;\n  width: 8px;\n  height: 8px;\n  margin-top: -4px;\n  border-radius: 50%;\n  background: #fff;\n  box-shadow: 0 0 10px var(--hb-ygb-accent);\n  opacity: 0.85;\n}\n.hb-ygb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }\n.hb-ygb-cv {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  height: 38px;\n  padding: 0 14px;\n  border-radius: 10px;\n  background: #ededed;\n  color: #0a0a0a;\n  font-size: 13.5px;\n  font-weight: 600;\n  text-decoration: none;\n  transition: background 0.2s ease, transform 0.15s ease;\n}\n.hb-ygb-cv:hover { background: #fff; transform: translateY(-1px); }\n.hb-ygb-link {\n  display: inline-flex;\n  align-items: center;\n  height: 38px;\n  padding: 0 12px;\n  border: 1px solid rgba(255, 255, 255, 0.1);\n  border-radius: 10px;\n  color: #ededed;\n  font-size: 13.5px;\n  text-decoration: none;\n  transition: border-color 0.2s ease, background 0.2s ease;\n}\n.hb-ygb-link:hover { border-color: rgba(255, 255, 255, 0.22); background: #151515; }\n.hb-ygb-cv:focus-visible, .hb-ygb-link:focus-visible { outline: 2px solid var(--hb-ygb-accent); outline-offset: 2px; }\n.hb-ygb-main-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 24px; }\n.hb-ygb-main-h h3 { margin: 0; font-size: clamp(24px, 3.4cqw, 32px); font-weight: 650; letter-spacing: -0.035em; }\n.hb-ygb-main-h span { color: #6f6f6f; font-size: 13px; }\n.hb-ygb-tl { position: relative; display: grid; gap: 14px; margin: 0; padding: 0 0 0 30px; list-style: none; }\n.hb-ygb-tl::before {\n  content: \"\";\n  position: absolute;\n  left: 7px;\n  top: 10px;\n  bottom: 10px;\n  width: 2px;\n  border-radius: 2px;\n  background: linear-gradient(180deg, var(--hb-ygb-accent), rgba(255, 255, 255, 0.08) 70%);\n  transform-origin: top;\n  animation: hb-ygb-line 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;\n}\n.hb-ygb-item {\n  position: relative;\n  padding: 20px 22px;\n  border: 1px solid rgba(255, 255, 255, 0.07);\n  border-radius: 18px;\n  background: #101010;\n  animation: hb-ygb-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;\n  transition: border-color 0.25s ease, background 0.25s ease;\n}\n.hb-ygb-item:hover { border-color: color-mix(in srgb, var(--hb-ygb-accent) 35%, transparent); background: #131210; }\n.hb-ygb-node {\n  position: absolute;\n  left: -30px;\n  top: 24px;\n  width: 16px;\n  height: 16px;\n  border: 3px solid #0a0a0a;\n  border-radius: 50%;\n  background: #3a3a3a;\n  animation: hb-ygb-node 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;\n  animation-delay: inherit;\n}\n.hb-ygb-item[data-current=\"true\"] .hb-ygb-node { background: var(--hb-ygb-accent); animation: hb-ygb-node 0.5s both, hb-ygb-pulse 1.8s 0.6s ease-out infinite; }\n.hb-ygb-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }\n.hb-ygb-role { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }\n.hb-ygb-period { color: #8f8f8f; font-size: 13px; font-variant-numeric: tabular-nums; }\n.hb-ygb-co { margin: 3px 0 0; color: color-mix(in srgb, var(--hb-ygb-accent) 70%, #fff); font-size: 13.5px; font-weight: 500; }\n.hb-ygb-co span { color: #6f6f6f; font-weight: 400; }\n.hb-ygb-points { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }\n.hb-ygb-points li { position: relative; padding-left: 16px; color: #b4b4b4; font-size: 14px; line-height: 1.55; }\n.hb-ygb-points li::before { content: \"\"; position: absolute; left: 0; top: 0.65em; width: 6px; height: 1px; background: #6f6f6f; }\n.hb-ygb-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }\n.hb-ygb-stack span { height: 24px; padding: 0 9px; border-radius: 6px; background: #1a1a1a; color: #a1a1a1; font-family: ui-monospace, \"Geist Mono\", Menlo, monospace; font-size: 11.5px; line-height: 24px; }\n.hb-ygb-edu { display: grid; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }\n.hb-ygb-edu li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 16px 18px; border: 1px dashed rgba(255, 255, 255, 0.1); border-radius: 16px; }\n.hb-ygb-edu strong { display: block; font-size: 14.5px; font-weight: 600; }\n.hb-ygb-edu small { display: block; margin-top: 2px; color: #8f8f8f; font-size: 13px; }\n.hb-ygb-edu em { color: #6f6f6f; font-size: 13px; font-style: normal; }\n@media (prefers-reduced-motion: reduce) {\n  .hb-ygb-aside, .hb-ygb-bar span, .hb-ygb-tl::before, .hb-ygb-item, .hb-ygb-node, .hb-ygb-item[data-current=\"true\"] .hb-ygb-node { animation: none; }\n  .hb-ygb-item, .hb-ygb-cv, .hb-ygb-link { transition: none; }\n}\n`;\n\nfunction initials(name: string) {\n  return name.split(\" \").map((p) => p[0]).slice(0, 2).join(\"\");\n}\n\nexport function ProfileResumeTimeline({\n  name = \"Rasmus Holt\",\n  headline = \"Staff Frontend Engineer\",\n  location = \"Copenhagen, Denmark\",\n  available = true,\n  summary = \"Eight years building fast, accessible interfaces for creative tools. I care about input latency, honest design systems and teams that ship on Fridays without fear.\",\n  roles = defaultRoles,\n  skills = defaultSkills,\n  education = defaultEducation,\n  links = [{ label: \"GitHub\", href: \"#github\" }, { label: \"Email\", href: \"mailto:rasmus@holt.dev\" }],\n  cv = { label: \"Download CV\", href: \"#cv\" },\n  accent = \"#f59e0b\",\n  className = \"\",\n  style,\n  ...rest\n}: ProfileResumeTimelineProps) {\n  return (\n    <section className={`hb-ygb ${className}`} style={{ \"--hb-ygb-accent\": accent, ...style } as React.CSSProperties} {...rest}>\n      <style href=\"hb-profile-resume-timeline\" precedence=\"default\">{css}</style>\n      <div className=\"hb-ygb-in\">\n        <aside className=\"hb-ygb-aside\">\n          <div className=\"hb-ygb-id\">\n            <span className=\"hb-ygb-av\" aria-hidden=\"true\">{initials(name)}</span>\n            <div>\n              <h2 className=\"hb-ygb-name\">{name}</h2>\n              <p className=\"hb-ygb-head\">{headline}</p>\n            </div>\n          </div>\n          <div className=\"hb-ygb-tags\">\n            {available && <span className=\"hb-ygb-tag hb-ygb-avail\"><i aria-hidden=\"true\" />Open to work</span>}\n            <span className=\"hb-ygb-tag\">\n              <svg width=\"11\" height=\"11\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.2\" aria-hidden=\"true\"><path d=\"M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21Z\" /><circle cx=\"12\" cy=\"9.5\" r=\"2.5\" /></svg>\n              {location}\n            </span>\n          </div>\n          <p className=\"hb-ygb-summary\">{summary}</p>\n          <h3 className=\"hb-ygb-h\">Skills</h3>\n          <ul className=\"hb-ygb-skills\">\n            {skills.map((s, i) => (\n              <li key={s.name}>\n                <div className=\"hb-ygb-skill-top\"><span>{s.name}</span><span>{s.level}%</span></div>\n                <div className=\"hb-ygb-bar\" role=\"meter\" aria-label={s.name} aria-valuemin={0} aria-valuemax={100} aria-valuenow={s.level}>\n                  <span style={{ width: `${Math.min(100, Math.max(0, s.level)).toFixed(0)}%`, animationDelay: `${(0.3 + i * 0.1).toFixed(2)}s` }} />\n                </div>\n              </li>\n            ))}\n          </ul>\n          <div className=\"hb-ygb-actions\">\n            {cv && (\n              <a className=\"hb-ygb-cv\" href={cv.href}>\n                <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" aria-hidden=\"true\"><path d=\"M12 4v12M6 10l6 6 6-6M5 20h14\" /></svg>\n                {cv.label}\n              </a>\n            )}\n            {links.map((l) => <a key={l.label} className=\"hb-ygb-link\" href={l.href}>{l.label}</a>)}\n          </div>\n        </aside>\n        <div>\n          <div className=\"hb-ygb-main-h\">\n            <h3>Experience</h3>\n            <span>{roles.length} roles</span>\n          </div>\n          <ol className=\"hb-ygb-tl\">\n            {roles.map((r, i) => (\n              <li key={r.company + r.period} className=\"hb-ygb-item\" data-current={r.current ? \"true\" : undefined} style={{ animationDelay: `${(0.15 + i * 0.15).toFixed(2)}s` }}>\n                <span className=\"hb-ygb-node\" aria-hidden=\"true\" />\n                <div className=\"hb-ygb-row\">\n                  <h4 className=\"hb-ygb-role\">{r.role}</h4>\n                  <span className=\"hb-ygb-period\">{r.period}</span>\n                </div>\n                <p className=\"hb-ygb-co\">{r.company} <span>· {r.location}</span></p>\n                <ul className=\"hb-ygb-points\">\n                  {r.points.map((p) => <li key={p}>{p}</li>)}\n                </ul>\n                {r.stack && r.stack.length > 0 && (\n                  <div className=\"hb-ygb-stack\">{r.stack.map((s) => <span key={s}>{s}</span>)}</div>\n                )}\n              </li>\n            ))}\n          </ol>\n          {education.length > 0 && (\n            <ul className=\"hb-ygb-edu\" aria-label=\"Education\">\n              {education.map((e) => (\n                <li key={e.degree}>\n                  <div>\n                    <strong>{e.degree}</strong>\n                    <small>{e.school}</small>\n                  </div>\n                  <em>{e.period}</em>\n                </li>\n              ))}\n            </ul>\n          )}\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}