From c949098e81248cd05da48d6ec6ccc033bd1d0011 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Tue, 22 Jul 2025 18:47:32 +0300 Subject: Full size hero --- src/components/widgets/HeroBackground.astro | 128 ++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 src/components/widgets/HeroBackground.astro (limited to 'src/components/widgets/HeroBackground.astro') diff --git a/src/components/widgets/HeroBackground.astro b/src/components/widgets/HeroBackground.astro new file mode 100644 index 0000000..b5ea748 --- /dev/null +++ b/src/components/widgets/HeroBackground.astro @@ -0,0 +1,128 @@ +--- +import Image from '~/components/common/Image.astro'; +import Button from '~/components/ui/Button.astro'; + +import type { Hero as Props } from '~/types'; + +const { + title = await Astro.slots.render('title'), + subtitle = await Astro.slots.render('subtitle'), + tagline, + + content = await Astro.slots.render('content'), + actions = await Astro.slots.render('actions'), + image = await Astro.slots.render('image'), + + id, + bg = await Astro.slots.render('bg'), + logoPath = '~/assets/images/customworks-logo.png', +} = Astro.props; +--- + +
+ + + + +
+
+
+
+ + { + logoPath && ( +
+ CustomWorks Logo +
+ ) + } + + { + tagline && ( +

+ ) + } + + { + title && ( +

+ ) + } + + { + subtitle && ( +

+ ) + } + + { + actions && ( +

+ {Array.isArray(actions) ? ( + actions.map((action) => ( +
+
+ )) + ) : ( + + )} +
+ ) + } + + { + content && ( +
+ +
+ ) + } +

+
+
+
-- cgit v1.2.3