updates frontend

This commit is contained in:
ben
2026-08-07 10:44:31 +02:00
parent 5102263492
commit 57757e90aa
2 changed files with 1234 additions and 1042 deletions
+845 -750
View File
File diff suppressed because it is too large Load Diff
+389 -292
View File
@@ -1,408 +1,378 @@
/* ============================================================
Design tokens
------------------------------------------------------------
Palette: warm paper background, ink-dark sidebar "spine",
deep pine accent (not the generic AI-blue).
Type: Source Serif 4 for headings (editorial, planner-like),
Inter for body copy, IBM Plex Mono for time/data.
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');
:root { :root {
/* Surfaces */
--bg: #f7f6f3;
--panel: #ffffff;
--sidebar: #15171c;
--sidebar-hover: #1f222a;
--bg: #f4f5f7; /* Text */
--panel: white; --text: #16181d;
--sidebar: #ffffff; --text-inverse: #eceae4;
--text: #111; --muted: #74716a;
--muted: #666; --muted-inverse: #8b8e97;
--border: #ddd;
--accent: #2563eb;
/* Structure */
--border: #e5e2da;
--border-strong: #d3cfc3;
/* Accent */
--accent: #1f5c52;
--accent-hover: #164941;
--accent-tint: #e8efec;
/* Status (used as tint + left-bar, not solid fills) */
--status-confirmed: #1f5c52;
--status-confirmed-tint: #e8efec;
--status-busy: #a15c14;
--status-busy-tint: #f6ede1;
--status-private: #4b4d57;
--status-private-tint: #eceae7;
--danger: #ad2b38;
/* Scale */
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 24px;
--space-6: 32px;
--space-7: 40px;
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 12px;
--shadow-sm: 0 1px 2px rgba(21, 23, 28, 0.06);
--shadow-md: 0 4px 16px rgba(21, 23, 28, 0.08);
--ease: cubic-bezier(0.4, 0, 0.2, 1);
--font-display: "Source Serif 4", Georgia, serif;
--font-body: Inter, system-ui, sans-serif;
--font-mono: "IBM Plex Mono", ui-monospace, monospace;
} }
.dark { .dark {
--bg: #0e0f12;
--panel: #17191d;
--sidebar: #0a0b0d;
--sidebar-hover: #161821;
--bg: #080808; --text: #eceae4;
--panel: #151515; --text-inverse: #16181d;
--sidebar: #101010; --muted: #91908a;
--text: #eee; --muted-inverse: #6b6d75;
--muted: #aaa;
--border: #333;
--accent: #38bdf8;
--border: #2a2c31;
--border-strong: #3a3d43;
--accent: #4fa393;
--accent-hover: #63b6a5;
--accent-tint: #16221f;
--status-confirmed: #4fa393;
--status-confirmed-tint: #16221f;
--status-busy: #d1934f;
--status-busy-tint: #26200f;
--status-private: #9294a0;
--status-private-tint: #1c1d21;
--danger: #e2707c;
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
} }
* { * {
box-sizing: border-box; box-sizing: border-box;
} }
body { body {
margin: 0; margin: 0;
background: var(--bg); background: var(--bg);
color: var(--text); color: var(--text);
font-family: var(--font-body);
font-family: font-size: 14px;
Inter, line-height: 1.5;
system-ui, -webkit-font-smoothing: antialiased;
sans-serif; transition: background 0.2s var(--ease), color 0.2s var(--ease);
transition: 0.2s;
} }
/* ============================================================
Layout
============================================================ */
.layout { .layout {
display: grid; display: grid;
grid-template-columns: 248px 1fr;
grid-template-columns: 260px 1fr;
height: 100vh; height: 100vh;
display: none;
} }
.sidebar { .sidebar {
background: var(--sidebar); background: var(--sidebar);
color: var(--text-inverse);
border-right: 1px solid var(--border); border-right: 1px solid rgba(255, 255, 255, 0.06);
padding: var(--space-5) var(--space-4);
padding: 25px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.logo { .logo {
display: flex; display: flex;
align-items: center; align-items: center;
gap: var(--space-2);
gap: 10px; margin-bottom: var(--space-6);
padding: 0 var(--space-2);
margin-bottom: 40px;
} }
.logo h2 { .logo h2 {
margin: 0; margin: 0;
font-family: var(--font-display);
font-weight: 600;
font-size: 19px;
letter-spacing: -0.01em;
} }
nav { nav {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 2px;
gap: 8px;
} }
nav a { nav a {
cursor: pointer; cursor: pointer;
padding: 10px 14px;
padding: 12px 15px; border-radius: var(--radius-sm);
color: var(--muted-inverse);
border-radius: 10px; font-size: 13.5px;
font-weight: 500;
color: var(--muted); transition: background 0.15s var(--ease), color 0.15s var(--ease);
transition: 0.2s;
} }
nav a:hover {
background: var(--sidebar-hover);
color: var(--text-inverse);
}
nav a:hover,
nav .active { nav .active {
background: var(--accent); background: var(--accent);
color: #ffffff;
color: white;
} }
.sidebar-bottom { .sidebar-bottom {
margin-top: auto; margin-top: auto;
padding-top: var(--space-4);
border-top: 1px solid rgba(255, 255, 255, 0.08);
} }
button { button {
width: 100%; width: 100%;
padding: 10px 14px;
padding: 12px; border-radius: var(--radius-sm);
border-radius: 10px;
border: 1px solid var(--border); border: 1px solid var(--border);
background: var(--panel); background: var(--panel);
color: var(--text); color: var(--text);
font-family: var(--font-body);
font-size: 13.5px;
font-weight: 500;
cursor: pointer; cursor: pointer;
margin-top: var(--space-2);
margin-top: 8px; transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
} }
button:hover {
border-color: var(--border-strong);
background: var(--bg);
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.sidebar button {
background: transparent;
border-color: rgba(255, 255, 255, 0.12);
color: var(--text-inverse);
}
.sidebar button:hover {
background: var(--sidebar-hover);
border-color: rgba(255, 255, 255, 0.2);
}
/* Content */ /* Content */
.content { .content {
padding: var(--space-6) var(--space-7);
padding: 40px;
overflow-y: auto; overflow-y: auto;
} }
h1 { h1 {
margin-top: 0; margin-top: 0;
font-family: var(--font-display);
font-weight: 600;
font-size: 26px;
letter-spacing: -0.01em;
} }
.card { .card {
background: var(--panel); background: var(--panel);
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: var(--radius-lg);
border-radius: 16px; padding: var(--space-5);
margin-top: var(--space-4);
padding: 25px; box-shadow: var(--shadow-sm);
margin-top: 20px;
box-shadow:
0 10px 30px rgba(0,0,0,0.05);
} }
/* forms */ /* forms */
input { input {
width: 100%; width: 100%;
padding: 10px 12px;
padding: 12px; border-radius: var(--radius-sm);
border-radius: 10px;
border: 1px solid var(--border); border: 1px solid var(--border);
background: var(--bg); background: var(--bg);
color: var(--text); color: var(--text);
font-family: var(--font-body);
margin-top: 8px; font-size: 13.5px;
margin-top: var(--space-2);
transition: border-color 0.15s var(--ease);
} }
input:focus {
border-color: var(--accent);
}
form { form {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.muted { .muted {
color: var(--muted); color: var(--muted);
} }
.error { .error {
color: var(--danger);
color: #e11d48;
} }
/* list items */ /* list items */
.list-item { .list-item {
padding: 10px 14px;
padding: 10px 15px;
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: var(--radius-md);
border-radius: 10px; margin-top: var(--space-2);
transition: border-color 0.15s var(--ease);
margin-top: 10px;
} }
.list-item:hover {
border-color: var(--border-strong);
}
/* event actions */ /* event actions */
.event-actions { .event-actions {
display: flex; display: flex;
gap: var(--space-2);
gap: 10px; margin-top: var(--space-4);
margin-top: 15px;
} }
.event-actions button { .event-actions button {
margin-top: 0; margin-top: 0;
} }
/* calendar */ /* calendar */
.calendar-header { .calendar-header {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.calendar-header h3 { .calendar-header h3 {
margin: 0; margin: 0;
font-family: var(--font-display);
font-weight: 600;
font-size: 17px;
text-transform: capitalize; text-transform: capitalize;
} }
.calendar-nav-btn { .calendar-nav-btn {
width: auto; width: auto;
padding: 6px 12px;
padding: 8px 14px;
margin-top: 0; margin-top: 0;
} }
.calendar-legend { .calendar-legend {
display: flex; display: flex;
gap: var(--space-5);
gap: 18px; margin-top: var(--space-4);
margin-top: 14px;
font-size: 12px; font-size: 12px;
color: var(--muted); color: var(--muted);
} }
.legend-item { .legend-item {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 6px; gap: 6px;
} }
.legend-dot { .legend-dot {
width: 8px;
width: 10px; height: 8px;
border-radius: 2px;
height: 10px;
border-radius: 50%;
display: inline-block; display: inline-block;
} }
/* week grid */ /* week grid */
.calendar-week { .calendar-week {
display: flex; display: flex;
margin-top: 16px; margin-top: var(--space-4);
overflow-x: auto; overflow-x: auto;
} }
.calendar-gutter { .calendar-gutter {
width: 55px; width: 52px;
flex-shrink: 0; flex-shrink: 0;
padding-top: 0px; padding-top: 0px;
} }
.calendar-hour-label { .calendar-hour-label {
height: 48px; /* 2 uur = 48px */ height: 48px;
font-size: 11px; font-family: var(--font-mono);
font-size: 10.5px;
color: var(--muted); color: var(--muted);
text-align: right; text-align: right;
padding-right: 8px; padding-right: var(--space-2);
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
align-items: flex-start; align-items: flex-start;
transform: translateY(-6px); transform: translateY(-6px);
} }
.calendar-days { .calendar-days {
display: flex; display: flex;
flex: 1; flex: 1;
min-width: 700px; min-width: 700px;
} }
.calendar-day-column { .calendar-day-column {
flex: 1; flex: 1;
display: flex; display: flex;
@@ -410,138 +380,265 @@ form {
border-left: 1px solid var(--border); border-left: 1px solid var(--border);
} }
.calendar-day-header { .calendar-day-header {
height: 32px; height: 32px;
text-align: center; text-align: center;
padding: 6px 0; padding: 6px 0;
font-size: 12px; font-family: var(--font-mono);
font-size: 11px;
letter-spacing: 0.02em;
text-transform: uppercase;
color: var(--muted); color: var(--muted);
} }
.calendar-day-track { .calendar-day-track {
position: relative; position: relative;
height: 576px; /* 12 uur zichtbaar x 48px */
height: 576px; /* 12 uur zichtbaar × 48px */ background-image: repeating-linear-gradient(
to bottom,
background-image: var(--border) 0,
repeating-linear-gradient( var(--border) 1px,
to bottom, transparent 1px,
var(--border) 0, transparent 48px
var(--border) 1px, );
transparent 1px,
transparent 48px
);
} }
.calendar-event { .calendar-event {
position: absolute; position: absolute;
left: 4px; left: 4px;
right: 4px; right: 4px;
border-radius: var(--radius-sm);
border-radius: 6px; padding: 4px 8px 4px 9px;
padding: 3px 6px;
font-size: 11px; font-size: 11px;
color: var(--text);
color: white;
cursor: pointer; cursor: pointer;
overflow: hidden; overflow: hidden;
border-left: 3px solid transparent;
box-shadow: background: var(--panel);
0 2px 6px rgba(0,0,0,0.25); box-shadow: var(--shadow-sm);
transition: box-shadow 0.15s var(--ease);
opacity: 0.92;
border: 1px solid rgba(255,255,255,0.4);
} }
.calendar-event:hover {
box-shadow: var(--shadow-md);
}
.calendar-event-time { .calendar-event-time {
display: block; display: block;
font-size: 10px; font-family: var(--font-mono);
opacity: 0.85; font-size: 9.5px;
color: var(--muted);
} }
.calendar-event-title { .calendar-event-title {
display: block; display: block;
font-weight: 600; font-weight: 600;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.event-confirmed { .event-confirmed {
background: var(--status-confirmed-tint);
background: #16a34a; border-left-color: var(--status-confirmed);
} }
.event-busy { .event-busy {
background: var(--status-busy-tint);
background: #f97316; border-left-color: var(--status-busy);
} }
.event-private { .event-private {
background: var(--status-private-tint);
background: #6b7280; border-left-color: var(--status-private);
} }
.legend-dot.event-confirmed,
.legend-dot.event-busy,
.legend-dot.event-private {
border-radius: 2px;
border-left: none;
}
/* login screen */ /* login screen */
.login-screen { .login-screen {
height: 100vh; height: 100vh;
width: 100%; width: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: var(--bg);
} }
.login-box { .login-box {
background: var(--panel); background: var(--panel);
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: var(--radius-lg);
border-radius: 16px; padding: var(--space-6);
padding: 40px;
width: 320px; width: 320px;
box-shadow: var(--shadow-md);
box-shadow:
0 10px 30px rgba(0,0,0,0.05);
} }
.login-box h2 { .login-box h2 {
margin-top: 0; margin-top: 0;
margin-bottom: var(--space-5);
font-family: var(--font-display);
font-weight: 600;
text-align: center; text-align: center;
}
/* ============================================================
Modals
============================================================ */
.modal-backdrop {
position: fixed;
inset: 0;
background: rgba(10, 11, 13, 0.5);
display: flex;
align-items: center;
justify-content: center;
padding: var(--space-4);
z-index: 100;
}
.modal-box {
background: var(--panel);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: var(--space-5);
width: 100%;
max-width: 440px;
max-height: 85vh;
overflow-y: auto;
box-shadow: var(--shadow-md);
}
.modal-box h2 {
margin-top: 0;
font-family: var(--font-display);
font-weight: 600;
font-size: 19px;
}
.modal-box label {
display: block;
font-size: 12.5px;
color: var(--muted);
margin-top: var(--space-3);
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: var(--space-2);
margin-top: var(--space-5);
}
.modal-actions button {
width: auto;
margin-top: 0;
padding: 8px 16px;
}
.danger-button {
border-color: var(--danger) !important;
color: var(--danger) !important;
}
/* action rows above list pages */
.page-actions {
display: flex;
gap: var(--space-2);
margin-bottom: var(--space-2);
}
.page-actions button {
width: auto;
margin-top: 0;
}
/* settings */
.settings-row {
display: flex;
align-items: center;
gap: var(--space-2);
font-size: 13.5px;
color: var(--text);
margin-top: var(--space-3);
}
.settings-row input[type="checkbox"] {
width: auto;
margin: 0;
}
.settings-row select {
margin-left: auto;
width: auto;
padding: 6px 10px;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
background: var(--bg);
color: var(--text);
}
.ascii-art-box {
font-family: var(--font-mono);
font-size: 11px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: var(--space-3);
overflow-x: auto;
margin-top: var(--space-2);
}
/* ============================================================
Accessibility preferences
============================================================ */
body.reduced-motion,
body.reduced-motion * {
transition: none !important;
animation: none !important;
}
body.high-contrast {
--border: #000000;
--border-strong: #000000;
--muted: #2a2a2a;
}
body.high-contrast.dark {
--border: #ffffff;
--border-strong: #ffffff;
--muted: #e6e6e6;
}
body.high-contrast .calendar-event {
border-left-width: 4px;
}
body.underline-links a {
text-decoration: underline;
}
body.always-focus a:focus,
body.always-focus button:focus,
body.always-focus input:focus,
body.always-focus select:focus {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
body.font-scale-large {
font-size: 16px;
}
body.font-scale-xlarge {
font-size: 18px;
} }