{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "portfolio-v6",
  "title": "Portfolio v6",
  "description": "Centered CV portfolio for a fullstack developer — About and Writing, same Jon Doe career data as v3. New projects only (shadcn init --template next).",
  "dependencies": [
    "next-themes",
    "lucide-react",
    "class-variance-authority",
    "radix-ui",
    "geist",
    "gsap"
  ],
  "registryDependencies": [
    "https://uiception.com/r/block-media.json"
  ],
  "files": [
    {
      "path": "registry/new-york/templates/portfolio-v6/app/layout.tsx",
      "content": "import type { Metadata } from \"next\"\nimport { GeistSans } from \"geist/font/sans\"\nimport type { ReactNode } from \"react\"\n\nimport { GsapAnimation } from \"../components/gsap-animation\"\nimport { ProfileHeader } from \"../components/profile-header\"\nimport { SiteNav } from \"../components/site-nav\"\nimport { ThemeProvider } from \"../components/theme-provider\"\n\nimport \"./globals.css\"\n\nexport const metadata: Metadata = {\n  title: \"Jon Doe\",\n  description:\n    \"Fullstack developer — a quiet CV of work, projects, and writing.\",\n}\n\nexport default function RootLayout({ children }: { children: ReactNode }) {\n  return (\n    <html\n      lang=\"en\"\n      className={`h-full ${GeistSans.variable} antialiased`}\n      suppressHydrationWarning\n    >\n      <body\n        className={`${GeistSans.className} flex min-h-svh flex-col bg-background font-sans text-foreground`}\n      >\n        <ThemeProvider>\n          <GsapAnimation className=\"mx-auto flex w-full max-w-xl flex-1 flex-col px-6 pt-16 pb-28 sm:px-8 sm:pt-24\">\n            <ProfileHeader />\n            <main className=\"mt-12 flex flex-1 flex-col\">{children}</main>\n          </GsapAnimation>\n          <SiteNav />\n        </ThemeProvider>\n      </body>\n    </html>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/layout.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/app/page.tsx",
      "content": "import { ArrowUpRight } from \"lucide-react\"\n\nimport { ResumeRow } from \"../components/resume-row\"\nimport { ResumeSection } from \"../components/resume-section\"\nimport { portfolio } from \"../lib/portfolio\"\n\nexport default function HomePage() {\n  return (\n    <div className=\"flex flex-col gap-12\">\n      <ResumeSection title=\"About\">\n        <p className=\"text-sm leading-relaxed text-muted-foreground\">\n          {portfolio.about}\n        </p>\n      </ResumeSection>\n\n      <ResumeSection title=\"Work Experience\">\n        {portfolio.experience.map((job) => (\n          <ResumeRow key={`${job.company}-${job.dates}`} date={job.dates}>\n            <div className=\"flex flex-col gap-1\">\n              <p className=\"text-sm font-medium text-foreground\">\n                {job.role} at{\" \"}\n                <a\n                  href={job.href}\n                  target=\"_blank\"\n                  rel=\"noreferrer\"\n                  className=\"hover:underline\"\n                >\n                  {job.company}\n                </a>\n              </p>\n              {job.location ? (\n                <p className=\"text-sm text-muted-foreground\">{job.location}</p>\n              ) : null}\n              <p className=\"mt-2 text-sm leading-relaxed text-muted-foreground\">\n                {job.description}\n              </p>\n            </div>\n          </ResumeRow>\n        ))}\n      </ResumeSection>\n\n      <ResumeSection title=\"Side Projects\">\n        {portfolio.projects.map((project) => (\n          <ResumeRow key={project.name} date={project.dates}>\n            <div className=\"flex flex-col gap-1\">\n              <p className=\"text-sm font-medium text-foreground\">\n                <a\n                  href={project.href}\n                  target=\"_blank\"\n                  rel=\"noreferrer\"\n                  className=\"hover:underline\"\n                >\n                  {project.name}\n                </a>\n              </p>\n              <p className=\"text-sm leading-relaxed text-muted-foreground\">\n                {project.description}\n              </p>\n            </div>\n          </ResumeRow>\n        ))}\n      </ResumeSection>\n\n      <ResumeSection title=\"Awards\">\n        {portfolio.awards.map((award) => (\n          <ResumeRow key={`${award.year}-${award.name}`} date={award.year}>\n            <p className=\"text-sm font-medium text-foreground\">{award.name}</p>\n          </ResumeRow>\n        ))}\n      </ResumeSection>\n\n      <ResumeSection title=\"Certifications\">\n        {portfolio.certificates.map((cert) => (\n          <ResumeRow key={`${cert.year}-${cert.name}`} date={cert.year}>\n            <p className=\"text-sm font-medium text-foreground\">\n              <a\n                href={cert.href}\n                target=\"_blank\"\n                rel=\"noreferrer\"\n                className=\"hover:underline\"\n              >\n                {cert.name}\n              </a>\n            </p>\n          </ResumeRow>\n        ))}\n      </ResumeSection>\n\n      <ResumeSection title=\"Education\">\n        {portfolio.education.map((edu) => (\n          <ResumeRow key={`${edu.dates}-${edu.school}`} date={edu.dates}>\n            <div className=\"flex flex-col gap-1\">\n              <p className=\"text-sm font-medium text-foreground\">{edu.detail}</p>\n              <p className=\"text-sm text-muted-foreground\">\n                <a\n                  href={edu.href}\n                  target=\"_blank\"\n                  rel=\"noreferrer\"\n                  className=\"hover:underline\"\n                >\n                  {edu.school}\n                </a>\n              </p>\n              {edu.description ? (\n                <p className=\"mt-2 text-sm leading-relaxed text-muted-foreground\">\n                  {edu.description}\n                </p>\n              ) : null}\n            </div>\n          </ResumeRow>\n        ))}\n      </ResumeSection>\n\n      <ResumeSection title=\"Contact\">\n        {portfolio.contact.map((row) => (\n          <ResumeRow key={row.label} date={row.label}>\n            <a\n              href={row.href}\n              target={row.href.startsWith(\"mailto:\") ? undefined : \"_blank\"}\n              rel={row.href.startsWith(\"mailto:\") ? undefined : \"noreferrer\"}\n              className=\"inline-flex items-center gap-1 text-sm font-medium text-foreground hover:underline\"\n            >\n              {row.value}\n              <ArrowUpRight className=\"size-3.5 text-muted-foreground\" />\n            </a>\n          </ResumeRow>\n        ))}\n      </ResumeSection>\n    </div>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/page.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/app/writing/page.tsx",
      "content": "import { ArrowUpRight } from \"lucide-react\"\nimport Link from \"next/link\"\n\nimport { ResumeRow } from \"../../components/resume-row\"\nimport { formatWritingDate, getWritingPosts } from \"../../lib/writing\"\n\nexport default function WritingIndexPage() {\n  const posts = getWritingPosts()\n\n  return (\n    <div className=\"flex flex-col gap-8\" data-resume-page=\"index\">\n      <ul className=\"flex flex-col gap-5\">\n        {posts.map((post) => (\n          <li key={post.slug}>\n            <ResumeRow date={formatWritingDate(post.date)}>\n              <Link\n                href={`/writing/${post.slug}`}\n                className=\"group flex flex-col gap-1\"\n              >\n                <span className=\"inline-flex items-center gap-1 text-sm font-medium text-foreground group-hover:underline\">\n                  {post.title}\n                  <ArrowUpRight className=\"size-3.5 text-muted-foreground opacity-0 transition-opacity group-hover:opacity-100\" />\n                </span>\n                {post.description ? (\n                  <span className=\"text-sm leading-relaxed text-muted-foreground\">\n                    {post.description}\n                  </span>\n                ) : null}\n              </Link>\n            </ResumeRow>\n          </li>\n        ))}\n      </ul>\n    </div>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/writing/page.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/app/writing/[slug]/page.tsx",
      "content": "import Link from \"next/link\"\nimport { notFound } from \"next/navigation\"\n\nimport {\n  formatWritingDate,\n  getAdjacentWritingPosts,\n  getWritingPost,\n  getWritingPosts,\n} from \"../../../lib/writing\"\n\nexport function generateStaticParams() {\n  return getWritingPosts().map((post) => ({ slug: post.slug }))\n}\n\nexport default async function WritingEntryPage({\n  params,\n}: {\n  params: Promise<{ slug: string }>\n}) {\n  const { slug } = await params\n  const post = getWritingPost(slug)\n  if (!post) notFound()\n\n  const { prev, next } = getAdjacentWritingPosts(slug)\n\n  return (\n    <article className=\"flex flex-col gap-12\">\n      <div className=\"flex flex-col gap-6\">\n        <Link\n          href=\"/writing\"\n          data-resume-back\n          className=\"inline-flex w-fit text-sm text-muted-foreground hover:text-foreground\"\n        >\n          ← Back\n        </Link>\n\n        <div className=\"flex items-start justify-between gap-6\">\n          <div className=\"min-w-0\">\n            <h2\n              className=\"text-sm font-semibold tracking-tight text-foreground\"\n              data-resume-heading\n            >\n              {post.title}\n            </h2>\n            {post.description ? (\n              <p\n                className=\"mt-2 text-sm text-muted-foreground\"\n                data-resume-dek\n                data-resume-reveal\n              >\n                {post.description}\n              </p>\n            ) : null}\n          </div>\n          <time\n            dateTime={post.date}\n            data-resume-when\n            data-resume-reveal\n            className=\"shrink-0 text-sm tabular-nums text-muted-foreground\"\n          >\n            {formatWritingDate(post.date)}\n          </time>\n        </div>\n      </div>\n\n      <div\n        className=\"flex flex-col gap-5 text-sm leading-relaxed text-muted-foreground\"\n        data-resume-prose\n      >\n        {post.body()}\n      </div>\n\n      {prev || next ? (\n        <nav\n          aria-label=\"Post navigation\"\n          className=\"flex items-center justify-between border-t border-border/60 pt-8 text-sm\"\n        >\n          <div>\n            {prev ? (\n              <Link\n                href={`/writing/${prev.slug}`}\n                data-resume-prev\n                data-resume-reveal\n                className=\"inline-flex text-muted-foreground hover:text-foreground\"\n              >\n                ← Previous\n              </Link>\n            ) : null}\n          </div>\n          <div>\n            {next ? (\n              <Link\n                href={`/writing/${next.slug}`}\n                data-resume-next\n                data-resume-reveal\n                className=\"inline-flex text-muted-foreground hover:text-foreground\"\n              >\n                Next →\n              </Link>\n            ) : null}\n          </div>\n        </nav>\n      ) : null}\n    </article>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/writing/[slug]/page.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/components/profile-header.tsx",
      "content": "import { Avatar } from \"./avatar\"\nimport { portfolio } from \"../lib/portfolio\"\n\nexport function ProfileHeader() {\n  return (\n    <header className=\"flex items-center gap-3\" data-resume-header>\n      <div className=\"shrink-0 will-change-transform\" data-resume-avatar>\n        <Avatar className=\"size-14\" />\n      </div>\n      <div className=\"min-w-0\">\n        <h1 className=\"text-base font-semibold tracking-tight text-foreground\">\n          {portfolio.name}\n        </h1>\n        <p className=\"mt-0.5 text-sm text-muted-foreground\">{portfolio.title}</p>\n      </div>\n    </header>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/profile-header.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/components/site-nav.tsx",
      "content": "\"use client\"\n\nimport Link from \"next/link\"\nimport { usePathname } from \"next/navigation\"\nimport { useLayoutEffect, useRef } from \"react\"\nimport gsap from \"gsap\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { ThemeSwitcher } from \"./theme-switcher\"\n\n// Path checks use `includes` so the pill still lights up under the host\n// preview route (/view/portfolio-v6/writing), not only on a clean install.\nconst tabs = [\n  {\n    href: \"/\",\n    label: \"About\",\n    match: (path: string) => !path.includes(\"/writing\"),\n  },\n  {\n    href: \"/writing\",\n    label: \"Writing\",\n    match: (path: string) => path.includes(\"/writing\"),\n  },\n] as const\n\nexport function SiteNav() {\n  const pathname = usePathname()\n  const navRef = useRef<HTMLElement>(null)\n  const tabsRef = useRef<HTMLDivElement>(null)\n  const pillRef = useRef<HTMLSpanElement>(null)\n  const linkRefs = useRef<(HTMLAnchorElement | null)[]>([])\n  const pillPos = useRef({ x: 0, width: 0, primed: false })\n\n  useLayoutEffect(() => {\n    const nav = navRef.current\n    if (!nav) return\n\n    const mm = gsap.matchMedia()\n    mm.add(\"(prefers-reduced-motion: no-preference)\", () => {\n      gsap.fromTo(\n        nav,\n        { y: 14, autoAlpha: 0 },\n        { y: 0, autoAlpha: 1, duration: 0.5, ease: \"power2.out\" }\n      )\n    })\n\n    return () => mm.revert()\n  }, [])\n\n  useLayoutEffect(() => {\n    const tabsEl = tabsRef.current\n    const pill = pillRef.current\n    const activeIndex = tabs.findIndex((tab) => tab.match(pathname))\n    const link = linkRefs.current[activeIndex]\n    if (!tabsEl || !pill || !link) return\n\n    const x = link.offsetLeft\n    const width = link.offsetWidth\n    const reduce = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches\n\n    if (!pillPos.current.primed || reduce) {\n      gsap.set(pill, { x, width, autoAlpha: 1 })\n    } else {\n      gsap.to(pill, {\n        x,\n        width,\n        duration: 0.34,\n        ease: \"power2.out\",\n        overwrite: \"auto\",\n      })\n    }\n\n    pillPos.current = { x, width, primed: true }\n\n    const onResize = () => {\n      const current = linkRefs.current[tabs.findIndex((tab) => tab.match(pathname))]\n      if (!current) return\n      gsap.set(pill, { x: current.offsetLeft, width: current.offsetWidth })\n    }\n\n    window.addEventListener(\"resize\", onResize)\n    return () => window.removeEventListener(\"resize\", onResize)\n  }, [pathname])\n\n  return (\n    <div className=\"pointer-events-none fixed inset-x-0 bottom-6 z-50 flex justify-center px-4\">\n      <nav\n        ref={navRef}\n        aria-label=\"Site\"\n        className=\"pointer-events-auto flex items-center gap-3 rounded-full border border-border/60 bg-background/90 p-1 shadow-sm backdrop-blur-md\"\n      >\n        <div ref={tabsRef} className=\"relative flex items-center\">\n          <span\n            ref={pillRef}\n            aria-hidden\n            className=\"absolute top-0 left-0 h-full rounded-full bg-foreground\"\n          />\n          {tabs.map((tab, i) => {\n            const active = tab.match(pathname)\n            return (\n              <Link\n                key={tab.href}\n                ref={(node) => {\n                  linkRefs.current[i] = node\n                }}\n                href={tab.href}\n                aria-current={active ? \"page\" : undefined}\n                className={cn(\n                  \"relative z-10 rounded-full px-4 py-1.5 text-sm transition-colors\",\n                  active\n                    ? \"text-background\"\n                    : \"text-muted-foreground hover:text-foreground\"\n                )}\n              >\n                {tab.label}\n              </Link>\n            )\n          })}\n        </div>\n        <ThemeSwitcher />\n      </nav>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/site-nav.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/components/gsap-animation.tsx",
      "content": "\"use client\"\n\nimport { useLayoutEffect, useRef, type ReactNode } from \"react\"\nimport { usePathname } from \"next/navigation\"\nimport gsap from \"gsap\"\nimport { ScrollTrigger } from \"gsap/ScrollTrigger\"\n\ngsap.registerPlugin(ScrollTrigger)\n\nfunction belowFold(el: HTMLElement) {\n  return el.getBoundingClientRect().top > window.innerHeight\n}\n\nfunction pageKind(pathname: string): \"about\" | \"index\" | \"entry\" {\n  const at = pathname.indexOf(\"/writing\")\n  if (at === -1) return \"about\"\n  const rest = pathname\n    .slice(at + \"/writing\".length)\n    .replace(/^\\/+|\\/+$/g, \"\")\n  return rest ? \"entry\" : \"index\"\n}\n\nfunction reveal(\n  targets: HTMLElement | HTMLElement[],\n  trigger: HTMLElement,\n  {\n    duration = 0.5,\n    fromY = 10,\n    fromX = 0,\n    stagger,\n  }: {\n    duration?: number\n    fromY?: number\n    fromX?: number\n    stagger?: number\n  } = {}\n) {\n  gsap.set(targets, { autoAlpha: 0, y: fromY, x: fromX })\n  gsap.to(targets, {\n    autoAlpha: 1,\n    y: 0,\n    x: 0,\n    duration,\n    stagger,\n    ease: \"power2.out\",\n    overwrite: \"auto\",\n    clearProps: \"transform,opacity,visibility\",\n    scrollTrigger: {\n      trigger,\n      start: \"top 92%\",\n      once: true,\n    },\n  })\n}\n\nfunction enterItems(\n  items: HTMLElement[],\n  { fromX = 0, fromY = 10, stagger = 0.07, duration = 0.48, at = 0 },\n  tl: gsap.core.Timeline\n) {\n  if (!items.length) return\n  gsap.set(items, { autoAlpha: 0, x: fromX, y: fromY })\n  tl.to(\n    items,\n    {\n      autoAlpha: 1,\n      x: 0,\n      y: 0,\n      duration,\n      stagger,\n      ease: \"power2.out\",\n      overwrite: \"auto\",\n      clearProps: \"transform,opacity,visibility\",\n    },\n    at\n  )\n}\n\nfunction setupEnter(\n  root: HTMLElement,\n  kind: \"about\" | \"index\" | \"entry\",\n  fromX: number\n) {\n  const main = root.querySelector(\"main\")\n  if (!main) return\n\n  const tl = gsap.timeline({ defaults: { ease: \"power2.out\" } })\n  const back = main.querySelector<HTMLElement>(\"[data-resume-back]\")\n  const heading = main.querySelector<HTMLElement>(\"[data-resume-heading]\")\n  const when = main.querySelector<HTMLElement>(\"[data-resume-when]\")\n  const dek = main.querySelector<HTMLElement>(\"[data-resume-dek]\")\n  const grafs = gsap\n    .utils.toArray<HTMLElement>(\"[data-resume-prose] p\", main)\n    .filter((el) => !belowFold(el))\n  const rows = gsap\n    .utils.toArray<HTMLElement>(\"[data-resume-row]\", main)\n    .filter((el) => !belowFold(el))\n  const headings = gsap\n    .utils.toArray<HTMLElement>(\"[data-resume-heading]\", main)\n    .filter((el) => !belowFold(el))\n\n  if (kind === \"entry\") {\n    if (back) enterItems([back], { fromX: fromX || -6, fromY: 0, duration: 0.36 }, tl)\n    const head = [heading, when].filter(Boolean) as HTMLElement[]\n    enterItems(head, { fromX, fromY: 8, duration: 0.42, stagger: 0.05, at: 0.04 }, tl)\n    if (dek) enterItems([dek], { fromX, fromY: 8, duration: 0.45, at: 0.1 }, tl)\n    enterItems(grafs, { fromX, fromY: 10, duration: 0.5, stagger: 0.08, at: 0.16 }, tl)\n    return\n  }\n\n  if (kind === \"index\") {\n    enterItems(rows, { fromX, fromY: 10, duration: 0.46, stagger: 0.06, at: 0 }, tl)\n    return\n  }\n\n  enterItems(headings, { fromX: 0, fromY: 8, duration: 0.42, stagger: 0.05, at: 0 }, tl)\n  enterItems(rows, { fromX: 0, fromY: 10, duration: 0.46, stagger: 0.05, at: 0.06 }, tl)\n}\n\nfunction setupStory(root: HTMLElement) {\n  const header = root.querySelector<HTMLElement>(\"[data-resume-header]\")\n  const avatar = root.querySelector<HTMLElement>(\"[data-resume-avatar]\")\n  const main = root.querySelector(\"main\") ?? root\n  const headings = gsap.utils.toArray<HTMLElement>(\"[data-resume-heading]\", main)\n  const rows = gsap.utils.toArray<HTMLElement>(\"[data-resume-row]\", main)\n  const paragraphs = gsap.utils.toArray<HTMLElement>(\"[data-resume-prose] p\", main)\n  const extras = gsap.utils.toArray<HTMLElement>(\"[data-resume-reveal]\", main)\n\n  if (avatar && header) {\n    gsap.to(avatar, {\n      y: 14,\n      ease: \"none\",\n      scrollTrigger: {\n        trigger: root,\n        start: \"top top\",\n        end: \"+=45%\",\n        scrub: 0.8,\n      },\n    })\n  }\n\n  headings.forEach((heading) => {\n    if (!belowFold(heading)) return\n    reveal(heading, heading, { duration: 0.45, fromY: 8 })\n  })\n\n  rows.forEach((row) => {\n    if (!belowFold(row)) return\n    const date = row.querySelector<HTMLElement>(\"[data-resume-date]\")\n    const copy = row.querySelector<HTMLElement>(\"[data-resume-copy]\")\n    const bits = [date, copy].filter(Boolean) as HTMLElement[]\n    if (!bits.length) {\n      reveal(row, row)\n      return\n    }\n    reveal(bits, row, { stagger: 0.06, duration: 0.48, fromY: 10 })\n  })\n\n  paragraphs.forEach((paragraph) => {\n    if (!belowFold(paragraph)) return\n    reveal(paragraph, paragraph, { duration: 0.55, fromY: 10 })\n  })\n\n  extras.forEach((el) => {\n    if (!belowFold(el)) return\n    reveal(el, el, { duration: 0.45, fromY: 8 })\n  })\n\n  requestAnimationFrame(() => {\n    ScrollTrigger.refresh()\n  })\n}\n\nfunction setupNavHover(root: HTMLElement) {\n  const cleanups: Array<() => void> = []\n\n  const bind = (el: HTMLElement | null, hoverX: number) => {\n    if (!el) return\n    const xTo = gsap.quickTo(el, \"x\", { duration: 0.22, ease: \"power2.out\" })\n    const onEnter = () => xTo(hoverX)\n    const onLeave = () => xTo(0)\n    el.addEventListener(\"mouseenter\", onEnter)\n    el.addEventListener(\"mouseleave\", onLeave)\n    el.addEventListener(\"focus\", onEnter)\n    el.addEventListener(\"blur\", onLeave)\n    cleanups.push(() => {\n      el.removeEventListener(\"mouseenter\", onEnter)\n      el.removeEventListener(\"mouseleave\", onLeave)\n      el.removeEventListener(\"focus\", onEnter)\n      el.removeEventListener(\"blur\", onLeave)\n    })\n  }\n\n  bind(root.querySelector(\"[data-resume-back]\"), -4)\n  bind(root.querySelector(\"[data-resume-prev]\"), -4)\n  bind(root.querySelector(\"[data-resume-next]\"), 4)\n\n  return () => {\n    cleanups.forEach((fn) => fn())\n  }\n}\n\nexport function GsapAnimation({\n  children,\n  className,\n}: {\n  children: ReactNode\n  className?: string\n}) {\n  const rootRef = useRef<HTMLDivElement>(null)\n  const pathname = usePathname()\n  const firstLoadRef = useRef(true)\n  const prevKindRef = useRef<ReturnType<typeof pageKind> | null>(null)\n\n  useLayoutEffect(() => {\n    const root = rootRef.current\n    if (!root) return\n\n    const kind = pageKind(pathname)\n    const prev = prevKindRef.current\n    const firstLoad = firstLoadRef.current\n    firstLoadRef.current = false\n    prevKindRef.current = kind\n\n    const fromX =\n      prev === \"index\" && kind === \"entry\"\n        ? 8\n        : prev === \"entry\" && kind === \"index\"\n          ? -8\n          : prev === \"entry\" && kind === \"entry\"\n            ? 8\n            : 0\n\n    const mm = gsap.matchMedia()\n    mm.add(\"(prefers-reduced-motion: no-preference)\", () => {\n      if (!firstLoad || kind !== \"about\") {\n        setupEnter(root, kind, fromX)\n      }\n      setupStory(root)\n      return setupNavHover(root)\n    })\n\n    return () => mm.revert()\n  }, [pathname])\n\n  return (\n    <div ref={rootRef} className={className}>\n      {children}\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/gsap-animation.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/components/resume-section.tsx",
      "content": "import type { ReactNode } from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nexport function ResumeSection({\n  title,\n  children,\n  className,\n}: {\n  title: string\n  children: ReactNode\n  className?: string\n}) {\n  return (\n    <section className={cn(\"flex flex-col gap-5\", className)} data-resume-section>\n      <h2\n        className=\"text-sm font-semibold tracking-tight text-foreground\"\n        data-resume-heading\n      >\n        {title}\n      </h2>\n      <div className=\"flex flex-col gap-5\">{children}</div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/resume-section.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/components/resume-row.tsx",
      "content": "import { Minus } from \"lucide-react\"\nimport type { ReactNode } from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction DateLabel({ date }: { date: string }) {\n  const [start, end] = date.split(\" — \")\n  if (end === undefined) return <>{date}</>\n\n  return (\n    <span className=\"inline-flex items-center gap-1\">\n      <span>{start}</span>\n      <Minus className=\"size-3 shrink-0 text-muted-foreground/60\" />\n      <span>{end}</span>\n    </span>\n  )\n}\n\nexport function ResumeRow({\n  date,\n  children,\n  className,\n}: {\n  date: string\n  children: ReactNode\n  className?: string\n}) {\n  return (\n    <div\n      className={cn(\n        \"grid grid-cols-1 gap-1 sm:grid-cols-[7.5rem_minmax(0,1fr)] sm:gap-6\",\n        className\n      )}\n      data-resume-row\n    >\n      <div\n        className=\"pt-0.5 text-left text-sm tabular-nums text-muted-foreground\"\n        data-resume-date\n      >\n        <DateLabel date={date} />\n      </div>\n      <div className=\"min-w-0\" data-resume-copy>\n        {children}\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/resume-row.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/components/avatar.tsx",
      "content": "import Image from \"next/image\"\n\nimport { resolveAvatarSrc } from \"../lib/media\"\n\nexport function Avatar({ className = \"size-14\" }: { className?: string }) {\n  const src = resolveAvatarSrc()\n\n  return (\n    <Image\n      src={src}\n      alt=\"\"\n      width={56}\n      height={56}\n      unoptimized\n      priority\n      loading=\"eager\"\n      className={`shrink-0 rounded-full object-cover ${className}`}\n    />\n  )\n}\n",
      "type": "registry:component",
      "target": "components/avatar.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/components/theme-provider.tsx",
      "content": "\"use client\"\n\nimport { ThemeProvider as NextThemesProvider } from \"next-themes\"\nimport type { ReactNode } from \"react\"\n\nexport function ThemeProvider({ children }: { children: ReactNode }) {\n  return (\n    <NextThemesProvider\n      attribute=\"class\"\n      defaultTheme=\"system\"\n      enableSystem\n      disableTransitionOnChange\n    >\n      {children}\n    </NextThemesProvider>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/theme-provider.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/components/theme-switcher.tsx",
      "content": "\"use client\"\n\nimport { useLayoutEffect, useRef, useSyncExternalStore } from \"react\"\nimport gsap from \"gsap\"\nimport { MorphSVGPlugin } from \"gsap/MorphSVGPlugin\"\nimport { useTheme } from \"next-themes\"\n\nimport { cn } from \"@/lib/utils\"\n\ngsap.registerPlugin(MorphSVGPlugin)\n\nconst emptySubscribe = () => () => {}\n\nfunction useIsClient() {\n  return useSyncExternalStore(emptySubscribe, () => true, () => false)\n}\n\n/** Lucide v1 moon — open crescent stroke. */\nconst MOON_PATH =\n  \"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\"\n\n/** Lucide sun disc (circle at 12,12 r=4) as a path MorphSVG can tween to. */\nconst SUN_DISC = \"M12 8A4 4 0 1 0 12 16A4 4 0 1 0 12 8Z\"\n\nconst SUN_RAYS = [\n  [12, 2, 12, 4],\n  [19.07, 4.93, 17.66, 6.34],\n  [22, 12, 20, 12],\n  [19.07, 19.07, 17.66, 17.66],\n  [12, 22, 12, 20],\n  [4.93, 19.07, 6.34, 17.66],\n  [2, 12, 4, 12],\n  [4.93, 4.93, 6.34, 6.34],\n] as const\n\nconst MORPH = {\n  duration: 0.5,\n  ease: \"power2.inOut\",\n} as const\n\nexport function ThemeSwitcher({ className }: { className?: string }) {\n  const { setTheme, resolvedTheme } = useTheme()\n  const mounted = useIsClient()\n  const iconRef = useRef<SVGGElement>(null)\n  const pathRef = useRef<SVGPathElement>(null)\n  const raysRef = useRef<SVGGElement>(null)\n  const nodeRef = useRef<SVGPathElement | null>(null)\n\n  const isDark = resolvedTheme === \"dark\"\n\n  useLayoutEffect(() => {\n    const icon = iconRef.current\n    const path = pathRef.current\n    const rays = raysRef.current\n    if (!icon || !path || !rays) return\n\n    const toSun = resolvedTheme === \"dark\"\n    const reduce = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches\n    const isNewNode = nodeRef.current !== path\n    nodeRef.current = path\n    const instant = isNewNode || reduce\n\n    if (instant) {\n      gsap.set(path, { morphSVG: toSun ? SUN_DISC : MOON_PATH })\n      gsap.set(rays, {\n        scale: toSun ? 1 : 0,\n        autoAlpha: toSun ? 1 : 0,\n        svgOrigin: \"12 12\",\n      })\n      gsap.set(icon, { rotation: toSun ? 90 : 0, svgOrigin: \"12 12\" })\n    } else {\n      gsap.to(path, {\n        morphSVG: { shape: toSun ? SUN_DISC : MOON_PATH, type: \"rotational\" },\n        duration: MORPH.duration,\n        ease: MORPH.ease,\n        overwrite: \"auto\",\n      })\n      gsap.to(rays, {\n        scale: toSun ? 1 : 0,\n        autoAlpha: toSun ? 1 : 0,\n        duration: toSun ? 0.38 : 0.28,\n        delay: toSun ? 0.08 : 0,\n        ease: toSun ? \"power2.out\" : \"power2.in\",\n        svgOrigin: \"12 12\",\n        overwrite: \"auto\",\n      })\n      gsap.to(icon, {\n        rotation: toSun ? 90 : 0,\n        duration: MORPH.duration,\n        ease: MORPH.ease,\n        svgOrigin: \"12 12\",\n        overwrite: \"auto\",\n      })\n    }\n\n    return () => {\n      gsap.killTweensOf([path, rays, icon])\n    }\n  }, [mounted, resolvedTheme])\n\n  if (!mounted) {\n    return (\n      <span className={cn(\"inline-block size-8\", className)} aria-hidden=\"true\" />\n    )\n  }\n\n  return (\n    <button\n      type=\"button\"\n      onClick={() => setTheme(isDark ? \"light\" : \"dark\")}\n      aria-label={isDark ? \"Switch to light theme\" : \"Switch to dark theme\"}\n      className={cn(\n        \"inline-flex size-8 shrink-0 items-center justify-center rounded-full p-0 text-muted-foreground transition-colors duration-300 hover:text-foreground\",\n        className\n      )}\n    >\n      <svg\n        viewBox=\"0 0 24 24\"\n        fill=\"none\"\n        stroke=\"currentColor\"\n        strokeWidth={1.75}\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        className=\"block size-4 overflow-visible\"\n        aria-hidden=\"true\"\n      >\n        <g ref={iconRef}>\n          <path ref={pathRef} d={MOON_PATH} />\n          <g ref={raysRef}>\n            {SUN_RAYS.map(([x1, y1, x2, y2]) => (\n              <line key={`${x1}-${y1}`} x1={x1} y1={y1} x2={x2} y2={y2} />\n            ))}\n          </g>\n        </g>\n      </svg>\n    </button>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/theme-switcher.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/components/ui/button.tsx",
      "content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n  \"group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground [a]:hover:bg-primary/80\",\n        outline:\n          \"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n        destructive:\n          \"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default:\n          \"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        xs: \"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3\",\n        sm: \"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5\",\n        lg: \"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3\",\n        icon: \"size-8\",\n        \"icon-xs\":\n          \"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3\",\n        \"icon-sm\":\n          \"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg\",\n        \"icon-lg\": \"size-9\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nfunction Button({\n  className,\n  variant = \"default\",\n  size = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"button\"> &\n  VariantProps<typeof buttonVariants> & {\n    asChild?: boolean\n  }) {\n  const Comp = asChild ? Slot.Root : \"button\"\n\n  return (\n    <Comp\n      data-slot=\"button\"\n      data-variant={variant}\n      data-size={size}\n      className={cn(buttonVariants({ variant, size, className }))}\n      {...props}\n    />\n  )\n}\n\nexport { Button, buttonVariants }\n",
      "type": "registry:ui",
      "target": "components/ui/button.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/lib/portfolio.ts",
      "content": "export type Project = {\n  name: string\n  href: string\n  dates: string\n  description: string\n}\n\nexport type ExperienceItem = {\n  role: string\n  company: string\n  href: string\n  location?: string\n  dates: string\n  description: string\n}\n\nexport type EducationItem = {\n  school: string\n  href: string\n  detail: string\n  dates: string\n  description?: string\n}\n\nexport type Certificate = {\n  name: string\n  issuer: string\n  href: string\n  year: string\n}\n\nexport type Award = {\n  name: string\n  org: string\n  year: string\n}\n\nexport type ContactRow = {\n  label: string\n  value: string\n  href: string\n}\n\nexport const portfolio = {\n  name: \"Jon Doe\",\n  title: \"Fullstack Developer at Cortexa Labs\",\n  location: \"Portland, Oregon\",\n  email: \"jon@example.com\",\n  about:\n    \"Hey, I'm Jon. Fullstack developer from Portland, building for AI infrastructure startups and teams shipping real tools with real users. I keep my stack simple, ship in pieces I can trust, and leave software that's easy to maintain. Outside of work I'm usually cooking the same five meals on repeat, easing back into running after a bad knee, or finishing one more book for the shelf.\",\n  experience: [\n    {\n      role: \"Senior Full Stack Engineer\",\n      company: \"Cortexa Labs\",\n      href: \"https://www.linkedin.com/\",\n      location: \"Portland, OR\",\n      dates: \"2024 — Present\",\n      description:\n        \"Cortexa Labs builds AI infrastructure so teams can train, serve, and ship models in production.\",\n    },\n    {\n      role: \"Full Stack Engineer\",\n      company: \"Latentworks\",\n      href: \"https://www.linkedin.com/\",\n      location: \"Remote\",\n      dates: \"2021 — 2024\",\n      description:\n        \"Latentworks makes tools for machine learning teams — from experiment tracking to deployment pipelines.\",\n    },\n    {\n      role: \"Software Engineer\",\n      company: \"Synapse Foundry\",\n      href: \"https://www.linkedin.com/\",\n      location: \"Seattle, WA\",\n      dates: \"2018 — 2021\",\n      description:\n        \"Synapse Foundry is an early-stage platform helping startups turn prototypes into real products.\",\n    },\n    {\n      role: \"Junior Developer\",\n      company: \"NeuralArc\",\n      href: \"https://www.linkedin.com/\",\n      location: \"Portland, OR\",\n      dates: \"2015 — 2018\",\n      description:\n        \"NeuralArc develops software for applied AI research and the teams putting models into practice.\",\n    },\n    {\n      role: \"Software Engineering Intern\",\n      company: \"Cascade Systems\",\n      href: \"https://www.linkedin.com/\",\n      location: \"Portland, OR\",\n      dates: \"Summer 2014\",\n      description:\n        \"Cascade Systems builds developer tools for teams shipping cloud-native web applications.\",\n    },\n    {\n      role: \"Software Engineering Intern\",\n      company: \"Northline Soft\",\n      href: \"https://www.linkedin.com/\",\n      location: \"Seattle, WA\",\n      dates: \"Summer 2013\",\n      description:\n        \"Northline Soft creates internal platforms that help mid-size companies modernize legacy software.\",\n    },\n  ] satisfies ExperienceItem[],\n  projects: [\n    {\n      name: \"Coinwell\",\n      href: \"https://github.com/\",\n      dates: \"2023\",\n      description: \"A simple, honest look at where my money actually goes.\",\n    },\n    {\n      name: \"Spinebox\",\n      href: \"https://github.com/\",\n      dates: \"2022\",\n      description: \"A shelf for the books I have actually finished this year.\",\n    },\n    {\n      name: \"Longmile\",\n      href: \"https://github.com/\",\n      dates: \"2019\",\n      description: \"Tracks my slow, patient return to running after a bad knee.\",\n    },\n    {\n      name: \"Panfry\",\n      href: \"https://github.com/\",\n      dates: \"2016\",\n      description: \"A small recipe box for the meals I actually cook on repeat.\",\n    },\n  ] satisfies Project[],\n  awards: [\n    {\n      name: \"Engineering Excellence Award, Cortexa Labs\",\n      org: \"Cortexa Labs\",\n      year: \"2025\",\n    },\n    {\n      name: \"Portland Tech 40 Under 40\",\n      org: \"Portland Tech\",\n      year: \"2023\",\n    },\n    {\n      name: \"Best Internal Tooling, Synapse Foundry\",\n      org: \"Synapse Foundry\",\n      year: \"2021\",\n    },\n    {\n      name: \"Rising Engineer, NeuralArc\",\n      org: \"NeuralArc\",\n      year: \"2018\",\n    },\n  ] satisfies Award[],\n  certificates: [\n    {\n      name: \"AWS Certified Developer — Associate\",\n      issuer: \"Amazon Web Services\",\n      href: \"https://aws.amazon.com/certification/\",\n      year: \"2023\",\n    },\n    {\n      name: \"Professional Scrum Master I (PSM I)\",\n      issuer: \"Scrum.org\",\n      href: \"https://www.scrum.org/\",\n      year: \"2021\",\n    },\n    {\n      name: \"Meta Front-End Developer Certificate\",\n      issuer: \"Meta / Coursera\",\n      href: \"https://www.coursera.org/\",\n      year: \"2020\",\n    },\n  ] satisfies Certificate[],\n  education: [\n    {\n      school: \"Georgia Tech\",\n      href: \"https://omscs.gatech.edu/\",\n      detail: \"M.S. Computer Science (OMSCS)\",\n      dates: \"2017 — 2019\",\n      description:\n        \"Part-time graduate study focused on computing systems and software engineering while working full time.\",\n    },\n    {\n      school: \"University of Washington\",\n      href: \"https://www.cs.washington.edu/\",\n      detail: \"B.S. Computer Science\",\n      dates: \"2010 — 2014\",\n      description:\n        \"Undergraduate foundation in algorithms, systems, and software design. Based in Seattle.\",\n    },\n  ] satisfies EducationItem[],\n  contact: [\n    {\n      label: \"Email\",\n      value: \"jon@example.com\",\n      href: \"mailto:jon@example.com\",\n    },\n    {\n      label: \"X\",\n      value: \"jondoe\",\n      href: \"https://x.com/\",\n    },\n    {\n      label: \"LinkedIn\",\n      value: \"jondoe\",\n      href: \"https://www.linkedin.com/\",\n    },\n    {\n      label: \"GitHub\",\n      value: \"jondoe\",\n      href: \"https://github.com/\",\n    },\n  ] satisfies ContactRow[],\n} as const\n",
      "type": "registry:lib",
      "target": "lib/portfolio.ts"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/lib/writing.tsx",
      "content": "import type { ReactNode } from \"react\"\n\nexport type WritingPost = {\n  slug: string\n  title: string\n  date: string\n  description?: string\n  body: () => ReactNode\n}\n\nconst posts: WritingPost[] = [\n  {\n    slug: \"agents-that-survive-a-restart\",\n    title: \"Agents that survive a restart\",\n    date: \"2025-11-12\",\n    description:\n      \"Why I stopped treating an agent like a function that either works or vanishes.\",\n    body: () => (\n      <>\n        <p>\n          I used to think of an agent as one long function call. You send a\n          message, something happens, you get an answer back. That mental\n          model works fine in a demo and falls apart the moment a real task\n          takes longer than a few seconds, a server restarts, or a person\n          steps away and comes back an hour later expecting the conversation\n          to still make sense.\n        </p>\n        <p>\n          What actually holds up is treating every step the agent takes as\n          something worth saving. What matters most is where it was in the\n          middle of a task, what it had already decided, what it was still\n          waiting on, more than the final answer on its own. When it can\n          pick up from that saved point instead of starting over, a crash\n          stops being a disaster and becomes something closer to a hiccup.\n        </p>\n        <p>\n          It took me a while to appreciate the word for this: durable. It\n          sounds like a small engineering detail until the day your agent\n          survives a deploy in the middle of a task and nobody even notices.\n        </p>\n      </>\n    ),\n  },\n  {\n    slug: \"a-chatbot-is-a-codebase\",\n    title: \"A chatbot is a codebase\",\n    date: \"2025-09-03\",\n    description:\n      \"The day I stopped writing one giant prompt and started building an actual app.\",\n    body: () => (\n      <>\n        <p>\n          For a long time my agents were one enormous prompt with everything\n          crammed into it. The personality, the rules, the tool\n          descriptions, the edge cases somebody hit three weeks ago that I\n          patched with one more sentence. It worked, in the way a single\n          file with four thousand lines of code works. Which is to say,\n          barely, and only for me.\n        </p>\n        <p>\n          The shift that actually helped was treating the agent like a real\n          project instead of a clever paragraph: a short file that says who\n          it is, a folder of skills it can read when a task calls for them,\n          and small tools it can reach for instead of pretending it can do\n          everything from memory. Once I gave it that shape, I could open\n          the project six months later and still understand why it behaves\n          the way it does.\n        </p>\n        <p>\n          A chatbot people trust is usually a small, honest codebase that\n          happens to talk, not one clever prompt.\n        </p>\n      </>\n    ),\n  },\n  {\n    slug: \"the-human-in-the-loop-is-not-optional\",\n    title: \"The human in the loop is not optional\",\n    date: \"2025-06-18\",\n    description:\n      \"Some actions deserve a person's eyes before they happen, not after.\",\n    body: () => (\n      <>\n        <p>\n          Early on I let an agent send an email on its own, and it was fine,\n          right up until it was not. Nothing catastrophic, just a message\n          that went out a little too early with a tone nobody had approved.\n          A small mistake, but it taught me something about where autonomy\n          earns trust and where it has not yet.\n        </p>\n        <p>\n          Now anything that touches money, sends something a person cannot\n          unsend, or changes a record we cannot easily reverse gets a pause\n          built in. The agent still does the thinking. It drafts the plan,\n          it explains what it wants to do and why. A person has to look at\n          it before it becomes real.\n        </p>\n        <p>\n          The pause is insurance against the kind of mistake I made with\n          that early email, the kind you cannot call back once it is sent.\n        </p>\n      </>\n    ),\n  },\n  {\n    slug: \"one-agent-many-rooms\",\n    title: \"One agent, many rooms\",\n    date: \"2025-03-01\",\n    description:\n      \"The same agent shows up in Slack, on the web, and in a terminal, and has to feel like itself everywhere.\",\n    body: () => (\n      <>\n        <p>\n          I built an agent for our team and the first version only lived in\n          one place, a chat window on a webpage. Then someone asked if it\n          could live in Slack too. Then someone else wanted it in a script\n          that ran from the terminal at two in the morning. Suddenly the\n          same brain needed to show up in three very different rooms and\n          behave like it belonged in each one.\n        </p>\n        <p>\n          The trick was keeping the thinking in one place and letting only\n          the surface change. The part that decides what to do stayed the\n          same no matter where the message came from. What changed was how\n          a response got formatted, how long a message could be, whether a\n          button made sense or a plain line of text was all the room could\n          offer.\n        </p>\n        <p>\n          It is a strangely fullstack problem. The model barely changes.\n          Everything else, the delivery, the formatting, the little manners\n          of each platform, is where most of the real work quietly lives.\n        </p>\n      </>\n    ),\n  },\n]\n\nexport function getWritingPosts() {\n  return [...posts].sort((a, b) => b.date.localeCompare(a.date))\n}\n\nexport function getWritingPost(slug: string) {\n  return posts.find((post) => post.slug === slug)\n}\n\nexport function getAdjacentWritingPosts(slug: string) {\n  const ordered = getWritingPosts()\n  const index = ordered.findIndex((post) => post.slug === slug)\n  if (index < 0) return { prev: undefined, next: undefined }\n  return {\n    prev: ordered[index + 1],\n    next: ordered[index - 1],\n  }\n}\n\nexport function formatWritingDate(dateStr: string) {\n  const [year, month, day] = dateStr.split(\"-\").map(Number)\n  const date = new Date(Date.UTC(year ?? 0, (month ?? 1) - 1, day ?? 1))\n  return date.toLocaleDateString(\"en-US\", {\n    month: \"short\",\n    day: \"numeric\",\n    year: \"numeric\",\n    timeZone: \"UTC\",\n  })\n}\n",
      "type": "registry:lib",
      "target": "lib/writing.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/lib/media.ts",
      "content": "import { existsSync } from \"node:fs\"\nimport { join } from \"node:path\"\n\nimport {\n  IMAGE_EXTENSIONS,\n  createTemplateImage,\n} from \"@/lib/block-media\"\n\nexport { IMAGE_EXTENSIONS } from \"@/lib/block-media\"\n\nconst TEMPLATE_ID = \"portfolio-v6\"\nconst CDN_ORIGIN = \"https://uiception.com\"\n\nexport function resolveAvatarSrc(origin = CDN_ORIGIN): string {\n  const installDir = join(process.cwd(), \"public\")\n  for (const ext of IMAGE_EXTENSIONS) {\n    const filename = `avatar${ext}`\n    if (existsSync(join(installDir, filename))) {\n      return `/${filename}`\n    }\n  }\n\n  return createTemplateImage(TEMPLATE_ID, origin)(\"avatar.png\")\n}\n",
      "type": "registry:lib",
      "target": "lib/media.ts"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/public/avatar.png.gitkeep",
      "content": "Place your avatar here as avatar.png (or avatar.jpg / avatar.webp). Delete this .gitkeep file after adding your photo.\n",
      "type": "registry:file",
      "target": "public/avatar.png.gitkeep"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/AGENTS.md",
      "content": "# Personalizing this portfolio\n\nThis site ships with filler content for a fictional fullstack developer\n(\"Jon Doe\"). It's a demo persona, not a template you fill in\nfield-by-field — your job is to fully re-skin the site as the real person\nwho owns this project.\n\nThis is a narrow, centered-column CV: About on `/` and Writing under\n`/writing`. Almost all copy lives in `lib/portfolio.ts` and\n`lib/writing.tsx`.\n\n**Trigger:** the user attaches their resume (a PDF) directly to you and\nasks you to personalize the site — e.g. by mentioning `@AGENTS.md`. When\nthat happens, follow the steps below.\n\nThe resume is personal data and has no reason to live in this repo. Work\nfrom the attachment. Do **not** copy it into the project directory at any\npoint — not to read it, not to run the extraction in Step 1, not\n\"just temporarily while I work.\" As a safety net in case someone saves it\nhere by hand, add a line to `.gitignore` before you start (skip if it's\nalready listed):\n\n```\ngrep -qxF 'resume.pdf' .gitignore || echo 'resume.pdf' >> .gitignore\n```\n\n## Step 1 — Read the resume\n\nRead the attached resume. Pull out:\n\n- Full name\n- Real profession / field / title (e.g. \"Full-Stack Developer\", \"Product\n  Designer\", \"Marine Biologist\") — this drives the tone of everything below\n- Current role line for the header (\"Title at Company\" if they have one)\n- A narrative bio: one first-person paragraph synthesized from their\n  summary, experience, and notable work, in a voice that matches their\n  actual field. Do not reuse the demo's \"AI infrastructure startups /\n  ship in pieces\" framing with the name swapped in — the whole voice\n  changes.\n- Contact email, if present\n- Social / portfolio links actually present in the resume (LinkedIn, GitHub,\n  personal site, X, Dribbble, etc.)\n- Employment history — role, company, dates, location, description\n- Side projects / notable work\n- Awards (if any)\n- Certifications (if any)\n- Education\n- Topics worth writing about under Writing (Step 5)\n\n### Recovering the real URL behind a link\n\nReading the PDF only gives you visible text — \"GitHub\" as a clickable\nlabel doesn't tell you what it links to. Before treating any link as\nunresolved, try recovering the actual target from the raw bytes of the\nfile.\n\nThis needs a real filesystem path, and the resume is an attachment, not a\nfile in the repo. Copy it to a scratch location **outside the project** —\nyour OS temp directory — run the search there, and delete it when done:\n\n```\n# adjust the source to wherever the attachment actually is on disk\ncp <attached-resume-path> \"${TMPDIR:-/tmp}/resume.pdf\"\ngrep -a -o \"/URI[^)]*)\" \"${TMPDIR:-/tmp}/resume.pdf\"\nrm \"${TMPDIR:-/tmp}/resume.pdf\"\n```\n\nOn Windows use the temp dir (`\"$TEMP/resume.pdf\"` in Git Bash,\n`$env:TEMP` in PowerShell). Never copy it under the project directory,\neven for a moment. If you can't get a filesystem path to the attachment at\nall, ask the user for the path to the file on their machine and grep it in\nplace — still don't bring it into the repo.\n\nMost resumes (exported from Google Docs, Word, or a resume builder) store\ntheir hyperlink targets as plain-text `/URI (...)` entries even when the\nrest of the PDF is compressed, so this works more often than not. Match\neach URL back to the label near it in the resume text — a `mailto:` is the\nemail, a `github.com/...` URL is GitHub, `linkedin.com/in/...` is LinkedIn,\nand so on. Do this for every link-looking label in the resume, not just\nthe obvious ones — it's what makes Step 3 actually work instead of falling\nback to asking every time.\n\nOnly fall back to asking the user for the real link if this comes up empty\nand the resume text still shows an unresolved label — some PDFs compress\nthe annotation objects too, which a plain-text search can't see through.\n\n## Step 2 — Identity & tone\n\nRewrite in `lib/portfolio.ts` and `app/layout.tsx`, in the new voice from\nStep 1:\n\n- `portfolio.name` — their full name (also drives the profile header)\n- `portfolio.title` — one line under the name, usually \"Role at Company\"\n  or just their title if no current employer. Match their real field.\n- `portfolio.about` — one muted paragraph on the About page. Count the\n  words in the demo about string and stay within about 20%. One paragraph,\n  not three. A nurse or an accountant doesn't get the \"ship in pieces\"\n  developer framing; match the stance to their field.\n- `portfolio.email` and the Email row in `portfolio.contact`\n- `app/layout.tsx` — `metadata.title` (the name) and `metadata.description`\n\n## Step 3 — Links / Contact\n\n`portfolio.contact` is a fixed set of redirect slots — Email, X,\nLinkedIn, GitHub. Keep all four labels and the row shape.\n\nFor each row:\n\n- Resume has a real link/handle for it → replace `href` and `value` with\n  the real URL / handle. Keep `target=\"_blank\" rel=\"noreferrer\"` on\n  non-mailto links (already handled in `app/page.tsx`).\n- Resume doesn't mention it, **or you can't recover a real URL for it** →\n  set `href=\"#\"` and leave a short placeholder `value`. Don't leave the\n  original bare-domain placeholder (`https://x.com/`, etc.) — that's a\n  working link to the wrong page.\n\n**Never add a \"Portfolio\" link found on the resume.** This site *is* their\nportfolio.\n\nBeyond the fixed four, if the resume links somewhere else worth keeping\n(Dribbble, Mastodon, a personal site that isn't their portfolio), append\nanother contact row. Never remove one of the four to make room.\n\n## Step 4 — CV sections in `lib/portfolio.ts`\n\nReplace each array with the person's real data. Keep the TypeScript shapes.\n\n### `experience`\n\nMost recent first. Use their actual roles. Three to six entries is the\nright range — use what the resume has rather than padding. Dates keep the\n`2015 — 2018` / `2024 — Present` format (em dash in the data is fine).\n\n### `projects` (Side Projects)\n\nKeep four when the resume supports it. Ask before shipping fewer.\n`href`: real repo or live URL, otherwise `\"#\"`.\n\n### `awards`\n\nReplace the demo Cortexa / Portland Tech / Synapse / NeuralArc filler with\nawards actually on the resume. If the resume has none, set `awards: []`\nand remove the Awards `<ResumeSection>` from `app/page.tsx` — do not keep the\ndemo awards.\n\n### `certificates`\n\nSame rule as awards: replace with real credentials, or empty the array and\ndrop the Certifications section from `app/page.tsx` if the resume has none.\nDo not keep the demo AWS / Scrum / Meta filler when it isn't theirs.\n\n### `education`\n\nReplace with their real schools / degrees. Keep `dates` in the same format.\n\n## Step 5 — Writing — `lib/writing.tsx`\n\nFour demo posts about building AI agents. Replace them with entries that\nfit the person's real field from Step 1.\n\n- Keep the same shape per entry: `slug`, `title`, `date` (`YYYY-MM-DD`),\n  `description`, and a `body` that returns JSX — **plain `<p>` paragraphs\n  only**. No images, no headings, no tables.\n- Keep four entries. If the resume genuinely doesn't support four distinct\n  topics, say so and ask before shipping fewer.\n- Length budget per post: count the words in the entry you're replacing\n  and stay within about 20%.\n- Keep `description` to one sentence.\n\n## Step 6 — Unslop pass\n\nBefore you're done, read `UNSLOP.md` and check everything you drafted in\nSteps 2–5 against it. Rewrite what trips those patterns before finishing.\n\n## Do not touch\n\n- `components/site-nav.tsx` routing (`/` and `/writing` stay)\n- `components/theme-provider.tsx`, `components/theme-switcher.tsx`\n- `components/avatar.tsx` beyond nothing — the photo-resolution logic and\n  the `public/avatar.png` path stay. The owner drops their own\n  `public/avatar.png` after install.\n- `lib/media.ts` and the block-media CDN fallback\n- Theme, CSS, and layout structure — the centered column and date-left\n  rows are deliberate. Copy and data change; the shell does not.\n\n## When you're done\n\nThe resume was never copied into the repo, so there's nothing to clean up\nthere. If you made a scratch copy in a temp directory for the Step 1\nextraction, confirm it's deleted. If the user has a `resume.pdf` sitting in\nthe project root anyway (a manual drop, or a previous run), point it out\nand offer to remove it — `.gitignore` now keeps it from being committed\neither way.\n",
      "type": "registry:file",
      "target": "AGENTS.md"
    },
    {
      "path": "registry/new-york/templates/portfolio-v6/UNSLOP.md",
      "content": "# Unslop\n\nA pass to run against everything written during personalization — the\nabout paragraph in `lib/portfolio.ts`, every project / experience\ndescription, award and certification titles, and every writing body in\n`lib/writing.tsx`. This applies whenever `AGENTS.md` has you drafting\nprose for this site, not just once.\n\n## Process\n\n1. Draft the content per `AGENTS.md`.\n2. Before you're done, read it back against every pattern below.\n3. Rewrite what trips a pattern. Preserve the meaning and the person's real\n   voice — don't flatten it, just strip the tells.\n4. Self-audit once more: \"would this specific sentence survive if a human\n   who does this work for real wrote it?\" If not, cut or rewrite it.\n\n## Patterns to detect and fix\n\n### Style\n\n1. **Em dash overuse.** One sentence with two em dashes is the single most\n   common tell in generated bios. Use a period or comma instead.\n   - Bad: \"I build products end to end — frontend, backend, and\n     infrastructure — and I'd rather have something live than perfect.\"\n   - Better: \"I build products end to end: frontend, backend,\n     infrastructure. I'd rather have something live than perfect.\"\n   Date ranges in CV data (`2015 — 2018`) are fine; this rule is about\n   prose sentences.\n2. **Colon as a mid-sentence connector.** \"The mechanism is simple once you\n   see it:\" or \"The honest version:\" add nothing — they're a wind-up\n   before the actual sentence. Cut the wind-up, state the point.\n3. **Manufactured profundity.** A closing line that sounds like a fortune\n   cookie is a tell, not a flourish.\n   - Bad: \"The best infrastructure is the kind you stop noticing.\"\n   - Just say what happened: \"I built it because I got tired of tethering\n     a laptop to a projector just to glance at my own notes.\"\n4. **Decorative technical notation.** Don't dress a plain idea up as a\n   formula or fake diagram to look rigorous. Only use real numbers or\n   tables for content that's actually quantitative.\n5. **Rhetorical essay openers.** \"X reads like Y until you realize Z\" and\n   similar setup-then-reveal openings are a generated-essay pattern. Open\n   with the actual fact or event instead.\n6. **Title case headings, curly quotes, decorative emphasis.** Sentence\n   case, straight quotes, and don't bold every proper noun.\n\n### Language\n\n7. **AI vocabulary.** Additionally, crucial, delve, enduring, fostering,\n   garner, interplay, intricate, landscape (abstract), pivotal, showcase,\n   tapestry, testament, underscore, vibrant, \"at the intersection of.\"\n   Replace with the plain word or cut.\n8. **Fancy ways to say \"is.\"** \"serves as\", \"stands as\", \"boasts\". Just say\n   \"is\" or \"has.\"\n9. **\"Not just X, but Y.\"** State the point directly.\n10. **Rule of three.** Don't force two real examples into three by padding\n    a filler item. Use the number that's actually true.\n11. **Vague attribution.** \"People say\", \"it's widely known\" — if there's\n    no source, cut the claim or make it a fact you can stand behind.\n\n### Voice\n\n12. **Say what happened, not how it felt.** \"made the workflow seamless\"\n    names a feeling. \"cut the review step from three tools to one\" names a\n    fact. If a sentence could sit unchanged in anyone else's portfolio,\n    it says nothing about this one — cut it or make it specific.\n13. **Active voice, real actor.** \"the score was improved by streaming the\n    response\" becomes \"streaming the response improved the score.\"\n14. **Cut adverbs propping up a weak verb.** \"runs significantly faster\"\n    becomes the actual number, or a stronger verb.\n15. **Plain word over the fancier synonym.** \"utilize\" → \"use\", \"leverage\"\n    → \"use\", \"facilitate\" → \"help\", \"numerous\" → \"many.\"\n16. **Chatbot artifacts.** No \"I hope this helps,\" no apologizing, no\n    address to a reader who isn't there — this is a bio and a blog post,\n    not a chat reply.\n\n### Length\n\n17. **Padding past the point.** AI drafts tend to run long — an extra\n    sentence restating what the previous one said, a closing paragraph that\n    summarizes instead of ending, an implication spelled out that the\n    reader already got. `AGENTS.md` gives you a word-count budget for the\n    about paragraph and each writing post, measured against what you're\n    replacing — if you're over it, the fix is almost always to cut a\n    sentence, not to tighten the wording of all of them.\n18. **One idea per writing post, not three angles on it.** If two\n    paragraphs are making the same point from different sides, keep the\n    sharper one and delete the other.\n\n## Sound test\n\nRead the final paragraph out loud. If it sounds like something written\n*about* the person rather than *by* them, it's still slopped.\n",
      "type": "registry:file",
      "target": "UNSLOP.md"
    }
  ],
  "docs": "New Next.js project only (same flow as https://ui.shadcn.com/create):\n  npx shadcn@latest init --template next -y \"https://uiception.com/r/portfolio-v6.json\"\n\nThis scaffolds Next.js + shadcn, then installs the centered CV portfolio.\n\nCentered CV column with About on / and Writing under /writing. Career sections and rows ease in as you scroll (GSAP ScrollTrigger, reduced-motion safe). Floating About | Writing pill at the bottom. Edit career data in lib/portfolio.ts and posts in lib/writing.tsx. Drop public/avatar.png to replace the portrait. System light/dark via next-themes; sun/moon toggle sits beside the pill.\n\nPreview at /view/portfolio-v6.",
  "categories": [
    "template",
    "portfolio"
  ],
  "type": "registry:block"
}