feat(Section): add SectionTitle component

This commit is contained in:
Ilia Mashkov
2026-02-25 09:58:14 +03:00
parent 8d571042d8
commit bd480f9592

View File

@@ -0,0 +1,16 @@
<!--
Component: SectionTitle
Styled title for page section
-->
<script lang="ts">
interface Props {
text?: string;
}
const { text }: Props = $props();
</script>
{#if text}
<h2 class="text-3xl md:text-4xl lg:text-5xl font-['Space_Grotesk'] font-bold text-[#1a1a1a] dark:text-[#e5e5e5] tracking-tight">
{text}
</h2>
{/if}