diff --git a/src/components/exams/answer-sheet-view.tsx b/src/components/exams/answer-sheet-view.tsx index 0af01df..6ee4204 100644 --- a/src/components/exams/answer-sheet-view.tsx +++ b/src/components/exams/answer-sheet-view.tsx @@ -59,7 +59,7 @@ export function AnswerSheetView(props: { examId: string; userId: string }) { }> @@ -90,9 +90,9 @@ export function AnswerSheetView(props: { examId: string; userId: string }) {
✗ {ci() === row.question.correct && ( - + )} diff --git a/src/components/exams/exam-room-ws.tsx b/src/components/exams/exam-room-ws.tsx index 399fc17..f9996e8 100644 --- a/src/components/exams/exam-room-ws.tsx +++ b/src/components/exams/exam-room-ws.tsx @@ -286,9 +286,9 @@ export function ExamRoomWS(props: { exam: Exam }) { {(att) => ( -
+
- +

{t("attempt.submitted")}

{t("attempt.closed")}

diff --git a/src/components/layout/app-shell.tsx b/src/components/layout/app-shell.tsx index f9dba7d..c094287 100644 --- a/src/components/layout/app-shell.tsx +++ b/src/components/layout/app-shell.tsx @@ -147,7 +147,7 @@ export function AppShell(props: ParentProps) {
{routeLabel()}
- diff --git a/src/index.css b/src/index.css index 78e7f5d..c87497c 100644 --- a/src/index.css +++ b/src/index.css @@ -1,4 +1,4 @@ -@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap"); +@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap"); @tailwind base; @tailwind components; diff --git a/src/lib/attendance-status.ts b/src/lib/attendance-status.ts index 7da14db..a6178ca 100644 --- a/src/lib/attendance-status.ts +++ b/src/lib/attendance-status.ts @@ -6,25 +6,25 @@ export const ATTENDANCE_STATUSES: { value: CoreAttendanceStatus; key: MessageKey value: "present", key: "status.present", detailKey: "status.presentDetail", - class: "border-emerald-500/25 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300", + class: "border-success/30 bg-success/10 text-success", }, { value: "absent", key: "status.absent", detailKey: "status.absentDetail", - class: "border-rose-500/25 bg-rose-500/10 text-rose-700 dark:text-rose-300", + class: "border-destructive/30 bg-destructive/10 text-destructive", }, { value: "late", key: "status.late", detailKey: "status.lateDetail", - class: "border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300", + class: "border-warning/30 bg-warning/10 text-warning", }, { value: "excused", key: "status.excused", detailKey: "status.excusedDetail", - class: "border-sky-500/25 bg-sky-500/10 text-sky-700 dark:text-sky-300", + class: "border-info/30 bg-info/10 text-info", }, ]; diff --git a/src/lib/schedule-status.ts b/src/lib/schedule-status.ts index cae2da0..123e331 100644 --- a/src/lib/schedule-status.ts +++ b/src/lib/schedule-status.ts @@ -11,24 +11,24 @@ export type ScheduleStatus = export function scheduleStatusClass(status: ScheduleStatus | string): string { if (status === "active") { - return "border-sky-500/30 bg-sky-500/10 text-sky-700 dark:text-sky-300"; + return "border-info/30 bg-info/10 text-info"; } if (status === "submitted") { - return "border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"; + return "border-success/30 bg-success/10 text-success"; } if (status === "today" || status === "upcoming" || status === "soon") { - return "border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300"; + return "border-warning/30 bg-warning/10 text-warning"; } if (status === "finished" || status === "past") { - return "border-rose-500/30 bg-rose-500/10 text-rose-700 dark:text-rose-300"; + return "border-destructive/30 bg-destructive/10 text-destructive"; } return "border-muted bg-muted/50 text-muted-foreground"; } export function scheduleStatusDotClass(status: ScheduleStatus | string): string { - if (status === "active") return "bg-sky-600"; - if (status === "submitted") return "bg-emerald-600"; - if (status === "today" || status === "upcoming" || status === "soon") return "bg-amber-600"; - if (status === "finished" || status === "past") return "bg-rose-600"; + if (status === "active") return "bg-info"; + if (status === "submitted") return "bg-success"; + if (status === "today" || status === "upcoming" || status === "soon") return "bg-warning"; + if (status === "finished" || status === "past") return "bg-destructive"; return "bg-muted-foreground"; } diff --git a/src/pages/live-monitor-page.tsx b/src/pages/live-monitor-page.tsx index db92570..19ace4e 100644 --- a/src/pages/live-monitor-page.tsx +++ b/src/pages/live-monitor-page.tsx @@ -337,16 +337,16 @@ function LiveMonitorContent() {

{t("exams.notStarted")}

{counts.not_started}

-

{t("attempt.inProgress")}

{counts.in_progress}

+

{t("attempt.inProgress")}

{counts.in_progress}

-

{t("attempt.submitted")}

{counts.submitted}

+

{t("attempt.submitted")}

{counts.submitted}

-

{t("attempt.expired")}

{counts.expired}

+

{t("attempt.expired")}

{counts.expired}

-

{t("attempt.noAttemptsLeft")}

{counts.no_attempts_left}

+

{t("attempt.noAttemptsLeft")}

{counts.no_attempts_left}

{t("attempt.absent")}

{counts.absent}

diff --git a/src/pages/messages-page.tsx b/src/pages/messages-page.tsx index b46cc79..e803b74 100644 --- a/src/pages/messages-page.tsx +++ b/src/pages/messages-page.tsx @@ -123,7 +123,7 @@ export default function MessagesPage() {
{message.from} - +

{message.subject}

diff --git a/tailwind.config.js b/tailwind.config.js index 6a71806..d3e5099 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -6,7 +6,7 @@ export default { extend: { fontFamily: { sans: ['"DM Sans"', "system-ui", "sans-serif"], - display: ['"Fraunces"', "Georgia", "serif"], + display: ['"DM Sans"', "system-ui", "sans-serif"], }, container: { center: true,