From bb728b76438c4e3cbf6fef205fcd9a323d48dab1 Mon Sep 17 00:00:00 2001 From: Okeke Chinedu Emmanuel Date: Fri, 27 Mar 2026 07:27:09 +0100 Subject: [PATCH] Add reusable section divider component with spacing variants --- src/components/common/SectionDivider.tsx | 31 ++++++++++++++++++++++++ src/pages/LandingPage.tsx | 5 ++++ 2 files changed, 36 insertions(+) create mode 100644 src/components/common/SectionDivider.tsx diff --git a/src/components/common/SectionDivider.tsx b/src/components/common/SectionDivider.tsx new file mode 100644 index 0000000..04a96f7 --- /dev/null +++ b/src/components/common/SectionDivider.tsx @@ -0,0 +1,31 @@ +import { cn } from '@/lib/utils'; + +type SectionDividerSpacing = 'compact' | 'default' | 'relaxed'; + +interface SectionDividerProps { + title?: string; + spacing?: SectionDividerSpacing; + className?: string; +} + +const spacingClasses: Record = { + compact: 'my-4 md:my-5', + default: 'my-6 md:my-8', + relaxed: 'my-8 md:my-12', +}; + +function SectionDivider({ title, spacing = 'default', className }: SectionDividerProps) { + return ( +
+ + + + +
{isLoading ? (