{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "features-02",
  "title": "Features — Alternating",
  "author": "SAASTRO <https://saastro.io>",
  "description": "Alternating image and text sections to showcase features. Zero-JS Astro component.",
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/default/blocks/features-02.astro",
      "content": "---\n/**\n * features-02 — Secciones alternadas de imagen y texto.\n * Bloque Astro puro: cero JS, cero dependencias.\n */\ninterface Feature {\n  badge?: string;\n  title: string;\n  description: string;\n  imageSrc?: string;\n  imageAlt?: string;\n}\ninterface Props {\n  title?: string;\n  description?: string;\n  features: Feature[];\n  class?: string;\n}\nconst { title, description, features, class: className } = Astro.props;\n\nconst badgeCls =\n  'mb-4 inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent bg-secondary px-2 py-0.5 text-xs font-medium whitespace-nowrap text-secondary-foreground';\n---\n\n<section class:list={['w-full px-6 py-24 md:py-32', className]}>\n  <div class=\"mx-auto max-w-6xl\">\n    {(title || description) && (\n      <div class=\"mx-auto mb-20 max-w-2xl text-center\">\n        {title && <h2 class=\"text-3xl font-bold tracking-tight sm:text-4xl\">{title}</h2>}\n        {description && <p class=\"mt-4 text-lg text-muted-foreground\">{description}</p>}\n      </div>\n    )}\n    <div class=\"flex flex-col gap-20\">\n      {features.map((feature, index) => (\n        <div class=\"grid items-center gap-12 lg:grid-cols-2\">\n          <div class:list={[index % 2 === 1 && 'lg:order-2']}>\n            {feature.badge && <span class={badgeCls}>{feature.badge}</span>}\n            <h3 class=\"text-2xl font-bold tracking-tight sm:text-3xl\">{feature.title}</h3>\n            <p class=\"mt-4 text-muted-foreground\">{feature.description}</p>\n          </div>\n          <div\n            class:list={[\n              'aspect-video overflow-hidden rounded-xl border bg-muted',\n              index % 2 === 1 && 'lg:order-1',\n            ]}\n          >\n            {feature.imageSrc ? (\n              <img\n                src={feature.imageSrc}\n                alt={feature.imageAlt ?? ''}\n                class=\"h-full w-full object-cover\"\n              />\n            ) : (\n              <div class=\"flex h-full w-full items-center justify-center bg-gradient-to-br from-muted to-muted-foreground/5\">\n                <span class=\"text-2xl text-muted-foreground/30\">Image</span>\n              </div>\n            )}\n          </div>\n        </div>\n      ))}\n    </div>\n  </div>\n</section>\n",
      "type": "registry:component",
      "target": "@components/blocks/features-02.astro"
    }
  ],
  "meta": {
    "group": "Features",
    "iframeHeight": "1150px"
  },
  "docs": "Astro component — zero JS, no React required. Default import: `import Features02 from '@/components/blocks/features-02.astro'`. Props: title?, description?, features [{badge?, title, description, imageSrc?, imageAlt?}], class?.",
  "categories": [
    "features",
    "landing"
  ],
  "type": "registry:block"
}