amalia/07-mei-26 #19

Merged
amaliadwiy merged 4 commits from amalia/07-mei-26 into main 2026-05-07 17:36:55 +08:00
5 changed files with 188 additions and 88 deletions
Showing only changes of commit f926ab2701 - Show all commits

View File

@@ -14,18 +14,21 @@ interface StatsCardProps {
}
export function StatsCard({ title, value, description, icon: Icon, color, trend }: StatsCardProps) {
const accentColor = `var(--mantine-color-${color ?? 'brand-blue'}-5)`
return (
<Card
withBorder
padding="lg"
radius="xl"
className="premium-card"
styles={(theme) => ({
styles={{
root: {
backgroundColor: 'var(--mantine-color-body)',
borderColor: 'rgba(128,128,128,0.1)',
borderTop: `3px solid ${accentColor}`,
},
})}
}}
>
<Group justify="space-between" mb="xs">
<ThemeIcon