changed product grid structure
This commit is contained in:
@@ -34,9 +34,12 @@ withDefaults(defineProps<Props>(), {
|
||||
</NuxtLink>
|
||||
</div>
|
||||
<ul class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-y-8 gap-5 sm:gap-8">
|
||||
<ProductCard
|
||||
<li
|
||||
class="w-full"
|
||||
v-for="product in products"
|
||||
:key="product.id"
|
||||
>
|
||||
<ProductCard
|
||||
:id="product.id"
|
||||
:slug="product.slug"
|
||||
:title="product.name"
|
||||
@@ -46,6 +49,7 @@ withDefaults(defineProps<Props>(), {
|
||||
:rate="product.rating"
|
||||
:dark-layer="true"
|
||||
/>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user