-
- سریع باش فقط
-
+
+ تعداد
+
{{ maxQuantity }}
- عدد از این محصول باقی مانده
+ عدد از این محصول موجود است
{
@@ -56,7 +53,7 @@ const changeSlide = (id: number) => {
>
diff --git a/frontend/components/global/product/Accordion.vue b/frontend/components/global/product/Accordion.vue
index 3736ce4..795d8f1 100644
--- a/frontend/components/global/product/Accordion.vue
+++ b/frontend/components/global/product/Accordion.vue
@@ -1,16 +1,30 @@
+
+
-
+
- مشخصات
+ {{ detailItem.detail_category }}
صفحه نمایش
+ {{ item.title }}
+
- -
- روشنایی :3000mn
-
- -
- روشنایی :3000mn
-
-
-
-
-
-
-
-
- مشخصات
-
-
-
-
-
-
-
-
صفحه نمایش
-
- -
- روشنایی :3000mn
-
- -
- روشنایی :3000mn
-
-
-
-
-
-
-
-
- مشخصات
-
-
-
-
-
-
-
-
صفحه نمایش
-
- -
- روشنایی :3000mn
-
- -
- روشنایی :3000mn
+
-
+ {{ detail }}
@@ -125,8 +62,4 @@
-
-
-
-
-
+
\ No newline at end of file
diff --git a/frontend/components/global/product/StickyCard.vue b/frontend/components/global/product/StickyCard.vue
index f40021a..eee0c11 100644
--- a/frontend/components/global/product/StickyCard.vue
+++ b/frontend/components/global/product/StickyCard.vue
@@ -22,9 +22,12 @@ const { picture, price, title, color } = toRefs(props);
-
+
{{ title }}
-
{{ color }}
+
+ رنگ
+
+
{{ price }}
diff --git a/frontend/components/home/Categories.vue b/frontend/components/home/Categories.vue
index bac2cfe..6b76e5f 100644
--- a/frontend/components/home/Categories.vue
+++ b/frontend/components/home/Categories.vue
@@ -8,15 +8,7 @@ import useHomeData from "~/composables/api/home/useHomeData";
// state
-const { $gsap: gsap } = useNuxtApp();
-
const { data: homeData } = useHomeData();
-
-const sectionTarget = ref(null);
-const isSectionInsideViewport = useElementVisibility(sectionTarget, {
- rootMargin: "0% 0px -100% 0px"
-});
-
const swiper_instance = ref(null);
// methods
@@ -25,28 +17,6 @@ const onSwiper = (swiper: SwiperClass) => {
swiper_instance.value = swiper;
};
-// watch
-
-watch(() => isSectionInsideViewport.value, (newValue) => {
- if (newValue) {
- gsap.fromTo("#header-navbar", {
- background: "white",
- filter: "invert(0%)"
- }, {
- background: "transparent",
- filter: "invert(100%)"
- });
- } else {
- gsap.fromTo("#header-navbar", {
- background: "transparent",
- filter: "invert(100%)"
- }, {
- background: "white",
- filter: "invert(0%)"
- });
- }
-});
-
diff --git a/frontend/components/home/Hero.vue b/frontend/components/home/Hero.vue
index 7c8631a..6d7143b 100644
--- a/frontend/components/home/Hero.vue
+++ b/frontend/components/home/Hero.vue
@@ -59,6 +59,11 @@ onMounted(() => {
gsapTimeline = gsap.timeline();
+ gsap.to("#header-navbar", {
+ background: "transparent",
+ filter: "invert(100%)"
+ });
+
gsapTimeline
.fromTo(".header-slider-item", {
borderRadius: 0,
@@ -73,8 +78,10 @@ onMounted(() => {
value: 1.2
}, "=")
.fromTo("#header-navbar", {
+ background: "transparent",
filter: "invert(100%)"
}, {
+ background: "transparent",
filter: "invert(0%)"
}, "=")
.fromTo("#header-navbar", {
@@ -99,9 +106,6 @@ onMounted(() => {
}, {
padding: "0px 40px"
}, "=")
- .to(".header-slider-logo", {
- opacity: 0
- }, "-=150%");
ScrollTrigger.create({
trigger: "#header-slider-container",
diff --git a/frontend/components/home/Preview.vue b/frontend/components/home/Preview.vue
index 231e7d8..b00650e 100644
--- a/frontend/components/home/Preview.vue
+++ b/frontend/components/home/Preview.vue
@@ -10,16 +10,28 @@ const { data: homeData } = useHomeData();
const clipPathPercent = ref(49);
+const activeSlideVideo = ref<"left" | "right" | "none">("none");
+
const draggableEl = ref(null);
const previewContainerEl = ref(null);
const { x: dragAxisX } = useDraggable(draggableEl, {
initialValue: { x: 0, y: 0 },
- axis: "x",
+ axis: "x"
});
// watch
+watch(() => clipPathPercent.value, (newValue) => {
+ if (newValue > 80) {
+ activeSlideVideo.value = "right";
+ } else if (newValue < 20) {
+ activeSlideVideo.value = "left";
+ } else {
+ activeSlideVideo.value = "none";
+ }
+});
+
watch(
() => dragAxisX.value,
(newValue) => {
@@ -39,24 +51,45 @@ watch(
مقایسه محصولات
تفاوت محصلات ما را ببینید
+ {{ activeSlideVideo }}