{
  "$schema": "https://uipkge.dev/schema/registry-item.json",
  "name": "resources-teaser-grid",
  "title": "Resources Teaser Grid",
  "type": "registry:block",
  "files": [
    {
      "path": "packages/registry-angular/blocks/resources-teaser-grid/resources-teaser-grid.component.ts",
      "content": "// Blog and resources teaser: one featured article spanning two columns with kind badge\n// and read time, beside a stacked list of four recent pieces, closing on a view-all\n// link row. Port of the React block 1:1.\nimport { ChangeDetectionStrategy, Component, Input } from '@angular/core'\nimport { ArrowRight, ArrowUpRight, LucideAngularModule } from 'lucide-angular'\nimport { cn } from '@/lib/utils'\nimport { UiAvatarComponent, UiAvatarFallbackComponent } from '@/ui/avatar/avatar.component'\nimport { UiBadgeComponent } from '@/ui/badge/badge.component'\nimport { UiButtonComponent } from '@/ui/button/button.component'\nimport { UiCardComponent, UiCardContentComponent } from '@/ui/card/card.component'\nimport { UiSeparatorComponent } from '@/ui/separator/separator.component'\n\nconst featured = {\n  kind: 'Engineering',\n  title: 'Why we version metric definitions instead of dashboards',\n  excerpt:\n    'Dashboards are the output. The definition is the thing teams argue about, so that is what belongs under review — with a diff, an owner, and a revert path.',\n  readTime: '9 min read',\n  date: 'Feb 18, 2026',\n  author: { name: 'Marcus Ellery', role: 'Staff Engineer', initials: 'ME' },\n}\n\nconst recent = [\n  { kind: 'Guide', title: 'A reconciliation checklist for your first close', readTime: '6 min' },\n  { kind: 'Benchmark', title: 'What close speed actually looks like across 240 finance teams', readTime: '11 min' },\n  { kind: 'Changelog', title: 'Row-level scoping now evaluates against SCIM groups', readTime: '3 min' },\n  { kind: 'Opinion', title: 'Self-serve analytics fails for reasons that are not technical', readTime: '7 min' },\n]\n\n@Component({\n  changeDetection: ChangeDetectionStrategy.Eager,\n  selector: 'ui-resources-teaser-grid, [ui-resources-teaser-grid]',\n  standalone: true,\n  // The block renders its own root <section>: keep the host out of layout.\n  host: { '[attr.class]': '\"contents\"' },\n  imports: [\n    LucideAngularModule,\n    UiAvatarComponent,\n    UiAvatarFallbackComponent,\n    UiBadgeComponent,\n    UiButtonComponent,\n    UiCardComponent,\n    UiCardContentComponent,\n    UiSeparatorComponent,\n  ],\n  template: `\n    <section data-slot=\"resources-teaser-grid\" [class]=\"rootClass\">\n      <div class=\"mx-auto max-w-6xl px-6 py-20 lg:py-28\">\n        <div class=\"flex flex-wrap items-end justify-between gap-6\">\n          <div class=\"max-w-2xl\">\n            <span ui-badge variant=\"secondary\">Resources</span>\n            <h2 class=\"mt-4 text-3xl font-semibold tracking-tight sm:text-4xl\">Notes from the build</h2>\n            <p class=\"text-muted-foreground mt-3 text-lg\">\n              Engineering write-ups, rollout guides, and the benchmarks behind the claims on this page.\n            </p>\n          </div>\n        </div>\n\n        <div class=\"mt-10 grid gap-4 lg:grid-cols-3\">\n          <!-- Featured piece spans two columns; the recent list stacks beside it. -->\n          <div ui-card class=\"group lg:col-span-2\">\n            <div ui-card-content class=\"flex h-full flex-col p-6 lg:p-8\">\n              <div class=\"flex flex-wrap items-center gap-3\">\n                <span ui-badge variant=\"outline\">{{ featured.kind }}</span>\n                <span class=\"text-muted-foreground text-xs\">{{ featured.date }} · {{ featured.readTime }}</span>\n              </div>\n\n              <h3 class=\"mt-4 text-2xl leading-snug font-semibold tracking-tight text-balance\">\n                {{ featured.title }}\n              </h3>\n              <p class=\"text-muted-foreground mt-3 max-w-prose leading-relaxed\">{{ featured.excerpt }}</p>\n\n              <div class=\"mt-auto flex items-center gap-3 pt-8\">\n                <ui-avatar class=\"size-9\">\n                  <ui-avatar-fallback class=\"text-xs\">{{ featured.author.initials }}</ui-avatar-fallback>\n                </ui-avatar>\n                <div class=\"min-w-0\">\n                  <p class=\"truncate text-sm font-medium\">{{ featured.author.name }}</p>\n                  <p class=\"text-muted-foreground truncate text-xs\">{{ featured.author.role }}</p>\n                </div>\n                <button ui-button variant=\"ghost\" size=\"sm\" class=\"ml-auto\">\n                  Read\n                  <lucide-icon\n                    [img]=\"ArrowUpRight\"\n                    class=\"ml-1 size-3.5 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5\"\n                  />\n                </button>\n              </div>\n            </div>\n          </div>\n\n          <div ui-card>\n            <div ui-card-content class=\"p-2\">\n              <ul>\n                @for (post of recent; track post.title; let last = $last) {\n                  <li>\n                    <a\n                      href=\"#\"\n                      class=\"hover:bg-muted focus-visible:ring-ring block rounded-lg p-4 transition-colors focus-visible:ring-2 focus-visible:outline-none\"\n                    >\n                      <div\n                        class=\"text-muted-foreground flex items-center gap-2 font-mono text-xs tracking-wide uppercase\"\n                      >\n                        <span>{{ post.kind }}</span>\n                        <span aria-hidden=\"true\">·</span>\n                        <span>{{ post.readTime }}</span>\n                      </div>\n                      <p class=\"mt-1.5 text-sm leading-snug font-medium\">{{ post.title }}</p>\n                    </a>\n                  </li>\n                  @if (!last) {\n                    <ui-separator />\n                  }\n                }\n              </ul>\n            </div>\n          </div>\n        </div>\n\n        <div class=\"border-border mt-8 flex flex-wrap items-center justify-between gap-4 border-t pt-6\">\n          <p class=\"text-muted-foreground text-sm\">New writing roughly every other week. No newsletter required.</p>\n          <button ui-button variant=\"outline\">\n            View all resources\n            <lucide-icon [img]=\"ArrowRight\" class=\"ml-2 size-4\" />\n          </button>\n        </div>\n      </div>\n    </section>\n  `,\n})\nexport class UiResourcesTeaserGridComponent {\n  protected readonly ArrowRight = ArrowRight\n  protected readonly ArrowUpRight = ArrowUpRight\n  protected readonly featured = featured\n  protected readonly recent = recent\n\n  @Input('class') className?: string\n\n  get rootClass(): string {\n    return cn('bg-background', this.className)\n  }\n}\n",
      "type": "registry:block",
      "target": "~/src/app/components/blocks/resources-teaser-grid/resources-teaser-grid.component.ts"
    },
    {
      "path": "packages/registry-angular/blocks/resources-teaser-grid/index.ts",
      "content": "export { UiResourcesTeaserGridComponent } from './resources-teaser-grid.component'\n",
      "type": "registry:block",
      "target": "~/src/app/components/blocks/resources-teaser-grid/index.ts"
    }
  ],
  "dependencies": [
    "lucide-angular"
  ],
  "devDependencies": [],
  "registryDependencies": [
    "https://uipkge.dev/r/angular/avatar.json",
    "https://uipkge.dev/r/angular/badge.json",
    "https://uipkge.dev/r/angular/button.json",
    "https://uipkge.dev/r/angular/card.json",
    "https://uipkge.dev/r/angular/separator.json"
  ],
  "description": "Blog and resources teaser: one featured article spanning two columns with kind badge and read time, beside a stacked list of four recent pieces, closing on a view-all link row.",
  "categories": [
    "marketing"
  ]
}