This commit is contained in:
marzban-dev
2025-02-21 19:59:36 +03:30
parent 1c47378895
commit a954bb0a3a
+22 -8
View File
@@ -1,3 +1,13 @@
<script lang="ts" setup>
// provide / inject
import type { ProductVariantProvideType } from "~/pages/product/[id].vue";
const { selectedVariant } = inject("productVariant") as ProductVariantProvideType;
</script>
<template> <template>
<section class="w-full p-[5rem] flex flex-col gap-y-[1.5rem]"> <section class="w-full p-[5rem] flex flex-col gap-y-[1.5rem]">
<div class="w-full flex"> <div class="w-full flex">
@@ -16,23 +26,27 @@
class="w-full grid grid-cols-2 gap-y-[1.5rem] gap-x-[3rem]" class="w-full grid grid-cols-2 gap-y-[1.5rem] gap-x-[3rem]"
> >
<div <div
v-for="i in 4" v-for="inPackItem in selectedVariant.in_pack_items"
class="w-full flex-col-center gap-[.75rem]" class="w-full flex-col-center gap-[.75rem]"
> >
<div <div
class="size-[6.25rem] rounded-full border-slate-200 bg-white flex-center" class="size-[6.25rem] rounded-full border-slate-200 bg-white flex-center"
> >
<Icon name="ci:flag" size="44" /> <div class="size-11 relative">
<img
class="size-full absolute object-cover"
:src="inPackItem.cover"
:alt="inPackItem.item_title"
/>
</div>
</div> </div>
<span class="text-black typo-p-md">Headphones</span> <span class="text-black typo-p-md">
{{ inPackItem.item_title}}
</span>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</section> </section>
</template> </template>
<script setup lang="ts"></script>
<style scoped></style>