ui: tinted background per stat box (blue/green/orange)
This commit is contained in:
parent
586bd7c030
commit
655784c6d9
@ -159,6 +159,16 @@
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
/* per-stat accent colors — !important guards against global .stat-value overrides */
|
||||
.stat .stat-value--total { color: var(--color-primary) !important; }
|
||||
.stat .stat-value--confirmed { color: var(--color-success) !important; }
|
||||
.stat .stat-value--rate { color: var(--color-warning) !important; }
|
||||
|
||||
/* per-stat tinted backgrounds */
|
||||
.stat--total { background: rgba(82, 148, 255, 0.12); border-color: rgba(82, 148, 255, 0.30); }
|
||||
.stat--confirmed { background: rgba(46, 199, 107, 0.12); border-color: rgba(46, 199, 107, 0.30); }
|
||||
.stat--rate { background: rgba(245, 166, 35, 0.12); border-color: rgba(245, 166, 35, 0.30); }
|
||||
|
||||
.event-card-actions {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
|
||||
@ -139,18 +139,18 @@ function EventList({ onEventSelect, onCreateEvent, onManageTemplates }) {
|
||||
<p className="event-date">📅 {formatDate(event.date)}</p>
|
||||
|
||||
<div className="event-stats">
|
||||
<div className="stat">
|
||||
<div className="stat stat--total">
|
||||
<span className="stat-label">{he.guests}</span>
|
||||
<span className="stat-value">{guestStats.total}</span>
|
||||
<span className="stat-value stat-value--total">{guestStats.total}</span>
|
||||
</div>
|
||||
<div className="stat">
|
||||
<div className="stat stat--confirmed">
|
||||
<span className="stat-label">{he.confirmed}</span>
|
||||
<span className="stat-value">{guestStats.confirmed}</span>
|
||||
<span className="stat-value stat-value--confirmed">{guestStats.confirmed}</span>
|
||||
</div>
|
||||
{guestStats.total > 0 && (
|
||||
<div className="stat">
|
||||
<div className="stat stat--rate">
|
||||
<span className="stat-label">{he.rate}</span>
|
||||
<span className="stat-value">
|
||||
<span className="stat-value stat-value--rate">
|
||||
{Math.round((guestStats.confirmed / guestStats.total) * 100)}%
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user