Update components with CSS animations
This commit is contained in:
@@ -7,20 +7,20 @@ interface MagicCardProps {
|
||||
|
||||
const MagicCard = ({ card }: MagicCardProps) => {
|
||||
return (
|
||||
<div className="relative">
|
||||
<div className="relative card-hover animate-fade-in">
|
||||
{card.image_uris?.normal ? (
|
||||
<img
|
||||
src={card.image_uris.normal}
|
||||
alt={card.name}
|
||||
className="w-full h-auto rounded-lg"
|
||||
className="w-full h-auto rounded-lg transition-smooth"
|
||||
/>
|
||||
) : (
|
||||
<div className="w-full h-64 bg-gray-700 rounded-lg flex items-center justify-center text-gray-400">
|
||||
<div className="w-full h-64 bg-gray-700 rounded-lg flex items-center justify-center text-gray-400 transition-smooth">
|
||||
No Image Available
|
||||
</div>
|
||||
)}
|
||||
{card.prices?.usd && (
|
||||
<div className="absolute bottom-0 left-0 p-2 bg-gray-900 bg-opacity-50 text-white rounded-bl-lg rounded-tr-lg">
|
||||
<div className="absolute bottom-0 left-0 p-2 bg-gray-900 bg-opacity-50 text-white rounded-bl-lg rounded-tr-lg transition-smooth">
|
||||
${card.prices.usd}
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user