Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions static/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ async function refreshDashboard() {

const summary = data.summary || {};
setCardValue('dash-status', status.charAt(0).toUpperCase() + status.slice(1));
const dashStatusEl = document.getElementById('dash-status');
if (dashStatusEl) dashStatusEl.className = 'card-value status-' + status;
const dashStatusIcon = document.getElementById('dash-status-icon');
if (dashStatusIcon) dashStatusIcon.className = 'card-icon status-icon-' + status;
setCardValue('dash-mode', (data.mode || '--').toUpperCase());
setCardValue('dash-uptime', formatUptime(data.uptime));
setCardValue('dash-corrupt', summary.corrupted != null ? summary.corrupted : '--');
Expand Down
2 changes: 1 addition & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h2>BeatsCheck Login</h2>
<h2>Dashboard</h2>
<div class="card-grid">
<div class="card">
<div class="card-label"><span class="card-icon" aria-hidden="true">&#9679;</span> Status</div>
<div class="card-label"><span id="dash-status-icon" class="card-icon" aria-hidden="true">&#9679;</span> Status</div>
<div id="dash-status" class="card-value">--</div>
</div>
<div class="card">
Expand Down
12 changes: 8 additions & 4 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,19 @@ header h1 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.status-dot.setup { background: #b080e8; box-shadow: 0 0 6px rgba(176,128,232,.4); }
.status-dot.error { background: #e0506a; box-shadow: 0 0 8px rgba(224,80,106,.5); }
#status-text { font-size: .82rem; color: var(--text-muted); }
.card-value.status-idle { color: #3ecfa0; }
.card-value.status-scanning { color: #e8b84a; }
.card-value.status-setup { color: #b080e8; }
.card-value.status-error { color: #e0506a; }
.card-icon.status-icon-idle { color: #3ecfa0; text-shadow: 0 0 8px rgba(62,207,160,.5); }
.card-icon.status-icon-scanning { color: #e8b84a; animation: pulse-scan-text 1.5s ease-in-out infinite; }
.card-icon.status-icon-setup { color: #b080e8; text-shadow: 0 0 6px rgba(176,128,232,.4); }
.card-icon.status-icon-error { color: #e0506a; text-shadow: 0 0 8px rgba(224,80,106,.5); }

@keyframes pulse-scan {
0%, 100% { box-shadow: 0 0 4px rgba(232,184,74,.3); }
50% { box-shadow: 0 0 14px rgba(232,184,74,.7); }
}
@keyframes pulse-scan-text {
0%, 100% { text-shadow: 0 0 4px rgba(232,184,74,.3); }
50% { text-shadow: 0 0 14px rgba(232,184,74,.7); }
}

/* --- Sidebar Nav --- */
nav#sidebar {
Expand Down