From 19898d9f5ea2bc7011ac6a3c86a0cb0846322fc8 Mon Sep 17 00:00:00 2001 From: matthieu Date: Thu, 23 Oct 2025 16:19:32 +0200 Subject: [PATCH] Update components with CSS animations --- src/components/MagicCard.tsx | 60 ++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/src/components/MagicCard.tsx b/src/components/MagicCard.tsx index 426cefe..876c2ef 100644 --- a/src/components/MagicCard.tsx +++ b/src/components/MagicCard.tsx @@ -1,31 +1,31 @@ -import React from 'react'; -import { Card } from '../types'; - -interface MagicCardProps { - card: Card; -} - -const MagicCard = ({ card }: MagicCardProps) => { - return ( -
- {card.image_uris?.normal ? ( - {card.name} - ) : ( -
- No Image Available -
- )} - {card.prices?.usd && ( -
- ${card.prices.usd} -
- )} -
- ); -}; - +import React from 'react'; +import { Card } from '../types'; + +interface MagicCardProps { + card: Card; +} + +const MagicCard = ({ card }: MagicCardProps) => { + return ( +
+ {card.image_uris?.normal ? ( + {card.name} + ) : ( +
+ No Image Available +
+ )} + {card.prices?.usd && ( +
+ ${card.prices.usd} +
+ )} +
+ ); +}; + export default MagicCard;