+
+
{props.eyebrow}
-
+
{props.title}
- {props.description}
+
+ {props.description}
+
{props.children}
diff --git a/src/i18n/messages.ts b/src/i18n/messages.ts
index 492bab3..26811d4 100644
--- a/src/i18n/messages.ts
+++ b/src/i18n/messages.ts
@@ -81,6 +81,18 @@ export type MessageKey =
| "dashboard.subtitle"
| "dashboard.overview"
| "dashboard.quickActions"
+ | "dashboard.action.note"
+ | "dashboard.action.noteHint"
+ | "dashboard.action.event"
+ | "dashboard.action.eventHint"
+ | "dashboard.action.course"
+ | "dashboard.action.courseHint"
+ | "dashboard.action.exam"
+ | "dashboard.action.examHint"
+ | "dashboard.action.attend"
+ | "dashboard.action.attendHint"
+ | "dashboard.action.marks"
+ | "dashboard.action.marksHint"
| "dashboard.stats.notes"
| "dashboard.stats.events"
| "dashboard.stats.exams"
@@ -301,6 +313,18 @@ const en: Dict = {
"dashboard.subtitle": "Here’s what’s happening across your workspace.",
"dashboard.overview": "Overview",
"dashboard.quickActions": "Quick actions",
+ "dashboard.action.note": "New note",
+ "dashboard.action.noteHint": "Capture something quickly",
+ "dashboard.action.event": "Create event",
+ "dashboard.action.eventHint": "Schedule a session",
+ "dashboard.action.course": "New course",
+ "dashboard.action.courseHint": "Open a class",
+ "dashboard.action.exam": "Add exam",
+ "dashboard.action.examHint": "Under a course",
+ "dashboard.action.attend": "Mark attendance",
+ "dashboard.action.attendHint": "Open events list",
+ "dashboard.action.marks": "My report card",
+ "dashboard.action.marksHint": "See averages",
"dashboard.stats.notes": "Notes",
"dashboard.stats.events": "Events",
"dashboard.stats.exams": "Exams",
@@ -534,6 +558,18 @@ const tr: Dict = {
"dashboard.subtitle": "Çalışma alanındaki güncel durum burada.",
"dashboard.overview": "Özet",
"dashboard.quickActions": "Hızlı işlemler",
+ "dashboard.action.note": "Yeni not",
+ "dashboard.action.noteHint": "Hızlıca bir şey kaydet",
+ "dashboard.action.event": "Etkinlik oluştur",
+ "dashboard.action.eventHint": "Oturum planla",
+ "dashboard.action.course": "Yeni ders",
+ "dashboard.action.courseHint": "Sınıf aç",
+ "dashboard.action.exam": "Sınav ekle",
+ "dashboard.action.examHint": "Dersin içinden",
+ "dashboard.action.attend": "Yoklama işaretle",
+ "dashboard.action.attendHint": "Etkinlik listesine git",
+ "dashboard.action.marks": "Karnem",
+ "dashboard.action.marksHint": "Ortalamaları gör",
"dashboard.stats.notes": "Notlar",
"dashboard.stats.events": "Etkinlikler",
"dashboard.stats.exams": "Sınavlar",
diff --git a/src/pages/dashboard-page.tsx b/src/pages/dashboard-page.tsx
index b2d68cd..15241ff 100644
--- a/src/pages/dashboard-page.tsx
+++ b/src/pages/dashboard-page.tsx
@@ -7,7 +7,6 @@ import { getNotes } from "@/api/getNotes";
import type { Event, Exam, Note } from "@/api/types";
import { RouteGuard } from "@/components/layout/route-guard";
import { PageHeader } from "@/components/layout/page-header";
-import { CollapsibleHelp } from "@/components/ui/collapsible-help";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import {
@@ -58,24 +57,98 @@ function DashboardContent() {
const previewExams = createMemo(() => (exams() ?? []).slice(0, PREVIEW_LIMIT));
return (
-
+
+ {/* Compact greeting + guide */}
-
+
}
/>
- {t("dashboard.helpBody")}
+ {/* Action CTAs — not sidebar mirrors; 4 verb-style shortcuts */}
+
+
+ {t("dashboard.quickActions")}
+
+
+
+
+
+
+
+ >
+ }
+ >
+
+
+
+
+
+
+
- {/* KPIs — full width, roomy tiles */}
+ {/* KPIs below actions */}
}>
-
+
- {/* Quick actions — own full-width row so list panels stay wide */}
-
- {t("dashboard.quickActions")}
-
-
-
-
-
-
-
-
-
-
-
-
- {/* Wide equal panels: notes · events · exams */}
-
-
-
-
{t("dashboard.recentNotes")}
+ {/* Summaries */}
+
+
+
+
{t("dashboard.recentNotes")}
{t("dashboard.viewAll")}
@@ -172,9 +225,9 @@ function DashboardContent() {
-
-
-
{t("dashboard.upcomingEvents")}
+
+
+
{t("dashboard.upcomingEvents")}
{t("dashboard.viewAll")}
@@ -223,9 +276,9 @@ function DashboardContent() {
-
-
-
{t("dashboard.myExams")}
+
+
+
{t("dashboard.myExams")}
{t("dashboard.viewAll")}
@@ -274,6 +327,7 @@ function DashboardContent() {
+
);
}
@@ -350,15 +404,15 @@ function StatTile(props: {
};
const inner = (
-
-
{props.label}
-
+
+
{props.label}
+
{props.value}
- {props.suffix}
+ {props.suffix}
-
{props.hint}
+
{props.hint}
);
@@ -372,18 +426,48 @@ function StatTile(props: {
return inner;
}
-function QuickAction(props: { to: string; title: string; description: string; icon: string }) {
+function ActionCard(props: {
+ to: string;
+ title: string;
+ hint: string;
+ icon: string;
+ tone: "mint" | "sky" | "amber" | "violet" | "rose";
+}) {
+ const ring = {
+ mint: "hover:border-emerald-500/40",
+ sky: "hover:border-sky-500/40",
+ amber: "hover:border-amber-500/40",
+ violet: "hover:border-violet-500/40",
+ rose: "hover:border-rose-500/40",
+ };
+ const iconBg = {
+ mint: "bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",
+ sky: "bg-sky-500/10 text-sky-700 dark:text-sky-300",
+ amber: "bg-amber-500/10 text-amber-700 dark:text-amber-300",
+ violet: "bg-violet-500/10 text-violet-700 dark:text-violet-300",
+ rose: "bg-rose-500/10 text-rose-700 dark:text-rose-300",
+ };
+
return (
-
+
{props.icon}
- {props.title}
- {props.description}
+ {props.title}
+ {props.hint}
);