feat(v28): live community presence pill, anonymous edge telemetry, and diurnal network counter
This commit is contained in:
+245
-14
@@ -284,6 +284,203 @@ body {
|
||||
color: var(--accent-emerald);
|
||||
}
|
||||
|
||||
/* Live Community Drivers Pill */
|
||||
.badge-live-drivers {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
padding: 5px 13px;
|
||||
background: rgba(16, 185, 129, 0.12);
|
||||
border: 1px solid rgba(16, 185, 129, 0.35);
|
||||
border-radius: 9999px;
|
||||
font-size: 0.76rem;
|
||||
font-weight: 600;
|
||||
font-family: var(--font-mono);
|
||||
color: var(--accent-emerald);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
box-shadow: 0 0 14px rgba(16, 185, 129, 0.16);
|
||||
position: relative;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.badge-live-drivers:hover {
|
||||
background: rgba(16, 185, 129, 0.22);
|
||||
border-color: rgba(16, 185, 129, 0.65);
|
||||
box-shadow: 0 0 22px rgba(16, 185, 129, 0.38);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.badge-live-drivers:active,
|
||||
.badge-live-drivers.is-active {
|
||||
background: rgba(16, 185, 129, 0.28);
|
||||
border-color: var(--accent-emerald);
|
||||
box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.drivers-count-desktop {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.drivers-count-mobile {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@keyframes badge-num-bump {
|
||||
0% { transform: scale(1); }
|
||||
50% { transform: scale(1.18); color: #34d399; }
|
||||
100% { transform: scale(1); }
|
||||
}
|
||||
|
||||
.pulse-updated {
|
||||
animation: badge-num-bump 0.45s ease;
|
||||
}
|
||||
|
||||
/* Live Presence Popover Card */
|
||||
.drivers-presence-popover {
|
||||
position: fixed;
|
||||
top: 56px;
|
||||
right: 18px;
|
||||
width: 330px;
|
||||
max-width: calc(100vw - 24px);
|
||||
background: rgba(11, 15, 23, 0.98);
|
||||
backdrop-filter: blur(25px);
|
||||
-webkit-backdrop-filter: blur(25px);
|
||||
border: 1px solid rgba(16, 185, 129, 0.35);
|
||||
border-radius: 16px;
|
||||
padding: 16px;
|
||||
box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(16, 185, 129, 0.2);
|
||||
z-index: 3500;
|
||||
animation: popover-fade-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.drivers-presence-popover.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@keyframes popover-fade-in {
|
||||
from { opacity: 0; transform: translateY(-8px) scale(0.98); }
|
||||
to { opacity: 1; transform: translateY(0) scale(1); }
|
||||
}
|
||||
|
||||
.presence-popover-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.presence-popover-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 0.86rem;
|
||||
font-weight: 700;
|
||||
color: #f8fafc;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.btn-close-presence {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border: none;
|
||||
color: #94a3b8;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1rem;
|
||||
line-height: 1;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.btn-close-presence:hover {
|
||||
background: rgba(239, 68, 68, 0.2);
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
.presence-metrics-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 8px;
|
||||
margin: 12px 0;
|
||||
}
|
||||
|
||||
.presence-metric-card {
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
border-radius: 12px;
|
||||
padding: 10px 6px;
|
||||
text-align: center;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.presence-metric-number {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 1.15rem;
|
||||
font-weight: 800;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.metric-emerald .presence-metric-number {
|
||||
color: #10b981;
|
||||
text-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
|
||||
}
|
||||
|
||||
.metric-cyan .presence-metric-number {
|
||||
color: #38bdf8;
|
||||
text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
|
||||
}
|
||||
|
||||
.metric-amber .presence-metric-number {
|
||||
color: #f59e0b;
|
||||
text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
|
||||
}
|
||||
|
||||
.presence-metric-label {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
color: #94a3b8;
|
||||
margin-top: 4px;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.presence-metric-sub {
|
||||
font-size: 0.58rem;
|
||||
color: #64748b;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.presence-footer-badge {
|
||||
background: rgba(16, 185, 129, 0.07);
|
||||
border: 1px solid rgba(16, 185, 129, 0.2);
|
||||
border-radius: 10px;
|
||||
padding: 9px 11px;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: flex-start;
|
||||
font-size: 0.72rem;
|
||||
color: #cbd5e1;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.presence-footer-badge svg {
|
||||
color: var(--accent-emerald);
|
||||
flex-shrink: 0;
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
.presence-footer-badge strong {
|
||||
color: #10b981;
|
||||
}
|
||||
|
||||
.live-indicator-dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
@@ -2600,19 +2797,20 @@ body {
|
||||
.site-nav {
|
||||
padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left));
|
||||
min-height: 48px;
|
||||
overflow: hidden;
|
||||
max-width: 100vw;
|
||||
}
|
||||
.nav-content {
|
||||
flex-wrap: nowrap;
|
||||
gap: 8px;
|
||||
gap: 4px;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
}
|
||||
.nav-left {
|
||||
gap: 8px;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
flex-shrink: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.brand-wrapper {
|
||||
gap: 0;
|
||||
@@ -2622,20 +2820,53 @@ body {
|
||||
display: none !important;
|
||||
}
|
||||
.brand-logo-emblem {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
.badge-live-pulse {
|
||||
display: none;
|
||||
}
|
||||
.badge-live-drivers {
|
||||
display: inline-flex !important;
|
||||
padding: 4px 7px !important;
|
||||
gap: 4px !important;
|
||||
font-size: 0.68rem !important;
|
||||
font-weight: 700 !important;
|
||||
flex-shrink: 0 !important;
|
||||
box-shadow: 0 0 8px rgba(16, 185, 129, 0.2) !important;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.drivers-count-desktop {
|
||||
display: none !important;
|
||||
}
|
||||
.drivers-count-mobile {
|
||||
display: inline !important;
|
||||
}
|
||||
.drivers-presence-popover {
|
||||
position: fixed;
|
||||
top: 52px;
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
width: auto;
|
||||
max-width: none;
|
||||
z-index: 3500;
|
||||
}
|
||||
.nav-mode-switcher {
|
||||
gap: 3px;
|
||||
flex-shrink: 0;
|
||||
gap: 2px;
|
||||
flex-shrink: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.nav-mode-btn {
|
||||
padding: 5px 8px;
|
||||
font-size: 0.72rem;
|
||||
gap: 4px;
|
||||
padding: 5px 6px;
|
||||
font-size: 0.70rem;
|
||||
gap: 3px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.nav-support-btn .nav-text-mobile {
|
||||
display: none !important;
|
||||
}
|
||||
.nav-support-btn {
|
||||
padding: 5px 7px !important;
|
||||
}
|
||||
.nav-text-desktop {
|
||||
display: none;
|
||||
@@ -2646,15 +2877,15 @@ body {
|
||||
.nav-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
gap: 5px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.user-profile-pill {
|
||||
padding: 0;
|
||||
border-radius: 50%;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
min-width: 32px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
min-width: 28px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
Reference in New Issue
Block a user