feat: enhance telemetry chart with animated bars for improved visual feedback
This commit is contained in:
@@ -210,10 +210,31 @@
|
||||
<h3 class="text-2xl font-bold text-color-base mb-2">Live Telemetry</h3>
|
||||
<p class="text-color-muted leading-relaxed mb-6">Monitor CPU, memory, network, and disk I/O with interactive charts. Track performance over hours, days, weeks, or months.</p>
|
||||
<!-- Mock Chart - Animated -->
|
||||
<div class="h-24 flex items-end gap-1 p-4 bg-background/50 rounded-xl">
|
||||
@for($i = 0; $i < 24; $i++)
|
||||
<div class="flex-1 bg-gradient-to-t from-primary to-primary/50 rounded-t chart-bar" style="--bar-height: {{ rand(25, 95) }}%; animation-delay: {{ $i * 0.1 }}s;"></div>
|
||||
@endfor
|
||||
<div class="h-24 flex items-end gap-1 p-4 bg-background/50 rounded-xl telemetry-chart">
|
||||
<div class="telemetry-bar" style="animation-delay: 0s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.1s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.2s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.3s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.4s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.5s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.6s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.7s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.8s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.9s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 1.0s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 1.1s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 1.2s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.1s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.2s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.3s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.4s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.5s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.6s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.7s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.8s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 0.9s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 1.0s;"></div>
|
||||
<div class="telemetry-bar" style="animation-delay: 1.1s;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -675,12 +696,58 @@
|
||||
.scrollbar-hide::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
@keyframes chartPulse {
|
||||
0%, 100% { height: var(--bar-height); }
|
||||
50% { height: calc(var(--bar-height) * 0.6); }
|
||||
|
||||
/* Telemetry Chart Animation */
|
||||
.telemetry-chart {
|
||||
align-items: flex-end;
|
||||
}
|
||||
.chart-bar {
|
||||
height: var(--bar-height);
|
||||
animation: chartPulse 2s ease-in-out infinite;
|
||||
.telemetry-bar {
|
||||
flex: 1;
|
||||
background: linear-gradient(to top, var(--color-primary, #6366f1), rgba(99, 102, 241, 0.5));
|
||||
border-radius: 4px 4px 0 0;
|
||||
animation: barPulse 1.5s ease-in-out infinite;
|
||||
}
|
||||
.telemetry-bar:nth-child(1) { animation-delay: 0s; }
|
||||
.telemetry-bar:nth-child(2) { animation-delay: 0.1s; }
|
||||
.telemetry-bar:nth-child(3) { animation-delay: 0.2s; }
|
||||
.telemetry-bar:nth-child(4) { animation-delay: 0.3s; }
|
||||
.telemetry-bar:nth-child(5) { animation-delay: 0.4s; }
|
||||
.telemetry-bar:nth-child(6) { animation-delay: 0.5s; }
|
||||
.telemetry-bar:nth-child(7) { animation-delay: 0.6s; }
|
||||
.telemetry-bar:nth-child(8) { animation-delay: 0.7s; }
|
||||
.telemetry-bar:nth-child(9) { animation-delay: 0.8s; }
|
||||
.telemetry-bar:nth-child(10) { animation-delay: 0.9s; }
|
||||
.telemetry-bar:nth-child(11) { animation-delay: 1.0s; }
|
||||
.telemetry-bar:nth-child(12) { animation-delay: 1.1s; }
|
||||
.telemetry-bar:nth-child(13) { animation-delay: 0.05s; }
|
||||
.telemetry-bar:nth-child(14) { animation-delay: 0.15s; }
|
||||
.telemetry-bar:nth-child(15) { animation-delay: 0.25s; }
|
||||
.telemetry-bar:nth-child(16) { animation-delay: 0.35s; }
|
||||
.telemetry-bar:nth-child(17) { animation-delay: 0.45s; }
|
||||
.telemetry-bar:nth-child(18) { animation-delay: 0.55s; }
|
||||
.telemetry-bar:nth-child(19) { animation-delay: 0.65s; }
|
||||
.telemetry-bar:nth-child(20) { animation-delay: 0.75s; }
|
||||
.telemetry-bar:nth-child(21) { animation-delay: 0.85s; }
|
||||
.telemetry-bar:nth-child(22) { animation-delay: 0.95s; }
|
||||
.telemetry-bar:nth-child(23) { animation-delay: 1.05s; }
|
||||
.telemetry-bar:nth-child(24) { animation-delay: 1.15s; }
|
||||
|
||||
@keyframes barPulse {
|
||||
0%, 100% {
|
||||
height: 70%;
|
||||
opacity: 1;
|
||||
}
|
||||
25% {
|
||||
height: 40%;
|
||||
opacity: 0.8;
|
||||
}
|
||||
50% {
|
||||
height: 90%;
|
||||
opacity: 1;
|
||||
}
|
||||
75% {
|
||||
height: 30%;
|
||||
opacity: 0.7;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user