From 6b4a0753c3c4caf57845ec164bcf89a103a33bbd Mon Sep 17 00:00:00 2001 From: Hetari Date: Sat, 13 Jul 2024 18:02:25 +0300 Subject: [PATCH] refactor(color): change the color schema --- src/App.vue | 9 ------- src/animations/index.ts | 15 +++++++---- src/components/BurgerMenuBtn.vue | 4 +-- src/components/MyEnName.vue | 2 +- src/components/common/Button.vue | 6 ++--- src/components/common/Nav.vue | 14 +++++----- src/components/design/LoadingScreen.vue | 4 +-- src/components/design/ModernArtShape.vue | 15 ++++++++--- src/components/design/Star.vue | 2 +- src/components/sections/Hero.vue | 10 +++---- src/components/sections/Services.vue | 8 +++--- src/style.css | 15 +++-------- tailwind.config.js | 33 +++++++++++++++++++----- 13 files changed, 77 insertions(+), 60 deletions(-) diff --git a/src/App.vue b/src/App.vue index 881d542..72ceebd 100644 --- a/src/App.vue +++ b/src/App.vue @@ -29,15 +29,6 @@ - diff --git a/src/animations/index.ts b/src/animations/index.ts index f9af649..8812868 100644 --- a/src/animations/index.ts +++ b/src/animations/index.ts @@ -6,7 +6,12 @@ import { Ref } from 'vue'; gsap.registerPlugin(ScrollTrigger); gsap.registerPlugin(MotionPathHelper); -const animateSplitText = (id: string, duration: number = 0.8, stagger: number = 0.005, delay: number = 0.3) => { +const animateSplitText = ( + id: string, + duration: number = 0.8, + stagger: number = 0.005, + delay: number = 0.3, +) => { gsap.to(id, { scrollTrigger: { trigger: id, @@ -20,7 +25,7 @@ const animateSplitText = (id: string, duration: number = 0.8, stagger: number = stagger: stagger, ease: 'power4.inOut', }); -} +}; const navbarScale = (selector: string, trigger: string) => { gsap.fromTo( selector, @@ -209,7 +214,7 @@ const animateLoadingPath = (path: Ref, targetPath: string) => { onStart: () => { setTimeout(() => { animateHeroNav(); - }, 500); + }, 250); }, }, '<20%', @@ -275,8 +280,8 @@ const animateHeroNav = () => { ease: 'power4.inOut', }); - animateSplitText('#whoAmI .letters') - + animateSplitText('#whoAmI .letters'); + gsap.to(['#location', '#art'], { opacity: 1, scale: 1, diff --git a/src/components/BurgerMenuBtn.vue b/src/components/BurgerMenuBtn.vue index f96ab14..9140a01 100644 --- a/src/components/BurgerMenuBtn.vue +++ b/src/components/BurgerMenuBtn.vue @@ -3,10 +3,10 @@
diff --git a/src/components/MyEnName.vue b/src/components/MyEnName.vue index b21e749..51809f7 100644 --- a/src/components/MyEnName.vue +++ b/src/components/MyEnName.vue @@ -1,6 +1,6 @@ diff --git a/src/components/design/Star.vue b/src/components/design/Star.vue index d0d8253..e3d207d 100644 --- a/src/components/design/Star.vue +++ b/src/components/design/Star.vue @@ -4,7 +4,7 @@ -
+

{{ locationPlace }}

@@ -112,9 +112,7 @@ whoAmI.value = textSplitter(whoAmI.value); }); - onMounted(() => { - - }) + onMounted(() => {});