forge
Explore
Log in

Don't you dare go Hollow

🎨 add page accents and eager detail loading

Browse files at this commit

5e6085b66ce4b3da3c663816ffda67592e45fb88Burak BoduroğluParent: 69e9aa5
  • style
    • 🎨 add page accents and eager detail loading
Show full message
style: 🎨 add page accents and eager detail loading

- add subtle section accents and rounded controls across page shells

- keep course and exam detail section data loading while collapsed

- align exam grading header action with the question add button
src/components/events/event-form.tsxmodified+13 -13
@@ -171,36 +171,36 @@ export function EventForm(props: {
171 return (171 return (
172 <>172 <>
173 <form class="space-y-3" onSubmit={handleSubmit}>173 <form class="space-y-3" onSubmit={handleSubmit}>
174- <div class="space-y-1.5">174+ <div class="space-y-1.5 border-sky-500/15 bg-sky-500/[0.03]">
175 <Label for="event-title">{t("form.title")}</Label>175 <Label for="event-title">{t("form.title")}</Label>
176 <Input176 <Input
177 id="event-title"177 id="event-title"
178- class="h-10 rounded-sm"178+ class="h-11"
179 value={title()}179 value={title()}
180 maxlength={200}180 maxlength={200}
181 required181 required
182 onInput={(e) => setTitle(e.currentTarget.value)}182 onInput={(e) => setTitle(e.currentTarget.value)}
183 />183 />
184 </div>184 </div>
185- <div class="space-y-1.5">185+ <div class="space-y-1.5 border-sky-500/15 bg-sky-500/[0.03]">
186 <Label for="event-description">{t("form.description")}</Label>186 <Label for="event-description">{t("form.description")}</Label>
187 <Textarea187 <Textarea
188 id="event-description"188 id="event-description"
189- class="min-h-28 rounded-sm"189+ class="min-h-28"
190 value={description()}190 value={description()}
191 maxlength={2000}191 maxlength={2000}
192 rows={3}192 rows={3}
193 onInput={(e) => setDescription(e.currentTarget.value)}193 onInput={(e) => setDescription(e.currentTarget.value)}
194 />194 />
195 </div>195 </div>
196- <div class="space-y-1.5">196+ <div class="space-y-1.5 border-violet-500/15 bg-violet-500/[0.03]">
197 <Label for="event-audience">{t("events.audience")}</Label>197 <Label for="event-audience">{t("events.audience")}</Label>
198 <Select id="event-audience" value={audienceKind()} onChange={(e) => setAudienceKind(e.currentTarget.value as EventAudience["kind"])}>198 <Select id="event-audience" value={audienceKind()} onChange={(e) => setAudienceKind(e.currentTarget.value as EventAudience["kind"])}>
199 <For each={AUDIENCE_KINDS}>{(kind) => <option value={kind}>{t(`events.audience.${kind}` as MessageKey)}</option>}</For>199 <For each={AUDIENCE_KINDS}>{(kind) => <option value={kind}>{t(`events.audience.${kind}` as MessageKey)}</option>}</For>
200 </Select>200 </Select>
201 </div>201 </div>
202 <Show when={audienceKind() === "role"}>202 <Show when={audienceKind() === "role"}>
203- <div class="space-y-1.5">203+ <div class="space-y-1.5 border-violet-500/15 bg-violet-500/[0.03]">
204 <Label for="event-audience-role">{t("admin.role")}</Label>204 <Label for="event-audience-role">{t("admin.role")}</Label>
205 <Select id="event-audience-role" value={audienceRole()} onChange={(e) => setAudienceRole(e.currentTarget.value as Role)}>205 <Select id="event-audience-role" value={audienceRole()} onChange={(e) => setAudienceRole(e.currentTarget.value as Role)}>
206 <For each={AUDIENCE_ROLES}>{(role) => <option value={role}>{t(`role.${role}` as MessageKey)}</option>}</For>206 <For each={AUDIENCE_ROLES}>{(role) => <option value={role}>{t(`role.${role}` as MessageKey)}</option>}</For>
@@ -208,7 +208,7 @@ export function EventForm(props: {
208 </div>208 </div>
209 </Show>209 </Show>
210 <Show when={audienceKind() === "course"}>210 <Show when={audienceKind() === "course"}>
211- <div class="space-y-1.5">211+ <div class="space-y-1.5 border-violet-500/15 bg-violet-500/[0.03]">
212 <Label for="event-audience-course">{t("nav.courses")}</Label>212 <Label for="event-audience-course">{t("nav.courses")}</Label>
213 <Select id="event-audience-course" value={audienceCourse()} onChange={(e) => setAudienceCourse(e.currentTarget.value)}>213 <Select id="event-audience-course" value={audienceCourse()} onChange={(e) => setAudienceCourse(e.currentTarget.value)}>
214 <option value="">{t("events.selectCourse")}</option>214 <option value="">{t("events.selectCourse")}</option>
@@ -217,7 +217,7 @@ export function EventForm(props: {
217 </div>217 </div>
218 </Show>218 </Show>
219 <Show when={audienceKind() === "registration"}>219 <Show when={audienceKind() === "registration"}>
220- <div class="space-y-1.5">220+ <div class="space-y-1.5 border-violet-500/15 bg-violet-500/[0.03]">
221 <Label for="event-audience-capacity">{t("events.capacity")}</Label>221 <Label for="event-audience-capacity">{t("events.capacity")}</Label>
222 <Input222 <Input
223 id="event-audience-capacity"223 id="event-audience-capacity"
@@ -230,13 +230,13 @@ export function EventForm(props: {
230 />230 />
231 </div>231 </div>
232 </Show>232 </Show>
233- <div class="grid gap-3">233+ <div class="grid gap-3 rounded-2xl border border-amber-500/15 bg-amber-500/[0.03] p-4">
234 <div class="space-y-1.5">234 <div class="space-y-1.5">
235 <Label for="event-starts">{t("events.starts")}</Label>235 <Label for="event-starts">{t("events.starts")}</Label>
236 <div class="grid grid-cols-2 gap-2">236 <div class="grid grid-cols-2 gap-2">
237 <DatePicker237 <DatePicker
238 id="event-starts"238 id="event-starts"
239- class="h-10"239+ class="h-11"
240 placeholder={t("form.datePlaceholder")}240 placeholder={t("form.datePlaceholder")}
241 value={startsDate()}241 value={startsDate()}
242 onChange={(value) => {242 onChange={(value) => {
@@ -246,7 +246,7 @@ export function EventForm(props: {
246 />246 />
247 <Input247 <Input
248 id="event-starts-time"248 id="event-starts-time"
249- class="h-10 rounded-sm font-mono placeholder:text-muted-foreground/45"249+ class="h-11 font-mono placeholder:text-muted-foreground/45"
250 inputMode="numeric"250 inputMode="numeric"
251 placeholder="09:00"251 placeholder="09:00"
252 pattern="[0-2][0-9]:[0-5][0-9]"252 pattern="[0-2][0-9]:[0-5][0-9]"
@@ -267,7 +267,7 @@ export function EventForm(props: {
267 <div class="grid grid-cols-2 gap-2">267 <div class="grid grid-cols-2 gap-2">
268 <DatePicker268 <DatePicker
269 id="event-ends"269 id="event-ends"
270- class="h-10"270+ class="h-11"
271 placeholder={t("form.datePlaceholder")}271 placeholder={t("form.datePlaceholder")}
272 value={endsDate()}272 value={endsDate()}
273 onChange={(value) => {273 onChange={(value) => {
@@ -277,7 +277,7 @@ export function EventForm(props: {
277 />277 />
278 <Input278 <Input
279 id="event-ends-time"279 id="event-ends-time"
280- class="h-10 rounded-sm font-mono placeholder:text-muted-foreground/45"280+ class="h-11 font-mono placeholder:text-muted-foreground/45"
281 inputMode="numeric"281 inputMode="numeric"
282 placeholder="10:00"282 placeholder="10:00"
283 pattern="[0-2][0-9]:[0-5][0-9]"283 pattern="[0-2][0-9]:[0-5][0-9]"
src/components/exams/exam-form.tsxmodified+13 -17
@@ -203,13 +203,12 @@ export function ExamForm(props: {
203 <>203 <>
204 <form class="space-y-4" onSubmit={handleSubmit}>204 <form class="space-y-4" onSubmit={handleSubmit}>
205 {/* Section 1: Basic Info */}205 {/* Section 1: Basic Info */}
206- <div class="space-y-3 rounded-lg border bg-card p-3.5 shadow-sm">206+ <div class="space-y-3 rounded-2xl border border-sky-500/15 bg-sky-500/[0.03] p-4 shadow-sm">
207 <h3 class="text-xs font-semibold uppercase tracking-wider text-muted-foreground">{t("exams.sectionBasic")}</h3>207 <h3 class="text-xs font-semibold uppercase tracking-wider text-muted-foreground">{t("exams.sectionBasic")}</h3>
208 <div class="space-y-1.5">208 <div class="space-y-1.5">
209 <Label for="exam-title">{t("form.title")}</Label>209 <Label for="exam-title">{t("form.title")}</Label>
210 <Input210 <Input
211 id="exam-title"211 id="exam-title"
212- class="rounded-sm"
213 value={title()}212 value={title()}
214 maxlength={200}213 maxlength={200}
215 required214 required
@@ -220,7 +219,6 @@ export function ExamForm(props: {
220 <Label for="exam-description">{t("form.description")}</Label>219 <Label for="exam-description">{t("form.description")}</Label>
221 <Textarea220 <Textarea
222 id="exam-description"221 id="exam-description"
223- class="rounded-sm"
224 value={description()}222 value={description()}
225 maxlength={2000}223 maxlength={2000}
226 rows={3}224 rows={3}
@@ -231,7 +229,6 @@ export function ExamForm(props: {
231 <Label for="exam-kind">{t("exams.kind")}</Label>229 <Label for="exam-kind">{t("exams.kind")}</Label>
232 <Select230 <Select
233 id="exam-kind"231 id="exam-kind"
234- class="rounded-sm"
235 value={kind()}232 value={kind()}
236 onChange={(e) => setKind(e.currentTarget.value)}233 onChange={(e) => setKind(e.currentTarget.value)}
237 >234 >
@@ -241,13 +238,12 @@ export function ExamForm(props: {
241 </div>238 </div>
242 239
243 {/* Section 2: Mode & Schedule */}240 {/* Section 2: Mode & Schedule */}
244- <div class="space-y-3 rounded-lg border bg-card p-3.5 shadow-sm">241+ <div class="space-y-3 rounded-2xl border border-amber-500/15 bg-amber-500/[0.03] p-4 shadow-sm">
245 <h3 class="text-xs font-semibold uppercase tracking-wider text-muted-foreground">{t("exams.sectionSchedule")}</h3>242 <h3 class="text-xs font-semibold uppercase tracking-wider text-muted-foreground">{t("exams.sectionSchedule")}</h3>
246 <div class="space-y-1.5">243 <div class="space-y-1.5">
247 <Label for="exam-mode">{t("exams.mode")}</Label>244 <Label for="exam-mode">{t("exams.mode")}</Label>
248 <Select245 <Select
249 id="exam-mode"246 id="exam-mode"
250- class="rounded-sm"
251 value={mode()}247 value={mode()}
252 onChange={(e) => {248 onChange={(e) => {
253 const next = e.currentTarget.value;249 const next = e.currentTarget.value;
@@ -272,7 +268,7 @@ export function ExamForm(props: {
272 <div class="grid grid-cols-2 gap-2">268 <div class="grid grid-cols-2 gap-2">
273 <DatePicker269 <DatePicker
274 id="exam-starts"270 id="exam-starts"
275- class="h-10"271+ class="h-11"
276 placeholder={t("form.datePlaceholder")}272 placeholder={t("form.datePlaceholder")}
277 value={startsDate()}273 value={startsDate()}
278 required274 required
@@ -280,7 +276,7 @@ export function ExamForm(props: {
280 />276 />
281 <Input277 <Input
282 id="exam-starts-time"278 id="exam-starts-time"
283- class="h-10 rounded-sm font-mono placeholder:text-muted-foreground/45"279+ class="h-11 font-mono placeholder:text-muted-foreground/45"
284 inputMode="numeric"280 inputMode="numeric"
285 placeholder="14:30"281 placeholder="14:30"
286 pattern="[0-2][0-9]:[0-5][0-9]"282 pattern="[0-2][0-9]:[0-5][0-9]"
@@ -296,7 +292,7 @@ export function ExamForm(props: {
296 <div class="grid grid-cols-2 gap-2">292 <div class="grid grid-cols-2 gap-2">
297 <DatePicker293 <DatePicker
298 id="exam-ends"294 id="exam-ends"
299- class="h-10"295+ class="h-11"
300 placeholder={t("form.datePlaceholder")}296 placeholder={t("form.datePlaceholder")}
301 value={endsDate()}297 value={endsDate()}
302 required298 required
@@ -304,7 +300,7 @@ export function ExamForm(props: {
304 />300 />
305 <Input301 <Input
306 id="exam-ends-time"302 id="exam-ends-time"
307- class="h-10 rounded-sm font-mono placeholder:text-muted-foreground/45"303+ class="h-11 font-mono placeholder:text-muted-foreground/45"
308 inputMode="numeric"304 inputMode="numeric"
309 placeholder="15:30"305 placeholder="15:30"
310 pattern="[0-2][0-9]:[0-5][0-9]"306 pattern="[0-2][0-9]:[0-5][0-9]"
@@ -320,7 +316,7 @@ export function ExamForm(props: {
320 </div>316 </div>
321 317
322 {/* Section 3: Time Limit / Duration */}318 {/* Section 3: Time Limit / Duration */}
323- <div class="space-y-3 rounded-lg border bg-card p-3.5 shadow-sm">319+ <div class="space-y-3 rounded-2xl border border-indigo-500/15 bg-indigo-500/[0.03] p-4 shadow-sm">
324 <h3 class="text-xs font-semibold uppercase tracking-wider text-muted-foreground">{t("exams.sectionDuration")}</h3>320 <h3 class="text-xs font-semibold uppercase tracking-wider text-muted-foreground">{t("exams.sectionDuration")}</h3>
325 <label class="flex items-center gap-2 text-sm font-medium">321 <label class="flex items-center gap-2 text-sm font-medium">
326 <input322 <input
@@ -340,7 +336,7 @@ export function ExamForm(props: {
340 type="number"336 type="number"
341 min={1}337 min={1}
342 max={1440}338 max={1440}
343- class="mt-1.5 h-10 rounded-sm bg-background/60"339+ class="mt-1.5 h-11 bg-background/60"
344 placeholder="60"340 placeholder="60"
345 value={durationMinutes()}341 value={durationMinutes()}
346 onInput={(e) => setDurationMinutes(e.currentTarget.value)}342 onInput={(e) => setDurationMinutes(e.currentTarget.value)}
@@ -350,10 +346,10 @@ export function ExamForm(props: {
350 </div>346 </div>
351 347
352 {/* Section 4: Participation & Attempts */}348 {/* Section 4: Participation & Attempts */}
353- <div class="space-y-3 rounded-lg border bg-card p-3.5 shadow-sm">349+ <div class="space-y-3 rounded-2xl border border-emerald-500/15 bg-emerald-500/[0.03] p-4 shadow-sm">
354 <h3 class="text-xs font-semibold uppercase tracking-wider text-muted-foreground">{t("exams.sectionAccess")}</h3>350 <h3 class="text-xs font-semibold uppercase tracking-wider text-muted-foreground">{t("exams.sectionAccess")}</h3>
355 351
356- <div class="rounded-sm border bg-background/60 px-3 py-2">352+ <div class="rounded-xl border bg-background/60 px-3 py-2">
357 <label class="flex items-start gap-2 text-sm">353 <label class="flex items-start gap-2 text-sm">
358 <input354 <input
359 type="checkbox"355 type="checkbox"
@@ -373,7 +369,7 @@ export function ExamForm(props: {
373 <div class="ml-6 mt-2 flex items-center gap-2">369 <div class="ml-6 mt-2 flex items-center gap-2">
374 <Input370 <Input
375 id="exam-max-attempts"371 id="exam-max-attempts"
376- class="h-8 w-20 rounded-sm text-center"372+ class="h-10 w-20 text-center"
377 type="number"373 type="number"
378 min={1}374 min={1}
379 step={1}375 step={1}
@@ -386,7 +382,7 @@ export function ExamForm(props: {
386 </Show>382 </Show>
387 </div>383 </div>
388 384
389- <label class="flex items-start gap-2 rounded-sm border bg-background/60 px-3 py-2 text-sm">385+ <label class="flex items-start gap-2 rounded-xl border bg-background/60 px-3 py-2 text-sm">
390 <input386 <input
391 type="checkbox"387 type="checkbox"
392 class="mt-0.5 h-4 w-4 shrink-0 rounded border-border"388 class="mt-0.5 h-4 w-4 shrink-0 rounded border-border"
@@ -399,7 +395,7 @@ export function ExamForm(props: {
399 </div>395 </div>
400 </label>396 </label>
401 397
402- <label class="flex items-start gap-2 rounded-sm border bg-background/60 px-3 py-2 text-sm">398+ <label class="flex items-start gap-2 rounded-xl border bg-background/60 px-3 py-2 text-sm">
403 <input399 <input
404 type="checkbox"400 type="checkbox"
405 class="mt-0.5 h-4 w-4 shrink-0 rounded border-border"401 class="mt-0.5 h-4 w-4 shrink-0 rounded border-border"
src/components/notes/note-files-panel.tsxmodified+1 -1
@@ -167,7 +167,7 @@ export function NoteFilesPanel(props: { noteId: string; active: boolean }) {
167 };167 };
168 168
169 return (169 return (
170- <section class="space-y-3 rounded-2xl border border-border/70 bg-card/80 p-4 shadow-sm">170+ <section class="space-y-3 rounded-2xl border border-amber-500/15 bg-amber-500/[0.025] p-4 shadow-sm">
171 <Show when={flash()}>171 <Show when={flash()}>
172 <Alert variant="success">{flash()}</Alert>172 <Alert variant="success">{flash()}</Alert>
173 </Show>173 </Show>
src/components/notes/note-import-panel.tsxmodified+4 -4
@@ -69,7 +69,7 @@ export function NoteImportPanel(props: {
69 <div class="space-y-5">69 <div class="space-y-5">
70 <Show when={!file()}>70 <Show when={!file()}>
71 <div71 <div
72- class="flex min-h-[14rem] cursor-pointer flex-col items-center justify-center gap-3 rounded-2xl border border-dashed border-primary/40 bg-primary/[0.02] p-6 text-center transition-all hover:border-primary hover:bg-primary/[0.05]"72+ class="flex min-h-[14rem] cursor-pointer flex-col items-center justify-center gap-3 rounded-2xl border border-dashed border-amber-500/40 bg-amber-500/[0.03] p-6 text-center transition-all hover:border-amber-500/70 hover:bg-amber-500/[0.06]"
73 onClick={() => fileInput?.click()}73 onClick={() => fileInput?.click()}
74 >74 >
75 <input75 <input
@@ -81,7 +81,7 @@ export function NoteImportPanel(props: {
81 class="hidden"81 class="hidden"
82 onChange={(e) => void handleFileSelect(e.currentTarget.files?.[0])}82 onChange={(e) => void handleFileSelect(e.currentTarget.files?.[0])}
83 />83 />
84- <span class="flex h-12 w-12 items-center justify-center rounded-2xl border border-primary/20 bg-primary/10 text-primary shadow-sm">84+ <span class="flex h-12 w-12 items-center justify-center rounded-2xl border border-amber-500/20 bg-amber-500/10 text-amber-700 shadow-sm dark:text-amber-300">
85 <IconUploadCloud class="h-6 w-6" />85 <IconUploadCloud class="h-6 w-6" />
86 </span>86 </span>
87 <div class="space-y-1 max-w-sm mx-auto">87 <div class="space-y-1 max-w-sm mx-auto">
@@ -97,9 +97,9 @@ export function NoteImportPanel(props: {
97 97
98 <Show when={file()}>98 <Show when={file()}>
99 <div class="space-y-4">99 <div class="space-y-4">
100- <div class="flex items-center justify-between rounded-xl border border-border/80 bg-muted/30 px-4 py-3 text-xs">100+ <div class="flex items-center justify-between rounded-xl border border-amber-500/20 bg-amber-500/[0.04] px-4 py-3 text-xs">
101 <div class="flex items-center gap-2.5 min-w-0">101 <div class="flex items-center gap-2.5 min-w-0">
102- <IconFileText class="h-4 w-4 text-primary shrink-0" />102+ <IconFileText class="h-4 w-4 shrink-0 text-amber-700 dark:text-amber-300" />
103 <span class="truncate font-medium text-foreground">{file()?.name}</span>103 <span class="truncate font-medium text-foreground">{file()?.name}</span>
104 <span class="text-muted-foreground shrink-0">({formatBytes(file()?.size ?? 0)})</span>104 <span class="text-muted-foreground shrink-0">({formatBytes(file()?.size ?? 0)})</span>
105 </div>105 </div>
src/index.cssmodified+22 -1
@@ -221,7 +221,28 @@
221 }221 }
222 222
223 .detail-metric-card {223 .detail-metric-card {
224- @apply rounded-xl border border-black/[0.05] dark:border-white/[0.06] bg-muted/30 p-4 shadow-sm;224+ @apply relative overflow-hidden rounded-xl border border-black/[0.05] dark:border-white/[0.06] bg-muted/30 p-4 shadow-sm;
225+ }
226+
227+ .detail-metric-card::before {
228+ content: "";
229+ @apply absolute inset-x-0 top-0 h-0.5 bg-primary/40;
230+ }
231+
232+ .detail-metric-card:nth-child(4n+1)::before {
233+ @apply bg-sky-500/50;
234+ }
235+
236+ .detail-metric-card:nth-child(4n+2)::before {
237+ @apply bg-emerald-500/50;
238+ }
239+
240+ .detail-metric-card:nth-child(4n+3)::before {
241+ @apply bg-amber-500/50;
242+ }
243+
244+ .detail-metric-card:nth-child(4n+4)::before {
245+ @apply bg-indigo-500/50;
225 }246 }
226 247
227 .side-panel-body form {248 .side-panel-body form {
src/pages/admin-users-page.tsxmodified+12 -4
@@ -63,10 +63,10 @@ function AdminUsersContent() {
63 {error() && <Alert variant="destructive">{error()}</Alert>}63 {error() && <Alert variant="destructive">{error()}</Alert>}
64 64
65 <section class="grid gap-3 sm:grid-cols-2 xl:grid-cols-5">65 <section class="grid gap-3 sm:grid-cols-2 xl:grid-cols-5">
66- <For each={ROLES}>{(role) => <Metric label={t(`role.${role}` as MessageKey)} value={roleCount(role)} />}</For>66+ <For each={ROLES}>{(role) => <Metric role={role} label={t(`role.${role}` as MessageKey)} value={roleCount(role)} />}</For>
67 </section>67 </section>
68 68
69- <div class="data-shell space-y-4 p-4">69+ <div class="data-shell space-y-4 border-violet-500/15 bg-violet-500/[0.025] p-4">
70 <div class="flex flex-wrap items-center justify-between gap-3">70 <div class="flex flex-wrap items-center justify-between gap-3">
71 <div>71 <div>
72 <h2 class="font-display text-lg font-semibold">{t("nav.users")}</h2>72 <h2 class="font-display text-lg font-semibold">{t("nav.users")}</h2>
@@ -121,9 +121,17 @@ function AdminUsersContent() {
121 );121 );
122 }122 }
123 123
124-function Metric(props: { label: string; value: number }) {124+const ROLE_METRIC_TONE: Record<Role, string> = {
125+ student: "border-sky-500/20 bg-sky-500/[0.03]",
126+ parent: "border-violet-500/20 bg-violet-500/[0.03]",
127+ teacher: "border-emerald-500/20 bg-emerald-500/[0.03]",
128+ manager: "border-amber-500/20 bg-amber-500/[0.03]",
129+ admin: "border-rose-500/20 bg-rose-500/[0.03]",
130+};
131+
132+function Metric(props: { role: Role; label: string; value: number }) {
125 return (133 return (
126- <article class="data-shell p-4">134+ <article class={`data-shell p-4 ${ROLE_METRIC_TONE[props.role]}`}>
127 <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{props.label}</p>135 <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{props.label}</p>
128 <p class="mono mt-2 text-2xl font-semibold tabular-nums">{props.value}</p>136 <p class="mono mt-2 text-2xl font-semibold tabular-nums">{props.value}</p>
129 </article>137 </article>
src/pages/course-detail-page.tsxmodified+17 -17
@@ -73,7 +73,7 @@ function CourseDetailContent() {
73 const [terms] = createResource(async () => (await getTerms({ limit: 100 })).items);73 const [terms] = createResource(async () => (await getTerms({ limit: 100 })).items);
74 const [settings] = createResource(() => getSettings());74 const [settings] = createResource(() => getSettings());
75 const [exams, { refetch: refetchExams }] = createResource(75 const [exams, { refetch: refetchExams }] = createResource(
76- () => (openSections().exams ? id() : null),76+ () => id(),
77 async (courseId) => (courseId ? (await getCourseExams(courseId)).items : []),77 async (courseId) => (courseId ? (await getCourseExams(courseId)).items : []),
78 );78 );
79 const hasCourseManagementRights = () => {79 const hasCourseManagementRights = () => {
@@ -95,7 +95,7 @@ function CourseDetailContent() {
95 return hasMinRole(u.role, "manager");95 return hasMinRole(u.role, "manager");
96 };96 };
97 const [roster, { refetch: refetchRoster }] = createResource(97 const [roster, { refetch: refetchRoster }] = createResource(
98- () => (hasCourseManagementRights() && openSections().roster ? id() : null),98+ () => (hasCourseManagementRights() ? id() : null),
99 async (courseId) => (courseId ? (await getCourseEnrollments(courseId)).items : []),99 async (courseId) => (courseId ? (await getCourseEnrollments(courseId)).items : []),
100 );100 );
101 const [mine] = createResource(101 const [mine] = createResource(
@@ -207,7 +207,7 @@ function CourseDetailContent() {
207 accessorFn: (row) => examKindLabel(String(row.kind), t),207 accessorFn: (row) => examKindLabel(String(row.kind), t),
208 header: t("exams.kind"),208 header: t("exams.kind"),
209 cell: (cell) => (209 cell: (cell) => (
210- <Badge variant="outline" class="rounded-sm capitalize">210+ <Badge variant="outline" class="rounded-full capitalize">
211 {examKindLabel(String(cell.row.original.kind), t)}211 {examKindLabel(String(cell.row.original.kind), t)}
212 <Show when={examWeight(cell.row.original, settings()?.exam_kinds) != null}>212 <Show when={examWeight(cell.row.original, settings()?.exam_kinds) != null}>
213 {(weight) => <span class="ml-1 text-muted-foreground">({t("courses.weight")}: {weight()})</span>}213 {(weight) => <span class="ml-1 text-muted-foreground">({t("courses.weight")}: {weight()})</span>}
@@ -219,7 +219,7 @@ function CourseDetailContent() {
219 id: "mode",219 id: "mode",
220 accessorFn: (row) => examModeLabel(row.mode),220 accessorFn: (row) => examModeLabel(row.mode),
221 header: t("exams.mode"),221 header: t("exams.mode"),
222- cell: (cell) => <Badge variant="secondary" class="rounded-sm">{examModeLabel(cell.row.original.mode)}</Badge>,222+ cell: (cell) => <Badge variant="secondary" class="rounded-full">{examModeLabel(cell.row.original.mode)}</Badge>,
223 },223 },
224 {224 {
225 id: "status",225 id: "status",
@@ -227,7 +227,7 @@ function CourseDetailContent() {
227 header: t("events.status"),227 header: t("events.status"),
228 cell: (cell) => (228 cell: (cell) => (
229 <Show when={cell.row.original.draft} fallback="—">229 <Show when={cell.row.original.draft} fallback="—">
230- <Badge variant="secondary" class="rounded-sm">{t("exams.draft")}</Badge>230+ <Badge variant="secondary" class="rounded-full">{t("exams.draft")}</Badge>
231 </Show>231 </Show>
232 ),232 ),
233 },233 },
@@ -285,19 +285,19 @@ function CourseDetailContent() {
285 actions={285 actions={
286 <div class="detail-action-group">286 <div class="detail-action-group">
287 <Link to={courseListPath(c().kind)}>287 <Link to={courseListPath(c().kind)}>
288- <Button variant="ghost" size="sm" class="w-full rounded-sm sm:w-auto">288+ <Button variant="ghost" size="sm" class="w-full rounded-xl sm:w-auto">
289 <IconChevronLeft class="h-4 w-4" />289 <IconChevronLeft class="h-4 w-4" />
290 {t("common.back")}290 {t("common.back")}
291 </Button>291 </Button>
292 </Link>292 </Link>
293 <Show when={canManage()}>293 <Show when={canManage()}>
294 <div class="detail-action-divider">294 <div class="detail-action-divider">
295- <Button type="button" variant="outline" size="sm" class="flex-1 rounded-sm sm:flex-none" onClick={startEdit}>295+ <Button type="button" variant="outline" size="sm" class="flex-1 rounded-xl sm:flex-none" onClick={startEdit}>
296 <IconEdit class="h-4 w-4" />296 <IconEdit class="h-4 w-4" />
297 {t("common.edit")}297 {t("common.edit")}
298 </Button>298 </Button>
299 <Show when={canDeleteCourse()}>299 <Show when={canDeleteCourse()}>
300- <Button type="button" variant="destructive" size="sm" class="flex-1 rounded-sm sm:flex-none" onClick={() => setDeleteOpen(true)}>300+ <Button type="button" variant="destructive" size="sm" class="flex-1 rounded-xl sm:flex-none" onClick={() => setDeleteOpen(true)}>
301 <IconTrash class="h-4 w-4" />301 <IconTrash class="h-4 w-4" />
302 {t("courses.delete")}302 {t("courses.delete")}
303 </Button>303 </Button>
@@ -415,10 +415,10 @@ function CourseDetailContent() {
415 <Input id="edit-course-capacity" type="number" min={1} value={capacity()} placeholder={t("courses.capacityOptional")} onInput={(e) => setCapacity(e.currentTarget.value)} />415 <Input id="edit-course-capacity" type="number" min={1} value={capacity()} placeholder={t("courses.capacityOptional")} onInput={(e) => setCapacity(e.currentTarget.value)} />
416 </div>416 </div>
417 <div class="flex flex-wrap gap-2">417 <div class="flex flex-wrap gap-2">
418- <Button type="submit" class="rounded-sm" disabled={pending()}>418+ <Button type="submit" class="rounded-xl" disabled={pending()}>
419 {t("common.update")}419 {t("common.update")}
420 </Button>420 </Button>
421- <Button type="button" variant="outline" class="rounded-sm" onClick={() => setEditing(false)}>421+ <Button type="button" variant="outline" class="rounded-xl" onClick={() => setEditing(false)}>
422 {t("common.cancel")}422 {t("common.cancel")}
423 </Button>423 </Button>
424 </div>424 </div>
@@ -438,11 +438,11 @@ function CourseDetailContent() {
438 description={createdCourseExam() ? t("exams.step2Questions") : c().title}438 description={createdCourseExam() ? t("exams.step2Questions") : c().title}
439 size={examCreateStep() === "questions" ? "wide" : "default"}439 size={examCreateStep() === "questions" ? "wide" : "default"}
440 >440 >
441- <div class="mb-4 flex border-b border-border/60 pb-2">441+ <div class="mb-4 flex rounded-2xl border border-indigo-500/15 bg-indigo-500/[0.03] p-1">
442 <button442 <button
443 type="button"443 type="button"
444 class={cn(444 class={cn(
445- "px-3 py-1.5 text-xs font-semibold rounded-md transition-colors",445+ "rounded-xl px-3 py-2 text-xs font-semibold transition-colors",
446 examCreateStep() === "details"446 examCreateStep() === "details"
447 ? "bg-primary text-primary-foreground shadow-xs"447 ? "bg-primary text-primary-foreground shadow-xs"
448 : "text-muted-foreground hover:bg-muted/50",448 : "text-muted-foreground hover:bg-muted/50",
@@ -455,7 +455,7 @@ function CourseDetailContent() {
455 type="button"455 type="button"
456 disabled={!createdCourseExam()}456 disabled={!createdCourseExam()}
457 class={cn(457 class={cn(
458- "px-3 py-1.5 text-xs font-semibold rounded-md transition-colors",458+ "rounded-xl px-3 py-2 text-xs font-semibold transition-colors",
459 examCreateStep() === "questions"459 examCreateStep() === "questions"
460 ? "bg-primary text-primary-foreground shadow-xs"460 ? "bg-primary text-primary-foreground shadow-xs"
461 : createdCourseExam()461 : createdCourseExam()
@@ -535,10 +535,10 @@ function CourseDetailContent() {
535 role="student"535 role="student"
536 />536 />
537 <div class="flex flex-wrap gap-2">537 <div class="flex flex-wrap gap-2">
538- <Button type="submit" class="rounded-sm" disabled={pending()}>538+ <Button type="submit" class="rounded-xl" disabled={pending()}>
539 {t("courses.enroll")}539 {t("courses.enroll")}
540 </Button>540 </Button>
541- <Button type="button" variant="outline" class="rounded-sm" onClick={() => setShowEnrollPanel(false)}>541+ <Button type="button" variant="outline" class="rounded-xl" onClick={() => setShowEnrollPanel(false)}>
542 {t("common.cancel")}542 {t("common.cancel")}
543 </Button>543 </Button>
544 </div>544 </div>
@@ -592,7 +592,7 @@ function CourseDetailContent() {
592 </Show>592 </Show>
593 }593 }
594 >594 >
595- <CourseSubjectsPanel courseId={id()} canManage={canManage()} active={openSections().subjects} createOpen={showSubjectForm()} onCreateOpenChange={setShowSubjectForm} onCountChange={setSubjectCount} />595+ <CourseSubjectsPanel courseId={id()} canManage={canManage()} active createOpen={showSubjectForm()} onCreateOpenChange={setShowSubjectForm} onCountChange={setSubjectCount} />
596 </SectionDisclosure>596 </SectionDisclosure>
597 597
598 <SectionDisclosure598 <SectionDisclosure
@@ -640,7 +640,7 @@ function CourseDetailContent() {
640 courseId={id()}640 courseId={id()}
641 roster={roster() ?? []}641 roster={roster() ?? []}
642 canManage={canManage()}642 canManage={canManage()}
643- active={openSections().sessions}643+ active
644 createOpen={showSessionForm()}644 createOpen={showSessionForm()}
645 onCreateOpenChange={setShowSessionForm}645 onCreateOpenChange={setShowSessionForm}
646 onCountChange={setSessionCount}646 onCountChange={setSessionCount}
src/pages/courses-page.tsxmodified+5 -5
@@ -90,7 +90,7 @@ function CoursesContent() {
90 <div class="min-w-0 space-y-1">90 <div class="min-w-0 space-y-1">
91 <p class="truncate font-medium">{cell.row.original.title}</p>91 <p class="truncate font-medium">{cell.row.original.title}</p>
92 <Show when={isStudent()}>92 <Show when={isStudent()}>
93- <Badge variant="secondary" class="rounded-sm">{t("courses.enrolled")}</Badge>93+ <Badge variant="secondary" class="rounded-full">{t("courses.enrolled")}</Badge>
94 </Show>94 </Show>
95 </div>95 </div>
96 ),96 ),
@@ -105,7 +105,7 @@ function CoursesContent() {
105 id: "term",105 id: "term",
106 accessorFn: (course) => termName(course.term),106 accessorFn: (course) => termName(course.term),
107 header: t("terms.term"),107 header: t("terms.term"),
108- cell: (cell) => <Badge variant="outline" class="mono max-w-full rounded-sm text-[11px]"><span class="truncate">{termName(cell.row.original.term)}</span></Badge>,108+ cell: (cell) => <Badge variant="outline" class="mono max-w-full rounded-full text-[11px]"><span class="truncate">{termName(cell.row.original.term)}</span></Badge>,
109 },109 },
110 {110 {
111 id: "creator",111 id: "creator",
@@ -224,17 +224,17 @@ function CoursesContent() {
224 </Show>224 </Show>
225 {error() && <p class="text-sm text-destructive">{error()}</p>}225 {error() && <p class="text-sm text-destructive">{error()}</p>}
226 <div class="flex flex-wrap gap-2">226 <div class="flex flex-wrap gap-2">
227- <Button type="submit" class="rounded-sm" disabled={pending()}>227+ <Button type="submit" class="rounded-xl" disabled={pending()}>
228 {t("common.create")}228 {t("common.create")}
229 </Button>229 </Button>
230- <Button type="button" variant="outline" class="rounded-sm" onClick={() => setShowForm(false)}>230+ <Button type="button" variant="outline" class="rounded-xl" onClick={() => setShowForm(false)}>
231 {t("common.cancel")}231 {t("common.cancel")}
232 </Button>232 </Button>
233 </div>233 </div>
234 </form>234 </form>
235 </SidePanel>235 </SidePanel>
236 236
237- <section class="data-shell space-y-4 p-4">237+ <section class="data-shell space-y-4 border-sky-500/15 bg-sky-500/[0.025] p-4">
238 <Show when={flash()}>238 <Show when={flash()}>
239 <Alert variant="success">{flash()}</Alert>239 <Alert variant="success">{flash()}</Alert>
240 </Show>240 </Show>
src/pages/event-detail-page.tsxmodified+5 -5
@@ -175,18 +175,18 @@ function EventDetailContent() {
175 actions={175 actions={
176 <div class="detail-action-group">176 <div class="detail-action-group">
177 <Link to="/events">177 <Link to="/events">
178- <Button variant="ghost" size="sm" class="w-full rounded-sm sm:w-auto">178+ <Button variant="ghost" size="sm" class="w-full rounded-xl sm:w-auto">
179 <IconChevronLeft class="h-4 w-4" />179 <IconChevronLeft class="h-4 w-4" />
180 {t("common.back")}180 {t("common.back")}
181 </Button>181 </Button>
182 </Link>182 </Link>
183 <Show when={canManage()}>183 <Show when={canManage()}>
184 <div class="detail-action-divider">184 <div class="detail-action-divider">
185- <Button type="button" variant="outline" size="sm" class="flex-1 rounded-sm sm:flex-none" onClick={() => setEditing(true)}>185+ <Button type="button" variant="outline" size="sm" class="flex-1 rounded-xl sm:flex-none" onClick={() => setEditing(true)}>
186 <IconEdit class="h-4 w-4" />186 <IconEdit class="h-4 w-4" />
187 {t("common.edit")}187 {t("common.edit")}
188 </Button>188 </Button>
189- <Button type="button" variant="destructive" size="sm" class="flex-1 rounded-sm sm:flex-none" disabled={pending()} onClick={() => setDeleteOpen(true)}>189+ <Button type="button" variant="destructive" size="sm" class="flex-1 rounded-xl sm:flex-none" disabled={pending()} onClick={() => setDeleteOpen(true)}>
190 <IconTrash class="h-4 w-4" />190 <IconTrash class="h-4 w-4" />
191 {t("common.delete")}191 {t("common.delete")}
192 </Button>192 </Button>
@@ -290,7 +290,7 @@ function EventDetailContent() {
290 />290 />
291 <Button291 <Button
292 type="button"292 type="button"
293- class="rounded-sm"293+ class="rounded-xl"
294 disabled={pending()}294 disabled={pending()}
295 onClick={() => {295 onClick={() => {
296 const uid = registrationUserId().trim();296 const uid = registrationUserId().trim();
@@ -349,7 +349,7 @@ function EventDetailContent() {
349 />349 />
350 <Button350 <Button
351 type="button"351 type="button"
352- class="w-full rounded-sm sm:w-auto"352+ class="w-full rounded-xl sm:w-auto"
353 disabled={pending()}353 disabled={pending()}
354 onClick={() => {354 onClick={() => {
355 const uid = otherUserId().trim();355 const uid = otherUserId().trim();
src/pages/events-page.tsxmodified+3 -3
@@ -106,7 +106,7 @@ function EventsContent() {
106 id: "audience",106 id: "audience",
107 accessorFn: (event) => audienceLabel(event.audience),107 accessorFn: (event) => audienceLabel(event.audience),
108 header: t("events.audience"),108 header: t("events.audience"),
109- cell: (cell) => <Badge variant="outline" class="rounded-sm">{audienceLabel(cell.row.original.audience)}</Badge>,109+ cell: (cell) => <Badge variant="outline" class="rounded-full">{audienceLabel(cell.row.original.audience)}</Badge>,
110 },110 },
111 {111 {
112 id: "status",112 id: "status",
@@ -116,7 +116,7 @@ function EventsContent() {
116 cell: (cell) => {116 cell: (cell) => {
117 const status = eventStatus(cell.row.original);117 const status = eventStatus(cell.row.original);
118 return (118 return (
119- <Badge variant="outline" class={cn("w-28 justify-center rounded-sm", scheduleStatusClass(status))}>119+ <Badge variant="outline" class={cn("w-28 justify-center rounded-full", scheduleStatusClass(status))}>
120 <span class={cn("mr-1.5 h-1.5 w-1.5 rounded-full", scheduleStatusDotClass(status))} />120 <span class={cn("mr-1.5 h-1.5 w-1.5 rounded-full", scheduleStatusDotClass(status))} />
121 {statusLabel(status)}121 {statusLabel(status)}
122 </Badge>122 </Badge>
@@ -193,7 +193,7 @@ function EventsContent() {
193 </Show>193 </Show>
194 {error() && <p class="text-sm text-destructive">{error()}</p>}194 {error() && <p class="text-sm text-destructive">{error()}</p>}
195 195
196- <section class="data-shell space-y-4 p-4">196+ <section class="data-shell space-y-4 border-amber-500/15 bg-amber-500/[0.025] p-4">
197 <Suspense fallback={<DataTableSkeleton columns={5} rows={8} />}>197 <Suspense fallback={<DataTableSkeleton columns={5} rows={8} />}>
198 <Show when={list.error}>198 <Show when={list.error}>
199 <Alert variant="destructive">{formatApiError(list.error)}</Alert>199 <Alert variant="destructive">{formatApiError(list.error)}</Alert>
src/pages/exam-detail-page.tsxmodified+15 -19
@@ -107,7 +107,7 @@ function ExamDetailContent() {
107 const isScheduled = () => isSittable();107 const isScheduled = () => isSittable();
108 108
109 const [ownResult] = createResource(109 const [ownResult] = createResource(
110- () => (isStudent() && openSections().ownResult ? id() : null),110+ () => (isStudent() ? id() : null),
111 async (examId) => {111 async (examId) => {
112 if (!examId) return null;112 if (!examId) return null;
113 try {113 try {
@@ -132,7 +132,7 @@ function ExamDetailContent() {
132 );132 );
133 133
134 const [results, { refetch: refetchResults }] = createResource(134 const [results, { refetch: refetchResults }] = createResource(
135- () => (hasCourseManagementRights() && openSections().results ? [id(), resultPage()] as const : null),135+ () => (hasCourseManagementRights() ? [id(), resultPage()] as const : null),
136 async (source) => {136 async (source) => {
137 if (!source) return { items: [], total: 0, limit: RESULT_PAGE_SIZE, offset: 0 };137 if (!source) return { items: [], total: 0, limit: RESULT_PAGE_SIZE, offset: 0 };
138 const [examId, page] = source;138 const [examId, page] = source;
@@ -155,7 +155,7 @@ function ExamDetailContent() {
155 },155 },
156 );156 );
157 const [stats] = createResource(157 const [stats] = createResource(
158- () => (hasCourseManagementRights() && openSections().statistics ? id() : null),158+ () => (hasCourseManagementRights() ? id() : null),
159 async (examId) => {159 async (examId) => {
160 if (!examId) return null;160 if (!examId) return null;
161 try {161 try {
@@ -372,7 +372,7 @@ function ExamDetailContent() {
372 actions={372 actions={
373 <div class="detail-action-group">373 <div class="detail-action-group">
374 <Link to="/exams">374 <Link to="/exams">
375- <Button variant="ghost" size="sm" class="w-full rounded-sm sm:w-auto">375+ <Button variant="ghost" size="sm" class="w-full rounded-xl sm:w-auto">
376 <IconChevronLeft class="h-4 w-4" />376 <IconChevronLeft class="h-4 w-4" />
377 {t("common.back")}377 {t("common.back")}
378 </Button>378 </Button>
@@ -382,14 +382,14 @@ function ExamDetailContent() {
382 <Show when={noAttemptsLeft()}382 <Show when={noAttemptsLeft()}
383 fallback={383 fallback={
384 <Link to="/exam-room/$id" params={{ id: id() }}>384 <Link to="/exam-room/$id" params={{ id: id() }}>
385- <Button size="sm" class="flex-1 rounded-sm sm:flex-none">385+ <Button size="sm" class="flex-1 rounded-xl sm:flex-none">
386 <IconExam class="h-4 w-4" />386 <IconExam class="h-4 w-4" />
387 {ownAttempt()?.status === "in_progress" && !ownAttemptClosedByExit() ? t("attempt.resume") : t("attempt.openRoom")}387 {ownAttempt()?.status === "in_progress" && !ownAttemptClosedByExit() ? t("attempt.resume") : t("attempt.openRoom")}
388 </Button>388 </Button>
389 </Link>389 </Link>
390 }390 }
391 >391 >
392- <Badge variant="secondary" class="flex-1 rounded-sm px-3 py-2 text-center sm:flex-none">392+ <Badge variant="secondary" class="flex-1 rounded-xl px-3 py-2 text-center sm:flex-none">
393 {ownAttempt()?.status === "submitted" ? t("attempt.submitted") : ownAttempt()?.status === "expired" ? t("attempt.expired") : t("attempt.noAttemptsLeft")}393 {ownAttempt()?.status === "submitted" ? t("attempt.submitted") : ownAttempt()?.status === "expired" ? t("attempt.expired") : t("attempt.noAttemptsLeft")}
394 </Badge>394 </Badge>
395 </Show>395 </Show>
@@ -397,7 +397,7 @@ function ExamDetailContent() {
397 </Show>397 </Show>
398 <Show when={hasCourseManagementRights() && !isDraft() && !isUpcoming() && isSittable()}>398 <Show when={hasCourseManagementRights() && !isDraft() && !isUpcoming() && isSittable()}>
399 <Link to="/exams/$id/live" params={{ id: id() }}>399 <Link to="/exams/$id/live" params={{ id: id() }}>
400- <Button variant="outline" size="sm" class="flex-1 rounded-sm sm:flex-none">400+ <Button variant="outline" size="sm" class="flex-1 rounded-xl sm:flex-none">
401 <IconEye class="h-4 w-4" />401 <IconEye class="h-4 w-4" />
402 {isFinished() ? t("exams.finalState") : t("exams.liveMonitor")}402 {isFinished() ? t("exams.finalState") : t("exams.liveMonitor")}
403 </Button>403 </Button>
@@ -405,11 +405,11 @@ function ExamDetailContent() {
405 </Show>405 </Show>
406 <Show when={canManage()}>406 <Show when={canManage()}>
407 <div class="detail-action-divider">407 <div class="detail-action-divider">
408- <Button type="button" variant="outline" size="sm" class="flex-1 rounded-sm sm:flex-none" onClick={() => setEditing(true)}>408+ <Button type="button" variant="outline" size="sm" class="flex-1 rounded-xl sm:flex-none" onClick={() => setEditing(true)}>
409 <IconEdit class="h-4 w-4" />409 <IconEdit class="h-4 w-4" />
410 {t("common.edit")}410 {t("common.edit")}
411 </Button>411 </Button>
412- <Button type="button" variant="destructive" size="sm" class="flex-1 rounded-sm sm:flex-none" disabled={pending()} onClick={() => setDeleteOpen(true)}>412+ <Button type="button" variant="destructive" size="sm" class="flex-1 rounded-xl sm:flex-none" disabled={pending()} onClick={() => setDeleteOpen(true)}>
413 <IconTrash class="h-4 w-4" />413 <IconTrash class="h-4 w-4" />
414 {t("common.delete")}414 {t("common.delete")}
415 </Button>415 </Button>
@@ -425,7 +425,7 @@ function ExamDetailContent() {
425 <Badge425 <Badge
426 variant="outline"426 variant="outline"
427 class={cn(427 class={cn(
428- "mt-2 w-fit rounded-sm capitalize",428+ "mt-2 w-fit rounded-full capitalize",
429 scheduleStatusClass(examStatusTone(detailStatus())),429 scheduleStatusClass(examStatusTone(detailStatus())),
430 )}430 )}
431 >431 >
@@ -672,9 +672,7 @@ function ExamDetailContent() {
672 </Show>672 </Show>
673 }673 }
674 >674 >
675- <Show when={openSections().questions}>675+ <ExamQuestionsPanel examId={id()} courseId={ex().course} readOnly={isFinished()} embedded createOpen={questionCreateOpen()} onCreateOpenChange={setQuestionCreateOpen} />
676- <ExamQuestionsPanel examId={id()} courseId={ex().course} readOnly={isFinished()} embedded createOpen={questionCreateOpen()} onCreateOpenChange={setQuestionCreateOpen} />
677- </Show>
678 </SectionDisclosure>676 </SectionDisclosure>
679 677
680 <SidePanel678 <SidePanel
@@ -704,12 +702,10 @@ function ExamDetailContent() {
704 description={`${resultTotal()} ${t("exams.studentResults")}`}702 description={`${resultTotal()} ${t("exams.studentResults")}`}
705 actions={703 actions={
706 <Show when={hasCourseManagementRights()}>704 <Show when={hasCourseManagementRights()}>
707- <div class="flex items-center gap-2">705+ <Button type="button" variant="outline" size="sm" class="rounded-lg" disabled={isDraft()} onClick={() => setGradeOpen(true)}>
708- <Button type="button" variant="outline" size="sm" class="rounded-lg" disabled={isDraft()} onClick={() => setGradeOpen(true)}>706+ <IconEdit class="h-4 w-4" />
709- <IconEdit class="h-4 w-4" />707+ {t("exams.gradeStudent")}
710- {t("exams.gradeStudent")}708+ </Button>
711- </Button>
712- </div>
713 </Show>709 </Show>
714 }710 }
715 >711 >
src/pages/exams-page.tsxmodified+10 -10
@@ -171,7 +171,7 @@ function ExamsContent() {
171 cell: (cell) => {171 cell: (cell) => {
172 const status = cell.row.original.displayStatus;172 const status = cell.row.original.displayStatus;
173 return (173 return (
174- <Badge variant="outline" class={cn("min-w-28 justify-center whitespace-nowrap rounded-sm", scheduleStatusClass(examStatusTone(status)))}>174+ <Badge variant="outline" class={cn("min-w-28 justify-center whitespace-nowrap rounded-full", scheduleStatusClass(examStatusTone(status)))}>
175 <span class={cn("mr-1.5 h-1.5 w-1.5 rounded-full", scheduleStatusDotClass(examStatusTone(status)))} />175 <span class={cn("mr-1.5 h-1.5 w-1.5 rounded-full", scheduleStatusDotClass(examStatusTone(status)))} />
176 {statusLabel(status)}176 {statusLabel(status)}
177 </Badge>177 </Badge>
@@ -275,7 +275,7 @@ function ExamsContent() {
275 />275 />
276 </div>276 </div>
277 277
278- <section class="data-shell space-y-4 p-4">278+ <section class="data-shell space-y-4 border-indigo-500/15 bg-indigo-500/[0.025] p-4">
279 <Show when={flash()}>279 <Show when={flash()}>
280 <Alert variant="success">{flash()}</Alert>280 <Alert variant="success">{flash()}</Alert>
281 </Show>281 </Show>
@@ -358,11 +358,11 @@ function ExamsContent() {
358 description={createdExam() ? t("exams.step2Questions") : t("exams.subtitle")}358 description={createdExam() ? t("exams.step2Questions") : t("exams.subtitle")}
359 size={createStep() === "questions" ? "wide" : "default"}359 size={createStep() === "questions" ? "wide" : "default"}
360 >360 >
361- <div class="mb-4 flex border-b border-border/60 pb-2">361+ <div class="mb-4 flex rounded-2xl border border-indigo-500/15 bg-indigo-500/[0.03] p-1">
362 <button362 <button
363 type="button"363 type="button"
364 class={cn(364 class={cn(
365- "px-3 py-1.5 text-xs font-semibold rounded-md transition-colors",365+ "rounded-xl px-3 py-2 text-xs font-semibold transition-colors",
366 createStep() === "details"366 createStep() === "details"
367 ? "bg-primary text-primary-foreground shadow-xs"367 ? "bg-primary text-primary-foreground shadow-xs"
368 : "text-muted-foreground hover:bg-muted/50",368 : "text-muted-foreground hover:bg-muted/50",
@@ -375,7 +375,7 @@ function ExamsContent() {
375 type="button"375 type="button"
376 disabled={!createdExam()}376 disabled={!createdExam()}
377 class={cn(377 class={cn(
378- "px-3 py-1.5 text-xs font-semibold rounded-md transition-colors",378+ "rounded-xl px-3 py-2 text-xs font-semibold transition-colors",
379 createStep() === "questions"379 createStep() === "questions"
380 ? "bg-primary text-primary-foreground shadow-xs"380 ? "bg-primary text-primary-foreground shadow-xs"
381 : createdExam()381 : createdExam()
@@ -390,11 +390,11 @@ function ExamsContent() {
390 390
391 <Show when={createStep() === "details"}>391 <Show when={createStep() === "details"}>
392 <Show when={!createdExam()}>392 <Show when={!createdExam()}>
393- <div class="mb-4 space-y-1.5">393+ <div class="mb-4 space-y-1.5 rounded-2xl border border-sky-500/15 bg-sky-500/[0.03] p-4">
394 <label class="text-sm font-medium" for="exam-course">394 <label class="text-sm font-medium" for="exam-course">
395 {t("exams.selectCourse")}395 {t("exams.selectCourse")}
396 </label>396 </label>
397- <Select id="exam-course" class="rounded-sm" value={selectedCourseId()} required onChange={(event) => setSelectedCourseId(event.currentTarget.value)}>397+ <Select id="exam-course" value={selectedCourseId()} required onChange={(event) => setSelectedCourseId(event.currentTarget.value)}>
398 <option value="">{t("exams.selectCourse")}</option>398 <option value="">{t("exams.selectCourse")}</option>
399 <For each={manageableCourses()}>{(course: Course) => <option value={course.id}>{course.title}</option>}</For>399 <For each={manageableCourses()}>{(course: Course) => <option value={course.id}>{course.title}</option>}</For>
400 </Select>400 </Select>
@@ -439,11 +439,11 @@ function ExamsContent() {
439 <Show when={editingExam()}>439 <Show when={editingExam()}>
440 {(exam) => (440 {(exam) => (
441 <div class="space-y-4">441 <div class="space-y-4">
442- <div class="flex border-b border-border/60 pb-2">442+ <div class="flex rounded-2xl border border-indigo-500/15 bg-indigo-500/[0.03] p-1">
443 <button443 <button
444 type="button"444 type="button"
445 class={cn(445 class={cn(
446- "px-3 py-1.5 text-xs font-semibold rounded-md transition-colors",446+ "rounded-xl px-3 py-2 text-xs font-semibold transition-colors",
447 editTab() === "details"447 editTab() === "details"
448 ? "bg-primary text-primary-foreground shadow-xs"448 ? "bg-primary text-primary-foreground shadow-xs"
449 : "text-muted-foreground hover:bg-muted/50",449 : "text-muted-foreground hover:bg-muted/50",
@@ -455,7 +455,7 @@ function ExamsContent() {
455 <button455 <button
456 type="button"456 type="button"
457 class={cn(457 class={cn(
458- "px-3 py-1.5 text-xs font-semibold rounded-md transition-colors",458+ "rounded-xl px-3 py-2 text-xs font-semibold transition-colors",
459 editTab() === "questions"459 editTab() === "questions"
460 ? "bg-primary text-primary-foreground shadow-xs"460 ? "bg-primary text-primary-foreground shadow-xs"
461 : "text-muted-foreground hover:bg-muted/50",461 : "text-muted-foreground hover:bg-muted/50",
src/pages/messages-page.tsxmodified+23 -23
@@ -120,14 +120,14 @@ export default function MessagesPage() {
120 <div class="grid min-h-[calc(100vh-7rem)] lg:[grid-template-columns:var(--messages-cols)]" style={{ "--messages-cols": gridTemplate() }}>120 <div class="grid min-h-[calc(100vh-7rem)] lg:[grid-template-columns:var(--messages-cols)]" style={{ "--messages-cols": gridTemplate() }}>
121 <aside class="border-b border-primary/20 bg-primary/[0.07] p-3 lg:border-b-0">121 <aside class="border-b border-primary/20 bg-primary/[0.07] p-3 lg:border-b-0">
122 <div class="space-y-3">122 <div class="space-y-3">
123- <Button class="w-full rounded-md shadow-sm" onClick={() => { setSelectedId(""); setComposeOpen(true); }}>123+ <Button class="w-full rounded-xl shadow-sm" onClick={() => { setSelectedId(""); setComposeOpen(true); }}>
124 <IconPlus class="h-4 w-4" />124 <IconPlus class="h-4 w-4" />
125 {t("messages.newMessage")}125 {t("messages.newMessage")}
126 </Button>126 </Button>
127 <div class="space-y-1">127 <div class="space-y-1">
128 <Button 128 <Button
129 variant={folder() === "inbox" ? "secondary" : "ghost"} 129 variant={folder() === "inbox" ? "secondary" : "ghost"}
130- class={cn("h-9 w-full justify-start rounded-md", folder() !== "inbox" && "text-muted-foreground", folder() === "inbox" && "bg-primary/10 text-primary")}130+ class={cn("h-11 w-full justify-start rounded-xl", folder() !== "inbox" && "text-muted-foreground", folder() === "inbox" && "bg-sky-500/10 text-sky-700 dark:text-sky-300")}
131 onClick={() => startTransition(() => { setFolder("inbox"); setPage(1); setSelectedId(""); })}131 onClick={() => startTransition(() => { setFolder("inbox"); setPage(1); setSelectedId(""); })}
132 >132 >
133 <IconMessage class="h-4 w-4" />133 <IconMessage class="h-4 w-4" />
@@ -138,7 +138,7 @@ export default function MessagesPage() {
138 </Button>138 </Button>
139 <Button 139 <Button
140 variant={folder() === "sent" ? "secondary" : "ghost"} 140 variant={folder() === "sent" ? "secondary" : "ghost"}
141- class={cn("h-9 w-full justify-start rounded-md", folder() !== "sent" && "text-muted-foreground")}141+ class={cn("h-11 w-full justify-start rounded-xl", folder() !== "sent" && "text-muted-foreground", folder() === "sent" && "bg-emerald-500/10 text-emerald-700 dark:text-emerald-300")}
142 onClick={() => startTransition(() => { setFolder("sent"); setPage(1); setSelectedId(""); })}142 onClick={() => startTransition(() => { setFolder("sent"); setPage(1); setSelectedId(""); })}
143 >143 >
144 <IconSend class="h-4 w-4" />144 <IconSend class="h-4 w-4" />
@@ -146,7 +146,7 @@ export default function MessagesPage() {
146 </Button>146 </Button>
147 <Button 147 <Button
148 variant={folder() === "archive" ? "secondary" : "ghost"} 148 variant={folder() === "archive" ? "secondary" : "ghost"}
149- class={cn("h-9 w-full justify-start rounded-md", folder() !== "archive" && "text-muted-foreground")}149+ class={cn("h-11 w-full justify-start rounded-xl", folder() !== "archive" && "text-muted-foreground", folder() === "archive" && "bg-violet-500/10 text-violet-700 dark:text-violet-300")}
150 onClick={() => startTransition(() => { setFolder("archive"); setPage(1); setSelectedId(""); })}150 onClick={() => startTransition(() => { setFolder("archive"); setPage(1); setSelectedId(""); })}
151 >151 >
152 <IconArchive class="h-4 w-4" />152 <IconArchive class="h-4 w-4" />
@@ -154,7 +154,7 @@ export default function MessagesPage() {
154 </Button>154 </Button>
155 <Button 155 <Button
156 variant={folder() === "trash" ? "secondary" : "ghost"} 156 variant={folder() === "trash" ? "secondary" : "ghost"}
157- class={cn("h-9 w-full justify-start rounded-md", folder() !== "trash" && "text-muted-foreground")}157+ class={cn("h-11 w-full justify-start rounded-xl", folder() !== "trash" && "text-muted-foreground", folder() === "trash" && "bg-rose-500/10 text-rose-700 dark:text-rose-300")}
158 onClick={() => startTransition(() => { setFolder("trash"); setPage(1); setSelectedId(""); })}158 onClick={() => startTransition(() => { setFolder("trash"); setPage(1); setSelectedId(""); })}
159 >159 >
160 <IconTrash class="h-4 w-4" />160 <IconTrash class="h-4 w-4" />
@@ -175,7 +175,7 @@ export default function MessagesPage() {
175 <div class="border-b p-3">175 <div class="border-b p-3">
176 <div class="relative">176 <div class="relative">
177 <IconSearch class="pointer-events-none absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />177 <IconSearch class="pointer-events-none absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />
178- <Input class="h-9 rounded-md pl-8" placeholder={t("messages.search")} value={query()} onInput={(event) => setQuery(event.currentTarget.value)} />178+ <Input class="h-11 rounded-xl pl-8" placeholder={t("messages.search")} value={query()} onInput={(event) => setQuery(event.currentTarget.value)} />
179 </div>179 </div>
180 </div>180 </div>
181 <div class={cn("flex-1 space-y-2 overflow-auto p-3 transition-opacity", isPending() && "opacity-50 pointer-events-none")}>181 <div class={cn("flex-1 space-y-2 overflow-auto p-3 transition-opacity", isPending() && "opacity-50 pointer-events-none")}>
@@ -192,9 +192,9 @@ export default function MessagesPage() {
192 <button192 <button
193 type="button"193 type="button"
194 class={cn(194 class={cn(
195- "w-full rounded-lg border bg-card p-3 text-left shadow-sm transition-colors",195+ "w-full rounded-2xl border bg-card p-3 text-left shadow-sm transition-colors",
196- selected()?.id === message.id ? "border-primary/35 bg-primary/5" : "border-border/80 hover:border-primary/25 hover:bg-muted/30",196+ selected()?.id === message.id ? "border-sky-500/35 bg-sky-500/[0.06]" : "border-border/80 hover:border-sky-500/25 hover:bg-muted/30",
197- unread && selected()?.id !== message.id && "border-primary/20 bg-primary/[0.035]"197+ unread && selected()?.id !== message.id && "border-sky-500/20 bg-sky-500/[0.035]"
198 )}198 )}
199 onClick={() => { setComposeOpen(false); setSelectedId(message.id); }}199 onClick={() => { setComposeOpen(false); setSelectedId(message.id); }}
200 >200 >
@@ -204,7 +204,7 @@ export default function MessagesPage() {
204 </div>204 </div>
205 <div class="mt-1 flex items-center gap-2">205 <div class="mt-1 flex items-center gap-2">
206 <Show when={unread}>206 <Show when={unread}>
207- <span class="h-2 w-2 shrink-0 rounded-full bg-primary" />207+ <span class="h-2 w-2 shrink-0 rounded-full bg-sky-500 shadow-[0_0_0_3px_rgba(14,165,233,0.14)]" />
208 </Show>208 </Show>
209 <span class={cn("truncate text-sm", unread ? "font-bold text-foreground" : "font-medium text-foreground/90")}>{message.subject}</span>209 <span class={cn("truncate text-sm", unread ? "font-bold text-foreground" : "font-medium text-foreground/90")}>{message.subject}</span>
210 </div>210 </div>
@@ -265,7 +265,7 @@ export default function MessagesPage() {
265 </div>265 </div>
266 }266 }
267 >267 >
268- <Show when={selected()} fallback={<div class="flex h-full flex-col items-center justify-center gap-3 p-8 text-center text-sm text-muted-foreground"><IconMessage class="h-8 w-8" /><p>{t("messages.noSelection")}</p><Button type="button" size="sm" class="rounded-md" onClick={() => setComposeOpen(true)}><IconPlus class="h-4 w-4" />{t("messages.newMessage")}</Button></div>}>268+ <Show when={selected()} fallback={<div class="flex h-full flex-col items-center justify-center gap-3 p-8 text-center text-sm text-muted-foreground"><span class="flex h-14 w-14 items-center justify-center rounded-2xl border border-sky-500/20 bg-sky-500/10 text-sky-700 dark:text-sky-300"><IconMessage class="h-7 w-7" /></span><p>{t("messages.noSelection")}</p><Button type="button" size="sm" class="rounded-xl" onClick={() => setComposeOpen(true)}><IconPlus class="h-4 w-4" />{t("messages.newMessage")}</Button></div>}>
269 {(message) => {269 {(message) => {
270 const isSent = folder() === "sent" || isOwnSentMessage(message());270 const isSent = folder() === "sent" || isOwnSentMessage(message());
271 const peerName = isSent ? personLabel(message().recipient) : personLabel(message().sender);271 const peerName = isSent ? personLabel(message().recipient) : personLabel(message().sender);
@@ -278,7 +278,7 @@ export default function MessagesPage() {
278 <Button 278 <Button
279 variant="outline" 279 variant="outline"
280 size="sm" 280 size="sm"
281- class="rounded-md" 281+ class="rounded-xl"
282 onClick={() => {282 onClick={() => {
283 setReplyData({283 setReplyData({
284 recipient: message().sender.id,284 recipient: message().sender.id,
@@ -295,25 +295,25 @@ export default function MessagesPage() {
295 <div class="mx-1 h-4 w-[1px] bg-border" />295 <div class="mx-1 h-4 w-[1px] bg-border" />
296 </Show>296 </Show>
297 <Show when={folder() !== "archive"}>297 <Show when={folder() !== "archive"}>
298- <Button variant="ghost" size="sm" class="h-8 rounded-md" onClick={() => handleAction(message(), { folder: "archive" })} title={t("messages.moveToArchive")}>298+ <Button variant="ghost" size="sm" class="h-10 rounded-xl" onClick={() => handleAction(message(), { folder: "archive" })} title={t("messages.moveToArchive")}>
299 <IconArchive class="h-4 w-4" />299 <IconArchive class="h-4 w-4" />
300 {t("messages.moveToArchive")}300 {t("messages.moveToArchive")}
301 </Button>301 </Button>
302 </Show>302 </Show>
303 <Show when={folder() === "archive"}>303 <Show when={folder() === "archive"}>
304- <Button variant="ghost" size="sm" class="h-8 rounded-md" onClick={() => handleAction(message(), { folder: restoreFolder(message()) })} title={t("messages.moveOutOfArchive")}>304+ <Button variant="ghost" size="sm" class="h-10 rounded-xl" onClick={() => handleAction(message(), { folder: restoreFolder(message()) })} title={t("messages.moveOutOfArchive")}>
305 <IconMessage class="mr-2 h-4 w-4" />305 <IconMessage class="mr-2 h-4 w-4" />
306 {t("messages.moveOutOfArchive")}306 {t("messages.moveOutOfArchive")}
307 </Button>307 </Button>
308 </Show>308 </Show>
309 <Show when={folder() !== "trash"}>309 <Show when={folder() !== "trash"}>
310- <Button variant="ghost" size="sm" class="h-8 rounded-md text-destructive" onClick={() => handleAction(message(), { folder: "trash" })} title={t("messages.moveToTrash")}>310+ <Button variant="ghost" size="sm" class="h-10 rounded-xl text-destructive" onClick={() => handleAction(message(), { folder: "trash" })} title={t("messages.moveToTrash")}>
311 <IconTrash class="h-4 w-4" />311 <IconTrash class="h-4 w-4" />
312 {t("messages.moveToTrash")}312 {t("messages.moveToTrash")}
313 </Button>313 </Button>
314 </Show>314 </Show>
315 <Show when={folder() === "trash"}>315 <Show when={folder() === "trash"}>
316- <Button variant="ghost" size="sm" class="h-8 rounded-md text-destructive" onClick={() => handleAction(message(), { delete: true })} title={t("messages.deleteForever")}>316+ <Button variant="ghost" size="sm" class="h-10 rounded-xl text-destructive" onClick={() => handleAction(message(), { delete: true })} title={t("messages.deleteForever")}>
317 <IconTrash class="h-4 w-4" />317 <IconTrash class="h-4 w-4" />
318 {t("messages.deleteForever")}318 {t("messages.deleteForever")}
319 </Button>319 </Button>
@@ -321,7 +321,7 @@ export default function MessagesPage() {
321 </div>321 </div>
322 <div class="border-b p-5">322 <div class="border-b p-5">
323 <div class="flex items-start gap-4">323 <div class="flex items-start gap-4">
324- <div class="flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-primary/10 text-lg font-bold uppercase text-primary">324+ <div class="flex h-12 w-12 shrink-0 items-center justify-center rounded-2xl border border-sky-500/20 bg-sky-500/10 text-lg font-bold uppercase text-sky-700 dark:text-sky-300">
325 {peerName.charAt(0)}325 {peerName.charAt(0)}
326 </div>326 </div>
327 <div class="min-w-0 flex-1">327 <div class="min-w-0 flex-1">
@@ -334,7 +334,7 @@ export default function MessagesPage() {
334 </Show>334 </Show>
335 </div>335 </div>
336 </div>336 </div>
337- <span class="mono shrink-0 rounded-md bg-muted/50 px-2 py-1 text-xs text-muted-foreground">{timeLabel(message().sent_at)}</span>337+ <span class="mono shrink-0 rounded-full border border-border/70 bg-muted/50 px-2 py-1 text-xs text-muted-foreground">{timeLabel(message().sent_at)}</span>
338 </div>338 </div>
339 </div>339 </div>
340 <div class="flex-1 overflow-auto p-5">340 <div class="flex-1 overflow-auto p-5">
@@ -416,7 +416,7 @@ function ComposePanel(props: {
416 <h2 class="font-display text-2xl font-semibold tracking-tight">{t("messages.newMessage")}</h2>416 <h2 class="font-display text-2xl font-semibold tracking-tight">{t("messages.newMessage")}</h2>
417 <p class="text-sm text-muted-foreground">{t("nav.messages")}</p>417 <p class="text-sm text-muted-foreground">{t("nav.messages")}</p>
418 </div>418 </div>
419- <div class="space-y-1.5">419+ <div class="space-y-1.5 rounded-2xl border border-violet-500/15 bg-violet-500/[0.03] p-4">
420 <Label for="msg-recipient">{t("messages.recipient")}</Label>420 <Label for="msg-recipient">{t("messages.recipient")}</Label>
421 <UserSearchSelect421 <UserSearchSelect
422 id="msg-recipient"422 id="msg-recipient"
@@ -426,7 +426,7 @@ function ComposePanel(props: {
426 excludeIds={auth.user()?.id ? [auth.user()!.id] : []}426 excludeIds={auth.user()?.id ? [auth.user()!.id] : []}
427 />427 />
428 </div>428 </div>
429- <div class="space-y-1.5">429+ <div class="space-y-1.5 rounded-2xl border border-sky-500/15 bg-sky-500/[0.03] p-4">
430 <Label for="msg-subject">{t("form.title")}</Label>430 <Label for="msg-subject">{t("form.title")}</Label>
431 <Input 431 <Input
432 id="msg-subject" 432 id="msg-subject"
@@ -436,7 +436,7 @@ function ComposePanel(props: {
436 onInput={(e) => setSubject(e.currentTarget.value)} 436 onInput={(e) => setSubject(e.currentTarget.value)}
437 />437 />
438 </div>438 </div>
439- <div class="space-y-1.5">439+ <div class="space-y-1.5 rounded-2xl border border-emerald-500/15 bg-emerald-500/[0.03] p-4">
440 <Label for="msg-body">{t("form.description")}</Label>440 <Label for="msg-body">{t("form.description")}</Label>
441 <Textarea 441 <Textarea
442 id="msg-body" 442 id="msg-body"
@@ -448,11 +448,11 @@ function ComposePanel(props: {
448 </div>448 </div>
449 {error() && <p class="text-sm text-destructive">{error()}</p>}449 {error() && <p class="text-sm text-destructive">{error()}</p>}
450 <div class="flex flex-wrap gap-2">450 <div class="flex flex-wrap gap-2">
451- <Button type="submit" class="rounded-sm" disabled={pending()}>451+ <Button type="submit" class="rounded-xl" disabled={pending()}>
452 <IconSend class="mr-2 h-4 w-4" />452 <IconSend class="mr-2 h-4 w-4" />
453 {t("messages.send")}453 {t("messages.send")}
454 </Button>454 </Button>
455- <Button type="button" variant="outline" class="rounded-sm" onClick={() => props.onOpenChange(false)}>455+ <Button type="button" variant="outline" class="rounded-xl" onClick={() => props.onOpenChange(false)}>
456 {t("common.cancel")}456 {t("common.cancel")}
457 </Button>457 </Button>
458 </div>458 </div>
src/pages/notes-page.tsxmodified+2 -2
@@ -139,11 +139,11 @@ function NotesContent() {
139 </SidePanel>139 </SidePanel>
140 140
141 <div class="space-y-5">141 <div class="space-y-5">
142- <section class="min-w-0 space-y-4">142+ <section class="min-w-0 space-y-4 rounded-3xl border border-amber-500/15 bg-amber-500/[0.025] p-3 sm:p-4">
143 <Show when={flash()}>143 <Show when={flash()}>
144 <Alert variant="success">{flash()}</Alert>144 <Alert variant="success">{flash()}</Alert>
145 </Show>145 </Show>
146- {error() && <p class="rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive">{error()}</p>}146+ {error() && <Alert variant="destructive">{error()}</Alert>}
147 <Suspense fallback={<PageSpinner />}>147 <Suspense fallback={<PageSpinner />}>
148 <Show when={list.error}>148 <Show when={list.error}>
149 <Alert variant="destructive">{formatApiError(list.error)}</Alert>149 <Alert variant="destructive">{formatApiError(list.error)}</Alert>
src/pages/pomodoro-page.tsxmodified+1 -1
@@ -198,7 +198,7 @@ function PomodoroContent() {
198 </div>198 </div>
199 </section>199 </section>
200 200
201- <section class="data-shell space-y-4 p-4">201+ <section class="data-shell space-y-4 border-rose-500/15 bg-rose-500/[0.025] p-4">
202 <div class="flex flex-wrap items-end justify-between gap-2">202 <div class="flex flex-wrap items-end justify-between gap-2">
203 <div>203 <div>
204 <h2 class="font-display text-lg font-semibold">{t("pomodoro.history")}</h2>204 <h2 class="font-display text-lg font-semibold">{t("pomodoro.history")}</h2>
src/pages/staff-work-page.tsxmodified+1 -1
@@ -253,7 +253,7 @@ function StaffWorkContent() {
253 <Alert variant="success">{flash()}</Alert>253 <Alert variant="success">{flash()}</Alert>
254 </Show>254 </Show>
255 255
256- <section class="data-shell space-y-4 p-4">256+ <section class="data-shell space-y-4 border-emerald-500/15 bg-emerald-500/[0.025] p-4">
257 <div class="flex flex-wrap items-center justify-between gap-3">257 <div class="flex flex-wrap items-center justify-between gap-3">
258 <div>258 <div>
259 <h2 class="font-display text-lg font-semibold">{t("work.teacherIdentity")}</h2>259 <h2 class="font-display text-lg font-semibold">{t("work.teacherIdentity")}</h2>
src/pages/student-attendance-page.tsxmodified+1 -1
@@ -110,7 +110,7 @@ function StudentAttendanceContent() {
110 <PageHeader accent="sky" eyebrow={t("nav.admin")} title={t("nav.studentAttendance")} description={t("attendance.lookup")} />110 <PageHeader accent="sky" eyebrow={t("nav.admin")} title={t("nav.studentAttendance")} description={t("attendance.lookup")} />
111 </div>111 </div>
112 112
113- <section class="data-shell space-y-4 p-4">113+ <section class="data-shell space-y-4 border-amber-500/15 bg-amber-500/[0.025] p-4">
114 <div class="flex flex-wrap items-center justify-between gap-3">114 <div class="flex flex-wrap items-center justify-between gap-3">
115 <div>115 <div>
116 <h2 class="font-display text-lg font-semibold">{t("nav.studentAttendance")}</h2>116 <h2 class="font-display text-lg font-semibold">{t("nav.studentAttendance")}</h2>
src/pages/student-marks-page.tsxmodified+1 -1
@@ -110,7 +110,7 @@ function StudentMarksContent() {
110 <PageHeader accent="violet" eyebrow={t("nav.admin")} title={t("nav.studentMarks")} description={t("marks.lookup")} />110 <PageHeader accent="violet" eyebrow={t("nav.admin")} title={t("nav.studentMarks")} description={t("marks.lookup")} />
111 </div>111 </div>
112 112
113- <section class="data-shell space-y-4 p-4">113+ <section class="data-shell space-y-4 border-sky-500/15 bg-sky-500/[0.025] p-4">
114 <div class="flex flex-wrap items-center justify-between gap-3">114 <div class="flex flex-wrap items-center justify-between gap-3">
115 <div>115 <div>
116 <h2 class="font-display text-lg font-semibold">{t("nav.studentMarks")}</h2>116 <h2 class="font-display text-lg font-semibold">{t("nav.studentMarks")}</h2>
src/pages/student-pomodoro-page.tsxmodified+1 -1
@@ -126,7 +126,7 @@ function StudentPomodoroContent() {
126 <div class="space-y-6">126 <div class="space-y-6">
127 <PageHeader accent="mint" eyebrow={t("nav.admin")} title={t("nav.studentPomodoro")} description={t("pomodoro.lookup")} />127 <PageHeader accent="mint" eyebrow={t("nav.admin")} title={t("nav.studentPomodoro")} description={t("pomodoro.lookup")} />
128 128
129- <section class="data-shell space-y-4 p-4">129+ <section class="data-shell space-y-4 border-rose-500/15 bg-rose-500/[0.025] p-4">
130 <div class="flex flex-wrap items-center justify-between gap-3">130 <div class="flex flex-wrap items-center justify-between gap-3">
131 <div>131 <div>
132 <h2 class="font-display text-lg font-semibold">{t("nav.studentPomodoro")}</h2>132 <h2 class="font-display text-lg font-semibold">{t("nav.studentPomodoro")}</h2>
src/pages/terms-page.tsxmodified+1 -1
@@ -186,7 +186,7 @@ function TermsContent() {
186 <Alert variant="destructive">{error()}</Alert>186 <Alert variant="destructive">{error()}</Alert>
187 </Show>187 </Show>
188 188
189- <section class="data-shell space-y-4 p-4">189+ <section class="data-shell space-y-4 border-violet-500/15 bg-violet-500/[0.025] p-4">
190 <Suspense fallback={<DataTableSkeleton columns={4} rows={6} />}>190 <Suspense fallback={<DataTableSkeleton columns={4} rows={6} />}>
191 <Show when={list.error}>191 <Show when={list.error}>
192 <ErrorAlert message={formatApiError(list.error)} onRetry={() => void refetch()} />192 <ErrorAlert message={formatApiError(list.error)} onRetry={() => void refetch()} />
src/pages/work-log-page.tsxmodified+1 -1
@@ -123,7 +123,7 @@ function WorkLogContent() {
123 </div>123 </div>
124 </section>124 </section>
125 125
126- <section class="data-shell space-y-4 p-4">126+ <section class="data-shell space-y-4 border-emerald-500/15 bg-emerald-500/[0.025] p-4">
127 <div class="flex flex-wrap items-center justify-between gap-2">127 <div class="flex flex-wrap items-center justify-between gap-2">
128 <h2 class="font-display text-lg font-semibold">{t("work.entries")}</h2>128 <h2 class="font-display text-lg font-semibold">{t("work.entries")}</h2>
129 <Badge variant="secondary" class="mono rounded-sm px-3 py-1">129 <Badge variant="secondary" class="mono rounded-sm px-3 py-1">