From e0835c58b78809482169732f559ddc9c476c0dd1 Mon Sep 17 00:00:00 2001 From: Kerby Keith Aquino Date: Sun, 26 Feb 2023 15:25:40 +0000 Subject: [PATCH] ui changes; remove lottiefiles --- website/app.vue | 2 -- website/components/DevTeam.vue | 17 +++++++++++++++++ website/components/Landing/LandingHero.vue | 19 +++++++++++++------ website/components/TheBaseNavbar.vue | 6 ++++-- website/nuxt.config.ts | 3 +++ website/package.json | 4 +--- website/plugins/Vue3Lottie.client.ts | 5 ----- yarn.lock | 13 ------------- 8 files changed, 38 insertions(+), 31 deletions(-) create mode 100644 website/components/DevTeam.vue delete mode 100644 website/plugins/Vue3Lottie.client.ts diff --git a/website/app.vue b/website/app.vue index d0cf47ec..95f2e194 100644 --- a/website/app.vue +++ b/website/app.vue @@ -14,8 +14,6 @@ useCalcViewport() \ No newline at end of file diff --git a/website/components/Landing/LandingHero.vue b/website/components/Landing/LandingHero.vue index 57ec5e9d..c9f60aba 100644 --- a/website/components/Landing/LandingHero.vue +++ b/website/components/Landing/LandingHero.vue @@ -6,11 +6,14 @@ const ctx = ref() const profileContainer = ref() onMounted(() => { + + let gsapMedia = gsap.matchMedia("(min-width: 1024px)") + ctx.value = gsap.context((self) => { - const artItems = self.selector!(".art-item-right") + const artItemsRight = self.selector!(".art-item-right") + const artItemsLeft = self.selector!(".art-item-left") const scrollWrapper = self.selector!(".profile-container #wrapper") - // Trigger on-scroll gsap .timeline({ scrollTrigger: { @@ -18,11 +21,15 @@ onMounted(() => { start: "top top", end: "+=900", scrub: 0.65, + markers: true, }, }) - .to(artItems[2], { y: -145 }) - .to(artItems[1], { y: -125 * 2 }, "<") - .to(artItems[0], { y: -125 * 3 }, "<") + .to(artItemsRight[2], { y: -145 }) + .to(artItemsRight[1], { y: -125 * 2 }, "<") + .to(artItemsRight[0], { y: -125 * 3 }, "<") + .to(artItemsLeft[2], { y: -145 }, "<") + .to(artItemsLeft[1], { y: -125 * 2 }, "<") + .to(artItemsLeft[0], { y: -125 * 3 }, "<") }, profileContainer.value) }) @@ -41,7 +48,7 @@ onUnmounted(() => ctx.value.revert()) -