summaryrefslogtreecommitdiff
path: root/src/components/widgets/CallToActionImage.astro
diff options
context:
space:
mode:
authorDawid Rycerz <dawid@rycerz.xyz>2025-07-22 17:11:44 +0300
committerDawid Rycerz <dawid@rycerz.xyz>2025-07-22 17:11:44 +0300
commitd6608c822370ca7aad42c0ed54caf421ead8bb50 (patch)
tree468ec79a662b1bdfa48e78b2657ce490f5e30192 /src/components/widgets/CallToActionImage.astro
parent6c71a67a7473ee30c424ac63b4d2b27c38007d5e (diff)
Update widget
Diffstat (limited to 'src/components/widgets/CallToActionImage.astro')
-rw-r--r--src/components/widgets/CallToActionImage.astro18
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>