Introduces StatCard ViewComponent with configurable stat display Adds demo mode banner to application layout Refactors dashboard stats to use dynamic component rendering Improves dashboard presentation and user experience
16 lines
541 B
Text
16 lines
541 B
Text
@model PlanTempus.Application.Features.Dashboard.Components.StatCardViewModel
|
|
|
|
<swp-stat-card data-key="@Model.Key" class="@Model.Variant">
|
|
<swp-stat-value>@Model.Value</swp-stat-value>
|
|
<swp-stat-label>@Model.Label</swp-stat-label>
|
|
@if (Model.HasTrend)
|
|
{
|
|
<swp-stat-trend class="@Model.TrendDirection">
|
|
@if (!string.IsNullOrEmpty(Model.TrendIcon))
|
|
{
|
|
<i class="ph @Model.TrendIcon"></i>
|
|
}
|
|
@Model.TrendText
|
|
</swp-stat-trend>
|
|
}
|
|
</swp-stat-card>
|