forge
Explore
Log in

Don't you dare go Hollow

🎨 neutralize decorative metric-card borders on exam detail

Browse files at this commit

109b1e41d0b64c2a519a853efeaa03dd5af66dcdBurak BoduroğluParent: ae4184f
  • style
    • 🎨 neutralize decorative metric-card borders on exam detail
Show full message
style: 🎨 neutralize decorative metric-card borders on exam detail
- drop per-card rainbow borders (sky/violet/rose/amber/emerald) on info tiles,
  stat cards and the header; use neutral border-border, no shadows
- keep semantic status chip + alerts unchanged
src/pages/exam-detail-page.tsxmodified+11 -11
@@ -393,7 +393,7 @@ function ExamDetailContent() {
393 <PageHeader393 <PageHeader
394 title={ex().title}394 title={ex().title}
395 description={ex().description || "—"}395 description={ex().description || "—"}
396- class="border-rose-500/30 shadow-sm"396+ class="border-border/70"
397 actions={397 actions={
398 <div class="flex flex-wrap items-center gap-2">398 <div class="flex flex-wrap items-center gap-2">
399 <Show when={isStudent() && !isDraft() && isSittable()}>399 <Show when={isStudent() && !isDraft() && isSittable()}>
@@ -452,14 +452,14 @@ function ExamDetailContent() {
452 <span class="mr-1.5 inline-block h-1.5 w-1.5 rounded-full bg-muted-foreground" />452 <span class="mr-1.5 inline-block h-1.5 w-1.5 rounded-full bg-muted-foreground" />
453 {detailStatusLabel()}453 {detailStatusLabel()}
454 </Badge>454 </Badge>
455- <Badge variant="outline" class="rounded-full border-rose-500/30">455+ <Badge variant="outline" class="rounded-full">
456 {examKindLabel(String(ex().kind), t)}456 {examKindLabel(String(ex().kind), t)}
457 </Badge>457 </Badge>
458 </div>458 </div>
459 </PageHeader>459 </PageHeader>
460 </div>460 </div>
461 <div class="grid gap-2 sm:grid-cols-2 xl:grid-cols-4">461 <div class="grid gap-2 sm:grid-cols-2 xl:grid-cols-4">
462- <div class="flex min-w-0 items-center gap-3 rounded-lg border border-sky-500/30 bg-card p-3.5">462+ <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3.5">
463 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">463 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
464 <IconExam class="h-4 w-4" />464 <IconExam class="h-4 w-4" />
465 </span>465 </span>
@@ -468,7 +468,7 @@ function ExamDetailContent() {
468 <p class="truncate text-sm font-semibold">{examModeLabel(ex().mode)}</p>468 <p class="truncate text-sm font-semibold">{examModeLabel(ex().mode)}</p>
469 </div>469 </div>
470 </div>470 </div>
471- <div class="flex min-w-0 items-center gap-3 rounded-lg border border-violet-500/30 bg-card p-3.5">471+ <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3.5">
472 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">472 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
473 <IconRefresh class="h-4 w-4" />473 <IconRefresh class="h-4 w-4" />
474 </span>474 </span>
@@ -484,7 +484,7 @@ function ExamDetailContent() {
484 </Show>484 </Show>
485 </div>485 </div>
486 </div>486 </div>
487- <div class="flex min-w-0 items-center gap-3 rounded-lg border border-rose-500/30 bg-card p-3.5">487+ <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3.5">
488 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">488 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
489 <IconCalendarDays class="h-4 w-4" />489 <IconCalendarDays class="h-4 w-4" />
490 </span>490 </span>
@@ -498,7 +498,7 @@ function ExamDetailContent() {
498 </Show>498 </Show>
499 </div>499 </div>
500 </div>500 </div>
501- <div class="flex min-w-0 items-center gap-3 rounded-lg border border-amber-500/30 bg-card p-3.5">501+ <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3.5">
502 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">502 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
503 <IconClock class="h-4 w-4" />503 <IconClock class="h-4 w-4" />
504 </span>504 </span>
@@ -618,7 +618,7 @@ function ExamDetailContent() {
618 618
619 <Show when={isStudent() && ownResult()}>619 <Show when={isStudent() && ownResult()}>
620 {(result) => (620 {(result) => (
621- <section class="space-y-4 rounded-lg border border-emerald-500/30 bg-card p-4" aria-labelledby="own-exam-result">621+ <section class="space-y-4 rounded-lg border border-border/70 bg-card p-4" aria-labelledby="own-exam-result">
622 <div class="flex flex-wrap items-center gap-3">622 <div class="flex flex-wrap items-center gap-3">
623 <span class="flex h-9 w-9 items-center justify-center rounded-xl bg-muted text-muted-foreground">623 <span class="flex h-9 w-9 items-center justify-center rounded-xl bg-muted text-muted-foreground">
624 <IconClipboardCheck class="h-4 w-4" />624 <IconClipboardCheck class="h-4 w-4" />
@@ -646,19 +646,19 @@ function ExamDetailContent() {
646 <Show when={stats()}>646 <Show when={stats()}>
647 {(s) => (647 {(s) => (
648 <div class="grid gap-2 text-sm sm:grid-cols-2 lg:grid-cols-4">648 <div class="grid gap-2 text-sm sm:grid-cols-2 lg:grid-cols-4">
649- <div class="rounded-xl border border-violet-500/30 bg-card p-4">649+ <div class="rounded-xl border border-border/70 bg-card p-4">
650 <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("exams.graded")}</p>650 <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("exams.graded")}</p>
651 <p class="mono mt-1 text-2xl font-semibold tabular-nums">{s().graded}</p>651 <p class="mono mt-1 text-2xl font-semibold tabular-nums">{s().graded}</p>
652 </div>652 </div>
653- <div class="rounded-xl border border-sky-500/30 bg-card p-4">653+ <div class="rounded-xl border border-border/70 bg-card p-4">
654 <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("exams.average")}</p>654 <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("exams.average")}</p>
655 <p class="mono mt-1 text-2xl font-semibold tabular-nums">{s().average == null ? "—" : s().average}</p>655 <p class="mono mt-1 text-2xl font-semibold tabular-nums">{s().average == null ? "—" : s().average}</p>
656 </div>656 </div>
657- <div class="rounded-xl border border-amber-500/30 bg-card p-4">657+ <div class="rounded-xl border border-border/70 bg-card p-4">
658 <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("exams.min")}</p>658 <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("exams.min")}</p>
659 <p class="mono mt-1 text-2xl font-semibold tabular-nums">{s().min == null ? "—" : s().min}</p>659 <p class="mono mt-1 text-2xl font-semibold tabular-nums">{s().min == null ? "—" : s().min}</p>
660 </div>660 </div>
661- <div class="rounded-xl border border-emerald-500/30 bg-card p-4">661+ <div class="rounded-xl border border-border/70 bg-card p-4">
662 <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("exams.max")}</p>662 <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("exams.max")}</p>
663 <p class="mono mt-1 text-2xl font-semibold tabular-nums">{s().max == null ? "—" : s().max}</p>663 <p class="mono mt-1 text-2xl font-semibold tabular-nums">{s().max == null ? "—" : s().max}</p>
664 </div>664 </div>