Skip to content

Commit 3087955

Browse files
committed
bigger hover radius, drop card bottom fade
Stroke radial bumped from 220 to 360 so the glow stretches further across the grid. Remove the card's bottom backdrop-blur fade and solid gradient overlay entirely — text sits directly on the card background now.
1 parent dec0eac commit 3087955

1 file changed

Lines changed: 3 additions & 23 deletions

File tree

‎src/components/icon-card.tsx‎

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function IconCard({
5555
const c1 = colors[0];
5656
const c2 = colors[1] ?? colors[0];
5757
const c3 = colors[2] ?? c2;
58-
return `radial-gradient(circle 220px at var(--mx, -600px) var(--my, -600px), rgba(255,255,255,0.95) 0%, ${c1} 22%, rgba(255,255,255,0.7) 44%, ${c2} 66%, ${c3} 82%, transparent 100%)`;
58+
return `radial-gradient(circle 360px at var(--mx, -800px) var(--my, -800px), rgba(255,255,255,0.95) 0%, ${c1} 22%, rgba(255,255,255,0.7) 44%, ${c2} 66%, ${c3} 82%, transparent 100%)`;
5959
}, [colors]);
6060

6161
useEffect(() => {
@@ -92,8 +92,8 @@ export function IconCard({
9292
const onLeave = () => {
9393
const node = cardRef.current;
9494
if (!node) return;
95-
node.style.setProperty("--mx", "-600px");
96-
node.style.setProperty("--my", "-600px");
95+
node.style.setProperty("--mx", "-800px");
96+
node.style.setProperty("--my", "-800px");
9797
node.style.setProperty("--rim-a", "0");
9898
};
9999
window.addEventListener("pointermove", onMove);
@@ -321,26 +321,6 @@ export function IconCard({
321321
/>
322322
</div>
323323

324-
<span
325-
aria-hidden
326-
className="pointer-events-none absolute inset-x-0 bottom-0 z-10 h-24"
327-
style={{
328-
backdropFilter: "blur(6px)",
329-
WebkitBackdropFilter: "blur(6px)",
330-
maskImage:
331-
"linear-gradient(to top, black 0%, black 40%, transparent 100%)",
332-
WebkitMaskImage:
333-
"linear-gradient(to top, black 0%, black 40%, transparent 100%)",
334-
}}
335-
/>
336-
<span
337-
aria-hidden
338-
className="pointer-events-none absolute inset-x-[5px] bottom-[5px] z-10 h-20 rounded-b-[0.95rem]"
339-
style={{
340-
background:
341-
"linear-gradient(to top, var(--card) 0%, var(--card) 30%, transparent 100%)",
342-
}}
343-
/>
344324
<div className="relative z-20 flex flex-col items-center gap-0.5 px-3 pb-3">
345325
<span className="max-w-full truncate text-[15px] font-semibold tracking-tight text-foreground">
346326
{name}

0 commit comments

Comments
 (0)