Expose guided training exercises on the driver's mobile profile link
"Jämna varv" and "Stegträning" previously only lived on the admin Training page. A driver's own personal mobile profile link now offers the same self-service configure/start/stop flow already used for the 5-minute practice timer there, with live progress computed server-side from the driver's own share token so raw lap rows and driver IDs never reach the client. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
01e1165748
commit
2846b4c0fe
9 files changed
+573
-6
No files matched your search
@@ -436,6 +436,64 @@ button {
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.is-positive {
|
||||
color: var(--green);
|
||||
}
|
||||
|
||||
.is-negative {
|
||||
color: #ff8f89;
|
||||
}
|
||||
|
||||
.profile-step-pills {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin: 10px 0 12px;
|
||||
}
|
||||
|
||||
.profile-step-pill {
|
||||
padding: 4px 10px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.025);
|
||||
color: var(--muted);
|
||||
font-size: 0.72rem;
|
||||
}
|
||||
|
||||
.profile-step-pill.is-current {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.profile-step-pill.is-done {
|
||||
border-color: color-mix(in srgb, var(--green) 55%, var(--line) 45%);
|
||||
color: var(--green);
|
||||
}
|
||||
|
||||
.profile-steptraining-form {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
.profile-steptraining-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(120px, 1fr) 90px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.profile-steptraining-row select,
|
||||
.profile-steptraining-row input {
|
||||
width: 100%;
|
||||
padding: 9px 10px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 9px;
|
||||
background: rgba(255, 255, 255, 0.035);
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.profile-progress {
|
||||
height: 8px;
|
||||
overflow: hidden;
|
||||
@@ -1164,6 +1222,15 @@ button {
|
||||
padding: 7px 8px;
|
||||
}
|
||||
|
||||
.profile-steptraining-row select,
|
||||
.profile-steptraining-row input {
|
||||
padding: 7px 8px;
|
||||
}
|
||||
|
||||
.profile-step-pill {
|
||||
font-size: 0.66rem;
|
||||
}
|
||||
|
||||
.profile-timer {
|
||||
margin: 8px 0;
|
||||
font-size: clamp(1.8rem, 8vw, 2.4rem);
|
||||
|
||||
Reference in new issue
Block a user