{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "testimonials-10",
  "type": "registry:block",
  "description": "Rating summary with score and star distribution bars beside a list of verified reviews.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/testimonials/testimonials-10.tsx",
      "content": "import {\n  BadgeCheck,\n  Star,\n} from \"@designali/icons\"\n\nconst distribution = [\n  [5, 86],\n  [4, 10],\n  [3, 3],\n  [2, 1],\n  [1, 0],\n]\n\nconst reviews = [\n  {\n    title: \"Paid for itself in week one\",\n    body: \"A Designali template got our launch page live on day two. That alone covered the cost.\",\n    name: \"Rachel\",\n    meta: \"Founder, designali.com customer\",\n    rating: 5,\n  },\n  {\n    title: \"Clean, fast, no fluff\",\n    body: \"The blocks are plain Next.js and Tailwind CSS. My team reads and extends them without a learning curve.\",\n    name: \"Owen\",\n    meta: \"Frontend Developer\",\n    rating: 5,\n  },\n  {\n    title: \"Great, with one wish\",\n    body: \"@designali/icons covers almost everything. I would love even more brand logos, which Ali says are on the way.\",\n    name: \"Sofia\",\n    meta: \"Product Designer, designali.com customer\",\n    rating: 4,\n  },\n]\n\nfunction Stars({ n, className }: { n: number; className?: string }) {\n  return (\n    <div className={`flex gap-0.5 text-primary ${className ?? \"\"}`}>\n      {Array.from({ length: 5 }).map((_, i) => (\n        <Star key={i} className={`size-4 ${i < n ? \"fill-current\" : \"text-muted-foreground/30\"}`} />\n      ))}\n    </div>\n  )\n}\n\nexport default function Testimonials10() {\n  return (\n    <section className=\"w-full bg-background py-20 md:py-28\">\n      <div className=\"mx-auto grid max-w-6xl gap-12 px-6 lg:grid-cols-[320px_1fr]\">\n        <div>\n          <h2 className=\"text-3xl font-medium tracking-tight\">designali reviews</h2>\n          <div className=\"mt-6 flex items-end gap-3\">\n            <span className=\"text-6xl font-medium tracking-tight\">4.9</span>\n            <div className=\"pb-2\">\n              <Stars n={5} />\n              <div className=\"mt-1 text-xs text-muted-foreground\">From designali.com customers</div>\n            </div>\n          </div>\n          <div className=\"mt-8 space-y-2\">\n            {distribution.map(([stars, pct]) => (\n              <div key={stars} className=\"flex items-center gap-3 text-xs\">\n                <span className=\"w-3 text-muted-foreground\">{stars}</span>\n                <div className=\"h-2 flex-1 bg-muted\">\n                  <div className=\"h-full bg-primary\" style={{ width: `${pct}%` }} />\n                </div>\n                <span className=\"w-8 text-right text-muted-foreground\">{pct}%</span>\n              </div>\n            ))}\n          </div>\n        </div>\n        <div className=\"divide-y divide-border border-y border-border\">\n          {reviews.map((r) => (\n            <article key={r.name} className=\"py-6\">\n              <div className=\"flex flex-wrap items-center justify-between gap-2\">\n                <Stars n={r.rating} />\n                <span className=\"inline-flex items-center gap-1 text-xs text-primary\">\n                  <BadgeCheck className=\"size-3.5\" /> Verified customer\n                </span>\n              </div>\n              <h3 className=\"mt-3 text-base font-medium\">{r.title}</h3>\n              <p className=\"mt-2 text-sm leading-6 text-muted-foreground\">{r.body}</p>\n              <div className=\"mt-4 text-xs\">\n                <span className=\"font-medium\">{r.name}</span>\n                <span className=\"text-muted-foreground\"> &middot; {r.meta}</span>\n              </div>\n            </article>\n          ))}\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "680px"
  },
  "categories": [
    "testimonials"
  ]
}