From 4296403026b5918048f932d3e77972518634faf2 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Mon, 21 Jul 2025 23:38:11 +0300 Subject: Add contact --- src/components/widgets/CallToActionImage.astro | 73 ++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 src/components/widgets/CallToActionImage.astro (limited to 'src/components/widgets/CallToActionImage.astro') diff --git a/src/components/widgets/CallToActionImage.astro b/src/components/widgets/CallToActionImage.astro new file mode 100644 index 0000000..2912d6d --- /dev/null +++ b/src/components/widgets/CallToActionImage.astro @@ -0,0 +1,73 @@ +--- +import WidgetWrapper from '~/components/ui/WidgetWrapper.astro'; +import type { Widget } from '~/types'; +import Headline from '~/components/ui/Headline.astro'; +import Image from '~/components/common/Image.astro'; + +interface Props extends Widget { + title?: string; + subtitle?: string; + tagline?: string; + image?: { + src: string; + alt: string; + href?: string; + target?: string; + }; +} + +const { + title = await Astro.slots.render('title'), + subtitle = await Astro.slots.render('subtitle'), + tagline = await Astro.slots.render('tagline'), + image, + + id, + isDark = false, + classes = {}, + bg = await Astro.slots.render('bg'), +} = Astro.props; +--- + + +
+ + { + image && ( +
+ {image.href ? ( + + {image.alt} + + ) : ( + {image.alt} + )} +
+ ) + } +
+
\ No newline at end of file -- cgit v1.2.3