Include a callToAction on Content widget
This commit is contained in:
@ -4,12 +4,14 @@ import type { Content } from '~/types';
|
||||
import Headline from '../ui/Headline.astro';
|
||||
import WidgetWrapper from '../ui/WidgetWrapper.astro';
|
||||
import Image from '~/components/common/Image.astro';
|
||||
import CTA from '../ui/CTA.astro';
|
||||
|
||||
const {
|
||||
title = await Astro.slots.render('title'),
|
||||
subtitle = await Astro.slots.render('subtitle'),
|
||||
tagline,
|
||||
content = await Astro.slots.render('content'),
|
||||
callToAction,
|
||||
items = [],
|
||||
image = await Astro.slots.render('image'),
|
||||
isReversed = false,
|
||||
@ -43,6 +45,14 @@ const {
|
||||
<div class="md:basis-1/2 self-center">
|
||||
{content && <div class="mb-12 text-lg dark:text-slate-400" set:html={content} />}
|
||||
|
||||
{
|
||||
callToAction && (
|
||||
<div class="mt-[-40px] mb-8 text-primary cursor-pointer">
|
||||
<CTA callToAction={callToAction} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
{
|
||||
items && (
|
||||
<div class="space-y-8">
|
||||
|
Reference in New Issue
Block a user