From b57222a6e3e66281175c87c7cfe7667ebb408b58 Mon Sep 17 00:00:00 2001 From: widgeter Date: Mon, 7 Aug 2023 14:36:23 +0200 Subject: [PATCH] Include testimonials widget in mobile-app page --- src/components/widgets/Testimonials.astro | 65 +++++++++++++++++++++++ src/pages/landing/mobile-app.astro | 45 ++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 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..0feb864 --- /dev/null +++ b/src/components/widgets/Testimonials.astro @@ -0,0 +1,65 @@ +--- +import Headline from '~/components/ui/Headline.astro'; +import WidgetWrapper from '~/components/ui/WidgetWrapper.astro'; +import type { Testimonials } from '~/types'; +import CTA from '../ui/CTA.astro'; + +const { + title = '', + subtitle = '', + tagline = '', + testimonials = [], + callToAction, + + id, + isDark = false, + classes = {}, + bg = await Astro.slots.render('bg'), +} = Astro.props as Testimonials; +--- + + + + +
+ { + testimonials && + testimonials.map(({ title, testimonial, name, job, image }) => ( +
+
+ {title &&

{title}

} + {testimonial && ( +
+

" {testimonial} "

+
+ )} + +
+ +
+ {image && image.src && ( + {image.alt} + )} + +
+ {name &&

{name}

} + {job &&

{job}

} +
+
+
+
+ )) + } +
+ { + callToAction && ( +
+ +
+ ) + } +
diff --git a/src/pages/landing/mobile-app.astro b/src/pages/landing/mobile-app.astro index dfd7edc..76348dc 100644 --- a/src/pages/landing/mobile-app.astro +++ b/src/pages/landing/mobile-app.astro @@ -6,6 +6,7 @@ import Hero2 from '~/components/widgets/Hero2.astro'; import CallToAction from '~/components/widgets/CallToAction.astro'; import Features3 from '~/components/widgets/Features3.astro'; import Content from '~/components/widgets/Content.astro'; +import Testimonials from '~/components/widgets/Testimonials.astro'; const metadata = { title: 'Mobile App Landing Page', @@ -176,6 +177,50 @@ const metadata = { + + + +