diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-22 15:08:37 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-22 15:08:37 +0300 |
| commit | fcc2f4704e39b0e69b377cc138f75027721dac22 (patch) | |
| tree | 732fc94b354a26c08fba9cc9059f9c6c900182be /src/components/widgets/FAQs.astro | |
Initial template
Diffstat (limited to 'src/components/widgets/FAQs.astro')
| -rw-r--r-- | src/components/widgets/FAQs.astro | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/components/widgets/FAQs.astro b/src/components/widgets/FAQs.astro new file mode 100644 index 0000000..cba9762 --- /dev/null +++ b/src/components/widgets/FAQs.astro @@ -0,0 +1,33 @@ +--- +import Headline from '~/components/ui/Headline.astro'; +import ItemGrid from '~/components/ui/ItemGrid.astro'; +import WidgetWrapper from '~/components/ui/WidgetWrapper.astro'; +import type { Faqs as Props } from '~/types'; + +const { + title = '', + subtitle = '', + tagline = '', + items = [], + columns = 2, + + id, + isDark = false, + classes = {}, + bg = await Astro.slots.render('bg'), +} = Astro.props; +--- + +<WidgetWrapper id={id} isDark={isDark} containerClass={`max-w-7xl mx-auto ${classes?.container ?? ''}`} bg={bg}> + <Headline title={title} subtitle={subtitle} tagline={tagline} /> + <ItemGrid + items={items} + columns={columns} + defaultIcon="tabler:chevron-right" + classes={{ + container: `${columns === 1 ? 'max-w-4xl' : ''} gap-y-8 md:gap-y-12`, + panel: 'max-w-none', + icon: 'flex-shrink-0 mt-1 w-6 h-6 text-primary', + }} + /> +</WidgetWrapper> |
