🎨 neutralize decorative borders on course detail
Browse files at this commit00019a81ebb88decab3bc5d45b14f505c8285d93Parent: 109b1e4- style
- 🎨 neutralize decorative borders on course detail
1 changed file +11 -11
- src/pages/course-detail-page.tsx +11 -11
src/pages/course-detail-page.tsxmodified+11 -11
| @@ -210,7 +210,7 @@ function CourseDetailContent() { | ||
| 210 | 210 | cell: (cell) => ( |
| 211 | 211 | <Badge variant="outline" class="rounded-full capitalize"> |
| 212 | 212 | {examKindLabel(String(cell.row.original.kind), t)} |
| 213 | - <Show when={examWeight(cell.row.original, settings()?.exam_kinds) != null}> | |
| 213 | + <Show when={examWeight(cell.row.original, settings()?.exam_kinds)}> | |
| 214 | 214 | {(weight) => <span class="ml-1 text-muted-foreground">({t("courses.weight")}: {weight()})</span>} |
| 215 | 215 | </Show> |
| 216 | 216 | </Badge> |
| @@ -275,14 +275,14 @@ function CourseDetailContent() { | ||
| 275 | 275 | <div class="mx-auto w-full max-w-[1440px] space-y-6"> |
| 276 | 276 | <div class="space-y-2"> |
| 277 | 277 | <nav class="detail-breadcrumb"> |
| 278 | - <Link to="/courses" search={courseListSearch(c().kind)}>{t("courses.kind.course")}</Link> | |
| 278 | + <Link to="/courses" search={courseListSearch(c().kind)}>{courseKindLabel(c().kind)}</Link> | |
| 279 | 279 | <span aria-hidden>›</span> |
| 280 | 280 | <span class="text-foreground">{c().title}</span> |
| 281 | 281 | </nav> |
| 282 | 282 | <PageHeader |
| 283 | 283 | title={c().title} |
| 284 | 284 | description={c().description || "—"} |
| 285 | - class="border-violet-500/30 shadow-sm" | |
| 285 | + class="border-border/70" | |
| 286 | 286 | actions={ |
| 287 | 287 | <Show when={canManage()}> |
| 288 | 288 | <TableRowActions |
| @@ -307,7 +307,7 @@ function CourseDetailContent() { | ||
| 307 | 307 | } |
| 308 | 308 | /> |
| 309 | 309 | <div class="grid gap-2 sm:grid-cols-2 xl:grid-cols-4"> |
| 310 | - <div class="flex min-w-0 items-center gap-3 rounded-lg border border-violet-500/30 bg-card p-3.5"> | |
| 310 | + <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3.5"> | |
| 311 | 311 | <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground"> |
| 312 | 312 | <IconBook class="h-4 w-4" /> |
| 313 | 313 | </span> |
| @@ -316,7 +316,7 @@ function CourseDetailContent() { | ||
| 316 | 316 | <p class="truncate text-sm font-semibold">{courseKindLabel(c().kind)}</p> |
| 317 | 317 | </div> |
| 318 | 318 | </div> |
| 319 | - <div class="flex min-w-0 items-center gap-3 rounded-lg border border-sky-500/30 bg-card p-3.5"> | |
| 319 | + <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3.5"> | |
| 320 | 320 | <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground"> |
| 321 | 321 | <IconCalendarDays class="h-4 w-4" /> |
| 322 | 322 | </span> |
| @@ -325,7 +325,7 @@ function CourseDetailContent() { | ||
| 325 | 325 | <p class="truncate text-sm font-semibold">{terms()?.find((term) => term.id === c().term)?.name ?? t("terms.unassigned")}</p> |
| 326 | 326 | </div> |
| 327 | 327 | </div> |
| 328 | - <div class="flex min-w-0 items-center gap-3 rounded-lg border border-emerald-500/30 bg-card p-3.5"> | |
| 328 | + <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3.5"> | |
| 329 | 329 | <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground"> |
| 330 | 330 | <IconUsers class="h-4 w-4" /> |
| 331 | 331 | </span> |
| @@ -334,7 +334,7 @@ function CourseDetailContent() { | ||
| 334 | 334 | <p class="mono truncate text-sm font-semibold">{c().capacity == null ? "—" : hasCourseManagementRights() ? `${rosterCount()} / ${c().capacity}` : c().capacity}</p> |
| 335 | 335 | </div> |
| 336 | 336 | </div> |
| 337 | - <div class="flex min-w-0 items-center gap-3 rounded-lg border border-amber-500/30 bg-card p-3.5"> | |
| 337 | + <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3.5"> | |
| 338 | 338 | <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground"> |
| 339 | 339 | <IconExam class="h-4 w-4" /> |
| 340 | 340 | </span> |
| @@ -402,7 +402,7 @@ function CourseDetailContent() { | ||
| 402 | 402 | }, t("common.saved")); |
| 403 | 403 | }} |
| 404 | 404 | > |
| 405 | - <div class="space-y-3 rounded-lg border border-sky-500/15 bg-sky-500/2.5 p-4 shadow-xs"> | |
| 405 | + <div class="space-y-3 rounded-lg border border-border/60 bg-muted/20 p-4"> | |
| 406 | 406 | <div class="space-y-1.5"> |
| 407 | 407 | <Label for="edit-course-title">{t("form.title")}</Label> |
| 408 | 408 | <Input |
| @@ -424,7 +424,7 @@ function CourseDetailContent() { | ||
| 424 | 424 | /> |
| 425 | 425 | </div> |
| 426 | 426 | </div> |
| 427 | - <div class="space-y-3 rounded-lg border border-violet-500/15 bg-violet-500/3 p-4 shadow-xs"> | |
| 427 | + <div class="space-y-3 rounded-lg border border-border/60 bg-muted/20 p-4"> | |
| 428 | 428 | <div class="space-y-1.5"> |
| 429 | 429 | <Label for="edit-course-kind">{t("courses.kind")}</Label> |
| 430 | 430 | <Select id="edit-course-kind" value={kind()} onChange={(e) => setKind(e.currentTarget.value as CourseKind)}> |
| @@ -467,7 +467,7 @@ function CourseDetailContent() { | ||
| 467 | 467 | description={createdCourseExam() ? t("exams.step2Questions") : c().title} |
| 468 | 468 | size={examCreateStep() === "questions" ? "wide" : "default"} |
| 469 | 469 | > |
| 470 | - <div class="mb-4 flex rounded-lg border border-indigo-500/15 bg-indigo-500/3 p-1"> | |
| 470 | + <div class="mb-4 flex rounded-lg border border-border/60 bg-muted/30 p-1"> | |
| 471 | 471 | <button |
| 472 | 472 | type="button" |
| 473 | 473 | class={cn( |
| @@ -635,7 +635,7 @@ function CourseDetailContent() { | ||
| 635 | 635 | <Badge variant="secondary" class="rounded-full">{countDescription((c().teachers ?? []).length + 1, t("courses.teachers"))}</Badge> |
| 636 | 636 | <Show when={canStaffCourse()}><Button type="button" variant="outline" size="sm" class="rounded-lg border-primary/30 hover:bg-muted" onClick={() => setShowTeacherForm(true)}><IconPlus class="h-4 w-4" />{t("courses.assignTeacher")}</Button></Show> |
| 637 | 637 | </div> |
| 638 | - <div class="flex items-center gap-3 rounded-xl border border-violet-500/30 bg-card px-3 py-2.5 text-sm"> | |
| 638 | + <div class="flex items-center gap-3 rounded-xl border border-border/70 bg-card px-3 py-2.5 text-sm"> | |
| 639 | 639 | <IconSchool class="h-4 w-4 shrink-0 text-muted-foreground" /> |
| 640 | 640 | <span><span class="text-muted-foreground">{t("common.creator")}:</span> <span class="font-medium">{c().creator.display_name || c().creator.username}</span></span> |
| 641 | 641 | </div> |