Include WidgetWrapper in the Hero widget

This commit is contained in:
widgeter
2023-08-14 11:39:44 +02:00
parent 2bf0ed49c1
commit 6986348806
2 changed files with 35 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
---
import { Icon } from 'astro-icon/components';
import { Picture } from '@astrojs/image/components';
import WidgetWrapper from '../ui/WidgetWrapper.astro';
const {
title = await Astro.slots.render('title'),
@@ -9,10 +10,20 @@ const {
callToAction = await Astro.slots.render('callToAction'),
callToAction2 = await Astro.slots.render('callToAction2'),
image = await Astro.slots.render('image'),
id,
isDark = false,
classes = {},
bg = await Astro.slots.render('bg'),
} = Astro.props;
---
<section class="relative md:-mt-[76px] not-prose">
<WidgetWrapper
id={id}
isDark={isDark}
containerClass={`relative md:-mt-[76px] not-prose py-0 md:py-0 lg:py-0 ${classes?.container ?? ''}`}
bg={bg}
>
<div class="absolute inset-0 pointer-events-none" aria-hidden="true"></div>
<div class="relative max-w-7xl mx-auto px-4 sm:px-6">
<div class="pt-0 md:pt-[76px] pointer-events-none"></div>
@@ -94,4 +105,4 @@ const {
</div>
</div>
</div>
</section>
</WidgetWrapper>