forge
Explore
Log in

Don't you dare go Hollow

🎨 neutralize decorative borders on course detail

Browse files at this commit

00019a81ebb88decab3bc5d45b14f505c8285d93Burak BoduroğluParent: 109b1e4
  • style
    • 🎨 neutralize decorative borders on course detail
Show full message
style: 🎨 neutralize decorative borders on course detail
- drop rainbow metric-card / panel / segment borders → neutral border-border
- flatten header (drop tinted border + shadow); keep tinted info panels neutral
- (also carries small in-progress tweaks: sidebar width, title attr, kind label)
src/pages/course-detail-page.tsxmodified+11 -11
@@ -210,7 +210,7 @@ function CourseDetailContent() {
210 cell: (cell) => (210 cell: (cell) => (
211 <Badge variant="outline" class="rounded-full capitalize">211 <Badge variant="outline" class="rounded-full capitalize">
212 {examKindLabel(String(cell.row.original.kind), t)}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 {(weight) => <span class="ml-1 text-muted-foreground">({t("courses.weight")}: {weight()})</span>}214 {(weight) => <span class="ml-1 text-muted-foreground">({t("courses.weight")}: {weight()})</span>}
215 </Show>215 </Show>
216 </Badge>216 </Badge>
@@ -275,14 +275,14 @@ function CourseDetailContent() {
275 <div class="mx-auto w-full max-w-[1440px] space-y-6">275 <div class="mx-auto w-full max-w-[1440px] space-y-6">
276 <div class="space-y-2">276 <div class="space-y-2">
277 <nav class="detail-breadcrumb">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 <span aria-hidden>›</span>279 <span aria-hidden>›</span>
280 <span class="text-foreground">{c().title}</span>280 <span class="text-foreground">{c().title}</span>
281 </nav>281 </nav>
282 <PageHeader282 <PageHeader
283 title={c().title}283 title={c().title}
284 description={c().description || "—"}284 description={c().description || "—"}
285- class="border-violet-500/30 shadow-sm"285+ class="border-border/70"
286 actions={286 actions={
287 <Show when={canManage()}>287 <Show when={canManage()}>
288 <TableRowActions288 <TableRowActions
@@ -307,7 +307,7 @@ function CourseDetailContent() {
307 }307 }
308 />308 />
309 <div class="grid gap-2 sm:grid-cols-2 xl:grid-cols-4">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 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">311 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
312 <IconBook class="h-4 w-4" />312 <IconBook class="h-4 w-4" />
313 </span>313 </span>
@@ -316,7 +316,7 @@ function CourseDetailContent() {
316 <p class="truncate text-sm font-semibold">{courseKindLabel(c().kind)}</p>316 <p class="truncate text-sm font-semibold">{courseKindLabel(c().kind)}</p>
317 </div>317 </div>
318 </div>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 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">320 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
321 <IconCalendarDays class="h-4 w-4" />321 <IconCalendarDays class="h-4 w-4" />
322 </span>322 </span>
@@ -325,7 +325,7 @@ function CourseDetailContent() {
325 <p class="truncate text-sm font-semibold">{terms()?.find((term) => term.id === c().term)?.name ?? t("terms.unassigned")}</p>325 <p class="truncate text-sm font-semibold">{terms()?.find((term) => term.id === c().term)?.name ?? t("terms.unassigned")}</p>
326 </div>326 </div>
327 </div>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 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">329 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
330 <IconUsers class="h-4 w-4" />330 <IconUsers class="h-4 w-4" />
331 </span>331 </span>
@@ -334,7 +334,7 @@ function CourseDetailContent() {
334 <p class="mono truncate text-sm font-semibold">{c().capacity == null ? "—" : hasCourseManagementRights() ? `${rosterCount()} / ${c().capacity}` : c().capacity}</p>334 <p class="mono truncate text-sm font-semibold">{c().capacity == null ? "—" : hasCourseManagementRights() ? `${rosterCount()} / ${c().capacity}` : c().capacity}</p>
335 </div>335 </div>
336 </div>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 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">338 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
339 <IconExam class="h-4 w-4" />339 <IconExam class="h-4 w-4" />
340 </span>340 </span>
@@ -402,7 +402,7 @@ function CourseDetailContent() {
402 }, t("common.saved"));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 <div class="space-y-1.5">406 <div class="space-y-1.5">
407 <Label for="edit-course-title">{t("form.title")}</Label>407 <Label for="edit-course-title">{t("form.title")}</Label>
408 <Input408 <Input
@@ -424,7 +424,7 @@ function CourseDetailContent() {
424 />424 />
425 </div>425 </div>
426 </div>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 <div class="space-y-1.5">428 <div class="space-y-1.5">
429 <Label for="edit-course-kind">{t("courses.kind")}</Label>429 <Label for="edit-course-kind">{t("courses.kind")}</Label>
430 <Select id="edit-course-kind" value={kind()} onChange={(e) => setKind(e.currentTarget.value as CourseKind)}>430 <Select id="edit-course-kind" value={kind()} onChange={(e) => setKind(e.currentTarget.value as CourseKind)}>
@@ -467,7 +467,7 @@ function CourseDetailContent() {
467 description={createdCourseExam() ? t("exams.step2Questions") : c().title}467 description={createdCourseExam() ? t("exams.step2Questions") : c().title}
468 size={examCreateStep() === "questions" ? "wide" : "default"}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 <button471 <button
472 type="button"472 type="button"
473 class={cn(473 class={cn(
@@ -635,7 +635,7 @@ function CourseDetailContent() {
635 <Badge variant="secondary" class="rounded-full">{countDescription((c().teachers ?? []).length + 1, t("courses.teachers"))}</Badge>635 <Badge variant="secondary" class="rounded-full">{countDescription((c().teachers ?? []).length + 1, t("courses.teachers"))}</Badge>
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>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 </div>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 <IconSchool class="h-4 w-4 shrink-0 text-muted-foreground" />639 <IconSchool class="h-4 w-4 shrink-0 text-muted-foreground" />
640 <span><span class="text-muted-foreground">{t("common.creator")}:</span> <span class="font-medium">{c().creator.display_name || c().creator.username}</span></span>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 </div>641 </div>