-
- {{ brand }}
-
+
+
+
{{ title }}
diff --git a/frontend/components/home/Hero.vue b/frontend/components/home/Hero.vue
index 513ede0..7628c02 100644
--- a/frontend/components/home/Hero.vue
+++ b/frontend/components/home/Hero.vue
@@ -57,11 +57,6 @@ watch(() => [shouldPauseVideos.value, swiper_instance.value?.realIndex], () => {
// lifecycle
const initializeGsapAnimation = () => {
- gsap.to("#header-navbar", {
- background: "transparent",
- filter: "invert(100%)"
- });
-
gsapTimeline
.fromTo(".header-slider-item", {
borderRadius: 0,
@@ -129,6 +124,10 @@ onMounted(() => {
setTimeout(() => {
if (window.innerWidth > 768) {
+ gsap.to("#header-navbar", {
+ background: "transparent",
+ filter: "invert(100%)"
+ });
scrollTrigger.enable();
} else {
resetTimelineForMobile();
@@ -138,6 +137,10 @@ onMounted(() => {
window.addEventListener("resize", () => {
if (window.innerWidth > 768) {
+ gsap.to("#header-navbar", {
+ background: "transparent",
+ filter: "invert(100%)"
+ });
scrollTrigger.enable();
} else {
resetTimelineForMobile();
@@ -148,8 +151,8 @@ onMounted(() => {
});
onUnmounted(() => {
- gsapTimeline.progress(1).pause();
- gsapTimeline.kill();
+ resetTimelineForMobile();
+ scrollTrigger.disable();
});
@@ -209,8 +212,7 @@ onUnmounted(() => {
-
+
diff --git a/frontend/components/home/Preview.vue b/frontend/components/home/Preview.vue
index 17d91f7..1492b4e 100644
--- a/frontend/components/home/Preview.vue
+++ b/frontend/components/home/Preview.vue
@@ -46,7 +46,7 @@ watch(
-
+
مقایسه محصولات
@@ -55,7 +55,7 @@ watch(
{{ homeData!.difreance_section.description1 }}
-
+
{{ homeData!.difreance_section.title1 }}
-
+
{{ homeData!.difreance_section.description2 }}
-
+
{{ homeData!.difreance_section.title2 }}
-
+
diff --git a/frontend/components/home/ProductsShowcase.vue b/frontend/components/home/ProductsShowcase.vue
index 866233e..630e4f5 100644
--- a/frontend/components/home/ProductsShowcase.vue
+++ b/frontend/components/home/ProductsShowcase.vue
@@ -91,14 +91,13 @@ onUnmounted(() => {
id="products-showcase-container"
class="mt-80 mb-40 perspective-midrange w-full h-[125svh] bg-black flex items-center justify-center"
>
-
-
+
![]()
{
{{ slide.description }}
-
+
\ No newline at end of file
diff --git a/frontend/layouts/None.vue b/frontend/layouts/None.vue
index 6f98973..cb7efd7 100644
--- a/frontend/layouts/None.vue
+++ b/frontend/layouts/None.vue
@@ -5,5 +5,3 @@