diff --git a/components/CardItem.js b/components/CardItem.js index 45508c0..2259390 100644 --- a/components/CardItem.js +++ b/components/CardItem.js @@ -134,7 +134,7 @@ export default function CardItem({
{/* Selection Checkbox */}
@@ -187,113 +187,219 @@ export default function CardItem({
- {/* Sliding Information Panel */} -
- {/* Card Info Content */} -
- {/* Top Section - Card Details */} -
-
-

+
+ {/* Panel Header */} +
+
+

{card.name}

- + ${card.market_price}
+ + {/* TCG-Specific Info */} + {card.game === 'MTG' && ( +
+ {card.mana_cost && ( +
+ Cost: + + {card.mana_cost} + +
+ )} + {card.power && card.toughness && ( +
+ P/T: + + {card.power}/{card.toughness} + +
+ )} +
+ )} -
-

{card.set_name}

-

{card.rarity} • {card.card_type}

-
+ {card.game === 'Pokemon' && card.power && ( +
+
+ HP: + + {card.power} + +
+
+ )} - {/* Game Badge */} -
- + {card.game === 'Lorcana' && card.cmc && ( +
+
+ Cost: + + {card.cmc} + +
+ {card.power && card.toughness && ( +
+ Str/Will: + + {card.power}/{card.toughness} + +
+ )} +
+ )} + +
+ {card.game} + {card.set_name}
- {/* Bottom Section - Actions */} -
- {/* Primary Actions */} -
- + {/* Panel Body */} +
+
+ {/* Card Details */} +
+
+
+ Rarity +

{card.rarity}

+
+
+ Type +

{card.card_type}

+
+
- + {/* Oracle Text */} + {card.oracle_text && ( +
+ Description +

+ {card.oracle_text} +

+
+ )} + + {/* Colors for MTG */} + {card.game === 'MTG' && card.colors && card.colors.length > 0 && ( +
+ Colors +
+ {card.colors.map((color, index) => ( + + {color} + + ))} +
+
+ )} +
+
- {/* Secondary Actions */} -
- + {/* Panel Footer - Actions */} +
+
+ {/* Primary Actions */} +
+ - + +
- + {/* Secondary Actions */} +
+ + + + + + + +
diff --git a/pages/cards.js b/pages/cards.js index 344ebab..8f39d26 100644 --- a/pages/cards.js +++ b/pages/cards.js @@ -699,7 +699,7 @@ export default function Cards() {
) : ( <> -
+
{cards.map(card => (