aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2025-06-06 12:35:46 +0200
committerschererleander <leander@schererleander.de>2025-06-06 12:35:46 +0200
commitebcebedec6dbb950a3494ec001fb4b5f7c6b0792 (patch)
treeb2dce9ccf79fa95817c6ff178550ba54657813c2 /src
parent0c2afb4dc95559968bce9f4b0e95f178e9de3113 (diff)
remove img hover effect
Diffstat (limited to 'src')
-rw-r--r--src/components/CardLink.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/CardLink.tsx b/src/components/CardLink.tsx
index 01d277b..8c3f35d 100644
--- a/src/components/CardLink.tsx
+++ b/src/components/CardLink.tsx
@@ -41,7 +41,7 @@ export default function CardLink({ title, body, href, imgSrc }: Props) {
>
{/* Spotlight overlay - light */}
<div
- className="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 ease-in-out"
+ className="absolute inset-0 opacity-0 transition-opacity duration-300 ease-in-out"
style={{
opacity,
background: `radial-gradient(circle at ${position.x}px ${position.y}px,
@@ -52,7 +52,7 @@ export default function CardLink({ title, body, href, imgSrc }: Props) {
{/* Spotlight overlay - dark mode */}
<div
- className="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 ease-in-out dark:block"
+ className="absolute inset-0 opacity-0 transition-opacity duration-300 ease-in-out dark:block"
style={{
opacity,
background: `radial-gradient(circle at ${position.x}px ${position.y}px,
@@ -65,15 +65,15 @@ export default function CardLink({ title, body, href, imgSrc }: Props) {
{imgSrc && (
<img
src={imgSrc}
- className="w-20 h-20 object-cover rounded-lg transition-transform duration-200 hover:scale-105 z-10"
+ className="w-20 h-20 object-cover rounded-lg"
alt={title}
/>
)}
- <div className="flex-1 z-10">
+ <div className="flex-1">
<h3 className="font-medium">{title}</h3>
<p className="text-sm text-neutral-800 dark:text-neutral-400">{body}</p>
</div>
- {href && <div className="z-10"><ExternalLinkIcon /></div>}
+ {href && <ExternalLinkIcon />}
</div>
);
}