From 972f3b19f591ef64f6233f3ad84d649362b8de09 Mon Sep 17 00:00:00 2001 From: extolkom Date: Sun, 31 May 2026 03:20:14 -1200 Subject: [PATCH] feat: add pinned creator functionality with group separator --- .../common/CreatorListGroupSeparator.tsx | 40 ++++++++++ src/pages/LandingPage.tsx | 76 ++++++++++++++----- src/services/course.service.ts | 2 + 3 files changed, 97 insertions(+), 21 deletions(-) create mode 100644 src/components/common/CreatorListGroupSeparator.tsx diff --git a/src/components/common/CreatorListGroupSeparator.tsx b/src/components/common/CreatorListGroupSeparator.tsx new file mode 100644 index 0000000..9c6de50 --- /dev/null +++ b/src/components/common/CreatorListGroupSeparator.tsx @@ -0,0 +1,40 @@ +import { cn } from '@/lib/utils'; + +interface CreatorListGroupSeparatorProps { + label: string; + className?: string; +} + +/** + * Visual separator with label between creator list groups (e.g., pinned vs unpinned). + * Spans the full grid width and includes an accessible label. + */ +const CreatorListGroupSeparator: React.FC = ({ + label, + className, +}) => { + return ( +
+