Adds dashboard stat cards and demo banner

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
This commit is contained in:
Janus C. H. Knudsen 2026-01-11 11:17:51 +01:00
parent 217a9cd95c
commit 9b2ace7bc0
5 changed files with 272 additions and 30 deletions

View file

@ -0,0 +1,16 @@
@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>