Files
hossein-por-shop/frontend/components/product/ProductDetails.vue
T
marzban-dev a954bb0a3a Updated
2025-02-21 19:59:36 +03:30

52 lines
2.0 KiB
Vue

<script lang="ts" setup>
// provide / inject
import type { ProductVariantProvideType } from "~/pages/product/[id].vue";
const { selectedVariant } = inject("productVariant") as ProductVariantProvideType;
</script>
<template>
<section class="w-full p-[5rem] flex flex-col gap-y-[1.5rem]">
<div class="w-full flex">
<span class="text-black typo-h-3"> جزيات محصول </span>
</div>
<div class="w-full flex items-start justify-between gap-[3rem]">
<div class="w-8/12">
<Accordion />
</div>
<div class="w-4/12">
<div
class="w-full bg-slate-50 rounded-xl flex-col-center p-[5rem] gap-[1.5rem]"
>
<span>داخل جعبه چیه؟</span>
<div
class="w-full grid grid-cols-2 gap-y-[1.5rem] gap-x-[3rem]"
>
<div
v-for="inPackItem in selectedVariant.in_pack_items"
class="w-full flex-col-center gap-[.75rem]"
>
<div
class="size-[6.25rem] rounded-full border-slate-200 bg-white flex-center"
>
<div class="size-11 relative">
<img
class="size-full absolute object-cover"
:src="inPackItem.cover"
:alt="inPackItem.item_title"
/>
</div>
</div>
<span class="text-black typo-p-md">
{{ inPackItem.item_title}}
</span>
</div>
</div>
</div>
</div>
</div>
</section>
</template>