Add small animation to mobile-only button

This commit is contained in:
Xevion
2022-12-26 11:18:24 -06:00
parent 1108495507
commit 5446b5093f
+7 -6
View File
@@ -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={classNames(
className=" bg-zinc-800 rounded border border-zinc-900 shadow w-full h-9 p-2 flex items-center justify-center"> "transition-all bg-zinc-800 rounded border border-zinc-900 shadow w-full flex items-center justify-center",
Learn More active ? "opacity-100 h-9 p-2" : "opacity-0 h-0 p-0"
</Link> )}>
: null} Learn More
</Link>
</> </>
} }