From 00e3a3a9024155513f3b4e98b7dddae9e94cfe0f Mon Sep 17 00:00:00 2001 From: Randall Stillwell Date: Sun, 27 Jul 2025 14:02:33 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=96=BC=EF=B8=8F=20Update=20Collection=20T?= =?UTF-8?q?humbnails=20to=20Card=20Layout=20Design?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✨ New Thumbnail Design: - Clean white card boxes representing collection cards - Main card (2/3 width) + 4 smaller cards in 2x2 grid (1/3 width) - Subtle borders and shadows for card-like appearance - Consistent rounded corners (lg for main, md for grid cards) 🎨 Visual Improvements: - Background uses --bg-tertiary for consistent theming - White card containers with --border colored borders - Proper padding (p-3) and gap spacing (gap-2) - Shadow-sm for subtle depth on card boxes 😢 Enhanced Placeholder: - Crying emoji (😢) when no cards or thumbnails exist - Larger emoji size (text-6xl) for better visibility - 'No cards yet' message for user guidance 🔧 Technical Updates: - Removed rarity glow effects and overlays for cleaner look - Simplified card rendering with focus on layout structure - Consistent implementation across both pages: - /collections (My Collections) - /community/collections (Community Collections) 📱 User Experience: - Clear visual representation of collection contents - Custom thumbnails still override card layout when uploaded - Empty card slots show as clean white boxes - Maintains responsive design and accessibility The thumbnail design now matches the mockup perfectly! 🎯 --- pages/collections.js | 54 +++++++++++++--------------------- pages/community/collections.js | 44 ++++++++++----------------- 2 files changed, 37 insertions(+), 61 deletions(-) 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 */} -
) : ( -
-
🃏
-
+
)}
);