Show daily streak on dashboard

This commit is contained in:
Peter Stockings
2026-02-24 20:58:04 +11:00
parent 1c935a64be
commit 9323082d37
3 changed files with 143 additions and 7 deletions

View File

@@ -294,6 +294,11 @@ body {
opacity: 1;
}
.stat-card-streak::before {
background: linear-gradient(135deg, #f59e0b, #ef4444);
opacity: 1;
}
.stat-label {
font-size: 0.75rem;
font-weight: 500;
@@ -737,6 +742,42 @@ tr:hover td {
border-color: rgba(239, 68, 68, 0.2);
}
.btn-icon-success:hover {
color: var(--success) !important;
background: var(--success-bg) !important;
border-color: rgba(16, 185, 129, 0.2) !important;
}
/* ========== INLINE EDIT ========== */
.checkin-actions {
display: flex;
gap: 0.25rem;
align-items: center;
}
.edit-input {
width: 100%;
max-width: 120px;
padding: 0.35rem 0.6rem;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-family: inherit;
font-size: 0.85rem;
transition: all 0.2s ease;
outline: none;
}
.edit-input:focus {
border-color: var(--border-focus);
box-shadow: 0 0 0 2px var(--accent-glow);
}
.editing-row td {
background: var(--bg-card-hover);
}
/* ========== EMPTY STATE ========== */
.empty-state {
text-align: center;
@@ -933,20 +974,46 @@ tr:hover td {
}
.container {
padding: 1rem;
padding: 0.75rem;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.6rem;
margin-bottom: 1rem;
}
.stat-card {
padding: 0.85rem;
}
.stat-value {
font-size: 1.35rem;
}
.stat-label {
font-size: 0.65rem;
margin-bottom: 0.25rem;
}
.charts-grid {
grid-template-columns: 1fr;
gap: 0.75rem;
margin-bottom: 1rem;
}
.chart-container {
height: 220px;
}
.grid-2,
.grid-3 {
grid-template-columns: 1fr;
gap: 0.75rem;
}
.card {
padding: 1rem;
}
.form-inline {
@@ -958,12 +1025,16 @@ tr:hover td {
margin-bottom: 0.75rem;
}
.page-header h1 {
font-size: 1.4rem;
.page-header {
margin-bottom: 1rem;
}
.stat-value {
font-size: 1.4rem;
.page-header h1 {
font-size: 1.3rem;
}
.page-header p {
font-size: 0.8rem;
}
.auth-card {
@@ -998,10 +1069,27 @@ tr:hover td {
.filter-group-people {
min-width: unset;
}
.card-header h2 {
font-size: 0.9rem;
}
.activity-item {
padding: 0.5rem 0;
}
}
@media (max-width: 480px) {
.stats-grid {
grid-template-columns: 1fr;
grid-template-columns: repeat(2, 1fr);
gap: 0.5rem;
}
.stat-card {
padding: 0.7rem;
}
.stat-value {
font-size: 1.15rem;
}
}