From 705723b009505c759979060aaa2fca02d1e5f362 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Fri, 30 Jan 2026 17:40:11 +0300 Subject: [PATCH] feat(Section): create a section wrapper for a page --- src/shared/ui/Section/Section.svelte | 70 ++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 src/shared/ui/Section/Section.svelte diff --git a/src/shared/ui/Section/Section.svelte b/src/shared/ui/Section/Section.svelte new file mode 100644 index 0000000..b9ececc --- /dev/null +++ b/src/shared/ui/Section/Section.svelte @@ -0,0 +1,70 @@ + + + +
+
+
+ {#if icon} + {@render icon({ className: 'size-4 stroke-gray-900 stroke-1' })} +
+ {/if} + {#if typeof index === 'number'} + + Component_{String(index).padStart(3, '0')} + + {/if} +
+ + {#if title} + {@render title({ className: 'text-5xl md:text-6xl font-semibold tracking-tighter text-gray-900 leading-[0.9]' })} + {/if} +
+ + {@render children?.()} +