mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
* feat: add rhea * fix: blocks * feat: build chat example * fix * fix: sidebar * fix * feat: update home * fix * fix * fix * feat: optimizine fonts * feat * fix * fix * fix * fix * fix * fix * fix: font in preview * fix
47 lines
1.2 KiB
TypeScript
47 lines
1.2 KiB
TypeScript
import { Badge } from "@/styles/base-rhea/ui/badge"
|
|
import { Button } from "@/styles/base-rhea/ui/button"
|
|
import {
|
|
Card,
|
|
CardAction,
|
|
CardDescription,
|
|
CardHeader,
|
|
CardTitle,
|
|
} from "@/styles/base-rhea/ui/card"
|
|
|
|
const areaPath = "M0 52L18 40L36 46L54 70L72 50L100 49V86H0Z"
|
|
const strokePath = "M0 52L18 40L36 46L54 70L72 50L100 49"
|
|
|
|
export function AnalyticsCard() {
|
|
return (
|
|
<Card className="mx-auto w-full max-w-sm data-[size=sm]:pb-0" size="sm">
|
|
<CardHeader>
|
|
<CardTitle>Analytics</CardTitle>
|
|
<CardDescription>
|
|
418.2K Visitors <Badge>+10%</Badge>
|
|
</CardDescription>
|
|
<CardAction>
|
|
<Button variant="outline" size="sm">
|
|
View Analytics
|
|
</Button>
|
|
</CardAction>
|
|
</CardHeader>
|
|
<svg
|
|
viewBox="0 0 100 86"
|
|
preserveAspectRatio="none"
|
|
className="aspect-[1/0.35] w-full text-chart-1"
|
|
role="img"
|
|
aria-label="Visitor trend"
|
|
>
|
|
<path d={areaPath} fill="currentColor" opacity="0.28" />
|
|
<path
|
|
d={strokePath}
|
|
fill="none"
|
|
stroke="currentColor"
|
|
strokeWidth="1.5"
|
|
vectorEffect="non-scaling-stroke"
|
|
/>
|
|
</svg>
|
|
</Card>
|
|
)
|
|
}
|