diff options
Diffstat (limited to 'src/components/widgets/CallToActionImage.astro')
| -rw-r--r-- | src/components/widgets/CallToActionImage.astro | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/components/widgets/CallToActionImage.astro b/src/components/widgets/CallToActionImage.astro index df13145..80e181e 100644 --- a/src/components/widgets/CallToActionImage.astro +++ b/src/components/widgets/CallToActionImage.astro @@ -47,27 +47,19 @@ const { image && ( <div class="flex justify-center mt-6 px-4"> {image.href ? ( - <a - href={image.href} + <a + href={image.href} target={image.target || '_self'} rel={image.target === '_blank' ? 'noopener noreferrer' : ''} class="inline-block hover:opacity-80 transition-opacity duration-200" > - <Image - src={image.src} - alt={image.alt} - class="max-h-20 h-auto w-auto max-w-full object-contain" - /> + <Image src={image.src} alt={image.alt} class="max-h-20 h-auto w-auto max-w-full object-contain" /> </a> ) : ( - <Image - src={image.src} - alt={image.alt} - class="max-h-20 h-auto w-auto max-w-full object-contain" - /> + <Image src={image.src} alt={image.alt} class="max-h-20 h-auto w-auto max-w-full object-contain" /> )} </div> ) } </div> -</WidgetWrapper>
\ No newline at end of file +</WidgetWrapper> |
