From c735556726e75428550a3d28a2cf58e2c8490b7d Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Mon, 21 Jul 2025 21:56:55 +0300 Subject: Initial template --- src/components/widgets/Testimonials.astro | 75 +++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 src/components/widgets/Testimonials.astro (limited to 'src/components/widgets/Testimonials.astro') diff --git a/src/components/widgets/Testimonials.astro b/src/components/widgets/Testimonials.astro new file mode 100644 index 0000000..11db7b5 --- /dev/null +++ b/src/components/widgets/Testimonials.astro @@ -0,0 +1,75 @@ +--- +import Headline from '~/components/ui/Headline.astro'; +import WidgetWrapper from '~/components/ui/WidgetWrapper.astro'; +import Button from '~/components/ui/Button.astro'; +import Image from '~/components/common/Image.astro'; +import type { Testimonials as Props } from '~/types'; + +const { + title = '', + subtitle = '', + tagline = '', + testimonials = [], + callToAction, + + id, + isDark = false, + classes = {}, + bg = await Astro.slots.render('bg'), +} = Astro.props; +--- + + + + +
+ { + testimonials && + testimonials.map(({ title, testimonial, name, job, image }) => ( +
+
+ {title &&

{title}

} + {testimonial && ( +
+

" {testimonial} "

+
+ )} + +
+ +
+ {image && ( +
+ {typeof image === 'string' ? ( + + ) : ( + + )} +
+ )} + +
+ {name &&

{name}

} + {job &&

{job}

} +
+
+
+
+ )) + } +
+ { + callToAction && ( +
+
+ ) + } +
-- cgit v1.2.3