diff --git a/pages/collections.js b/pages/collections.js index de93bdd..ef3740f 100644 --- a/pages/collections.js +++ b/pages/collections.js @@ -249,9 +249,10 @@ export default function Collections() { return new Date(dateString).toLocaleDateString(); }; + // Collection thumbnail component const CollectionThumbnail = ({ collection }) => { const { thumbnails = [], image } = collection; - + // If collection has a custom hero image, use it if (image) { return ( @@ -265,69 +266,56 @@ export default function Collections() { ); } - // If no thumbnails available, show placeholder + // If no thumbnails available, show crying emoji placeholder if (!thumbnails || thumbnails.length === 0) { return (
-
📦
+
😢

No cards yet

); } - // Show main card (rarest) and grid of 4 others - const mainCard = thumbnails[0]; // Rarest card - const gridCards = thumbnails.slice(1, 5); // Next 4 cards + // Show card layout with white boxes + const mainCard = thumbnails[0]; // Featured card (largest) + const gridCards = thumbnails.slice(1, 5); // Up to 4 additional cards return ( -
- {/* Main card (rarest) - takes up 2/3 of the space */} -
+
+ {/* Main card (left side - 2/3 width) */} +
{mainCard ? ( -
+
{mainCard.name} - {/* Rarity glow effect */} -
- {/* Card name overlay */} -
-

{mainCard.name}

-

{mainCard.rarity}

-
) : ( -
- No image -
+
)}
- {/* Grid of 4 other cards - takes up 1/3 of the space */} + {/* Grid of smaller cards (right side - 1/3 width) */}
-
+
{Array.from({ length: 4 }).map((_, index) => { const card = gridCards[index]; return ( -
+
{card ? ( -
+
{card.name} - {/* Subtle rarity glow for grid cards */} -
) : ( -
- + -
+
)}
); diff --git a/pages/community/collections.js b/pages/community/collections.js index 5d68878..9a3740a 100644 --- a/pages/community/collections.js +++ b/pages/community/collections.js @@ -122,7 +122,7 @@ export default function CommunityCollections() { // If collection has a custom hero image, use it if (image) { return ( -
+
{collection.name}
-
📦
+
😢

No cards yet

); } - // Show main card (rarest) and grid of 4 others - const mainCard = thumbnails[0]; // Rarest card - const gridCards = thumbnails.slice(1, 5); // Next 4 cards + // Show card layout with white boxes + const mainCard = thumbnails[0]; // Featured card (largest) + const gridCards = thumbnails.slice(1, 5); // Up to 4 additional cards return ( -
- {/* Main card (rarest) - takes up 2/3 of the space */} -
+
+ {/* Main card (left side - 2/3 width) */} +
{mainCard ? ( -
+
{mainCard.name} - {/* Rarity glow effect */} -
- {/* Card name overlay */} -
-

{mainCard.name}

-
) : ( -
-
🃏
-
+
)}
- {/* Grid of 4 other cards - takes up 1/3 of the space */} + {/* Grid of smaller cards (right side - 1/3 width) */}
-
+
{Array.from({ length: 4 }).map((_, index) => { const card = gridCards[index]; return (
{card ? ( -
+
{card.name} - {/* Subtle rarity glow */} -
) : ( -
-
🃏
-
+
)}
);