Files
coolify/resources/views/components/skeleton/tiles.blade.php
T
Andras Bacsai 327842a75c style(analytics): use coollabs-base KPI tiles and fix chevron-down
Switch analytics overview cards and skeleton tiles from white/base
backgrounds to --coollabs-base, show metric labels on skeletons, and
replace the scaled chevron-down path with a 24px polyline. Update
feature tests for the new tile classes and icon.
2026-09-08 14:40:39 +02:00

22 lines
888 B
PHP

@props([
'count' => 5,
'grid' => 'grid-cols-2 sm:grid-cols-3 lg:grid-cols-5',
'rounded' => 'rounded-lg',
'labels' => ['Requests', 'Unique visitors', 'Bandwidth', 'Error rate', 'p95 latency'],
])
{{-- KPI stat-tile grid skeleton, mirroring an analytics Overview tile grid. --}}
<div class="grid {{ $grid }} gap-px overflow-hidden {{ $rounded }} bg-neutral-200 dark:bg-white/[0.07]">
@for ($i = 0; $i < (int) $count; $i++)
<div class="flex flex-col bg-[var(--coollabs-base)] px-4 py-3">
<span class="text-[11px] font-medium tracking-wide text-neutral-500 uppercase dark:text-fg-dim">
{{ $labels[$i] ?? 'Metric' }}
</span>
<x-skeleton class="mt-2 h-6 w-20" />
<div class="mt-auto pt-3">
<x-skeleton class="h-9 w-full rounded" />
</div>
</div>
@endfor
</div>