{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "marketing-04",
  "title": "Changelog page",
  "description": "A Loomboard changelog: the navbar with Changelog marked, dated releases with their kind of change and a Load more that adds the next ones, and a footer with a newsletter field.",
  "dependencies": [
    "date-fns",
    "motion"
  ],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/accordion.json",
    "https://ui.ndekocode.dev/r/animated-size.json",
    "https://ui.ndekocode.dev/r/button.json",
    "https://ui.ndekocode.dev/r/chip.json",
    "https://ui.ndekocode.dev/r/collapsible.json",
    "https://ui.ndekocode.dev/r/field.json",
    "https://ui.ndekocode.dev/r/icons.json",
    "https://ui.ndekocode.dev/r/input.json",
    "https://ui.ndekocode.dev/r/navigation-menu.json",
    "https://ui.ndekocode.dev/r/selected-mark.json",
    "https://ui.ndekocode.dev/r/status-orb.json",
    "https://ui.ndekocode.dev/r/theme.json",
    "https://ui.ndekocode.dev/r/use-prefers-reduced-motion.json",
    "https://ui.ndekocode.dev/r/utils.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/templates/changelog/marketing-04/index.tsx",
      "content": "import { Changelog } from './changelog';\nimport { SiteFooter } from './site-footer';\nimport { SiteHeader } from './site-header';\n\nexport default function Marketing04() {\n  return (\n    <div className='flex min-h-screen flex-col'>\n      <SiteHeader />\n      <main className='flex-1'>\n        <Changelog />\n      </main>\n      <SiteFooter />\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/templates/marketing-04/index.tsx"
    },
    {
      "path": "registry/ndeko/templates/changelog/marketing-04/site-header.tsx",
      "content": "'use client';\n\nimport { useState } from 'react';\n\nimport { Button } from '@/registry/ndeko/ui/button';\nimport { Collapsible } from '@/registry/ndeko/ui/collapsible';\n\nimport { LoomboardMark } from './brand-mark';\nimport { DesktopNav } from './desktop-nav';\nimport { MobileMenuPanel, MobileMenuTrigger } from './mobile-menu';\n\nexport function SiteHeader() {\n  const [isOpen, setIsOpen] = useState(false);\n\n  function closeMenu() {\n    setIsOpen(false);\n  }\n\n  return (\n    <header className='px-4 sm:px-6 lg:px-8'>\n      <Collapsible\n        open={isOpen}\n        onOpenChange={setIsOpen}\n        className='mx-auto max-w-6xl'\n      >\n        <div className='flex h-16 items-center gap-6'>\n          <a\n            href='#'\n            className='focus-visible:ring-ring/25 flex items-center gap-2 rounded-md text-sm font-semibold outline-none focus-visible:ring-[3px]'\n          >\n            <LoomboardMark />\n            Loomboard\n          </a>\n          <DesktopNav />\n          <div className='ms-auto hidden items-center gap-1 md:flex'>\n            <Button\n              variant='ghost'\n              nativeButton={false}\n              render={<a href='#' />}\n            >\n              Sign in\n            </Button>\n            <Button nativeButton={false} render={<a href='#' />}>\n              Start free\n            </Button>\n          </div>\n          <div className='ms-auto md:hidden'>\n            <MobileMenuTrigger isOpen={isOpen} />\n          </div>\n        </div>\n        <MobileMenuPanel onNavigate={closeMenu} />\n      </Collapsible>\n    </header>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/templates/marketing-04/site-header.tsx"
    },
    {
      "path": "registry/ndeko/templates/changelog/marketing-04/desktop-nav.tsx",
      "content": "import { ArrowRightIcon } from '@/registry/ndeko/lib/icons';\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport {\n  NavigationMenu,\n  NavigationMenuContent,\n  NavigationMenuItem,\n  NavigationMenuLink,\n  NavigationMenuList,\n  NavigationMenuTrigger,\n  navigationMenuTriggerStyle,\n} from '@/registry/ndeko/ui/navigation-menu';\n\nimport {\n  FEATURED_GUIDE,\n  type MenuLink,\n  PRODUCT_LINKS,\n  RESOURCE_LINKS,\n  SOLUTION_GROUPS,\n} from './data';\n\nfunction isCurrentLink(link: MenuLink) {\n  return link.isCurrent === true;\n}\n\nconst RESOURCES_HOLD_CURRENT_PAGE = RESOURCE_LINKS.some(isCurrentLink);\n\nfunction IconLink({ link }: { link: MenuLink }) {\n  return (\n    <NavigationMenuLink\n      href={link.href}\n      active={link.isCurrent}\n      closeOnClick\n      className='flex-row items-start gap-3'\n    >\n      <span className='keycap-3d text-muted-foreground flex size-8 shrink-0 items-center justify-center rounded-lg'>\n        <link.icon />\n      </span>\n      <span className='flex flex-col gap-0.5'>\n        <span className='text-foreground font-medium'>{link.title}</span>\n        <span className='text-muted-foreground text-xs'>\n          {link.description}\n        </span>\n      </span>\n    </NavigationMenuLink>\n  );\n}\n\nfunction ProductPanel() {\n  return (\n    <ul className='grid gap-1 sm:w-[34rem] sm:grid-cols-2'>\n      {PRODUCT_LINKS.map((link) => (\n        <li key={link.title}>\n          <IconLink link={link} />\n        </li>\n      ))}\n    </ul>\n  );\n}\n\nfunction SolutionsPanel() {\n  return (\n    <div className='grid gap-4 p-1 sm:w-[24rem] sm:grid-cols-2'>\n      {SOLUTION_GROUPS.map((group) => (\n        <div key={group.label} className='flex flex-col gap-1'>\n          <p className='text-muted-foreground px-2.5 pt-1.5 text-xs font-medium'>\n            {group.label}\n          </p>\n          <ul className='flex flex-col'>\n            {group.links.map((link) => (\n              <li key={link.title}>\n                <NavigationMenuLink\n                  href={link.href}\n                  className='text-foreground py-2'\n                >\n                  {link.title}\n                </NavigationMenuLink>\n              </li>\n            ))}\n          </ul>\n        </div>\n      ))}\n    </div>\n  );\n}\n\nfunction ResourcesPanel() {\n  return (\n    <div className='grid gap-2 sm:w-[38rem] sm:grid-cols-[minmax(0,1fr)_15rem]'>\n      <ul className='flex flex-col gap-1'>\n        {RESOURCE_LINKS.map((link) => (\n          <li key={link.title}>\n            <IconLink link={link} />\n          </li>\n        ))}\n      </ul>\n      <NavigationMenuLink\n        href={FEATURED_GUIDE.href}\n        className='group/guide p-0 transition-[scale] duration-150 ease-(--ease-out-strong) hover:bg-transparent active:scale-[0.97]'\n      >\n        <span className='bg-foreground/[0.03] group-hover/guide:bg-foreground/[0.05] flex h-full flex-col justify-between gap-6 rounded-lg p-4 transition-colors'>\n          <span className='flex flex-col gap-1.5'>\n            <span className='text-primary-ink text-xs font-medium'>\n              {FEATURED_GUIDE.label}\n            </span>\n            <span className='text-foreground text-sm font-medium text-balance'>\n              {FEATURED_GUIDE.title}\n            </span>\n            <span className='text-muted-foreground text-xs'>\n              {FEATURED_GUIDE.description}\n            </span>\n          </span>\n          <span className='text-primary-ink inline-flex items-center gap-1 text-xs font-medium'>\n            Read the guide\n            <ArrowRightIcon className='size-3.5' />\n          </span>\n        </span>\n      </NavigationMenuLink>\n    </div>\n  );\n}\n\nexport function DesktopNav() {\n  return (\n    <NavigationMenu className='hidden md:block'>\n      <NavigationMenuList>\n        <NavigationMenuItem value='product'>\n          <NavigationMenuTrigger>Product</NavigationMenuTrigger>\n          <NavigationMenuContent>\n            <ProductPanel />\n          </NavigationMenuContent>\n        </NavigationMenuItem>\n        <NavigationMenuItem value='solutions'>\n          <NavigationMenuTrigger>Solutions</NavigationMenuTrigger>\n          <NavigationMenuContent>\n            <SolutionsPanel />\n          </NavigationMenuContent>\n        </NavigationMenuItem>\n        <NavigationMenuItem value='resources'>\n          <NavigationMenuTrigger\n            className={cn(RESOURCES_HOLD_CURRENT_PAGE && 'text-foreground')}\n          >\n            Resources\n          </NavigationMenuTrigger>\n          <NavigationMenuContent>\n            <ResourcesPanel />\n          </NavigationMenuContent>\n        </NavigationMenuItem>\n        <NavigationMenuItem>\n          <NavigationMenuLink\n            href='#'\n            className={cn(navigationMenuTriggerStyle, 'flex-row py-0')}\n          >\n            Pricing\n          </NavigationMenuLink>\n        </NavigationMenuItem>\n      </NavigationMenuList>\n    </NavigationMenu>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/templates/marketing-04/desktop-nav.tsx"
    },
    {
      "path": "registry/ndeko/templates/changelog/marketing-04/mobile-menu.tsx",
      "content": "'use client';\n\nimport {\n  AnimatePresence,\n  motion,\n  type Transition,\n  type Variants,\n} from 'motion/react';\n\nimport { usePrefersReducedMotion } from '@/registry/ndeko/hooks/use-prefers-reduced-motion';\nimport { MenuIcon, XIcon } from '@/registry/ndeko/lib/icons';\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport {\n  Accordion,\n  AccordionContent,\n  AccordionItem,\n  AccordionTrigger,\n} from '@/registry/ndeko/ui/accordion';\nimport { Button } from '@/registry/ndeko/ui/button';\nimport {\n  CollapsibleContent,\n  CollapsibleTrigger,\n} from '@/registry/ndeko/ui/collapsible';\nimport { SelectedMark } from '@/registry/ndeko/ui/selected-mark';\n\nimport {\n  type MenuLink,\n  PRODUCT_LINKS,\n  RESOURCE_LINKS,\n  SOLUTION_GROUPS,\n} from './data';\n\nconst SWAP_TRANSITION: Transition = { duration: 0.15, ease: [0.2, 0, 0, 1] };\n\nconst ICON_VARIANTS: Variants = {\n  enter: { opacity: 0, scale: 0.6, filter: 'blur(2px)' },\n  visible: { opacity: 1, scale: 1, filter: 'blur(0px)' },\n  exit: { opacity: 0, scale: 0.6, filter: 'blur(2px)' },\n};\n\nconst FADE_VARIANTS: Variants = {\n  enter: { opacity: 0 },\n  visible: { opacity: 1 },\n  exit: { opacity: 0 },\n};\n\nconst ROW =\n  'flex h-10 items-center gap-3 rounded-md px-2 text-sm text-foreground outline-none transition-colors hover:bg-foreground/5 focus-visible:ring-[3px] focus-visible:ring-ring/25';\n\nfunction iconVariantsOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return FADE_VARIANTS;\n  }\n  return ICON_VARIANTS;\n}\n\nfunction toggleGlyphOf(isOpen: boolean) {\n  if (isOpen) {\n    return { key: 'close', icon: <XIcon /> };\n  }\n  return { key: 'open', icon: <MenuIcon /> };\n}\n\nfunction toggleLabelOf(isOpen: boolean) {\n  if (isOpen) {\n    return 'Close menu';\n  }\n  return 'Open menu';\n}\n\nexport function MobileMenuTrigger({ isOpen }: { isOpen: boolean }) {\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const iconVariants = iconVariantsOf(shouldReduceMotion);\n  const glyph = toggleGlyphOf(isOpen);\n\n  return (\n    <CollapsibleTrigger\n      render={\n        <Button\n          variant='ghost'\n          size='icon'\n          className='md:hidden'\n          aria-label={toggleLabelOf(isOpen)}\n        />\n      }\n    >\n      <AnimatePresence mode='popLayout' initial={false}>\n        <motion.span\n          key={glyph.key}\n          className='flex'\n          variants={iconVariants}\n          initial='enter'\n          animate='visible'\n          exit='exit'\n          transition={SWAP_TRANSITION}\n        >\n          {glyph.icon}\n        </motion.span>\n      </AnimatePresence>\n    </CollapsibleTrigger>\n  );\n}\n\ntype MobileLinksProps = {\n  links: MenuLink[];\n  onNavigate: () => void;\n};\n\nfunction currentAttributeOf(isCurrent: boolean | undefined) {\n  if (isCurrent) {\n    return 'page' as const;\n  }\n  return undefined;\n}\n\nfunction MobileIconLinks({ links, onNavigate }: MobileLinksProps) {\n  return (\n    <ul className='flex flex-col'>\n      {links.map((link) => (\n        <li key={link.title}>\n          <a\n            href={link.href}\n            aria-current={currentAttributeOf(link.isCurrent)}\n            className={cn(ROW, 'aria-[current=page]:bg-foreground/5')}\n            onClick={onNavigate}\n          >\n            <span className='keycap-3d text-muted-foreground flex size-7 shrink-0 items-center justify-center rounded-lg'>\n              <link.icon className='size-3.5' />\n            </span>\n            {link.title}\n            {link.isCurrent && <SelectedMark className='ms-auto' />}\n          </a>\n        </li>\n      ))}\n    </ul>\n  );\n}\n\nexport function MobileMenuPanel({ onNavigate }: { onNavigate: () => void }) {\n  return (\n    <CollapsibleContent className='md:hidden'>\n      <nav aria-label='Main' className='flex flex-col gap-4 pt-2 pb-5'>\n        <Accordion defaultValue={['resources']}>\n          <AccordionItem value='product' className='border-b-0'>\n            <AccordionTrigger className='px-2 text-sm'>\n              Product\n            </AccordionTrigger>\n            <AccordionContent>\n              <MobileIconLinks links={PRODUCT_LINKS} onNavigate={onNavigate} />\n            </AccordionContent>\n          </AccordionItem>\n          <AccordionItem value='solutions' className='border-b-0'>\n            <AccordionTrigger className='px-2 text-sm'>\n              Solutions\n            </AccordionTrigger>\n            <AccordionContent className='flex flex-col gap-3'>\n              {SOLUTION_GROUPS.map((group) => (\n                <div key={group.label} className='flex flex-col gap-0.5'>\n                  <p className='text-muted-foreground px-2 py-1 text-xs font-medium'>\n                    {group.label}\n                  </p>\n                  <ul className='flex flex-col'>\n                    {group.links.map((link) => (\n                      <li key={link.title}>\n                        <a\n                          href={link.href}\n                          className={ROW}\n                          onClick={onNavigate}\n                        >\n                          {link.title}\n                        </a>\n                      </li>\n                    ))}\n                  </ul>\n                </div>\n              ))}\n            </AccordionContent>\n          </AccordionItem>\n          <AccordionItem value='resources' className='border-b-0'>\n            <AccordionTrigger className='px-2 text-sm'>\n              Resources\n            </AccordionTrigger>\n            <AccordionContent>\n              <MobileIconLinks links={RESOURCE_LINKS} onNavigate={onNavigate} />\n            </AccordionContent>\n          </AccordionItem>\n        </Accordion>\n        <a href='#' className={ROW} onClick={onNavigate}>\n          Pricing\n        </a>\n        <div className='flex flex-col gap-2 px-2'>\n          <Button\n            variant='outline'\n            size='lg'\n            nativeButton={false}\n            render={<a href='#' />}\n          >\n            Sign in\n          </Button>\n          <Button size='lg' nativeButton={false} render={<a href='#' />}>\n            Start free\n          </Button>\n        </div>\n      </nav>\n    </CollapsibleContent>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/templates/marketing-04/mobile-menu.tsx"
    },
    {
      "path": "registry/ndeko/templates/changelog/marketing-04/brand-mark.tsx",
      "content": "import { cn } from '@/registry/ndeko/lib/utils';\n\nexport function LoomboardMark({ className }: { className?: string }) {\n  return (\n    <svg\n      viewBox='0 0 24 24'\n      aria-hidden='true'\n      className={cn('size-6 shrink-0', className)}\n    >\n      <rect width='24' height='24' rx='7' className='fill-primary' />\n      <rect x='6' y='6' width='3' height='12' rx='1.5' className='fill-white' />\n      <rect\n        x='10.5'\n        y='6'\n        width='3'\n        height='8'\n        rx='1.5'\n        className='fill-white/80'\n      />\n      <rect\n        x='15'\n        y='6'\n        width='3'\n        height='10'\n        rx='1.5'\n        className='fill-white/60'\n      />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/templates/marketing-04/brand-mark.tsx"
    },
    {
      "path": "registry/ndeko/templates/changelog/marketing-04/changelog.tsx",
      "content": "'use client';\n\nimport {\n  AnimatePresence,\n  motion,\n  type Transition,\n  type Variants,\n} from 'motion/react';\nimport { useEffect, useState } from 'react';\n\nimport { usePrefersReducedMotion } from '@/registry/ndeko/hooks/use-prefers-reduced-motion';\nimport { AnimatedSize } from '@/registry/ndeko/ui/animated-size';\nimport { Button } from '@/registry/ndeko/ui/button';\n\nimport { CHANGELOG, PAGE_SIZE, RELEASES } from './data';\nimport { ReleaseEntry, releaseAnchorOf } from './release-entry';\n\nconst PRESENCE_TRANSITION: Transition = {\n  duration: 0.2,\n  ease: [0.23, 1, 0.32, 1],\n};\n\nconst PRESENCE_VARIANTS: Variants = {\n  hidden: { opacity: 0, y: 8 },\n  shown: { opacity: 1, y: 0 },\n};\n\nconst FADE_VARIANTS: Variants = {\n  hidden: { opacity: 0 },\n  shown: { opacity: 1 },\n};\n\nfunction presenceVariantsOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return FADE_VARIANTS;\n  }\n  return PRESENCE_VARIANTS;\n}\n\nfunction shownCountLabelOf(shown: number, total: number) {\n  if (total === 1) {\n    return 'Showing the only release';\n  }\n  return `Showing ${shown} of ${total} releases`;\n}\n\nfunction nextCountOf(count: number) {\n  const next = count + PAGE_SIZE;\n  return Math.min(next, RELEASES.length);\n}\n\nexport function Changelog() {\n  const [visibleCount, setVisibleCount] = useState(PAGE_SIZE);\n  const [focusTargetId, setFocusTargetId] = useState<string | null>(null);\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const presenceVariants = presenceVariantsOf(shouldReduceMotion);\n  const visibleReleases = RELEASES.slice(0, visibleCount);\n  const hasMore = visibleCount < RELEASES.length;\n  const shownCountLabel = shownCountLabelOf(visibleCount, RELEASES.length);\n\n  useEffect(() => {\n    if (!focusTargetId) {\n      return;\n    }\n    const target = document.getElementById(focusTargetId);\n    target?.focus();\n  }, [focusTargetId]);\n\n  function loadMore() {\n    const firstNewRelease = RELEASES[visibleCount];\n    const nextCount = nextCountOf(visibleCount);\n    const anchor = releaseAnchorOf(firstNewRelease.version);\n    setVisibleCount(nextCount);\n    setFocusTargetId(anchor);\n  }\n\n  return (\n    <section className='px-4 py-16 sm:px-6 sm:py-24 lg:px-8'>\n      <div className='mx-auto flex max-w-4xl flex-col gap-12'>\n        <div className='flex flex-col gap-2 md:ps-[12rem]'>\n          <h1 className='text-2xl font-semibold text-balance sm:text-3xl'>\n            {CHANGELOG.title}\n          </h1>\n          <p className='text-muted-foreground text-base'>\n            {CHANGELOG.description}\n          </p>\n        </div>\n        <AnimatedSize>\n          <ol className='flex flex-col gap-14'>\n            <AnimatePresence initial={false}>\n              {visibleReleases.map((release) => (\n                <motion.li\n                  key={release.version}\n                  variants={presenceVariants}\n                  initial='hidden'\n                  animate='shown'\n                  transition={PRESENCE_TRANSITION}\n                >\n                  <ReleaseEntry release={release} />\n                </motion.li>\n              ))}\n            </AnimatePresence>\n          </ol>\n        </AnimatedSize>\n        <div className='flex flex-col items-start gap-3 md:ps-[12rem]'>\n          <p className='text-muted-foreground text-xs tabular-nums'>\n            {shownCountLabel}\n          </p>\n          {hasMore && (\n            <Button variant='outline' onClick={loadMore}>\n              Load more releases\n            </Button>\n          )}\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/templates/marketing-04/changelog.tsx"
    },
    {
      "path": "registry/ndeko/templates/changelog/marketing-04/release-entry.tsx",
      "content": "import { format, parseISO } from 'date-fns';\n\nimport { Chip } from '@/registry/ndeko/ui/chip';\n\nimport { type Release, TAG_STYLES } from './data';\n\nconst DATE_PATTERN = 'd MMM yyyy';\n\nfunction readableDateOf(isoDate: string) {\n  const parsed = parseISO(isoDate);\n  return format(parsed, DATE_PATTERN);\n}\n\nexport function releaseAnchorOf(version: string) {\n  return `marketing-04-release-${version}`;\n}\n\nexport function ReleaseEntry({ release }: { release: Release }) {\n  const readableDate = readableDateOf(release.date);\n  const anchor = releaseAnchorOf(release.version);\n\n  return (\n    <article\n      id={anchor}\n      tabIndex={-1}\n      aria-labelledby={`${anchor}-title`}\n      className='focus-visible:ring-ring/25 grid gap-3 rounded-lg outline-none focus-visible:ring-[3px] md:grid-cols-[10rem_minmax(0,1fr)] md:gap-8'\n    >\n      <div className='flex items-baseline gap-3 md:flex-col md:gap-1'>\n        <time dateTime={release.date} className='text-[13px] font-medium'>\n          {readableDate}\n        </time>\n        <span className='text-muted-foreground text-xs tabular-nums'>\n          Version {release.version}\n        </span>\n      </div>\n      <div className='flex flex-col gap-3'>\n        <div className='flex flex-col gap-2'>\n          <h2\n            id={`${anchor}-title`}\n            className='text-lg font-semibold text-balance'\n          >\n            {release.title}\n          </h2>\n          <ul aria-label='Kind of change' className='flex flex-wrap gap-1.5'>\n            {release.tags.map((tag) => {\n              const tagStyle = TAG_STYLES[tag];\n\n              return (\n                <li key={tag}>\n                  <Chip color={tagStyle.color}>{tagStyle.label}</Chip>\n                </li>\n              );\n            })}\n          </ul>\n        </div>\n        <p className='text-muted-foreground max-w-2xl text-sm leading-relaxed text-pretty'>\n          {release.summary}\n        </p>\n        <ul className='flex flex-col gap-1.5 text-[13px]'>\n          {release.changes.map((change) => (\n            <li key={change} className='flex items-baseline gap-2.5'>\n              <span\n                aria-hidden='true'\n                className='bg-foreground/25 size-1 shrink-0 translate-y-[-0.2em] rounded-full'\n              />\n              {change}\n            </li>\n          ))}\n        </ul>\n      </div>\n    </article>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/templates/marketing-04/release-entry.tsx"
    },
    {
      "path": "registry/ndeko/templates/changelog/marketing-04/site-footer.tsx",
      "content": "import { Button } from '@/registry/ndeko/ui/button';\n\nimport { LoomboardMark } from './brand-mark';\nimport { BRAND, CATEGORIES, SOCIAL_LINKS } from './data';\nimport { NewsletterForm } from './newsletter-form';\n\nfunction currentAttributeOf(isCurrent: boolean | undefined) {\n  if (isCurrent) {\n    return 'page' as const;\n  }\n  return undefined;\n}\n\nexport function SiteFooter() {\n  return (\n    <footer className='px-4 pt-16 pb-10 sm:px-6 lg:px-8'>\n      <div className='mx-auto flex max-w-6xl flex-col gap-14'>\n        <div className='grid gap-12 lg:grid-cols-[minmax(0,1fr)_minmax(0,1.4fr)] lg:gap-16'>\n          <div className='flex flex-col items-start gap-6'>\n            <div className='flex flex-col gap-3'>\n              <a\n                href='#'\n                className='focus-visible:ring-ring/25 flex items-center gap-2 self-start rounded-md text-sm font-semibold outline-none focus-visible:ring-[3px]'\n              >\n                <LoomboardMark />\n                {BRAND.name}\n              </a>\n              <p className='text-muted-foreground max-w-xs text-[13px] text-pretty'>\n                {BRAND.tagline}\n              </p>\n            </div>\n            <NewsletterForm />\n          </div>\n          <nav\n            aria-label='Footer'\n            className='grid grid-cols-2 gap-x-6 gap-y-10 sm:grid-cols-4'\n          >\n            {CATEGORIES.map((category) => (\n              <div key={category.title} className='flex flex-col gap-3'>\n                <h2 className='text-muted-foreground text-xs font-medium'>\n                  {category.title}\n                </h2>\n                <ul className='flex flex-col gap-2'>\n                  {category.links.map((link) => (\n                    <li key={link.label}>\n                      <a\n                        href={link.href}\n                        aria-current={currentAttributeOf(link.isCurrent)}\n                        className='text-foreground/80 hover:text-foreground aria-[current=page]:text-foreground focus-visible:ring-ring/25 rounded-sm text-[13px] transition-colors outline-none focus-visible:ring-[3px] aria-[current=page]:font-medium'\n                      >\n                        {link.label}\n                      </a>\n                    </li>\n                  ))}\n                </ul>\n              </div>\n            ))}\n          </nav>\n        </div>\n        <div className='flex flex-col-reverse gap-4 sm:flex-row sm:items-center sm:justify-between'>\n          <p className='text-muted-foreground text-xs'>{BRAND.copyright}</p>\n          <ul className='-ms-2 flex items-center gap-1 sm:ms-0'>\n            {SOCIAL_LINKS.map((link) => (\n              <li key={link.label}>\n                <Button\n                  variant='ghost'\n                  size='icon'\n                  className='text-muted-foreground'\n                  aria-label={link.label}\n                  nativeButton={false}\n                  render={<a href={link.href} />}\n                >\n                  <link.icon />\n                </Button>\n              </li>\n            ))}\n          </ul>\n        </div>\n      </div>\n    </footer>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/templates/marketing-04/site-footer.tsx"
    },
    {
      "path": "registry/ndeko/templates/changelog/marketing-04/newsletter-form.tsx",
      "content": "'use client';\n\nimport {\n  AnimatePresence,\n  motion,\n  type Transition,\n  type Variants,\n} from 'motion/react';\nimport { useEffect, useRef, useState } from 'react';\n\nimport { usePrefersReducedMotion } from '@/registry/ndeko/hooks/use-prefers-reduced-motion';\nimport { LoaderCircleIcon } from '@/registry/ndeko/lib/icons';\nimport { AnimatedSize } from '@/registry/ndeko/ui/animated-size';\nimport { Button } from '@/registry/ndeko/ui/button';\nimport {\n  Field,\n  FieldDescription,\n  FieldError,\n  FieldLabel,\n} from '@/registry/ndeko/ui/field';\nimport { Input } from '@/registry/ndeko/ui/input';\nimport { StatusOrb } from '@/registry/ndeko/ui/status-orb';\n\nimport { NEWSLETTER } from './data';\n\ntype Status = 'idle' | 'submitting' | 'subscribed';\n\nconst SUBMIT_DELAY_MS = 800;\n\nconst EMAIL_PATTERN = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\nconst PANEL_TRANSITION: Transition = {\n  duration: 0.2,\n  ease: [0.23, 1, 0.32, 1],\n};\n\nconst LABEL_TRANSITION: Transition = {\n  type: 'spring',\n  bounce: 0,\n  duration: 0.3,\n};\n\nconst INSTANT: Transition = { duration: 0 };\n\nconst PANEL_VARIANTS: Variants = {\n  enter: { opacity: 0, scale: 0.98, filter: 'blur(2px)' },\n  visible: { opacity: 1, scale: 1, filter: 'blur(0px)' },\n  exit: { opacity: 0, scale: 0.98, filter: 'blur(2px)' },\n};\n\nconst SPINNER_VARIANTS: Variants = {\n  enter: { opacity: 0, scale: 0.6, filter: 'blur(2px)' },\n  visible: { opacity: 1, scale: 1, filter: 'blur(0px)' },\n  exit: { opacity: 0, scale: 0.6, filter: 'blur(2px)' },\n};\n\nconst FADE_VARIANTS: Variants = {\n  enter: { opacity: 0 },\n  visible: { opacity: 1 },\n  exit: { opacity: 0 },\n};\n\nfunction emailErrorOf(value: string) {\n  const trimmed = value.trim();\n  if (trimmed.length === 0) {\n    return 'Enter an email address to subscribe';\n  }\n  const isEmailShaped = EMAIL_PATTERN.test(trimmed);\n  if (!isEmailShaped) {\n    return 'Check the address, it should look like name@example.com';\n  }\n  return null;\n}\n\nfunction submitLabelOf(isSubmitting: boolean) {\n  if (isSubmitting) {\n    return 'Subscribing';\n  }\n  return 'Subscribe';\n}\n\nfunction panelVariantsOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return FADE_VARIANTS;\n  }\n  return PANEL_VARIANTS;\n}\n\nfunction spinnerVariantsOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return FADE_VARIANTS;\n  }\n  return SPINNER_VARIANTS;\n}\n\nfunction labelTransitionOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return INSTANT;\n  }\n  return LABEL_TRANSITION;\n}\n\nexport function NewsletterForm() {\n  const [email, setEmail] = useState('');\n  const [error, setError] = useState<string | null>(null);\n  const [hasTriedSubmit, setHasTriedSubmit] = useState(false);\n  const [status, setStatus] = useState<Status>('idle');\n  const inputRef = useRef<HTMLInputElement>(null);\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const panelVariants = panelVariantsOf(shouldReduceMotion);\n  const spinnerVariants = spinnerVariantsOf(shouldReduceMotion);\n  const labelTransition = labelTransitionOf(shouldReduceMotion);\n  const isSubmitting = status === 'submitting';\n  const isSubscribed = status === 'subscribed';\n  const hasError = error !== null;\n  const submitLabel = submitLabelOf(isSubmitting);\n  const trimmedEmail = email.trim();\n\n  useEffect(() => {\n    if (!isSubmitting) {\n      return;\n    }\n    const timeout = window.setTimeout(() => {\n      setStatus('subscribed');\n    }, SUBMIT_DELAY_MS);\n    return () => window.clearTimeout(timeout);\n  }, [isSubmitting]);\n\n  function changeEmail(event: React.ChangeEvent<HTMLInputElement>) {\n    const nextEmail = event.target.value;\n    setEmail(nextEmail);\n    if (hasTriedSubmit) {\n      setError(emailErrorOf(nextEmail));\n    }\n  }\n\n  function submit(event: React.FormEvent<HTMLFormElement>) {\n    event.preventDefault();\n    const nextError = emailErrorOf(email);\n    setHasTriedSubmit(true);\n    setError(nextError);\n    if (nextError) {\n      inputRef.current?.focus();\n      return;\n    }\n    setStatus('submitting');\n  }\n\n  function startOver() {\n    setEmail('');\n    setError(null);\n    setHasTriedSubmit(false);\n    setStatus('idle');\n  }\n\n  return (\n    <AnimatedSize className='w-full max-w-sm' contentClassName='relative'>\n      <AnimatePresence mode='popLayout' initial={false}>\n        {isSubscribed && (\n          <motion.div\n            key='subscribed'\n            role='status'\n            variants={panelVariants}\n            initial='enter'\n            animate='visible'\n            exit='exit'\n            transition={PANEL_TRANSITION}\n            className='flex items-start gap-3'\n          >\n            <StatusOrb tone='success' size='sm' />\n            <div className='flex min-w-0 flex-col items-start gap-0.5'>\n              <p className='text-[13px] font-medium'>You are subscribed</p>\n              <p className='text-muted-foreground text-[13px]'>\n                The next update goes to{' '}\n                <span className='text-foreground font-medium break-all'>\n                  {trimmedEmail}\n                </span>\n                .\n              </p>\n              <Button\n                variant='link'\n                size='sm'\n                className='h-auto px-0 py-0.5'\n                onClick={startOver}\n              >\n                Use another address\n              </Button>\n            </div>\n          </motion.div>\n        )}\n        {!isSubscribed && (\n          <motion.form\n            key='form'\n            noValidate\n            onSubmit={submit}\n            variants={panelVariants}\n            initial='enter'\n            animate='visible'\n            exit='exit'\n            transition={PANEL_TRANSITION}\n          >\n            <Field invalid={hasError}>\n              <FieldLabel>{NEWSLETTER.label}</FieldLabel>\n              <div className='flex gap-2'>\n                <Input\n                  ref={inputRef}\n                  type='email'\n                  name='email'\n                  autoComplete='email'\n                  placeholder='you@example.com'\n                  value={email}\n                  onChange={changeEmail}\n                  readOnly={isSubmitting}\n                />\n                <Button\n                  type='submit'\n                  variant='outline'\n                  disabled={isSubmitting}\n                  focusableWhenDisabled\n                  className='data-disabled:opacity-100'\n                >\n                  <AnimatePresence mode='popLayout' initial={false}>\n                    {isSubmitting && (\n                      <motion.span\n                        key='spinner'\n                        className='flex'\n                        variants={spinnerVariants}\n                        initial='enter'\n                        animate='visible'\n                        exit='exit'\n                        transition={PANEL_TRANSITION}\n                      >\n                        <LoaderCircleIcon className='animate-spin' />\n                      </motion.span>\n                    )}\n                  </AnimatePresence>\n                  <motion.span layout transition={labelTransition}>\n                    {submitLabel}\n                  </motion.span>\n                </Button>\n              </div>\n              {hasError && <FieldError match>{error}</FieldError>}\n              {!hasError && (\n                <FieldDescription>{NEWSLETTER.description}</FieldDescription>\n              )}\n            </Field>\n          </motion.form>\n        )}\n      </AnimatePresence>\n    </AnimatedSize>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/templates/marketing-04/newsletter-form.tsx"
    },
    {
      "path": "registry/ndeko/templates/changelog/marketing-04/data.ts",
      "content": "import {\n  BookOpenIcon,\n  CalendarIcon,\n  ChartLineIcon,\n  GithubIcon,\n  HistoryIcon,\n  type Icon,\n  LayersIcon,\n  LayoutGridIcon,\n  LinkedinBrandIcon,\n  TwitterXIcon,\n  ZapIcon,\n} from '@/registry/ndeko/lib/icons';\n\nexport type MenuLink = {\n  title: string;\n  description: string;\n  href: string;\n  icon: Icon;\n  isCurrent?: boolean;\n};\n\nexport type PlainLink = {\n  title: string;\n  href: string;\n};\n\nexport type LinkGroup = {\n  label: string;\n  links: PlainLink[];\n};\n\nexport const PRODUCT_LINKS: MenuLink[] = [\n  {\n    title: 'Boards',\n    description: 'Lanes for every stage of the work',\n    href: '#',\n    icon: LayoutGridIcon,\n  },\n  {\n    title: 'Timelines',\n    description: 'Dates and dependencies on one line',\n    href: '#',\n    icon: CalendarIcon,\n  },\n  {\n    title: 'Automations',\n    description: 'Rules that move cards for you',\n    href: '#',\n    icon: ZapIcon,\n  },\n  {\n    title: 'Reports',\n    description: 'Where the week went, team by team',\n    href: '#',\n    icon: ChartLineIcon,\n  },\n];\n\nexport const SOLUTION_GROUPS: LinkGroup[] = [\n  {\n    label: 'By team',\n    links: [\n      { title: 'Design', href: '#' },\n      { title: 'Engineering', href: '#' },\n      { title: 'Marketing', href: '#' },\n      { title: 'Operations', href: '#' },\n    ],\n  },\n  {\n    label: 'By size',\n    links: [\n      { title: 'Small teams', href: '#' },\n      { title: 'Growing companies', href: '#' },\n      { title: 'Agencies', href: '#' },\n    ],\n  },\n];\n\nexport const RESOURCE_LINKS: MenuLink[] = [\n  {\n    title: 'Documentation',\n    description: 'Set up a workspace step by step',\n    href: '#',\n    icon: BookOpenIcon,\n  },\n  {\n    title: 'Changelog',\n    description: 'What shipped this month',\n    href: '#',\n    icon: HistoryIcon,\n    isCurrent: true,\n  },\n  {\n    title: 'Templates',\n    description: 'Boards other teams start from',\n    href: '#',\n    icon: LayersIcon,\n  },\n];\n\nexport const FEATURED_GUIDE = {\n  label: 'Guide',\n  title: 'Run Monday planning on one board',\n  description:\n    'A walkthrough of the board, the rules and the report a small studio uses each week',\n  href: '#',\n};\n\nexport type ChangeTag = 'new' | 'improved' | 'fixed';\n\nexport type Release = {\n  version: string;\n  date: string;\n  title: string;\n  tags: ChangeTag[];\n  summary: string;\n  changes: string[];\n};\n\nexport const TAG_STYLES: Record<ChangeTag, { label: string; color: string }> = {\n  new: { label: 'New', color: 'var(--primary)' },\n  improved: { label: 'Improved', color: 'var(--info)' },\n  fixed: { label: 'Fixed', color: 'var(--success)' },\n};\n\nexport const CHANGELOG = {\n  title: 'Changelog',\n  description: 'What changed in Loomboard, newest first',\n};\n\nexport const PAGE_SIZE = 3;\n\nexport const RELEASES: Release[] = [\n  {\n    version: '4.12',\n    date: '2026-10-28',\n    title: 'Dependencies on the timeline',\n    tags: ['new', 'improved'],\n    summary:\n      'Link two cards and the second one moves when the first one slips. The timeline draws the link and warns you before a date collides.',\n    changes: [\n      'Drag from the edge of a bar to another bar to link them',\n      'Moving a card shifts every card that depends on it',\n      'The board shows a small mark on cards that wait for another',\n    ],\n  },\n  {\n    version: '4.11',\n    date: '2026-10-14',\n    title: 'Quieter notifications',\n    tags: ['improved'],\n    summary:\n      'Notifications about the same card are grouped, and nothing arrives outside the working hours you set in your profile.',\n    changes: [\n      'One notification per card instead of one per change',\n      'Working hours per person, with a catch-up summary in the morning',\n    ],\n  },\n  {\n    version: '4.10.2',\n    date: '2026-10-03',\n    title: 'Fixes for shared boards',\n    tags: ['fixed'],\n    summary:\n      'Guests invited to a single board could see the names of other boards in the search. They now only see the board they were invited to.',\n    changes: [\n      'Search results respect board access for guests',\n      'Archived lanes no longer reappear after a page refresh',\n    ],\n  },\n  {\n    version: '4.10',\n    date: '2026-09-22',\n    title: 'Rules that post to a channel',\n    tags: ['new'],\n    summary:\n      'An automation can now post a message in a team channel when a card reaches a lane, with the card title and its owner.',\n    changes: [\n      'New action: post in a channel',\n      'Pick which card fields appear in the message',\n    ],\n  },\n  {\n    version: '4.9',\n    date: '2026-09-08',\n    title: 'Weekly report by person',\n    tags: ['new', 'improved'],\n    summary:\n      'The weekly report splits the hours by person as well as by board, and exports to CSV with the same columns.',\n    changes: [\n      'A person filter on every report',\n      'CSV export keeps the grouping you see on screen',\n    ],\n  },\n  {\n    version: '4.8.1',\n    date: '2026-08-25',\n    title: 'Keyboard fixes',\n    tags: ['fixed'],\n    summary:\n      'Moving a card with the keyboard skipped empty lanes. Arrow keys now stop on every lane, empty or not.',\n    changes: ['Arrow keys stop on empty lanes', 'Escape closes the card panel'],\n  },\n  {\n    version: '4.8',\n    date: '2026-08-11',\n    title: 'Templates for recurring work',\n    tags: ['new'],\n    summary:\n      'Save a board as a template and start the next sprint, launch or onboarding from it with the lanes and rules already in place.',\n    changes: [\n      'Save any board as a template',\n      'Templates keep lanes, labels and automations',\n    ],\n  },\n  {\n    version: '4.7',\n    date: '2026-07-28',\n    title: 'Faster boards with many cards',\n    tags: ['improved'],\n    summary:\n      'Boards with several hundred cards open and scroll without the delay some teams reported on large launches.',\n    changes: [\n      'Lanes load the cards you can see first',\n      'Dragging stays smooth on long lanes',\n    ],\n  },\n];\n\nexport type FooterLink = {\n  label: string;\n  href: string;\n  isCurrent?: boolean;\n};\n\nexport type FooterCategory = {\n  title: string;\n  links: FooterLink[];\n};\n\nexport type SocialLink = {\n  label: string;\n  href: string;\n  icon: Icon;\n};\n\nexport const BRAND = {\n  name: 'Loomboard',\n  tagline: 'Boards, timelines and reports for teams that plan every week',\n  copyright: '© 2026 Loomboard Ltd',\n};\n\nexport const NEWSLETTER = {\n  label: 'Product updates',\n  description:\n    'One email a month with what shipped, each with an unsubscribe link',\n};\n\nexport const CATEGORIES: FooterCategory[] = [\n  {\n    title: 'Product',\n    links: [\n      { label: 'Boards', href: '#' },\n      { label: 'Timelines', href: '#' },\n      { label: 'Automations', href: '#' },\n      { label: 'Reports', href: '#' },\n      { label: 'Pricing', href: '#' },\n    ],\n  },\n  {\n    title: 'Resources',\n    links: [\n      { label: 'Documentation', href: '#' },\n      { label: 'Templates', href: '#' },\n      { label: 'Changelog', href: '#', isCurrent: true },\n      { label: 'Status', href: '#' },\n    ],\n  },\n  {\n    title: 'Company',\n    links: [\n      { label: 'About', href: '#' },\n      { label: 'Careers', href: '#' },\n      { label: 'Contact', href: '#' },\n    ],\n  },\n  {\n    title: 'Legal',\n    links: [\n      { label: 'Privacy', href: '#' },\n      { label: 'Terms', href: '#' },\n      { label: 'Cookies', href: '#' },\n    ],\n  },\n];\n\nexport const SOCIAL_LINKS: SocialLink[] = [\n  { label: 'Loomboard on GitHub', href: '#', icon: GithubIcon },\n  { label: 'Loomboard on X', href: '#', icon: TwitterXIcon },\n  { label: 'Loomboard on LinkedIn', href: '#', icon: LinkedinBrandIcon },\n];\n",
      "type": "registry:component",
      "target": "components/templates/marketing-04/data.ts"
    }
  ],
  "categories": [
    "templates",
    "changelog"
  ],
  "type": "registry:block"
}