Add CarPass passport UI widgets
This commit is contained in:
@@ -31,46 +31,160 @@ body.auth-required .shell {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.progress-strip {
|
||||
.passport-panel {
|
||||
display: grid;
|
||||
grid-template-columns: 150px 1fr;
|
||||
gap: 10px 14px;
|
||||
align-items: center;
|
||||
padding: 12px;
|
||||
gap: 14px;
|
||||
padding: 16px;
|
||||
margin-bottom: 14px;
|
||||
border: 1px solid var(--line);
|
||||
color: #f4fbf8;
|
||||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||||
border-radius: 8px;
|
||||
background: #f5faf8;
|
||||
background:
|
||||
linear-gradient(145deg, rgba(16, 26, 28, 0.98), rgba(27, 37, 43, 0.96)),
|
||||
#101a1c;
|
||||
box-shadow: 0 18px 50px rgba(10, 16, 18, 0.22);
|
||||
}
|
||||
|
||||
.progress-strip span,
|
||||
.progress-strip small {
|
||||
color: var(--muted);
|
||||
.passport-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.progress-strip strong {
|
||||
display: block;
|
||||
margin-top: 2px;
|
||||
.passport-head h2 {
|
||||
margin: 0;
|
||||
color: #fff;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.progress-strip small {
|
||||
grid-column: 2;
|
||||
.passport-head small,
|
||||
.passport-metric span,
|
||||
.passport-action span,
|
||||
.achievement-card span,
|
||||
.timeline-item small,
|
||||
.timeline-empty,
|
||||
.passport-note {
|
||||
color: rgba(244, 251, 248, 0.68);
|
||||
}
|
||||
|
||||
.progress-track {
|
||||
height: 10px;
|
||||
overflow: hidden;
|
||||
border-radius: 999px;
|
||||
background: #e3ebe7;
|
||||
.score-ring {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
flex: 0 0 84px;
|
||||
width: 84px;
|
||||
height: 84px;
|
||||
border-radius: 50%;
|
||||
background: conic-gradient(#5ee0bd 0deg, rgba(255, 255, 255, 0.12) 0deg);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.progress-track span {
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 100%;
|
||||
.score-ring::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 8px;
|
||||
border-radius: inherit;
|
||||
background: linear-gradient(90deg, var(--accent), var(--accent-2));
|
||||
transition: width 360ms ease;
|
||||
background: #121d20;
|
||||
}
|
||||
|
||||
.score-ring strong,
|
||||
.score-ring span {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.score-ring strong {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.score-ring span {
|
||||
margin-top: 28px;
|
||||
font-size: 11px;
|
||||
color: rgba(244, 251, 248, 0.62);
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.passport-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.passport-metric,
|
||||
.passport-action,
|
||||
.achievement-card {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
padding: 10px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 8px;
|
||||
background: rgba(255, 255, 255, 0.055);
|
||||
}
|
||||
|
||||
.passport-metric strong {
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.passport-actions,
|
||||
.achievement-strip {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.achievement-strip {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.achievement-card strong::before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
margin-right: 6px;
|
||||
border-radius: 50%;
|
||||
background: #5ee0bd;
|
||||
box-shadow: 0 0 16px rgba(94, 224, 189, 0.7);
|
||||
}
|
||||
|
||||
.achievement-card.muted strong::before {
|
||||
background: #91a39d;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.vehicle-timeline {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.timeline-title {
|
||||
color: #fff;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.timeline-item {
|
||||
display: grid;
|
||||
grid-template-columns: 16px 1fr;
|
||||
gap: 8px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.timeline-item > span {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
margin-top: 5px;
|
||||
border-radius: 50%;
|
||||
background: #5ee0bd;
|
||||
}
|
||||
|
||||
.timeline-item.service > span,
|
||||
.timeline-item.service_visit > span {
|
||||
background: #8bb9ff;
|
||||
}
|
||||
|
||||
.timeline-item.achievement > span {
|
||||
background: #f0c66a;
|
||||
}
|
||||
|
||||
.stat {
|
||||
@@ -304,13 +418,15 @@ body.auth-required .shell {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.progress-strip,
|
||||
.passport-grid,
|
||||
.passport-actions,
|
||||
.achievement-strip,
|
||||
.report-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.progress-strip small {
|
||||
grid-column: auto;
|
||||
.passport-head {
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -356,13 +472,15 @@ body.auth-required .shell {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.progress-strip,
|
||||
.passport-grid,
|
||||
.passport-actions,
|
||||
.achievement-strip,
|
||||
.report-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.progress-strip small {
|
||||
grid-column: auto;
|
||||
.passport-head {
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1030,13 +1148,6 @@ button.is-busy {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.progress-strip {
|
||||
border-radius: 8px;
|
||||
background:
|
||||
linear-gradient(90deg, rgba(18, 115, 95, 0.08), rgba(47, 111, 159, 0.08)),
|
||||
#fff;
|
||||
}
|
||||
|
||||
.status-bar {
|
||||
min-height: 36px;
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user