{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hover-preview-journal-demo",
  "type": "registry:block",
  "title": "Hover Preview: Journal",
  "description": "Cursor Image Preview example, Journal: An archive of essays with dates and reading times. Each title shows its cover image in a wide 3:2 frame. A take on the hover list (list hover) and image reveal (hover reveal). Fits team, portfolio and blog sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "team",
    "portfolio",
    "blog",
    "hover-list",
    "image-reveal",
    "cursor",
    "list",
    "image",
    "motion"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/hover-preview#hover-preview-journal-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/hover-preview.json"
  ],
  "files": [
    {
      "path": "components/hover-preview-journal-demo.tsx",
      "type": "registry:component",
      "content": "import { HoverPreview, HoverPreviewItem } from \"@/components/ui/hover-preview\";\n\nconst posts = [\n  {\n    title: \"Designing for the second visit\",\n    date: \"Sep 18, 2026\",\n    minutes: 6,\n    photo: \"1497032628192-86f99bcd76bc\",\n  },\n  {\n    title: \"Motion is a material, not a garnish\",\n    date: \"Aug 29, 2026\",\n    minutes: 9,\n    photo: \"1557672172-298e090bd0f1\",\n  },\n  {\n    title: \"Shipping a design system in six weeks\",\n    date: \"Aug 04, 2026\",\n    minutes: 12,\n    photo: \"1519389950473-47ba0277781c\",\n  },\n  {\n    title: \"A reading list for product designers\",\n    date: \"Jul 15, 2026\",\n    minutes: 4,\n    photo: \"1481627834876-b7833e8f5570\",\n  },\n  {\n    title: \"How we price fixed-scope projects\",\n    date: \"Jun 30, 2026\",\n    minutes: 7,\n    photo: \"1499750310107-5fef28a66643\",\n  },\n  {\n    title: \"Notes on writing interface copy\",\n    date: \"Jun 02, 2026\",\n    minutes: 5,\n    photo: \"1455390582262-044cdead277a\",\n  },\n];\n\nconst photo = (id: string, width: number, height: number) =>\n  `https://images.unsplash.com/photo-${id}?auto=format&fit=crop&w=${width}&h=${height}&q=80`;\n\nconst slug = (title: string) => title.toLowerCase().replace(/[^a-z0-9]+/g, \"-\");\n\nexport function HoverPreviewJournalDemo() {\n  return (\n    <section className=\"w-full max-w-3xl\">\n      <div className=\"mb-4 flex items-end justify-between gap-4\">\n        <h3 className=\"text-2xl font-semibold tracking-tight text-zinc-900 dark:text-zinc-50\">Journal</h3>\n        <p className=\"font-mono text-xs text-zinc-500 tabular-nums\">{posts.length} essays</p>\n      </div>\n\n      <HoverPreview\n        previewClassName=\"aspect-[3/2] w-64 rounded-md sm:w-80\"\n        className=\"border-t border-zinc-200 dark:border-zinc-800\"\n      >\n        {posts.map((post) => (\n          <HoverPreviewItem\n            key={post.title}\n            href={`#${slug(post.title)}`}\n            image={photo(post.photo, 720, 480)}\n            thumbnail={photo(post.photo, 120, 120)}\n            className=\"items-baseline gap-6 border-b border-zinc-200 py-5 dark:border-zinc-800\"\n            thumbnailClassName=\"self-center\"\n          >\n            <time className=\"hidden w-24 shrink-0 font-mono text-xs text-zinc-500 tabular-nums sm:block\">\n              {post.date}\n            </time>\n            <span className=\"flex-1 text-lg font-medium tracking-tight text-pretty text-zinc-900 sm:text-2xl dark:text-zinc-50\">\n              {post.title}\n            </span>\n            <span className=\"shrink-0 font-mono text-xs text-zinc-500 tabular-nums\">\n              {post.minutes} min\n            </span>\n          </HoverPreviewItem>\n        ))}\n      </HoverPreview>\n    </section>\n  );\n}\n"
    }
  ]
}