🎨 add page accents and eager detail loading
Browse files at this commit5e6085b66ce4b3da3c663816ffda67592e45fb88Parent: 69e9aa5- style
- 🎨 add page accents and eager detail loading
21 changed files +152 -131
- src/components/events/event-form.tsx +13 -13
- src/components/exams/exam-form.tsx +13 -17
- src/components/notes/note-files-panel.tsx +1 -1
- src/components/notes/note-import-panel.tsx +4 -4
- src/index.css +22 -1
- src/pages/admin-users-page.tsx +12 -4
- src/pages/course-detail-page.tsx +17 -17
- src/pages/courses-page.tsx +5 -5
- src/pages/event-detail-page.tsx +5 -5
- src/pages/events-page.tsx +3 -3
- src/pages/exam-detail-page.tsx +15 -19
- src/pages/exams-page.tsx +10 -10
- src/pages/messages-page.tsx +23 -23
- src/pages/notes-page.tsx +2 -2
- src/pages/pomodoro-page.tsx +1 -1
- src/pages/staff-work-page.tsx +1 -1
- src/pages/student-attendance-page.tsx +1 -1
- src/pages/student-marks-page.tsx +1 -1
- src/pages/student-pomodoro-page.tsx +1 -1
- src/pages/terms-page.tsx +1 -1
- src/pages/work-log-page.tsx +1 -1
src/components/events/event-form.tsxmodified+13 -13
| @@ -171,36 +171,36 @@ export function EventForm(props: { | ||
| 171 | 171 | return ( |
| 172 | 172 | <> |
| 173 | 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 | 175 | <Label for="event-title">{t("form.title")}</Label> |
| 176 | 176 | <Input |
| 177 | 177 | id="event-title" |
| 178 | - class="h-10 rounded-sm" | |
| 178 | + class="h-11" | |
| 179 | 179 | value={title()} |
| 180 | 180 | maxlength={200} |
| 181 | 181 | required |
| 182 | 182 | onInput={(e) => setTitle(e.currentTarget.value)} |
| 183 | 183 | /> |
| 184 | 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 | 186 | <Label for="event-description">{t("form.description")}</Label> |
| 187 | 187 | <Textarea |
| 188 | 188 | id="event-description" |
| 189 | - class="min-h-28 rounded-sm" | |
| 189 | + class="min-h-28" | |
| 190 | 190 | value={description()} |
| 191 | 191 | maxlength={2000} |
| 192 | 192 | rows={3} |
| 193 | 193 | onInput={(e) => setDescription(e.currentTarget.value)} |
| 194 | 194 | /> |
| 195 | 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 | 197 | <Label for="event-audience">{t("events.audience")}</Label> |
| 198 | 198 | <Select id="event-audience" value={audienceKind()} onChange={(e) => setAudienceKind(e.currentTarget.value as EventAudience["kind"])}> |
| 199 | 199 | <For each={AUDIENCE_KINDS}>{(kind) => <option value={kind}>{t(`events.audience.${kind}` as MessageKey)}</option>}</For> |
| 200 | 200 | </Select> |
| 201 | 201 | </div> |
| 202 | 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 | 204 | <Label for="event-audience-role">{t("admin.role")}</Label> |
| 205 | 205 | <Select id="event-audience-role" value={audienceRole()} onChange={(e) => setAudienceRole(e.currentTarget.value as Role)}> |
| 206 | 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 | 208 | </div> |
| 209 | 209 | </Show> |
| 210 | 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 | 212 | <Label for="event-audience-course">{t("nav.courses")}</Label> |
| 213 | 213 | <Select id="event-audience-course" value={audienceCourse()} onChange={(e) => setAudienceCourse(e.currentTarget.value)}> |
| 214 | 214 | <option value="">{t("events.selectCourse")}</option> |
| @@ -217,7 +217,7 @@ export function EventForm(props: { | ||
| 217 | 217 | </div> |
| 218 | 218 | </Show> |
| 219 | 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 | 221 | <Label for="event-audience-capacity">{t("events.capacity")}</Label> |
| 222 | 222 | <Input |
| 223 | 223 | id="event-audience-capacity" |
| @@ -230,13 +230,13 @@ export function EventForm(props: { | ||
| 230 | 230 | /> |
| 231 | 231 | </div> |
| 232 | 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 | 234 | <div class="space-y-1.5"> |
| 235 | 235 | <Label for="event-starts">{t("events.starts")}</Label> |
| 236 | 236 | <div class="grid grid-cols-2 gap-2"> |
| 237 | 237 | <DatePicker |
| 238 | 238 | id="event-starts" |
| 239 | - class="h-10" | |
| 239 | + class="h-11" | |
| 240 | 240 | placeholder={t("form.datePlaceholder")} |
| 241 | 241 | value={startsDate()} |
| 242 | 242 | onChange={(value) => { |
| @@ -246,7 +246,7 @@ export function EventForm(props: { | ||
| 246 | 246 | /> |
| 247 | 247 | <Input |
| 248 | 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 | 250 | inputMode="numeric" |
| 251 | 251 | placeholder="09:00" |
| 252 | 252 | pattern="[0-2][0-9]:[0-5][0-9]" |
| @@ -267,7 +267,7 @@ export function EventForm(props: { | ||
| 267 | 267 | <div class="grid grid-cols-2 gap-2"> |
| 268 | 268 | <DatePicker |
| 269 | 269 | id="event-ends" |
| 270 | - class="h-10" | |
| 270 | + class="h-11" | |
| 271 | 271 | placeholder={t("form.datePlaceholder")} |
| 272 | 272 | value={endsDate()} |
| 273 | 273 | onChange={(value) => { |
| @@ -277,7 +277,7 @@ export function EventForm(props: { | ||
| 277 | 277 | /> |
| 278 | 278 | <Input |
| 279 | 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 | 281 | inputMode="numeric" |
| 282 | 282 | placeholder="10:00" |
| 283 | 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 | 204 | <form class="space-y-4" onSubmit={handleSubmit}> |
| 205 | 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 | 207 | <h3 class="text-xs font-semibold uppercase tracking-wider text-muted-foreground">{t("exams.sectionBasic")}</h3> |
| 208 | 208 | <div class="space-y-1.5"> |
| 209 | 209 | <Label for="exam-title">{t("form.title")}</Label> |
| 210 | 210 | <Input |
| 211 | 211 | id="exam-title" |
| 212 | - class="rounded-sm" | |
| 213 | 212 | value={title()} |
| 214 | 213 | maxlength={200} |
| 215 | 214 | required |
| @@ -220,7 +219,6 @@ export function ExamForm(props: { | ||
| 220 | 219 | <Label for="exam-description">{t("form.description")}</Label> |
| 221 | 220 | <Textarea |
| 222 | 221 | id="exam-description" |
| 223 | - class="rounded-sm" | |
| 224 | 222 | value={description()} |
| 225 | 223 | maxlength={2000} |
| 226 | 224 | rows={3} |
| @@ -231,7 +229,6 @@ export function ExamForm(props: { | ||
| 231 | 229 | <Label for="exam-kind">{t("exams.kind")}</Label> |
| 232 | 230 | <Select |
| 233 | 231 | id="exam-kind" |
| 234 | - class="rounded-sm" | |
| 235 | 232 | value={kind()} |
| 236 | 233 | onChange={(e) => setKind(e.currentTarget.value)} |
| 237 | 234 | > |
| @@ -241,13 +238,12 @@ export function ExamForm(props: { | ||
| 241 | 238 | </div> |
| 242 | 239 | |
| 243 | 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 | 242 | <h3 class="text-xs font-semibold uppercase tracking-wider text-muted-foreground">{t("exams.sectionSchedule")}</h3> |
| 246 | 243 | <div class="space-y-1.5"> |
| 247 | 244 | <Label for="exam-mode">{t("exams.mode")}</Label> |
| 248 | 245 | <Select |
| 249 | 246 | id="exam-mode" |
| 250 | - class="rounded-sm" | |
| 251 | 247 | value={mode()} |
| 252 | 248 | onChange={(e) => { |
| 253 | 249 | const next = e.currentTarget.value; |
| @@ -272,7 +268,7 @@ export function ExamForm(props: { | ||
| 272 | 268 | <div class="grid grid-cols-2 gap-2"> |
| 273 | 269 | <DatePicker |
| 274 | 270 | id="exam-starts" |
| 275 | - class="h-10" | |
| 271 | + class="h-11" | |
| 276 | 272 | placeholder={t("form.datePlaceholder")} |
| 277 | 273 | value={startsDate()} |
| 278 | 274 | required |
| @@ -280,7 +276,7 @@ export function ExamForm(props: { | ||
| 280 | 276 | /> |
| 281 | 277 | <Input |
| 282 | 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 | 280 | inputMode="numeric" |
| 285 | 281 | placeholder="14:30" |
| 286 | 282 | pattern="[0-2][0-9]:[0-5][0-9]" |
| @@ -296,7 +292,7 @@ export function ExamForm(props: { | ||
| 296 | 292 | <div class="grid grid-cols-2 gap-2"> |
| 297 | 293 | <DatePicker |
| 298 | 294 | id="exam-ends" |
| 299 | - class="h-10" | |
| 295 | + class="h-11" | |
| 300 | 296 | placeholder={t("form.datePlaceholder")} |
| 301 | 297 | value={endsDate()} |
| 302 | 298 | required |
| @@ -304,7 +300,7 @@ export function ExamForm(props: { | ||
| 304 | 300 | /> |
| 305 | 301 | <Input |
| 306 | 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 | 304 | inputMode="numeric" |
| 309 | 305 | placeholder="15:30" |
| 310 | 306 | pattern="[0-2][0-9]:[0-5][0-9]" |
| @@ -320,7 +316,7 @@ export function ExamForm(props: { | ||
| 320 | 316 | </div> |
| 321 | 317 | |
| 322 | 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 | 320 | <h3 class="text-xs font-semibold uppercase tracking-wider text-muted-foreground">{t("exams.sectionDuration")}</h3> |
| 325 | 321 | <label class="flex items-center gap-2 text-sm font-medium"> |
| 326 | 322 | <input |
| @@ -340,7 +336,7 @@ export function ExamForm(props: { | ||
| 340 | 336 | type="number" |
| 341 | 337 | min={1} |
| 342 | 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 | 340 | placeholder="60" |
| 345 | 341 | value={durationMinutes()} |
| 346 | 342 | onInput={(e) => setDurationMinutes(e.currentTarget.value)} |
| @@ -350,10 +346,10 @@ export function ExamForm(props: { | ||
| 350 | 346 | </div> |
| 351 | 347 | |
| 352 | 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 | 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 | 353 | <label class="flex items-start gap-2 text-sm"> |
| 358 | 354 | <input |
| 359 | 355 | type="checkbox" |
| @@ -373,7 +369,7 @@ export function ExamForm(props: { | ||
| 373 | 369 | <div class="ml-6 mt-2 flex items-center gap-2"> |
| 374 | 370 | <Input |
| 375 | 371 | id="exam-max-attempts" |
| 376 | - class="h-8 w-20 rounded-sm text-center" | |
| 372 | + class="h-10 w-20 text-center" | |
| 377 | 373 | type="number" |
| 378 | 374 | min={1} |
| 379 | 375 | step={1} |
| @@ -386,7 +382,7 @@ export function ExamForm(props: { | ||
| 386 | 382 | </Show> |
| 387 | 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 | 386 | <input |
| 391 | 387 | type="checkbox" |
| 392 | 388 | class="mt-0.5 h-4 w-4 shrink-0 rounded border-border" |
| @@ -399,7 +395,7 @@ export function ExamForm(props: { | ||
| 399 | 395 | </div> |
| 400 | 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 | 399 | <input |
| 404 | 400 | type="checkbox" |
| 405 | 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 | 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 | 171 | <Show when={flash()}> |
| 172 | 172 | <Alert variant="success">{flash()}</Alert> |
| 173 | 173 | </Show> |
src/components/notes/note-import-panel.tsxmodified+4 -4
| @@ -69,7 +69,7 @@ export function NoteImportPanel(props: { | ||
| 69 | 69 | <div class="space-y-5"> |
| 70 | 70 | <Show when={!file()}> |
| 71 | 71 | <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 | 73 | onClick={() => fileInput?.click()} |
| 74 | 74 | > |
| 75 | 75 | <input |
| @@ -81,7 +81,7 @@ export function NoteImportPanel(props: { | ||
| 81 | 81 | class="hidden" |
| 82 | 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 | 85 | <IconUploadCloud class="h-6 w-6" /> |
| 86 | 86 | </span> |
| 87 | 87 | <div class="space-y-1 max-w-sm mx-auto"> |
| @@ -97,9 +97,9 @@ export function NoteImportPanel(props: { | ||
| 97 | 97 | |
| 98 | 98 | <Show when={file()}> |
| 99 | 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 | 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 | 103 | <span class="truncate font-medium text-foreground">{file()?.name}</span> |
| 104 | 104 | <span class="text-muted-foreground shrink-0">({formatBytes(file()?.size ?? 0)})</span> |
| 105 | 105 | </div> |
src/index.cssmodified+22 -1
| @@ -221,7 +221,28 @@ | ||
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 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 | 248 | .side-panel-body form { |
src/pages/admin-users-page.tsxmodified+12 -4
| @@ -63,10 +63,10 @@ function AdminUsersContent() { | ||
| 63 | 63 | {error() && <Alert variant="destructive">{error()}</Alert>} |
| 64 | 64 | |
| 65 | 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 | 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 | 70 | <div class="flex flex-wrap items-center justify-between gap-3"> |
| 71 | 71 | <div> |
| 72 | 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 | 133 | return ( |
| 126 | - <article class="data-shell p-4"> | |
| 134 | + <article class={`data-shell p-4 ${ROLE_METRIC_TONE[props.role]}`}> | |
| 127 | 135 | <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{props.label}</p> |
| 128 | 136 | <p class="mono mt-2 text-2xl font-semibold tabular-nums">{props.value}</p> |
| 129 | 137 | </article> |
src/pages/course-detail-page.tsxmodified+17 -17
| @@ -73,7 +73,7 @@ function CourseDetailContent() { | ||
| 73 | 73 | const [terms] = createResource(async () => (await getTerms({ limit: 100 })).items); |
| 74 | 74 | const [settings] = createResource(() => getSettings()); |
| 75 | 75 | const [exams, { refetch: refetchExams }] = createResource( |
| 76 | - () => (openSections().exams ? id() : null), | |
| 76 | + () => id(), | |
| 77 | 77 | async (courseId) => (courseId ? (await getCourseExams(courseId)).items : []), |
| 78 | 78 | ); |
| 79 | 79 | const hasCourseManagementRights = () => { |
| @@ -95,7 +95,7 @@ function CourseDetailContent() { | ||
| 95 | 95 | return hasMinRole(u.role, "manager"); |
| 96 | 96 | }; |
| 97 | 97 | const [roster, { refetch: refetchRoster }] = createResource( |
| 98 | - () => (hasCourseManagementRights() && openSections().roster ? id() : null), | |
| 98 | + () => (hasCourseManagementRights() ? id() : null), | |
| 99 | 99 | async (courseId) => (courseId ? (await getCourseEnrollments(courseId)).items : []), |
| 100 | 100 | ); |
| 101 | 101 | const [mine] = createResource( |
| @@ -207,7 +207,7 @@ function CourseDetailContent() { | ||
| 207 | 207 | accessorFn: (row) => examKindLabel(String(row.kind), t), |
| 208 | 208 | header: t("exams.kind"), |
| 209 | 209 | cell: (cell) => ( |
| 210 | - <Badge variant="outline" class="rounded-sm capitalize"> | |
| 210 | + <Badge variant="outline" class="rounded-full capitalize"> | |
| 211 | 211 | {examKindLabel(String(cell.row.original.kind), t)} |
| 212 | 212 | <Show when={examWeight(cell.row.original, settings()?.exam_kinds) != null}> |
| 213 | 213 | {(weight) => <span class="ml-1 text-muted-foreground">({t("courses.weight")}: {weight()})</span>} |
| @@ -219,7 +219,7 @@ function CourseDetailContent() { | ||
| 219 | 219 | id: "mode", |
| 220 | 220 | accessorFn: (row) => examModeLabel(row.mode), |
| 221 | 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 | 225 | id: "status", |
| @@ -227,7 +227,7 @@ function CourseDetailContent() { | ||
| 227 | 227 | header: t("events.status"), |
| 228 | 228 | cell: (cell) => ( |
| 229 | 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 | 231 | </Show> |
| 232 | 232 | ), |
| 233 | 233 | }, |
| @@ -285,19 +285,19 @@ function CourseDetailContent() { | ||
| 285 | 285 | actions={ |
| 286 | 286 | <div class="detail-action-group"> |
| 287 | 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 | 289 | <IconChevronLeft class="h-4 w-4" /> |
| 290 | 290 | {t("common.back")} |
| 291 | 291 | </Button> |
| 292 | 292 | </Link> |
| 293 | 293 | <Show when={canManage()}> |
| 294 | 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 | 296 | <IconEdit class="h-4 w-4" /> |
| 297 | 297 | {t("common.edit")} |
| 298 | 298 | </Button> |
| 299 | 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 | 301 | <IconTrash class="h-4 w-4" /> |
| 302 | 302 | {t("courses.delete")} |
| 303 | 303 | </Button> |
| @@ -415,10 +415,10 @@ function CourseDetailContent() { | ||
| 415 | 415 | <Input id="edit-course-capacity" type="number" min={1} value={capacity()} placeholder={t("courses.capacityOptional")} onInput={(e) => setCapacity(e.currentTarget.value)} /> |
| 416 | 416 | </div> |
| 417 | 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 | 419 | {t("common.update")} |
| 420 | 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 | 422 | {t("common.cancel")} |
| 423 | 423 | </Button> |
| 424 | 424 | </div> |
| @@ -438,11 +438,11 @@ function CourseDetailContent() { | ||
| 438 | 438 | description={createdCourseExam() ? t("exams.step2Questions") : c().title} |
| 439 | 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 | 442 | <button |
| 443 | 443 | type="button" |
| 444 | 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 | 446 | examCreateStep() === "details" |
| 447 | 447 | ? "bg-primary text-primary-foreground shadow-xs" |
| 448 | 448 | : "text-muted-foreground hover:bg-muted/50", |
| @@ -455,7 +455,7 @@ function CourseDetailContent() { | ||
| 455 | 455 | type="button" |
| 456 | 456 | disabled={!createdCourseExam()} |
| 457 | 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 | 459 | examCreateStep() === "questions" |
| 460 | 460 | ? "bg-primary text-primary-foreground shadow-xs" |
| 461 | 461 | : createdCourseExam() |
| @@ -535,10 +535,10 @@ function CourseDetailContent() { | ||
| 535 | 535 | role="student" |
| 536 | 536 | /> |
| 537 | 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 | 539 | {t("courses.enroll")} |
| 540 | 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 | 542 | {t("common.cancel")} |
| 543 | 543 | </Button> |
| 544 | 544 | </div> |
| @@ -592,7 +592,7 @@ function CourseDetailContent() { | ||
| 592 | 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 | 596 | </SectionDisclosure> |
| 597 | 597 | |
| 598 | 598 | <SectionDisclosure |
| @@ -640,7 +640,7 @@ function CourseDetailContent() { | ||
| 640 | 640 | courseId={id()} |
| 641 | 641 | roster={roster() ?? []} |
| 642 | 642 | canManage={canManage()} |
| 643 | - active={openSections().sessions} | |
| 643 | + active | |
| 644 | 644 | createOpen={showSessionForm()} |
| 645 | 645 | onCreateOpenChange={setShowSessionForm} |
| 646 | 646 | onCountChange={setSessionCount} |
src/pages/courses-page.tsxmodified+5 -5
| @@ -90,7 +90,7 @@ function CoursesContent() { | ||
| 90 | 90 | <div class="min-w-0 space-y-1"> |
| 91 | 91 | <p class="truncate font-medium">{cell.row.original.title}</p> |
| 92 | 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 | 94 | </Show> |
| 95 | 95 | </div> |
| 96 | 96 | ), |
| @@ -105,7 +105,7 @@ function CoursesContent() { | ||
| 105 | 105 | id: "term", |
| 106 | 106 | accessorFn: (course) => termName(course.term), |
| 107 | 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 | 111 | id: "creator", |
| @@ -224,17 +224,17 @@ function CoursesContent() { | ||
| 224 | 224 | </Show> |
| 225 | 225 | {error() && <p class="text-sm text-destructive">{error()}</p>} |
| 226 | 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 | 228 | {t("common.create")} |
| 229 | 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 | 231 | {t("common.cancel")} |
| 232 | 232 | </Button> |
| 233 | 233 | </div> |
| 234 | 234 | </form> |
| 235 | 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 | 238 | <Show when={flash()}> |
| 239 | 239 | <Alert variant="success">{flash()}</Alert> |
| 240 | 240 | </Show> |
src/pages/event-detail-page.tsxmodified+5 -5
| @@ -175,18 +175,18 @@ function EventDetailContent() { | ||
| 175 | 175 | actions={ |
| 176 | 176 | <div class="detail-action-group"> |
| 177 | 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 | 179 | <IconChevronLeft class="h-4 w-4" /> |
| 180 | 180 | {t("common.back")} |
| 181 | 181 | </Button> |
| 182 | 182 | </Link> |
| 183 | 183 | <Show when={canManage()}> |
| 184 | 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 | 186 | <IconEdit class="h-4 w-4" /> |
| 187 | 187 | {t("common.edit")} |
| 188 | 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 | 190 | <IconTrash class="h-4 w-4" /> |
| 191 | 191 | {t("common.delete")} |
| 192 | 192 | </Button> |
| @@ -290,7 +290,7 @@ function EventDetailContent() { | ||
| 290 | 290 | /> |
| 291 | 291 | <Button |
| 292 | 292 | type="button" |
| 293 | - class="rounded-sm" | |
| 293 | + class="rounded-xl" | |
| 294 | 294 | disabled={pending()} |
| 295 | 295 | onClick={() => { |
| 296 | 296 | const uid = registrationUserId().trim(); |
| @@ -349,7 +349,7 @@ function EventDetailContent() { | ||
| 349 | 349 | /> |
| 350 | 350 | <Button |
| 351 | 351 | type="button" |
| 352 | - class="w-full rounded-sm sm:w-auto" | |
| 352 | + class="w-full rounded-xl sm:w-auto" | |
| 353 | 353 | disabled={pending()} |
| 354 | 354 | onClick={() => { |
| 355 | 355 | const uid = otherUserId().trim(); |
src/pages/events-page.tsxmodified+3 -3
| @@ -106,7 +106,7 @@ function EventsContent() { | ||
| 106 | 106 | id: "audience", |
| 107 | 107 | accessorFn: (event) => audienceLabel(event.audience), |
| 108 | 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 | 112 | id: "status", |
| @@ -116,7 +116,7 @@ function EventsContent() { | ||
| 116 | 116 | cell: (cell) => { |
| 117 | 117 | const status = eventStatus(cell.row.original); |
| 118 | 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 | 120 | <span class={cn("mr-1.5 h-1.5 w-1.5 rounded-full", scheduleStatusDotClass(status))} /> |
| 121 | 121 | {statusLabel(status)} |
| 122 | 122 | </Badge> |
| @@ -193,7 +193,7 @@ function EventsContent() { | ||
| 193 | 193 | </Show> |
| 194 | 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 | 197 | <Suspense fallback={<DataTableSkeleton columns={5} rows={8} />}> |
| 198 | 198 | <Show when={list.error}> |
| 199 | 199 | <Alert variant="destructive">{formatApiError(list.error)}</Alert> |
src/pages/exam-detail-page.tsxmodified+15 -19
| @@ -107,7 +107,7 @@ function ExamDetailContent() { | ||
| 107 | 107 | const isScheduled = () => isSittable(); |
| 108 | 108 | |
| 109 | 109 | const [ownResult] = createResource( |
| 110 | - () => (isStudent() && openSections().ownResult ? id() : null), | |
| 110 | + () => (isStudent() ? id() : null), | |
| 111 | 111 | async (examId) => { |
| 112 | 112 | if (!examId) return null; |
| 113 | 113 | try { |
| @@ -132,7 +132,7 @@ function ExamDetailContent() { | ||
| 132 | 132 | ); |
| 133 | 133 | |
| 134 | 134 | const [results, { refetch: refetchResults }] = createResource( |
| 135 | - () => (hasCourseManagementRights() && openSections().results ? [id(), resultPage()] as const : null), | |
| 135 | + () => (hasCourseManagementRights() ? [id(), resultPage()] as const : null), | |
| 136 | 136 | async (source) => { |
| 137 | 137 | if (!source) return { items: [], total: 0, limit: RESULT_PAGE_SIZE, offset: 0 }; |
| 138 | 138 | const [examId, page] = source; |
| @@ -155,7 +155,7 @@ function ExamDetailContent() { | ||
| 155 | 155 | }, |
| 156 | 156 | ); |
| 157 | 157 | const [stats] = createResource( |
| 158 | - () => (hasCourseManagementRights() && openSections().statistics ? id() : null), | |
| 158 | + () => (hasCourseManagementRights() ? id() : null), | |
| 159 | 159 | async (examId) => { |
| 160 | 160 | if (!examId) return null; |
| 161 | 161 | try { |
| @@ -372,7 +372,7 @@ function ExamDetailContent() { | ||
| 372 | 372 | actions={ |
| 373 | 373 | <div class="detail-action-group"> |
| 374 | 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 | 376 | <IconChevronLeft class="h-4 w-4" /> |
| 377 | 377 | {t("common.back")} |
| 378 | 378 | </Button> |
| @@ -382,14 +382,14 @@ function ExamDetailContent() { | ||
| 382 | 382 | <Show when={noAttemptsLeft()} |
| 383 | 383 | fallback={ |
| 384 | 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 | 386 | <IconExam class="h-4 w-4" /> |
| 387 | 387 | {ownAttempt()?.status === "in_progress" && !ownAttemptClosedByExit() ? t("attempt.resume") : t("attempt.openRoom")} |
| 388 | 388 | </Button> |
| 389 | 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 | 393 | {ownAttempt()?.status === "submitted" ? t("attempt.submitted") : ownAttempt()?.status === "expired" ? t("attempt.expired") : t("attempt.noAttemptsLeft")} |
| 394 | 394 | </Badge> |
| 395 | 395 | </Show> |
| @@ -397,7 +397,7 @@ function ExamDetailContent() { | ||
| 397 | 397 | </Show> |
| 398 | 398 | <Show when={hasCourseManagementRights() && !isDraft() && !isUpcoming() && isSittable()}> |
| 399 | 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 | 401 | <IconEye class="h-4 w-4" /> |
| 402 | 402 | {isFinished() ? t("exams.finalState") : t("exams.liveMonitor")} |
| 403 | 403 | </Button> |
| @@ -405,11 +405,11 @@ function ExamDetailContent() { | ||
| 405 | 405 | </Show> |
| 406 | 406 | <Show when={canManage()}> |
| 407 | 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 | 409 | <IconEdit class="h-4 w-4" /> |
| 410 | 410 | {t("common.edit")} |
| 411 | 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 | 413 | <IconTrash class="h-4 w-4" /> |
| 414 | 414 | {t("common.delete")} |
| 415 | 415 | </Button> |
| @@ -425,7 +425,7 @@ function ExamDetailContent() { | ||
| 425 | 425 | <Badge |
| 426 | 426 | variant="outline" |
| 427 | 427 | class={cn( |
| 428 | - "mt-2 w-fit rounded-sm capitalize", | |
| 428 | + "mt-2 w-fit rounded-full capitalize", | |
| 429 | 429 | scheduleStatusClass(examStatusTone(detailStatus())), |
| 430 | 430 | )} |
| 431 | 431 | > |
| @@ -672,9 +672,7 @@ function ExamDetailContent() { | ||
| 672 | 672 | </Show> |
| 673 | 673 | } |
| 674 | 674 | > |
| 675 | - <Show when={openSections().questions}> | |
| 676 | - <ExamQuestionsPanel examId={id()} courseId={ex().course} readOnly={isFinished()} embedded createOpen={questionCreateOpen()} onCreateOpenChange={setQuestionCreateOpen} /> | |
| 677 | - </Show> | |
| 675 | + <ExamQuestionsPanel examId={id()} courseId={ex().course} readOnly={isFinished()} embedded createOpen={questionCreateOpen()} onCreateOpenChange={setQuestionCreateOpen} /> | |
| 678 | 676 | </SectionDisclosure> |
| 679 | 677 | |
| 680 | 678 | <SidePanel |
| @@ -704,12 +702,10 @@ function ExamDetailContent() { | ||
| 704 | 702 | description={`${resultTotal()} ${t("exams.studentResults")}`} |
| 705 | 703 | actions={ |
| 706 | 704 | <Show when={hasCourseManagementRights()}> |
| 707 | - <div class="flex items-center gap-2"> | |
| 708 | - <Button type="button" variant="outline" size="sm" class="rounded-lg" disabled={isDraft()} onClick={() => setGradeOpen(true)}> | |
| 709 | - <IconEdit class="h-4 w-4" /> | |
| 710 | - {t("exams.gradeStudent")} | |
| 711 | - </Button> | |
| 712 | - </div> | |
| 705 | + <Button type="button" variant="outline" size="sm" class="rounded-lg" disabled={isDraft()} onClick={() => setGradeOpen(true)}> | |
| 706 | + <IconEdit class="h-4 w-4" /> | |
| 707 | + {t("exams.gradeStudent")} | |
| 708 | + </Button> | |
| 713 | 709 | </Show> |
| 714 | 710 | } |
| 715 | 711 | > |
src/pages/exams-page.tsxmodified+10 -10
| @@ -171,7 +171,7 @@ function ExamsContent() { | ||
| 171 | 171 | cell: (cell) => { |
| 172 | 172 | const status = cell.row.original.displayStatus; |
| 173 | 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 | 175 | <span class={cn("mr-1.5 h-1.5 w-1.5 rounded-full", scheduleStatusDotClass(examStatusTone(status)))} /> |
| 176 | 176 | {statusLabel(status)} |
| 177 | 177 | </Badge> |
| @@ -275,7 +275,7 @@ function ExamsContent() { | ||
| 275 | 275 | /> |
| 276 | 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 | 279 | <Show when={flash()}> |
| 280 | 280 | <Alert variant="success">{flash()}</Alert> |
| 281 | 281 | </Show> |
| @@ -358,11 +358,11 @@ function ExamsContent() { | ||
| 358 | 358 | description={createdExam() ? t("exams.step2Questions") : t("exams.subtitle")} |
| 359 | 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 | 362 | <button |
| 363 | 363 | type="button" |
| 364 | 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 | 366 | createStep() === "details" |
| 367 | 367 | ? "bg-primary text-primary-foreground shadow-xs" |
| 368 | 368 | : "text-muted-foreground hover:bg-muted/50", |
| @@ -375,7 +375,7 @@ function ExamsContent() { | ||
| 375 | 375 | type="button" |
| 376 | 376 | disabled={!createdExam()} |
| 377 | 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 | 379 | createStep() === "questions" |
| 380 | 380 | ? "bg-primary text-primary-foreground shadow-xs" |
| 381 | 381 | : createdExam() |
| @@ -390,11 +390,11 @@ function ExamsContent() { | ||
| 390 | 390 | |
| 391 | 391 | <Show when={createStep() === "details"}> |
| 392 | 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 | 394 | <label class="text-sm font-medium" for="exam-course"> |
| 395 | 395 | {t("exams.selectCourse")} |
| 396 | 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 | 398 | <option value="">{t("exams.selectCourse")}</option> |
| 399 | 399 | <For each={manageableCourses()}>{(course: Course) => <option value={course.id}>{course.title}</option>}</For> |
| 400 | 400 | </Select> |
| @@ -439,11 +439,11 @@ function ExamsContent() { | ||
| 439 | 439 | <Show when={editingExam()}> |
| 440 | 440 | {(exam) => ( |
| 441 | 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 | 443 | <button |
| 444 | 444 | type="button" |
| 445 | 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 | 447 | editTab() === "details" |
| 448 | 448 | ? "bg-primary text-primary-foreground shadow-xs" |
| 449 | 449 | : "text-muted-foreground hover:bg-muted/50", |
| @@ -455,7 +455,7 @@ function ExamsContent() { | ||
| 455 | 455 | <button |
| 456 | 456 | type="button" |
| 457 | 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 | 459 | editTab() === "questions" |
| 460 | 460 | ? "bg-primary text-primary-foreground shadow-xs" |
| 461 | 461 | : "text-muted-foreground hover:bg-muted/50", |
src/pages/messages-page.tsxmodified+23 -23
| @@ -120,14 +120,14 @@ export default function MessagesPage() { | ||
| 120 | 120 | <div class="grid min-h-[calc(100vh-7rem)] lg:[grid-template-columns:var(--messages-cols)]" style={{ "--messages-cols": gridTemplate() }}> |
| 121 | 121 | <aside class="border-b border-primary/20 bg-primary/[0.07] p-3 lg:border-b-0"> |
| 122 | 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 | 124 | <IconPlus class="h-4 w-4" /> |
| 125 | 125 | {t("messages.newMessage")} |
| 126 | 126 | </Button> |
| 127 | 127 | <div class="space-y-1"> |
| 128 | 128 | <Button |
| 129 | 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 | 131 | onClick={() => startTransition(() => { setFolder("inbox"); setPage(1); setSelectedId(""); })} |
| 132 | 132 | > |
| 133 | 133 | <IconMessage class="h-4 w-4" /> |
| @@ -138,7 +138,7 @@ export default function MessagesPage() { | ||
| 138 | 138 | </Button> |
| 139 | 139 | <Button |
| 140 | 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 | 142 | onClick={() => startTransition(() => { setFolder("sent"); setPage(1); setSelectedId(""); })} |
| 143 | 143 | > |
| 144 | 144 | <IconSend class="h-4 w-4" /> |
| @@ -146,7 +146,7 @@ export default function MessagesPage() { | ||
| 146 | 146 | </Button> |
| 147 | 147 | <Button |
| 148 | 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 | 150 | onClick={() => startTransition(() => { setFolder("archive"); setPage(1); setSelectedId(""); })} |
| 151 | 151 | > |
| 152 | 152 | <IconArchive class="h-4 w-4" /> |
| @@ -154,7 +154,7 @@ export default function MessagesPage() { | ||
| 154 | 154 | </Button> |
| 155 | 155 | <Button |
| 156 | 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 | 158 | onClick={() => startTransition(() => { setFolder("trash"); setPage(1); setSelectedId(""); })} |
| 159 | 159 | > |
| 160 | 160 | <IconTrash class="h-4 w-4" /> |
| @@ -175,7 +175,7 @@ export default function MessagesPage() { | ||
| 175 | 175 | <div class="border-b p-3"> |
| 176 | 176 | <div class="relative"> |
| 177 | 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 | 179 | </div> |
| 180 | 180 | </div> |
| 181 | 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 | 192 | <button |
| 193 | 193 | type="button" |
| 194 | 194 | class={cn( |
| 195 | - "w-full rounded-lg 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", | |
| 197 | - unread && selected()?.id !== message.id && "border-primary/20 bg-primary/[0.035]" | |
| 195 | + "w-full rounded-2xl border bg-card p-3 text-left shadow-sm transition-colors", | |
| 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-sky-500/20 bg-sky-500/[0.035]" | |
| 198 | 198 | )} |
| 199 | 199 | onClick={() => { setComposeOpen(false); setSelectedId(message.id); }} |
| 200 | 200 | > |
| @@ -204,7 +204,7 @@ export default function MessagesPage() { | ||
| 204 | 204 | </div> |
| 205 | 205 | <div class="mt-1 flex items-center gap-2"> |
| 206 | 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 | 208 | </Show> |
| 209 | 209 | <span class={cn("truncate text-sm", unread ? "font-bold text-foreground" : "font-medium text-foreground/90")}>{message.subject}</span> |
| 210 | 210 | </div> |
| @@ -265,7 +265,7 @@ export default function MessagesPage() { | ||
| 265 | 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 | 269 | {(message) => { |
| 270 | 270 | const isSent = folder() === "sent" || isOwnSentMessage(message()); |
| 271 | 271 | const peerName = isSent ? personLabel(message().recipient) : personLabel(message().sender); |
| @@ -278,7 +278,7 @@ export default function MessagesPage() { | ||
| 278 | 278 | <Button |
| 279 | 279 | variant="outline" |
| 280 | 280 | size="sm" |
| 281 | - class="rounded-md" | |
| 281 | + class="rounded-xl" | |
| 282 | 282 | onClick={() => { |
| 283 | 283 | setReplyData({ |
| 284 | 284 | recipient: message().sender.id, |
| @@ -295,25 +295,25 @@ export default function MessagesPage() { | ||
| 295 | 295 | <div class="mx-1 h-4 w-[1px] bg-border" /> |
| 296 | 296 | </Show> |
| 297 | 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 | 299 | <IconArchive class="h-4 w-4" /> |
| 300 | 300 | {t("messages.moveToArchive")} |
| 301 | 301 | </Button> |
| 302 | 302 | </Show> |
| 303 | 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 | 305 | <IconMessage class="mr-2 h-4 w-4" /> |
| 306 | 306 | {t("messages.moveOutOfArchive")} |
| 307 | 307 | </Button> |
| 308 | 308 | </Show> |
| 309 | 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 | 311 | <IconTrash class="h-4 w-4" /> |
| 312 | 312 | {t("messages.moveToTrash")} |
| 313 | 313 | </Button> |
| 314 | 314 | </Show> |
| 315 | 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 | 317 | <IconTrash class="h-4 w-4" /> |
| 318 | 318 | {t("messages.deleteForever")} |
| 319 | 319 | </Button> |
| @@ -321,7 +321,7 @@ export default function MessagesPage() { | ||
| 321 | 321 | </div> |
| 322 | 322 | <div class="border-b p-5"> |
| 323 | 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 | 325 | {peerName.charAt(0)} |
| 326 | 326 | </div> |
| 327 | 327 | <div class="min-w-0 flex-1"> |
| @@ -334,7 +334,7 @@ export default function MessagesPage() { | ||
| 334 | 334 | </Show> |
| 335 | 335 | </div> |
| 336 | 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 | 338 | </div> |
| 339 | 339 | </div> |
| 340 | 340 | <div class="flex-1 overflow-auto p-5"> |
| @@ -416,7 +416,7 @@ function ComposePanel(props: { | ||
| 416 | 416 | <h2 class="font-display text-2xl font-semibold tracking-tight">{t("messages.newMessage")}</h2> |
| 417 | 417 | <p class="text-sm text-muted-foreground">{t("nav.messages")}</p> |
| 418 | 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 | 420 | <Label for="msg-recipient">{t("messages.recipient")}</Label> |
| 421 | 421 | <UserSearchSelect |
| 422 | 422 | id="msg-recipient" |
| @@ -426,7 +426,7 @@ function ComposePanel(props: { | ||
| 426 | 426 | excludeIds={auth.user()?.id ? [auth.user()!.id] : []} |
| 427 | 427 | /> |
| 428 | 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 | 430 | <Label for="msg-subject">{t("form.title")}</Label> |
| 431 | 431 | <Input |
| 432 | 432 | id="msg-subject" |
| @@ -436,7 +436,7 @@ function ComposePanel(props: { | ||
| 436 | 436 | onInput={(e) => setSubject(e.currentTarget.value)} |
| 437 | 437 | /> |
| 438 | 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 | 440 | <Label for="msg-body">{t("form.description")}</Label> |
| 441 | 441 | <Textarea |
| 442 | 442 | id="msg-body" |
| @@ -448,11 +448,11 @@ function ComposePanel(props: { | ||
| 448 | 448 | </div> |
| 449 | 449 | {error() && <p class="text-sm text-destructive">{error()}</p>} |
| 450 | 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 | 452 | <IconSend class="mr-2 h-4 w-4" /> |
| 453 | 453 | {t("messages.send")} |
| 454 | 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 | 456 | {t("common.cancel")} |
| 457 | 457 | </Button> |
| 458 | 458 | </div> |
src/pages/notes-page.tsxmodified+2 -2
| @@ -139,11 +139,11 @@ function NotesContent() { | ||
| 139 | 139 | </SidePanel> |
| 140 | 140 | |
| 141 | 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 | 143 | <Show when={flash()}> |
| 144 | 144 | <Alert variant="success">{flash()}</Alert> |
| 145 | 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 | 147 | <Suspense fallback={<PageSpinner />}> |
| 148 | 148 | <Show when={list.error}> |
| 149 | 149 | <Alert variant="destructive">{formatApiError(list.error)}</Alert> |
src/pages/pomodoro-page.tsxmodified+1 -1
| @@ -198,7 +198,7 @@ function PomodoroContent() { | ||
| 198 | 198 | </div> |
| 199 | 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 | 202 | <div class="flex flex-wrap items-end justify-between gap-2"> |
| 203 | 203 | <div> |
| 204 | 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 | 253 | <Alert variant="success">{flash()}</Alert> |
| 254 | 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 | 257 | <div class="flex flex-wrap items-center justify-between gap-3"> |
| 258 | 258 | <div> |
| 259 | 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 | 110 | <PageHeader accent="sky" eyebrow={t("nav.admin")} title={t("nav.studentAttendance")} description={t("attendance.lookup")} /> |
| 111 | 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 | 114 | <div class="flex flex-wrap items-center justify-between gap-3"> |
| 115 | 115 | <div> |
| 116 | 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 | 110 | <PageHeader accent="violet" eyebrow={t("nav.admin")} title={t("nav.studentMarks")} description={t("marks.lookup")} /> |
| 111 | 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 | 114 | <div class="flex flex-wrap items-center justify-between gap-3"> |
| 115 | 115 | <div> |
| 116 | 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 | 126 | <div class="space-y-6"> |
| 127 | 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 | 130 | <div class="flex flex-wrap items-center justify-between gap-3"> |
| 131 | 131 | <div> |
| 132 | 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 | 186 | <Alert variant="destructive">{error()}</Alert> |
| 187 | 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 | 190 | <Suspense fallback={<DataTableSkeleton columns={4} rows={6} />}> |
| 191 | 191 | <Show when={list.error}> |
| 192 | 192 | <ErrorAlert message={formatApiError(list.error)} onRetry={() => void refetch()} /> |
src/pages/work-log-page.tsxmodified+1 -1
| @@ -123,7 +123,7 @@ function WorkLogContent() { | ||
| 123 | 123 | </div> |
| 124 | 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 | 127 | <div class="flex flex-wrap items-center justify-between gap-2"> |
| 128 | 128 | <h2 class="font-display text-lg font-semibold">{t("work.entries")}</h2> |
| 129 | 129 | <Badge variant="secondary" class="mono rounded-sm px-3 py-1"> |