From b5162b2996efe5031c6e780fd763b0ec43f16d72 Mon Sep 17 00:00:00 2001 From: Kerby Keith Aquino Date: Sun, 19 Feb 2023 08:10:46 +0000 Subject: [PATCH] update mass landing layout --- website/app.vue | 2 +- website/components/Landing/Images.ts | 55 ++++++++------ website/components/Landing/LandingHero.vue | 80 +++++++++++--------- website/components/Landing/LandingSecond.vue | 2 +- website/components/Landing/LandingThird.vue | 4 +- website/components/Login/LoginForm.vue | 4 +- website/components/TheBaseNavbar.vue | 4 +- website/package.json | 1 + website/pages/index.vue | 6 +- website/tailwind.config.js | 21 ++++- yarn.lock | 28 +++++++ 11 files changed, 134 insertions(+), 73 deletions(-) diff --git a/website/app.vue b/website/app.vue index 2145dbcc..d0cf47ec 100644 --- a/website/app.vue +++ b/website/app.vue @@ -17,6 +17,6 @@ useCalcViewport() @import "vue3-lottie/dist/style.css"; body { - @apply bg-zinc-900 text-zinc-50; + @apply bg-base-900 text-base-50; } diff --git a/website/components/Landing/Images.ts b/website/components/Landing/Images.ts index 680e5e4c..4365b2fb 100644 --- a/website/components/Landing/Images.ts +++ b/website/components/Landing/Images.ts @@ -5,33 +5,38 @@ interface Images { left?: string right?: string scale?: number - characterName?: string - characterAuthor?: string } -export const heroImages: Images[] = [ - { - file: "renzo.jpg", - top: "5.5rem", - right: "25vw", - characterName: "Renzo", - characterAuthor: "@ozzydevs", - }, - { - file: "ivo.png", - bottom: "5rem", - right: "8vw", - characterName: "Ivo", - characterAuthor: "@ozzydevs", - }, - { - file: "vulpo.jpg", - bottom: "15rem", - right: "22vw", - characterName: "Vulpo", - characterAuthor: "@ozzydevs", - }, -] +export const heroImages: { left: Images[]; right: Images[] } = { + left: [ + { + file: "renzo.jpg", + left: "25vw", + }, + { + file: "ivo.png", + left: "8vw", + }, + { + file: "vulpo.jpg", + left: "22vw", + }, + ], + right: [ + { + file: "renzo.jpg", + right: "25vw", + }, + { + file: "ivo.png", + right: "8vw", + }, + { + file: "vulpo.jpg", + right: "22vw", + }, + ], +} export const secondSectImages: Images[] = [ { file: "ozzy-sniff.png", bottom: "2rem", left: "12vw" }, diff --git a/website/components/Landing/LandingHero.vue b/website/components/Landing/LandingHero.vue index 8e84471b..57ec5e9d 100644 --- a/website/components/Landing/LandingHero.vue +++ b/website/components/Landing/LandingHero.vue @@ -7,7 +7,7 @@ const profileContainer = ref() onMounted(() => { ctx.value = gsap.context((self) => { - const artItems = self.selector!(".art-item") + const artItems = self.selector!(".art-item-right") const scrollWrapper = self.selector!(".profile-container #wrapper") // Trigger on-scroll @@ -16,9 +16,8 @@ onMounted(() => { scrollTrigger: { trigger: scrollWrapper, start: "top top", - end: "+=1000", - scrub: 0.75, - markers: true + end: "+=900", + scrub: 0.65, }, }) .to(artItems[2], { y: -145 }) @@ -43,27 +42,37 @@ onUnmounted(() => ctx.value.revert())