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() {
210210 cell: (cell) => (
211211 <Badge variant="outline" class="rounded-full capitalize">
212212 {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)}>
214214 {(weight) => <span class="ml-1 text-muted-foreground">({t("courses.weight")}: {weight()})</span>}
215215 </Show>
216216 </Badge>
@@ -275,14 +275,14 @@ function CourseDetailContent() {
275275 <div class="mx-auto w-full max-w-[1440px] space-y-6">
276276 <div class="space-y-2">
277277 <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>
279279 <span aria-hidden>›</span>
280280 <span class="text-foreground">{c().title}</span>
281281 </nav>
282282 <PageHeader
283283 title={c().title}
284284 description={c().description || "—"}
285- class="border-violet-500/30 shadow-sm"
285+ class="border-border/70"
286286 actions={
287287 <Show when={canManage()}>
288288 <TableRowActions
@@ -307,7 +307,7 @@ function CourseDetailContent() {
307307 }
308308 />
309309 <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">
311311 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
312312 <IconBook class="h-4 w-4" />
313313 </span>
@@ -316,7 +316,7 @@ function CourseDetailContent() {
316316 <p class="truncate text-sm font-semibold">{courseKindLabel(c().kind)}</p>
317317 </div>
318318 </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">
320320 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
321321 <IconCalendarDays class="h-4 w-4" />
322322 </span>
@@ -325,7 +325,7 @@ function CourseDetailContent() {
325325 <p class="truncate text-sm font-semibold">{terms()?.find((term) => term.id === c().term)?.name ?? t("terms.unassigned")}</p>
326326 </div>
327327 </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">
329329 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
330330 <IconUsers class="h-4 w-4" />
331331 </span>
@@ -334,7 +334,7 @@ function CourseDetailContent() {
334334 <p class="mono truncate text-sm font-semibold">{c().capacity == null ? "—" : hasCourseManagementRights() ? `${rosterCount()} / ${c().capacity}` : c().capacity}</p>
335335 </div>
336336 </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">
338338 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
339339 <IconExam class="h-4 w-4" />
340340 </span>
@@ -402,7 +402,7 @@ function CourseDetailContent() {
402402 }, t("common.saved"));
403403 }}
404404 >
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">
406406 <div class="space-y-1.5">
407407 <Label for="edit-course-title">{t("form.title")}</Label>
408408 <Input
@@ -424,7 +424,7 @@ function CourseDetailContent() {
424424 />
425425 </div>
426426 </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">
428428 <div class="space-y-1.5">
429429 <Label for="edit-course-kind">{t("courses.kind")}</Label>
430430 <Select id="edit-course-kind" value={kind()} onChange={(e) => setKind(e.currentTarget.value as CourseKind)}>
@@ -467,7 +467,7 @@ function CourseDetailContent() {
467467 description={createdCourseExam() ? t("exams.step2Questions") : c().title}
468468 size={examCreateStep() === "questions" ? "wide" : "default"}
469469 >
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">
471471 <button
472472 type="button"
473473 class={cn(
@@ -635,7 +635,7 @@ function CourseDetailContent() {
635635 <Badge variant="secondary" class="rounded-full">{countDescription((c().teachers ?? []).length + 1, t("courses.teachers"))}</Badge>
636636 <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>
637637 </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">
639639 <IconSchool class="h-4 w-4 shrink-0 text-muted-foreground" />
640640 <span><span class="text-muted-foreground">{t("common.creator")}:</span> <span class="font-medium">{c().creator.display_name || c().creator.username}</span></span>
641641 </div>