{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "lists-07",
  "type": "registry:block",
  "description": "Ranked leaderboard with podium colours, score bars, rank deltas and a pinned you row.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/lists/lists-07.tsx",
      "content": "import {\n  Crown,\n  TrendingDown,\n  TrendingUp,\n} from \"@designali/icons\"\n\nconst leaders = [\n  { name: \"Ines\", team: \"UI designer\", points: 12840, delta: 3 },\n  { name: \"Kwame\", team: \"Next.js developer\", points: 12215, delta: 1 },\n  { name: \"Mei\", team: \"Icon designer\", points: 11980, delta: -1 },\n  { name: \"Oskar\", team: \"Motion designer\", points: 10422, delta: 2 },\n  { name: \"Ravi\", team: \"Design engineer\", points: 9870, delta: 0 },\n  { name: \"Clara\", team: \"Brand designer\", points: 9315, delta: -2 },\n  { name: \"Diego\", team: \"Frontend developer\", points: 8760, delta: 4 },\n  { name: \"Aiko\", team: \"3D artist\", points: 8104, delta: -1 },\n]\n\nconst podium = [\"bg-primary text-chart-5\", \"bg-border text-foreground\", \"bg-chart-1 text-chart-5\"]\n\nexport default function Lists07() {\n  const top = leaders[0]!.points\n\n  return (\n    <section className=\"w-full bg-background py-24\">\n      <div className=\"mx-auto max-w-3xl px-6\">\n        <div className=\"flex flex-wrap items-end justify-between gap-4\">\n          <div>\n            <p className=\"font-sans text-xs text-muted-foreground\">Designali community · Week 11</p>\n            <h2 className=\"mt-2 text-4xl font-semibold tracking-tight\">Top block builders</h2>\n          </div>\n          <p className=\"text-xs text-muted-foreground\">Resets in 3 days, 14 hours</p>\n        </div>\n\n        <ol className=\"mt-10 space-y-2\">\n          {leaders.map((leader, index) => {\n            const isTop = index < 3\n            return (\n              <li\n                key={leader.name}\n                className={`grid grid-cols-[2.5rem_1fr_auto] items-center gap-4 border p-4 ${\n                  index === 0 ? \"border-primary/60 bg-primary/5 dark:bg-primary/10\" : \"border-border bg-background\"\n                }`}\n              >\n                <span\n                  className={`flex size-10 items-center justify-center font-sans text-sm font-semibold ${\n                    isTop ? podium[index] : \"bg-muted text-muted-foreground\"\n                  }`}\n                >\n                  {index === 0 ? <Crown className=\"size-4\" /> : index + 1}\n                </span>\n                <div className=\"min-w-0\">\n                  <div className=\"flex items-baseline gap-2\">\n                    <span className=\"truncate font-medium\">{leader.name}</span>\n                    <span className=\"hidden text-xs text-muted-foreground sm:inline\">{leader.team}</span>\n                  </div>\n                  <div className=\"mt-2 h-1.5 bg-muted\">\n                    <div\n                      className={index === 0 ? \"h-full bg-primary\" : \"h-full bg-foreground/70\"}\n                      style={{ width: `${(leader.points / top) * 100}%` }}\n                    />\n                  </div>\n                </div>\n                <div className=\"text-right\">\n                  <p className=\"font-sans text-sm font-semibold\">{leader.points.toLocaleString(\"en-US\")}</p>\n                  <p\n                    className={`mt-0.5 inline-flex items-center gap-1 font-sans text-[10px] ${\n                      leader.delta > 0\n                        ? \"text-primary dark:text-primary\"\n                        : leader.delta < 0\n                          ? \"text-primary dark:text-primary\"\n                          : \"text-muted-foreground\"\n                    }`}\n                  >\n                    {leader.delta > 0 && <TrendingUp className=\"size-3\" />}\n                    {leader.delta < 0 && <TrendingDown className=\"size-3\" />}\n                    {leader.delta === 0 ? \"—\" : Math.abs(leader.delta)}\n                  </p>\n                </div>\n              </li>\n            )\n          })}\n        </ol>\n\n        <div className=\"mt-4 grid grid-cols-[2.5rem_1fr_auto] items-center gap-4 border border-dashed border-foreground/40 p-4\">\n          <span className=\"flex size-10 items-center justify-center bg-foreground font-sans text-sm text-background\">24</span>\n          <span className=\"font-medium\">You</span>\n          <span className=\"font-sans text-sm\">5,420</span>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "850px"
  },
  "categories": [
    "lists"
  ]
}