diff --git a/pages/api/collections/[identifier]/thumbnails.js b/pages/api/collections/[identifier]/thumbnails.js
index d764d81..0956d56 100644
--- a/pages/api/collections/[identifier]/thumbnails.js
+++ b/pages/api/collections/[identifier]/thumbnails.js
@@ -114,11 +114,6 @@ export default async function handler(req, res) {
LIMIT 5
`;
- console.log('🔍 thumbnailsResult type:', typeof thumbnailsResult);
- console.log('🔍 thumbnailsResult:', thumbnailsResult);
- console.log('🔍 thumbnailsResult.rows:', thumbnailsResult?.rows);
- console.log('🔍 Array.isArray(thumbnailsResult):', Array.isArray(thumbnailsResult));
-
// Handle the result properly based on its structure
let thumbnailsArray;
if (Array.isArray(thumbnailsResult)) {
diff --git a/pages/collections.js b/pages/collections.js
index ef3740f..d68e08c 100644
--- a/pages/collections.js
+++ b/pages/collections.js
@@ -253,12 +253,12 @@ export default function Collections() {
const CollectionThumbnail = ({ collection }) => {
const { thumbnails = [], image } = collection;
- // If collection has a custom hero image, use it
+ // If there's a custom image, show it
if (image) {
return (
-
-

+

@@ -266,7 +266,7 @@ export default function Collections() {
);
}
- // If no thumbnails available, show crying emoji placeholder
+ // If no cards, show crying emoji
if (!thumbnails || thumbnails.length === 0) {
return (
@@ -278,18 +278,17 @@ export default function Collections() {
);
}
- // Show card layout with white boxes
- const mainCard = thumbnails[0]; // Featured card (largest)
- const gridCards = thumbnails.slice(1, 5); // Up to 4 additional cards
+ const mainCard = thumbnails[0];
+ const gridCards = thumbnails.slice(1, 5); // Get up to 4 cards for the 2x2 grid
return (
- {/* Main card (left side - 2/3 width) */}
+ {/* Main card (larger, left side) */}
{mainCard ? (
-

@@ -299,7 +298,7 @@ export default function Collections() {
)}
- {/* Grid of smaller cards (right side - 1/3 width) */}
+ {/* Grid of 4 smaller cards (right side) */}
{Array.from({ length: 4 }).map((_, index) => {
@@ -308,8 +307,8 @@ export default function Collections() {
{card ? (
-

diff --git a/pages/community/collections.js b/pages/community/collections.js
index 9a3740a..a74fa2d 100644
--- a/pages/community/collections.js
+++ b/pages/community/collections.js
@@ -119,12 +119,12 @@ export default function CommunityCollections() {
const CollectionThumbnail = ({ collection }) => {
const { thumbnails = [], image } = collection;
- // If collection has a custom hero image, use it
+ // If there's a custom image, show it
if (image) {
return (
-
-

+

@@ -132,7 +132,7 @@ export default function CommunityCollections() {
);
}
- // If no thumbnails available, show crying emoji placeholder
+ // If no cards, show crying emoji
if (!thumbnails || thumbnails.length === 0) {
return (
@@ -144,18 +144,17 @@ export default function CommunityCollections() {
);
}
- // Show card layout with white boxes
- const mainCard = thumbnails[0]; // Featured card (largest)
- const gridCards = thumbnails.slice(1, 5); // Up to 4 additional cards
+ const mainCard = thumbnails[0];
+ const gridCards = thumbnails.slice(1, 5); // Get up to 4 cards for the 2x2 grid
return (
- {/* Main card (left side - 2/3 width) */}
+ {/* Main card (larger, left side) */}
{mainCard ? (
-

@@ -165,7 +164,7 @@ export default function CommunityCollections() {
)}
- {/* Grid of smaller cards (right side - 1/3 width) */}
+ {/* Grid of 4 smaller cards (right side) */}
{Array.from({ length: 4 }).map((_, index) => {
@@ -174,8 +173,8 @@ export default function CommunityCollections() {
{card ? (
-