The Instellingen tab was activity management, which Phase 2 made admin-only — workers saw add/edit/delete controls that all 403. Replace it with an Account tab showing the signed-in name/email (via /api/me) and an Uitloggen button (wires the existing AuthContext signOut). Activity management belongs to the Phase 3 admin app, so the worker client drops the Settings screen and its now-unused activity-mutation hooks (useActivities read stays). Products affected: SoleLog worker client (apps/worker).
382 lines
5.6 KiB
CSS
382 lines
5.6 KiB
CSS
:root {
|
|
--primary: #2563eb;
|
|
--primary-light: #eff6ff;
|
|
--text: #111827;
|
|
--text-muted: #6b7280;
|
|
--border: #e5e7eb;
|
|
--danger: #dc2626;
|
|
--amber: #d97706;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family:
|
|
'Inter',
|
|
system-ui,
|
|
-apple-system,
|
|
sans-serif;
|
|
color: var(--text);
|
|
background: #ffffff;
|
|
}
|
|
|
|
/* ---- App shell layout (mobile-first) ---- */
|
|
.app-main {
|
|
min-height: 100vh;
|
|
padding: 16px 16px 80px; /* leave room for the fixed bottom tab bar */
|
|
}
|
|
|
|
.screen {
|
|
max-width: 640px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.screen-title {
|
|
font-size: 28px;
|
|
font-weight: 600;
|
|
margin: 8px 0 16px;
|
|
}
|
|
|
|
/* ---- Bottom tab bar ---- */
|
|
.tabbar {
|
|
position: fixed;
|
|
inset: auto 0 0 0;
|
|
display: flex;
|
|
background: #ffffff;
|
|
border-top: 1px solid var(--border);
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.tab {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 12px 4px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.tab-active {
|
|
color: var(--primary);
|
|
}
|
|
|
|
/* ---- Login screen (mobile-first) ---- */
|
|
.login {
|
|
max-width: 420px;
|
|
margin: 0 auto;
|
|
padding: 48px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
min-height: 100vh;
|
|
justify-content: center;
|
|
}
|
|
|
|
.login-title {
|
|
font-size: 36px;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
color: var(--primary);
|
|
margin: 0;
|
|
}
|
|
|
|
.login-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.field-label {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.field-input {
|
|
width: 100%;
|
|
padding: 14px 16px;
|
|
font-size: 16px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
background: #ffffff;
|
|
color: var(--text);
|
|
}
|
|
|
|
.field-input:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.btn-primary {
|
|
width: 100%;
|
|
padding: 16px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
background: var(--primary);
|
|
border: none;
|
|
border-radius: 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-primary:disabled {
|
|
background: var(--border);
|
|
color: var(--text-muted);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.login-error {
|
|
color: var(--danger);
|
|
font-size: 14px;
|
|
margin: 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.login-toggle {
|
|
background: none;
|
|
border: none;
|
|
color: var(--primary);
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
padding: 8px;
|
|
}
|
|
|
|
/* ---- Settings (Instellingen) ---- */
|
|
.screen-subtitle {
|
|
margin: -8px 0 20px;
|
|
color: var(--text-muted);
|
|
font-size: 15px;
|
|
}
|
|
|
|
.card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 16px;
|
|
padding: 16px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.section-label {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--text-muted);
|
|
margin: 0 0 12px;
|
|
}
|
|
|
|
.card .section-label {
|
|
margin: 0;
|
|
}
|
|
|
|
.sub-label {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
margin: 0;
|
|
}
|
|
|
|
.muted {
|
|
color: var(--text-muted);
|
|
font-size: 15px;
|
|
}
|
|
|
|
.activity-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.activity-card {
|
|
border: 1px solid var(--border);
|
|
border-radius: 16px;
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.activity-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.activity-name {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.row-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.icon-btn {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border);
|
|
background: #ffffff;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.icon-edit {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.icon-delete {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.btn-save {
|
|
flex: 1;
|
|
padding: 12px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: #166534;
|
|
background: #dcfce7;
|
|
border: 1px solid #86efac;
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-save:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-cancel {
|
|
flex: 1;
|
|
padding: 12px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
background: #f3f4f6;
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* ---- Account ---- */
|
|
.account-card {
|
|
gap: 4px;
|
|
}
|
|
|
|
.account-name {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.account-email {
|
|
color: var(--text-muted);
|
|
font-size: 15px;
|
|
}
|
|
|
|
.btn-logout {
|
|
width: 100%;
|
|
padding: 16px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--danger);
|
|
background: #ffffff;
|
|
border: 1px solid var(--danger);
|
|
border-radius: 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* ---- History (Geschiedenis) ---- */
|
|
.history-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.pill-btn {
|
|
padding: 10px 16px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
background: var(--primary);
|
|
border: none;
|
|
border-radius: 999px;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.session-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.session-card {
|
|
border: 1px solid var(--border);
|
|
border-radius: 16px;
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.session-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.session-name {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.session-datetime {
|
|
font-size: 14px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.session-badges {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 4px 10px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.pill-grey {
|
|
background: #f3f4f6;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.pill-blue {
|
|
background: var(--primary-light);
|
|
color: var(--primary);
|
|
}
|