mirror of
https://github.com/Xevion/xevion.dev.git
synced 2026-01-31 10:26:52 -06:00
Add small animation to mobile-only button
This commit is contained in:
@@ -71,12 +71,13 @@ const ItemCard = ({banner, bannerBlur, title, description, links, location}: Ite
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{active ?
|
|
||||||
<Link ref={mobileButtonRef} href={{pathname: location}}
|
<Link ref={mobileButtonRef} href={{pathname: location}}
|
||||||
className=" bg-zinc-800 rounded border border-zinc-900 shadow w-full h-9 p-2 flex items-center justify-center">
|
className={classNames(
|
||||||
|
"transition-all bg-zinc-800 rounded border border-zinc-900 shadow w-full flex items-center justify-center",
|
||||||
|
active ? "opacity-100 h-9 p-2" : "opacity-0 h-0 p-0"
|
||||||
|
)}>
|
||||||
Learn More
|
Learn More
|
||||||
</Link>
|
</Link>
|
||||||
: null}
|
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user