{
  "title": "Finance 1",
  "description": "A visual commodities portfolio tracker showcasing gold, silver, and crude oil allocations with an integrated segmented bar chart and detailed item metrics.",
  "name": "app-finance-1",
  "dependencies": [],
  "registryDependencies": [
    "card",
    "button",
    "badge",
    "dropdown-menu"
  ],
  "type": "registry:block",
  "files": [
    {
      "path": "components/blocks/app/finance/finance-1.tsx",
      "type": "registry:block",
      "content": "import { ArrowDownRight, ArrowUpRight, Bitcoin, Coins, Gem, MoreVertical, RefreshCw, ShieldCheck } from \"lucide-react\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport { Card, CardAction, CardContent, CardHeader, CardTitle } from \"@/components/ui/card\";\nimport {\n    DropdownMenu,\n    DropdownMenuContent,\n    DropdownMenuItem,\n    DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\";\n\ninterface CryptoAsset {\n    name: string;\n    ticker: string;\n    apy: string;\n    value: string;\n    change: string;\n    isPositive: boolean;\n    allocation: number;\n    color: string;\n}\n\nconst cryptoAssets: CryptoAsset[] = [\n    {\n        name: \"Bitcoin\",\n        ticker: \"BTC\",\n        apy: \"1.5% APY\",\n        value: \"$64,250.00\",\n        change: \"4.85%\",\n        isPositive: true,\n        allocation: 55,\n        color: \"bg-primary\",\n    },\n    {\n        name: \"Ethereum\",\n        ticker: \"ETH\",\n        apy: \"4.2% APY\",\n        value: \"$3,450.00\",\n        change: \"2.10%\",\n        isPositive: true,\n        allocation: 30,\n        color: \"bg-secondary\",\n    },\n    {\n        name: \"Solana\",\n        ticker: \"SOL\",\n        apy: \"7.5% APY\",\n        value: \"$145.00\",\n        change: \"1.25%\",\n        isPositive: false,\n        allocation: 15,\n        color: \"bg-muted\",\n    },\n];\n\nexport const Finance1 = () => {\n    return (\n        <Card>\n            <CardHeader>\n                <div className=\"flex items-center gap-2.5\">\n                    <div className=\"flex size-8 items-center justify-center rounded-md border\">\n                        <ShieldCheck className=\"size-4.5\" />\n                    </div>\n                    <CardTitle>Secure Vault</CardTitle>\n                </div>\n\n                <CardAction>\n                    <DropdownMenu>\n                        <DropdownMenuTrigger\n                            render={\n                                <Button variant=\"ghost\" size=\"icon-xs\" className=\"cursor-pointer\">\n                                    <MoreVertical className=\"size-4\" />\n                                </Button>\n                            }></DropdownMenuTrigger>\n                        <DropdownMenuContent align=\"end\" className=\"w-40\">\n                            <DropdownMenuItem className=\"cursor-pointer gap-2 text-xs\">\n                                <RefreshCw className=\"size-3.5\" />\n                                <span>Refresh Rates</span>\n                            </DropdownMenuItem>\n                        </DropdownMenuContent>\n                    </DropdownMenu>\n                </CardAction>\n            </CardHeader>\n            <CardContent className=\"grid gap-4\">\n                <div className=\"bg-muted/40 grid grid-cols-[1fr_auto] gap-4 rounded-md border p-3\">\n                    <div className=\"space-y-0.5\">\n                        <p className=\"text-2xl font-semibold\">\n                            <span className=\"text-muted-foreground me-0.5 align-super text-base font-medium\">$</span>\n                            87,420\n                        </p>\n                        <p className=\"text-muted-foreground text-xs\">Total holdings valuation</p>\n                    </div>\n                    <Badge>\n                        <ArrowUpRight className=\"size-3\" />\n                        <span>+3.45%</span>\n                    </Badge>\n                </div>\n                <div className=\"grid gap-2\">\n                    <div className=\"text-muted-foreground flex justify-between text-xs\">\n                        <span>Allocation</span>\n                        <span>100% Total</span>\n                    </div>\n                    <div className=\"bg-muted flex h-2 w-full gap-0.5 overflow-hidden rounded-md\">\n                        {cryptoAssets.map((asset) => (\n                            <div\n                                key={asset.ticker}\n                                style={{ width: `${asset.allocation}%` }}\n                                className={`h-full ${asset.color}`}\n                            />\n                        ))}\n                    </div>\n                </div>\n                <div className=\"grid gap-3\">\n                    {cryptoAssets.map((asset) => (\n                        <div key={asset.ticker} className=\"grid gap-2\">\n                            <div className=\"grid grid-cols-[1fr_auto] items-center gap-4\">\n                                <div className=\"flex items-center gap-3\">\n                                    <div className=\"bg-muted text-primary flex size-10 items-center justify-center rounded-md\">\n                                        {asset.ticker === \"BTC\" ? (\n                                            <Bitcoin className=\"size-5\" />\n                                        ) : asset.ticker === \"ETH\" ? (\n                                            <Gem className=\"size-5\" />\n                                        ) : (\n                                            <Coins className=\"size-5\" />\n                                        )}\n                                    </div>\n                                    <div className=\"grid gap-0.5\">\n                                        <span className=\"text-sm font-medium\">{asset.name}</span>\n                                        <span className=\"text-muted-foreground text-xs\">\n                                            {asset.ticker} • {asset.apy}\n                                        </span>\n                                    </div>\n                                </div>\n                                <div className=\"flex flex-col items-end gap-1\">\n                                    <span className=\"text-sm font-medium\">{asset.value}</span>\n                                    <span\n                                        className={`flex items-center justify-center gap-0.5 text-xs ${\n                                            asset.isPositive ? \"text-primary\" : \"text-destructive\"\n                                        }`}>\n                                        {asset.isPositive ? (\n                                            <ArrowUpRight className=\"size-3\" />\n                                        ) : (\n                                            <ArrowDownRight className=\"size-3\" />\n                                        )}\n                                        <span>{asset.change}</span>\n                                    </span>\n                                </div>\n                            </div>\n                        </div>\n                    ))}\n                </div>\n            </CardContent>\n        </Card>\n    );\n};\n"
    }
  ],
  "mcp": {
    "description": "A visual commodities portfolio tracker showcasing gold, silver, and crude oil allocations with an integrated segmented bar chart and detailed item metrics. Relies on card, button, badge, dropdown-menu. Ideal when an AI agent needs to compose section layouts or application views.",
    "tags": [
      "block",
      "application",
      "finance"
    ]
  }
}