Include Faqs widget in startup page

This commit is contained in:
widgeter
2023-08-04 22:03:31 +02:00
parent 157b207c9c
commit d596ad13ed
3 changed files with 52 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
---
import { Icon } from 'astro-icon/components';
import { Picture } from '@astrojs/image/components';
import type { CallToAction } from '~/components/widgets/CallToAction.astro';
import { CallToAction } from '~/types';
export interface Props {
title?: string;
@@ -48,7 +48,8 @@ const {
<a class="btn btn-primary sm:mb-0 w-full" href={callToAction?.href} target="_blank" rel="noopener">
{callToAction?.icon && (
<>
<Icon name={callToAction.icon} class="w-5 h-5 mr-1 -ml-1.5" />&nbsp;
<Icon name={callToAction.icon} class="w-5 h-5 mr-1 -ml-1.5" />
&nbsp;
</>
)}
{callToAction?.text}
@@ -66,7 +67,8 @@ const {
<a class="btn w-full" href={callToAction2?.href}>
{callToAction2?.icon && (
<>
<Icon name={callToAction2.icon} class="w-5 h-5 mr-1 -ml-1.5" />&nbsp;
<Icon name={callToAction2.icon} class="w-5 h-5 mr-1 -ml-1.5" />
&nbsp;
</>
)}
{callToAction2.text}