Files
hossein-por-shop/frontend/components/product/ProductView.vue
T
2024-12-13 23:47:50 +03:30

55 lines
1.7 KiB
Vue

<script lang="ts" setup>
// state
const quantity = ref(1);
const maxQuantity = ref(10);
</script>
<template>
<div class="flex gap-12">
<div class="w-[800px] flex flex-col items-end gap-3 mt-12">
<span class="typo-label-sm">
Nova
</span>
<h1 class="typo-h-2">
Nova
</h1>
<div class="flex w-full items-center justify-between">
<Rating />
<span class="typo-p-2xl">
$689.00
</span>
</div>
<p class="typo-p-md text-slate-500 text-left">
Compact, stylish, and engineered for the future, Eco Tunes are more than just headphones; they're a
statement. Hear the future, save the planet.
</p>
<div class="w-full flex flex-col gap-6 mt-4">
<RemainQuantity :quantity="maxQuantity" />
<div class="w-full flex gap-3 flex-col">
<div class="w-full flex gap-3">
<Button
class="w-full"
end-icon="ci:plus"
>
Add to cart
</Button>
<QuantityCounter v-model="quantity" :max="maxQuantity" />
</div>
<Button
class="w-full"
variant="outlined"
>
Buy it now
</Button>
</div>
<InfoCard />
<Share />
</div>
</div>
<div class="bg-red-300 w-full h-[500px] rounded-200">
</div>
</div>
</template>