From 88e90fccbd51ab0e793883eeb504d44212e2b303 Mon Sep 17 00:00:00 2001 From: widgeter Date: Fri, 4 Aug 2023 19:22:44 +0200 Subject: [PATCH 1/2] Fix CallToaction style in dark mode --- src/components/widgets/CallToAction.astro | 8 ++++++-- src/pages/landing/startup.astro | 1 + src/types.d.ts | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/widgets/CallToAction.astro b/src/components/widgets/CallToAction.astro index adc8aab..396fdd4 100644 --- a/src/components/widgets/CallToAction.astro +++ b/src/components/widgets/CallToAction.astro @@ -25,13 +25,17 @@ const { --- -
+
{ diff --git a/src/pages/landing/startup.astro b/src/pages/landing/startup.astro index 7b7595c..df1c80e 100644 --- a/src/pages/landing/startup.astro +++ b/src/pages/landing/startup.astro @@ -142,6 +142,7 @@ const metadata = { Date: Fri, 4 Aug 2023 19:54:29 +0200 Subject: [PATCH 2/2] Add a Features3 widget --- src/components/widgets/Features3.astro | 40 ++++++++++++++++++++ src/pages/landing/startup.astro | 51 ++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 src/components/widgets/Features3.astro diff --git a/src/components/widgets/Features3.astro b/src/components/widgets/Features3.astro new file mode 100644 index 0000000..843652f --- /dev/null +++ b/src/components/widgets/Features3.astro @@ -0,0 +1,40 @@ +--- +import Headline from '~/components/ui/Headline.astro'; +import ItemGrid from '~/components/ui/ItemGrid.astro'; +import WidgetWrapper from '~/components/ui/WidgetWrapper.astro'; +import type { Features } from '~/types'; + +const { + title = await Astro.slots.render('title'), + subtitle = await Astro.slots.render('subtitle'), + tagline = await Astro.slots.render('tagline'), + image, + items = [], + columns, + + id, + isDark = false, + classes = {}, + bg = await Astro.slots.render('bg'), +} = Astro.props as Features; +--- + + + + +
+ {image && image.src && {image.alt} +
+ + +
diff --git a/src/pages/landing/startup.astro b/src/pages/landing/startup.astro index df1c80e..c7d032d 100644 --- a/src/pages/landing/startup.astro +++ b/src/pages/landing/startup.astro @@ -9,6 +9,7 @@ import { headerData } from '~/navigation'; import Features2 from '~/components/widgets/Features2.astro'; import Features from '~/components/widgets/Features.astro'; import Stats from '~/components/widgets/Stats.astro'; +import Features3 from '~/components/widgets/Features3.astro'; const metadata = { title: 'Startup Landing Page', @@ -157,4 +158,54 @@ const metadata = { waste more time! :P
+ + + + + +
+
+