{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "blog-home-template",
  "type": "registry:block",
  "title": "Blog Home Template",
  "description": "Blog index surface. Topbar + hero (greeting / about) + ArticleListGrid (featured + recent) + optional NewsletterForm + Footer. The shape every personal / company blog reaches for.",
  "author": "ofri-peretz <https://github.com/ofri-peretz>",
  "categories": [
    "blog",
    "template"
  ],
  "dependencies": [],
  "registryDependencies": [
    "https://ds.interlace.tools/r/theme.json",
    "https://ds.interlace.tools/r/cn.json",
    "https://ds.interlace.tools/r/container.json",
    "https://ds.interlace.tools/r/footer.json",
    "https://ds.interlace.tools/r/section-boundary.json",
    "https://ds.interlace.tools/r/skeleton.json",
    "https://ds.interlace.tools/r/stack.json",
    "https://ds.interlace.tools/r/topbar.json"
  ],
  "files": [
    {
      "path": "registry/interlace-ui/templates/blog-home-template.tsx",
      "target": "components/ui/templates/blog-home-template.tsx",
      "type": "registry:block",
      "content": "import * as React from 'react';\n\n// @interlace/blog-home-template v1.2.0 — Interlace design system.\n// Docs, props and live preview: https://ds.interlace.tools/c/blog-home-template\n// What changed since: https://ds.interlace.tools/c/blog-home-template#history\n// Generated banner — keep it, the upgrade diff reads this version.\n\n/**\n * @interlace/ui — BlogHomeTemplate\n *\n * Blog index surface. Topbar + hero (greeting / about) + ArticleListGrid\n * (featured + recent) + optional NewsletterForm + Footer. The shape every\n * personal / company blog reaches for.\n *\n * ## MIN_VIEWPORT — 320\n */\n\nimport { cn } from '@/lib/utils';\nimport { SectionBoundary } from '@/components/ui/section-boundary';\nimport { Topbar } from '@/components/ui/patterns/topbar';\nimport { Footer } from '@/components/ui/patterns/footer';\nimport { Skeleton } from '@/components/ui/skeleton';\nimport { Stack } from '@/components/ui/stack';\nimport { Container } from '@/components/ui/container';\n\nexport const MIN_VIEWPORT = 320 as const;\n\ninterface BlogHomeTemplateProps extends React.ComponentProps<'div'> {\n  topbar: React.ComponentProps<typeof Topbar>;\n  /** Page header / hero. */\n  hero?: React.ReactNode;\n  /** Article list grid (typically <ArticleListGrid /> with featured + posts). */\n  articles: React.ReactNode;\n  /** Optional newsletter signup. */\n  newsletter?: React.ReactNode;\n  footer: React.ComponentProps<typeof Footer>;\n}\n\nfunction BlogHomeTemplate({\n  topbar,\n  hero,\n  articles,\n  newsletter,\n  footer,\n  className,\n  ...props\n}: BlogHomeTemplateProps) {\n  return (\n    <div\n      data-slot=\"blog-home-template\"\n      data-min-viewport={String(MIN_VIEWPORT)}\n      className={cn('bg-background text-foreground', className)}\n      {...props}\n    >\n      <Topbar {...topbar} />\n\n      {/* <main> is the skip-link's destination and the only landmark wrapping\n          the page body. Topbar emits <header>, Footer emits <footer>, and\n          SectionBoundary renders `display: contents` — so without this the\n          articles list belonged to no landmark at all. */}\n      <main id=\"main\">\n        {hero ? (\n          <SectionBoundary name=\"blog-hero\" skeletonVariant=\"page-header\">\n            {hero}\n          </SectionBoundary>\n        ) : null}\n\n        <SectionBoundary name=\"blog-articles\" skeletonVariant=\"article-card\">\n          {articles}\n        </SectionBoundary>\n\n        {newsletter ? (\n          <SectionBoundary\n            name=\"blog-newsletter\"\n            skeletonVariant=\"newsletter-form\"\n          >\n            {newsletter}\n          </SectionBoundary>\n        ) : null}\n      </main>\n\n      <Footer {...footer} />\n    </div>\n  );\n}\nBlogHomeTemplate.displayName = 'BlogHomeTemplate';\n\n/**\n * Page-level loading state — the full-page silhouette of\n * `<BlogHomeTemplate>`, not a single rect. Rendered by the consumer while\n * the whole route's data is in flight (`loading.tsx` in Next.js), or as\n * a `<SectionBoundary skeleton={…}>` override.\n *\n * Shapes mirror the real layout so the swap is CLS-neutral (R23). One\n * `role=\"status\"` region for the page; inner skeletons pass\n * `label={null}` so screen readers hear one announcement, not ten.\n */\nfunction BlogHomeTemplateSkeleton({\n  className,\n  ...props\n}: React.ComponentProps<'div'>) {\n  return (\n    <div\n      data-slot=\"blog-home-template-skeleton\"\n      data-min-viewport={String(MIN_VIEWPORT)}\n      role=\"status\"\n      aria-busy=\"true\"\n      aria-label=\"Loading posts…\"\n      className={cn('bg-background text-foreground', className)}\n      {...props}\n    >\n      <Skeleton\n        variant=\"rect\"\n        className=\"h-14 w-full rounded-none\"\n        label={null}\n      />\n      <Container size=\"content\">\n        <Stack gap=\"xl\" className=\"py-xl\">\n          <Skeleton variant=\"page-header\" label={null} />\n          <Skeleton variant=\"article-card\" count={3} label={null} />\n          <Skeleton variant=\"newsletter-form\" label={null} />\n        </Stack>\n      </Container>\n    </div>\n  );\n}\nBlogHomeTemplateSkeleton.displayName = 'BlogHomeTemplateSkeleton';\nBlogHomeTemplate.Skeleton = BlogHomeTemplateSkeleton;\n\nexport { BlogHomeTemplate };\nexport type { BlogHomeTemplateProps };\n"
    }
  ],
  "meta": {
    "tier": "template",
    "client": false,
    "minViewport": 320,
    "loading": false,
    "version": "1.2.0",
    "since": "1.0.0"
  },
  "docs": "## @interlace/blog-home-template\n\nInstalled to `components/ui/templates/blog-home-template.tsx`.\n\n```tsx\nimport { /* … */ } from '@/components/ui/templates/blog-home-template';\n```\n\nProps, a11y contract, live preview and source: https://ds.interlace.tools/c/blog-home-template\n\nRequires the `@interlace/theme` CSS baseline (installed automatically as a registry dependency)."
}
