File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -355,17 +355,17 @@ <h2 class="text-2xl font-light text-gray-800 mb-2">${collection.title}</h2>
355355 // Create card with placeholder first
356356 artworkCard . innerHTML = `
357357 <div class="relative overflow-hidden">
358- <div class="image-placeholder" id="placeholder-${ index } ">
358+ <div class="image-placeholder absolute inset-0 z-0 " id="placeholder-${ index } ">
359359 <i class="fas fa-image text-gray-400 text-2xl"></i>
360360 </div>
361361 <img src="${ artwork . primaryImageSmall } "
362362 alt="${ altText } "
363- class="artwork-image"
363+ class="artwork-image absolute inset-0 w-full h-64 object-cover z-10 "
364364 loading="lazy"
365- style="opacity: 0; position: absolute; top: 0; left: 0; transition: opacity 0.5s ease;"
366- onload="this.style.opacity='1'; document.getElementById('placeholder-${ index } ').style.display='none ';"
365+ style="opacity: 0; transition: opacity 0.5s ease;"
366+ onload="this.style.opacity='1'; document.getElementById('placeholder-${ index } ').style.opacity='0 ';"
367367 onerror="this.closest('.artwork-card').style.display='none';">
368- <div class="absolute inset-0 bg-gradient-to-t from-black/20 to-transparent opacity-0 hover:opacity-100 transition-opacity duration-300"></div>
368+ <div class="absolute inset-0 bg-gradient-to-t from-black/20 to-transparent opacity-0 hover:opacity-100 transition-opacity duration-300 z-20 "></div>
369369 </div>
370370 <div class="p-4">
371371 <h3 class="font-semibold text-gray-800 text-sm mb-1 line-clamp-2">${ title } </h3>
You can’t perform that action at this time.
0 commit comments