Add new dataview demos
parent
eef2115bc4
commit
5b5b08e892
|
@ -7,23 +7,30 @@
|
||||||
<template #list="slotProps">
|
<template #list="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
<div class="flex flex-column sm:flex-row sm:align-items-center p-4 gap-3" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
||||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="`https://primefaces.org/cdn/primevue/images/product/${item.image}`" :alt="item.name" />
|
<div class="md:w-10rem relative">
|
||||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
<img class="shadow-2 block xl:block mx-auto border-round w-full" :src="`https://primefaces.org/cdn/primevue/images/product/${item.image}`" :alt="item.name" />
|
||||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
</div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<div class="flex flex-column md:flex-row justify-content-between md:align-items-center flex-1 gap-4">
|
||||||
<div class="flex align-items-center gap-3">
|
<div class="flex flex-row md:flex-column justify-content-between align-items-start gap-2">
|
||||||
<span class="flex align-items-center gap-2">
|
<div>
|
||||||
<i class="pi pi-tag"></i>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<div class="text-lg font-medium text-900 mt-2">{{ item.name }}</div>
|
||||||
</span>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
<div class="flex flex-column md:align-items-end gap-5">
|
||||||
<span class="text-2xl font-semibold">${{ item.price }}</span>
|
<span class="text-xl font-semibold text-900">${{ item.price }}</span>
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="flex flex-row-reverse md:flex-row gap-2">
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto md:flex-initial white-space-nowrap"></Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -48,23 +55,30 @@ export default {
|
||||||
<template #list="slotProps">
|
<template #list="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
<div class="flex flex-column sm:flex-row sm:align-items-center p-4 gap-3" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
||||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
<div class="md:w-10rem relative">
|
||||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
<img class="shadow-2 block xl:block mx-auto border-round w-full" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
</div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<div class="flex flex-column md:flex-row justify-content-between md:align-items-center flex-1 gap-4">
|
||||||
<div class="flex align-items-center gap-3">
|
<div class="flex flex-row md:flex-column justify-content-between align-items-start gap-2">
|
||||||
<span class="flex align-items-center gap-2">
|
<div>
|
||||||
<i class="pi pi-tag"></i>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<div class="text-lg font-medium text-900 mt-2">{{ item.name }}</div>
|
||||||
</span>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
<div class="flex flex-column md:align-items-end gap-5">
|
||||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
<span class="text-xl font-semibold text-900">\${{ item.price }}</span>
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="flex flex-row-reverse md:flex-row gap-2">
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto md:flex-initial white-space-nowrap"></Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -80,23 +94,30 @@ export default {
|
||||||
<template #list="slotProps">
|
<template #list="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
<div class="flex flex-column sm:flex-row sm:align-items-center p-4 gap-3" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
||||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
<div class="md:w-10rem relative">
|
||||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
<img class="shadow-2 block xl:block mx-auto border-round w-full" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
</div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<div class="flex flex-column md:flex-row justify-content-between md:align-items-center flex-1 gap-4">
|
||||||
<div class="flex align-items-center gap-3">
|
<div class="flex flex-row md:flex-column justify-content-between align-items-start gap-2">
|
||||||
<span class="flex align-items-center gap-2">
|
<div>
|
||||||
<i class="pi pi-tag"></i>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<div class="text-lg font-medium text-900 mt-2">{{ item.name }}</div>
|
||||||
</span>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
<div class="flex flex-column md:align-items-end gap-5">
|
||||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
<span class="text-xl font-semibold text-900">\${{ item.price }}</span>
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="flex flex-row-reverse md:flex-row gap-2">
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto md:flex-initial white-space-nowrap"></Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -146,23 +167,30 @@ export default {
|
||||||
<template #list="slotProps">
|
<template #list="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
<div class="flex flex-column sm:flex-row sm:align-items-center p-4 gap-3" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
||||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
<div class="md:w-10rem relative">
|
||||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
<img class="shadow-2 block xl:block mx-auto border-round w-full" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
</div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<div class="flex flex-column md:flex-row justify-content-between md:align-items-center flex-1 gap-4">
|
||||||
<div class="flex align-items-center gap-3">
|
<div class="flex flex-row md:flex-column justify-content-between align-items-start gap-2">
|
||||||
<span class="flex align-items-center gap-2">
|
<div>
|
||||||
<i class="pi pi-tag"></i>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<div class="text-lg font-medium text-900 mt-2">{{ item.name }}</div>
|
||||||
</span>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
<div class="flex flex-column md:align-items-end gap-5">
|
||||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
<span class="text-xl font-semibold text-900">\${{ item.price }}</span>
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="flex flex-row-reverse md:flex-row gap-2">
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto md:flex-initial white-space-nowrap"></Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -16,23 +16,30 @@
|
||||||
<template #list="slotProps">
|
<template #list="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
<div class="flex flex-column sm:flex-row sm:align-items-center p-4 gap-3" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
||||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="`https://primefaces.org/cdn/primevue/images/product/${item.image}`" :alt="item.name" />
|
<div class="md:w-10rem relative">
|
||||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
<img class="shadow-2 block xl:block mx-auto border-round w-full" :src="`https://primefaces.org/cdn/primevue/images/product/${item.image}`" :alt="item.name" />
|
||||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
</div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<div class="flex flex-column md:flex-row justify-content-between md:align-items-center flex-1 gap-4">
|
||||||
<div class="flex align-items-center gap-3">
|
<div class="flex flex-row md:flex-column justify-content-between align-items-start gap-2">
|
||||||
<span class="flex align-items-center gap-2">
|
<div>
|
||||||
<i class="pi pi-tag"></i>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<div class="text-lg font-medium text-900 mt-2">{{ item.name }}</div>
|
||||||
</span>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
<div class="flex flex-column md:align-items-end gap-5">
|
||||||
<span class="text-2xl font-semibold">${{ item.price }}</span>
|
<span class="text-xl font-semibold text-900">${{ item.price }}</span>
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="flex flex-row-reverse md:flex-row gap-2">
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto md:flex-initial white-space-nowrap"></Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -42,23 +49,34 @@
|
||||||
|
|
||||||
<template #grid="slotProps">
|
<template #grid="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12 sm:col-6 lg:col-12 xl:col-4 p-2">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12 sm:col-6 md:col-4 xl:col-6 p-2">
|
||||||
<div class="p-4 border-1 surface-border surface-card border-round">
|
<div class="p-4 border-1 surface-border surface-card border-round flex flex-column">
|
||||||
<div class="flex flex-wrap align-items-center justify-content-between gap-2">
|
<div class="surface-50 flex justify-content-center border-round p-3">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="relative mx-auto">
|
||||||
<i class="pi pi-tag"></i>
|
<img class="shadow-2 border-round w-full" :src="`https://primefaces.org/cdn/primevue/images/product/${item.image}`" :alt="item.name" style="max-width: 300px"/>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
</div>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-column align-items-center gap-3 py-5">
|
<div class="pt-4">
|
||||||
<img class="w-9 shadow-2 border-round" :src="`https://primefaces.org/cdn/primevue/images/product/${item.image}`" :alt="item.name" />
|
<div class="flex flex-row justify-content-between align-items-start gap-2">
|
||||||
<div class="text-2xl font-bold">{{ item.name }}</div>
|
<div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
</div>
|
<div class="text-lg font-medium text-900 mt-1">{{ item.name }}</div>
|
||||||
<div class="flex align-items-center justify-content-between">
|
</div>
|
||||||
<span class="text-2xl font-semibold">${{ item.price }}</span>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-column gap-4 mt-4">
|
||||||
|
<span class="text-2xl font-semibold text-900">${{ item.price }}</span>
|
||||||
|
<div class="flex gap-2">
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto white-space-nowrap"></Button>
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -89,23 +107,30 @@ export default {
|
||||||
<template #list="slotProps">
|
<template #list="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
<div class="flex flex-column sm:flex-row sm:align-items-center p-4 gap-3" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
||||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
<div class="md:w-10rem relative">
|
||||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
<img class="shadow-2 block xl:block mx-auto border-round w-full" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
</div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<div class="flex flex-column md:flex-row justify-content-between md:align-items-center flex-1 gap-4">
|
||||||
<div class="flex align-items-center gap-3">
|
<div class="flex flex-row md:flex-column justify-content-between align-items-start gap-2">
|
||||||
<span class="flex align-items-center gap-2">
|
<div>
|
||||||
<i class="pi pi-tag"></i>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<div class="text-lg font-medium text-900 mt-2">{{ item.name }}</div>
|
||||||
</span>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
<div class="flex flex-column md:align-items-end gap-5">
|
||||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
<span class="text-xl font-semibold text-900">\${{ item.price }}</span>
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="flex flex-row-reverse md:flex-row gap-2">
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto md:flex-initial white-space-nowrap"></Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -115,23 +140,34 @@ export default {
|
||||||
|
|
||||||
<template #grid="slotProps">
|
<template #grid="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12 sm:col-6 lg:col-12 xl:col-4 p-2">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12 sm:col-6 md:col-4 xl:col-6 p-2">
|
||||||
<div class="p-4 border-1 surface-border surface-card border-round">
|
<div class="p-4 border-1 surface-border surface-card border-round flex flex-column">
|
||||||
<div class="flex flex-wrap align-items-center justify-content-between gap-2">
|
<div class="surface-50 flex justify-content-center border-round p-3">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="relative mx-auto">
|
||||||
<i class="pi pi-tag"></i>
|
<img class="shadow-2 border-round w-full" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" style="max-width: 300px"/>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
</div>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-column align-items-center gap-3 py-5">
|
<div class="pt-4">
|
||||||
<img class="w-9 shadow-2 border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
<div class="flex flex-row justify-content-between align-items-start gap-2">
|
||||||
<div class="text-2xl font-bold">{{ item.name }}</div>
|
<div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
</div>
|
<div class="text-lg font-medium text-900 mt-1">{{ item.name }}</div>
|
||||||
<div class="flex align-items-center justify-content-between">
|
</div>
|
||||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-column gap-4 mt-4">
|
||||||
|
<span class="text-2xl font-semibold text-900">\${{ item.price }}</span>
|
||||||
|
<div class="flex gap-2">
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto white-space-nowrap"></Button>
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -152,23 +188,30 @@ export default {
|
||||||
<template #list="slotProps">
|
<template #list="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
<div class="flex flex-column sm:flex-row sm:align-items-center p-4 gap-3" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
||||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
<div class="md:w-10rem relative">
|
||||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
<img class="shadow-2 block xl:block mx-auto border-round w-full" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
</div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<div class="flex flex-column md:flex-row justify-content-between md:align-items-center flex-1 gap-4">
|
||||||
<div class="flex align-items-center gap-3">
|
<div class="flex flex-row md:flex-column justify-content-between align-items-start gap-2">
|
||||||
<span class="flex align-items-center gap-2">
|
<div>
|
||||||
<i class="pi pi-tag"></i>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<div class="text-lg font-medium text-900 mt-2">{{ item.name }}</div>
|
||||||
</span>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
<div class="flex flex-column md:align-items-end gap-5">
|
||||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
<span class="text-xl font-semibold text-900">\${{ item.price }}</span>
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="flex flex-row-reverse md:flex-row gap-2">
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto md:flex-initial white-space-nowrap"></Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -178,23 +221,34 @@ export default {
|
||||||
|
|
||||||
<template #grid="slotProps">
|
<template #grid="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12 sm:col-6 lg:col-12 xl:col-4 p-2">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12 sm:col-6 md:col-4 xl:col-6 p-2">
|
||||||
<div class="p-4 border-1 surface-border surface-card border-round">
|
<div class="p-4 border-1 surface-border surface-card border-round flex flex-column">
|
||||||
<div class="flex flex-wrap align-items-center justify-content-between gap-2">
|
<div class="surface-50 flex justify-content-center border-round p-3">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="relative mx-auto">
|
||||||
<i class="pi pi-tag"></i>
|
<img class="shadow-2 border-round w-full" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" style="max-width: 300px"/>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
</div>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-column align-items-center gap-3 py-5">
|
<div class="pt-4">
|
||||||
<img class="w-9 shadow-2 border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
<div class="flex flex-row justify-content-between align-items-start gap-2">
|
||||||
<div class="text-2xl font-bold">{{ item.name }}</div>
|
<div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
</div>
|
<div class="text-lg font-medium text-900 mt-1">{{ item.name }}</div>
|
||||||
<div class="flex align-items-center justify-content-between">
|
</div>
|
||||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-column gap-4 mt-4">
|
||||||
|
<span class="text-2xl font-semibold text-900">\${{ item.price }}</span>
|
||||||
|
<div class="flex gap-2">
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto white-space-nowrap"></Button>
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -250,23 +304,30 @@ export default {
|
||||||
<template #list="slotProps">
|
<template #list="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
<div class="flex flex-column sm:flex-row sm:align-items-center p-4 gap-3" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
||||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
<div class="md:w-10rem relative">
|
||||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
<img class="shadow-2 block xl:block mx-auto border-round w-full" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
</div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<div class="flex flex-column md:flex-row justify-content-between md:align-items-center flex-1 gap-4">
|
||||||
<div class="flex align-items-center gap-3">
|
<div class="flex flex-row md:flex-column justify-content-between align-items-start gap-2">
|
||||||
<span class="flex align-items-center gap-2">
|
<div>
|
||||||
<i class="pi pi-tag"></i>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<div class="text-lg font-medium text-900 mt-2">{{ item.name }}</div>
|
||||||
</span>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
<div class="flex flex-column md:align-items-end gap-5">
|
||||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
<span class="text-xl font-semibold text-900">\${{ item.price }}</span>
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="flex flex-row-reverse md:flex-row gap-2">
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto md:flex-initial white-space-nowrap"></Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -276,23 +337,34 @@ export default {
|
||||||
|
|
||||||
<template #grid="slotProps">
|
<template #grid="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12 sm:col-6 lg:col-12 xl:col-4 p-2">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12 sm:col-6 md:col-4 xl:col-6 p-2">
|
||||||
<div class="p-4 border-1 surface-border surface-card border-round">
|
<div class="p-4 border-1 surface-border surface-card border-round flex flex-column">
|
||||||
<div class="flex flex-wrap align-items-center justify-content-between gap-2">
|
<div class="surface-50 flex justify-content-center border-round p-3">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="relative mx-auto">
|
||||||
<i class="pi pi-tag"></i>
|
<img class="shadow-2 border-round w-full" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" style="max-width: 300px"/>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
</div>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-column align-items-center gap-3 py-5">
|
<div class="pt-4">
|
||||||
<img class="w-9 shadow-2 border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
<div class="flex flex-row justify-content-between align-items-start gap-2">
|
||||||
<div class="text-2xl font-bold">{{ item.name }}</div>
|
<div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
</div>
|
<div class="text-lg font-medium text-900 mt-1">{{ item.name }}</div>
|
||||||
<div class="flex align-items-center justify-content-between">
|
</div>
|
||||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-column gap-4 mt-4">
|
||||||
|
<span class="text-2xl font-semibold text-900">\${{ item.price }}</span>
|
||||||
|
<div class="flex gap-2">
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto white-space-nowrap"></Button>
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,23 +7,30 @@
|
||||||
<template #list="slotProps">
|
<template #list="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
<div class="flex flex-column sm:flex-row sm:align-items-center p-4 gap-3" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
||||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="`https://primefaces.org/cdn/primevue/images/product/${item.image}`" :alt="item.name" />
|
<div class="md:w-10rem relative">
|
||||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
<img class="shadow-2 block xl:block mx-auto border-round w-full" :src="`https://primefaces.org/cdn/primevue/images/product/${item.image}`" :alt="item.name" />
|
||||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
</div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<div class="flex flex-column md:flex-row justify-content-between md:align-items-center flex-1 gap-4">
|
||||||
<div class="flex align-items-center gap-3">
|
<div class="flex flex-row md:flex-column justify-content-between align-items-start gap-2">
|
||||||
<span class="flex align-items-center gap-2">
|
<div>
|
||||||
<i class="pi pi-tag"></i>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<div class="text-lg font-medium text-900 mt-2">{{ item.name }}</div>
|
||||||
</span>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
<div class="flex flex-column md:align-items-end gap-5">
|
||||||
<span class="text-2xl font-semibold">${{ item.price }}</span>
|
<span class="text-xl font-semibold text-900">${{ item.price }}</span>
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="flex flex-row-reverse md:flex-row gap-2">
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto md:flex-initial white-space-nowrap"></Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -48,23 +55,30 @@ export default {
|
||||||
<template #list="slotProps">
|
<template #list="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
<div class="flex flex-column sm:flex-row sm:align-items-center p-4 gap-3" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
||||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
<div class="md:w-10rem relative">
|
||||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
<img class="shadow-2 block xl:block mx-auto border-round w-full" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
</div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<div class="flex flex-column md:flex-row justify-content-between md:align-items-center flex-1 gap-4">
|
||||||
<div class="flex align-items-center gap-3">
|
<div class="flex flex-row md:flex-column justify-content-between align-items-start gap-2">
|
||||||
<span class="flex align-items-center gap-2">
|
<div>
|
||||||
<i class="pi pi-tag"></i>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<div class="text-lg font-medium text-900 mt-2">{{ item.name }}</div>
|
||||||
</span>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
<div class="flex flex-column md:align-items-end gap-5">
|
||||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
<span class="text-xl font-semibold text-900">\${{ item.price }}</span>
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="flex flex-row-reverse md:flex-row gap-2">
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto md:flex-initial white-space-nowrap"></Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -80,23 +94,30 @@ export default {
|
||||||
<template #list="slotProps">
|
<template #list="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
<div class="flex flex-column sm:flex-row sm:align-items-center p-4 gap-3" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
||||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
<div class="md:w-10rem relative">
|
||||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
<img class="shadow-2 block xl:block mx-auto border-round w-full" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
</div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<div class="flex flex-column md:flex-row justify-content-between md:align-items-center flex-1 gap-4">
|
||||||
<div class="flex align-items-center gap-3">
|
<div class="flex flex-row md:flex-column justify-content-between align-items-start gap-2">
|
||||||
<span class="flex align-items-center gap-2">
|
<div>
|
||||||
<i class="pi pi-tag"></i>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<div class="text-lg font-medium text-900 mt-2">{{ item.name }}</div>
|
||||||
</span>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
<div class="flex flex-column md:align-items-end gap-5">
|
||||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
<span class="text-xl font-semibold text-900">\${{ item.price }}</span>
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="flex flex-row-reverse md:flex-row gap-2">
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto md:flex-initial white-space-nowrap"></Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -146,23 +167,30 @@ export default {
|
||||||
<template #list="slotProps">
|
<template #list="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
<div class="flex flex-column sm:flex-row sm:align-items-center p-4 gap-3" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
||||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
<div class="md:w-10rem relative">
|
||||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
<img class="shadow-2 block xl:block mx-auto border-round w-full" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
</div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<div class="flex flex-column md:flex-row justify-content-between md:align-items-center flex-1 gap-4">
|
||||||
<div class="flex align-items-center gap-3">
|
<div class="flex flex-row md:flex-column justify-content-between align-items-start gap-2">
|
||||||
<span class="flex align-items-center gap-2">
|
<div>
|
||||||
<i class="pi pi-tag"></i>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<div class="text-lg font-medium text-900 mt-2">{{ item.name }}</div>
|
||||||
</span>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
<div class="flex flex-column md:align-items-end gap-5">
|
||||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
<span class="text-xl font-semibold text-900">\${{ item.price }}</span>
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="flex flex-row-reverse md:flex-row gap-2">
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto md:flex-initial white-space-nowrap"></Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,23 +10,30 @@
|
||||||
<template #list="slotProps">
|
<template #list="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
<div class="flex flex-column sm:flex-row sm:align-items-center p-4 gap-3" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
||||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="`https://primefaces.org/cdn/primevue/images/product/${item.image}`" :alt="item.name" />
|
<div class="md:w-10rem relative">
|
||||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
<img class="shadow-2 block xl:block mx-auto border-round w-full" :src="`https://primefaces.org/cdn/primevue/images/product/${item.image}`" :alt="item.name" />
|
||||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
</div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<div class="flex flex-column md:flex-row justify-content-between md:align-items-center flex-1 gap-4">
|
||||||
<div class="flex align-items-center gap-3">
|
<div class="flex flex-row md:flex-column justify-content-between align-items-start gap-2">
|
||||||
<span class="flex align-items-center gap-2">
|
<div>
|
||||||
<i class="pi pi-tag"></i>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<div class="text-lg font-medium text-900 mt-2">{{ item.name }}</div>
|
||||||
</span>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
<div class="flex flex-column md:align-items-end gap-5">
|
||||||
<span class="text-2xl font-semibold">${{ item.price }}</span>
|
<span class="text-xl font-semibold text-900">${{ item.price }}</span>
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="flex flex-row-reverse md:flex-row gap-2">
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto md:flex-initial white-space-nowrap"></Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -61,23 +68,30 @@ export default {
|
||||||
<template #list="slotProps">
|
<template #list="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
<div class="flex flex-column sm:flex-row sm:align-items-center p-4 gap-3" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
||||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
<div class="md:w-10rem relative">
|
||||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
<img class="shadow-2 block xl:block mx-auto border-round w-full" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
</div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<div class="flex flex-column md:flex-row justify-content-between md:align-items-center flex-1 gap-4">
|
||||||
<div class="flex align-items-center gap-3">
|
<div class="flex flex-row md:flex-column justify-content-between align-items-start gap-2">
|
||||||
<span class="flex align-items-center gap-2">
|
<div>
|
||||||
<i class="pi pi-tag"></i>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<div class="text-lg font-medium text-900 mt-2">{{ item.name }}</div>
|
||||||
</span>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
<div class="flex flex-column md:align-items-end gap-5">
|
||||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
<span class="text-xl font-semibold text-900">\${{ item.price }}</span>
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="flex flex-row-reverse md:flex-row gap-2">
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto md:flex-initial white-space-nowrap"></Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -96,23 +110,30 @@ export default {
|
||||||
<template #list="slotProps">
|
<template #list="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
<div class="flex flex-column sm:flex-row sm:align-items-center p-4 gap-3" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
||||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
<div class="md:w-10rem relative">
|
||||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
<img class="shadow-2 block xl:block mx-auto border-round w-full" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
</div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<div class="flex flex-column md:flex-row justify-content-between md:align-items-center flex-1 gap-4">
|
||||||
<div class="flex align-items-center gap-3">
|
<div class="flex flex-row md:flex-column justify-content-between align-items-start gap-2">
|
||||||
<span class="flex align-items-center gap-2">
|
<div>
|
||||||
<i class="pi pi-tag"></i>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<div class="text-lg font-medium text-900 mt-2">{{ item.name }}</div>
|
||||||
</span>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
<div class="flex flex-column md:align-items-end gap-5">
|
||||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
<span class="text-xl font-semibold text-900">\${{ item.price }}</span>
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="flex flex-row-reverse md:flex-row gap-2">
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto md:flex-initial white-space-nowrap"></Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -186,23 +207,30 @@ export default {
|
||||||
<template #list="slotProps">
|
<template #list="slotProps">
|
||||||
<div class="grid grid-nogutter">
|
<div class="grid grid-nogutter">
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
<div class="flex flex-column sm:flex-row sm:align-items-center p-4 gap-3" :class="{ 'border-top-1 surface-border': index !== 0 }">
|
||||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
<div class="md:w-10rem relative">
|
||||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
<img class="shadow-2 block xl:block mx-auto border-round w-full" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)" class="absolute" style="left: 4px; top: 4px"></Tag>
|
||||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
</div>
|
||||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
<div class="flex flex-column md:flex-row justify-content-between md:align-items-center flex-1 gap-4">
|
||||||
<div class="flex align-items-center gap-3">
|
<div class="flex flex-row md:flex-column justify-content-between align-items-start gap-2">
|
||||||
<span class="flex align-items-center gap-2">
|
<div>
|
||||||
<i class="pi pi-tag"></i>
|
<span class="font-medium text-secondary text-sm">{{ item.category }}</span>
|
||||||
<span class="font-semibold">{{ item.category }}</span>
|
<div class="text-lg font-medium text-900 mt-2">{{ item.name }}</div>
|
||||||
</span>
|
</div>
|
||||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
<div class="surface-100 p-1" style="border-radius: 30px">
|
||||||
|
<div class="surface-0 flex align-items-center gap-2 justify-content-center py-1 px-2" style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)">
|
||||||
|
<span class="text-900 font-medium text-sm">{{ item.rating }}</span>
|
||||||
|
<i class="pi pi-star-fill text-yellow-500"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
<div class="flex flex-column md:align-items-end gap-5">
|
||||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
<span class="text-xl font-semibold text-900">\${{ item.price }}</span>
|
||||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
<div class="flex flex-row-reverse md:flex-row gap-2">
|
||||||
|
<Button icon="pi pi-heart" outlined></Button>
|
||||||
|
<Button icon="pi pi-shopping-cart" label="Buy Now" :disabled="item.inventoryStatus === 'OUTOFSTOCK'" class="flex-auto md:flex-initial white-space-nowrap"></Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue