From cb8e4ff70d61bc444c0a2f85f69bccb6c61d73e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Boduro=C4=9Flu?= <80620802+burakboduroglu@users.noreply.github.com> Date: Sun, 12 Jul 2026 22:21:08 +0300 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=92=84=20tighten=20dashboard=20a?= =?UTF-8?q?nd=20navigation=20layout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - remove the role summary panel from the dashboard - keep dashboard greeting and guide action above KPI cards - move notes and events after the report card in sidebar navigation - remove the add-exam action from the exams page header - make normal page headers more compact while keeping dashboard compact unchanged - reshape notes page into a full-width create form with a wider notes grid --- src/components/layout/page-header.tsx | 8 ++++---- src/components/layout/side-nav.tsx | 5 ++--- src/components/notes/note-list.tsx | 2 +- src/pages/dashboard-page.tsx | 4 ---- src/pages/exams-page.tsx | 8 -------- src/pages/notes-page.tsx | 8 ++++---- 6 files changed, 11 insertions(+), 24 deletions(-) diff --git a/src/components/layout/page-header.tsx b/src/components/layout/page-header.tsx index 1ba291f..b0251c5 100644 --- a/src/components/layout/page-header.tsx +++ b/src/components/layout/page-header.tsx @@ -42,17 +42,17 @@ export function PageHeader( "relative flex flex-col sm:flex-row sm:items-center sm:justify-between", props.compact ? "gap-3 px-4 py-3 sm:px-5 sm:py-3.5" - : "gap-4 p-6 sm:items-end sm:p-8", + : "gap-3 px-4 py-4 sm:items-end sm:px-5 sm:py-5", )} > -
{props.eyebrow}
{props.description} diff --git a/src/components/layout/side-nav.tsx b/src/components/layout/side-nav.tsx index 52a5ad6..746fde0 100644 --- a/src/components/layout/side-nav.tsx +++ b/src/components/layout/side-nav.tsx @@ -26,11 +26,11 @@ type NavItem = { const MAIN_ITEMS: NavItem[] = [ { to: "/", labelKey: "nav.home", Icon: IconHome, exact: true }, - { to: "/notes", labelKey: "nav.notes", Icon: IconNote }, - { to: "/events", labelKey: "nav.events", Icon: IconCalendar }, { to: "/courses", labelKey: "nav.courses", Icon: IconBook }, { to: "/exams", labelKey: "nav.exams", Icon: IconExam }, { to: "/marks", labelKey: "nav.marks", Icon: IconChart }, + { to: "/notes", labelKey: "nav.notes", Icon: IconNote }, + { to: "/events", labelKey: "nav.events", Icon: IconCalendar }, { to: "/admin/users", labelKey: "nav.users", Icon: IconUsers, adminOnly: true }, ]; @@ -119,7 +119,6 @@ export function SideNav(props: { onNavigate?: () => void; collapsed?: boolean })
{error()}
}