From 31d0b976dd2dee68b450c9d474aad7fdfe92e92e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Boduro=C4=9Flu?= <80620802+burakboduroglu@users.noreply.github.com> Date: Wed, 15 Jul 2026 23:49:33 +0300 Subject: [PATCH] =?UTF-8?q?refactor:=20=E2=99=BB=EF=B8=8F=20extract=20deta?= =?UTF-8?q?il=20page=20repetitive=20styles=20into=20shared=20CSS=20utiliti?= =?UTF-8?q?es=20-=20detail-breadcrumb:=20reusable=20breadcrumb=20nav=20sty?= =?UTF-8?q?le=20-=20detail-action-group:=20header=20action=20bar=20contain?= =?UTF-8?q?er=20-=20detail-action-divider:=20responsive=20vertical/horizon?= =?UTF-8?q?tal=20action=20divider=20-=20detail-metric-card:=20detail=20pag?= =?UTF-8?q?e=20metric=20card=20container?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.css | 20 ++++++++++++++++++++ src/pages/course-detail-page.tsx | 16 ++++++++-------- src/pages/event-detail-page.tsx | 8 ++++---- src/pages/exam-detail-page.tsx | 24 ++++++++++++------------ 4 files changed, 44 insertions(+), 24 deletions(-) diff --git a/src/index.css b/src/index.css index 3c9eb6f..522004b 100644 --- a/src/index.css +++ b/src/index.css @@ -156,6 +156,26 @@ background-color: hsl(var(--muted) / 0.28); } + .detail-breadcrumb { + @apply flex flex-wrap items-center gap-1 text-xs text-muted-foreground; + } + + .detail-breadcrumb a { + @apply transition-colors hover:text-foreground; + } + + .detail-action-group { + @apply flex w-full flex-wrap items-center gap-1 rounded-lg border border-border bg-card p-1 shadow-sm sm:w-auto; + } + + .detail-action-divider { + @apply flex flex-1 items-center gap-1 border-t border-border pt-1 sm:ml-1 sm:flex-none sm:border-l sm:border-t-0 sm:pl-1 sm:pt-0; + } + + .detail-metric-card { + @apply rounded-lg border border-border bg-muted/25 p-3; + } + .side-panel-body form { @apply space-y-5 pb-5; } diff --git a/src/pages/course-detail-page.tsx b/src/pages/course-detail-page.tsx index 072327c..8057011 100644 --- a/src/pages/course-detail-page.tsx +++ b/src/pages/course-detail-page.tsx @@ -163,10 +163,10 @@ function CourseDetailContent() { {t("common.accessDenied")}}>
-
+
{t("nav.group.classes")} / - {t("courses.title")} + {t("courses.title")} / {c().title}
@@ -176,7 +176,7 @@ function CourseDetailContent() { title={c().title} description={c().description || undefined} actions={ -
+
-
+
-
+