Refactored a bunch of shit
All checks were successful
Docker Deploy / build-and-push (push) Successful in 3m57s

This commit is contained in:
2026-02-09 01:49:19 -07:00
parent c39865031a
commit 12d59bb42f
40 changed files with 844 additions and 678 deletions

View File

@@ -0,0 +1,25 @@
---
import { Icon } from 'astro-icon/components';
interface Props {
title: string;
value: string;
description?: string;
icon?: string;
color?: string;
valueClass?: string;
}
const { title, value, description, icon, color = 'text-primary', valueClass } = Astro.props;
---
<div class="stat">
{icon && (
<div class:list={["stat-figure", color]}>
<Icon name={icon} class="w-8 h-8" />
</div>
)}
<div class="stat-title">{title}</div>
<div class:list={["stat-value", color, valueClass]}>{value}</div>
{description && <div class="stat-desc">{description}</div>}
</div>