From f9c1ab01b3e0e41ac5abb2c5e01031d7310c4e3e Mon Sep 17 00:00:00 2001 From: gabaldon Date: Fri, 2 Aug 2024 11:18:52 +0200 Subject: [PATCH] fix: adjust animations --- assets/styles/tailwind.css | 6 +++--- components/sections/HeroSection.vue | 16 ++++++++-------- components/sections/NewsletterSection.vue | 2 +- layouts/default.vue | 18 ++++++++++++++---- layouts/section.vue | 2 +- 5 files changed, 27 insertions(+), 17 deletions(-) diff --git a/assets/styles/tailwind.css b/assets/styles/tailwind.css index 095f957d..bccc8166 100644 --- a/assets/styles/tailwind.css +++ b/assets/styles/tailwind.css @@ -98,13 +98,13 @@ /* Button */ .btn { - @apply w-full py-sm px-md-alt cursor-pointer border-2 border-black-950 hover:shadow-none hover:translate-x-xs hover:translate-y-xs ease-[cubic-bezier(0.25,0.4,0.55,1.4)] duration-100; + @apply w-full py-sm px-md-alt cursor-pointer border-2 border-black-950; } .btn-primary { - @apply font-semibold rounded-full bg-wit-blue-500 hover:bg-wit-blue-400 text-black-950 focus:outline-none focus:ring focus:ring-wit-blue-500 focus:ring-opacity-80 shadow-[3px_7px_0px] shadow-black-950; + @apply font-semibold rounded-full bg-wit-blue-500 hover:bg-wit-blue-400 text-black-950 focus:outline-none focus:ring focus:ring-wit-blue-500 focus:ring-opacity-80 shadow-[3px_7px_0px] shadow-black-950 hover:shadow-none hover:translate-x-xs hover:translate-y-xs ease-[cubic-bezier(0.25,0.4,0.55,1.4)] duration-75; } .btn-dark { - @apply font-semibold rounded-full bg-white-50 hover:bg-white-100 text-black-950 focus:outline-none focus:ring focus:ring-wit-blue-500 focus:ring-opacity-80 shadow-[3px_7px_0px] shadow-wit-blue-500; + @apply font-semibold rounded-full bg-white-50 hover:bg-white-100 text-black-950 focus:outline-none focus:ring focus:ring-wit-blue-500 focus:ring-opacity-80 shadow-[3px_7px_0px] shadow-wit-blue-500 hover:shadow-none hover:translate-x-xs hover:translate-y-xs ease-[cubic-bezier(0.25,0.4,0.55,1.4)] duration-75; } .btn-secondary { @apply font-semibold rounded-full bg-black-950 hover:bg-black-900 text-white-50 focus:outline-none focus:ring focus:ring-black-500 focus:ring-opacity-80 border-2 shadow-[3px_7px_0px] shadow-black-950; diff --git a/components/sections/HeroSection.vue b/components/sections/HeroSection.vue index 52009869..b722f5ec 100644 --- a/components/sections/HeroSection.vue +++ b/components/sections/HeroSection.vue @@ -4,7 +4,7 @@ :center-left-content="false" :content-classes="'p-[24px_100px] sm:p-[0px_32px] xs:p-[0px_16px]'" :section-animation="false" - :height="'h-lg-y-screen max-h-[900px]'" + :height="'h-lg-y-screen max-h-[900px] md:max-h-[100vh]'" > @@ -84,6 +87,13 @@ function clearActiveLinks() {