diff --git a/assets/styles/layout/landing/_main.scss b/assets/styles/layout/landing/_main.scss index 93f374c94..2d88aaa38 100644 --- a/assets/styles/layout/landing/_main.scss +++ b/assets/styles/layout/landing/_main.scss @@ -7,6 +7,52 @@ border: 1px solid var(--home-border-color); border-radius: 10px; background-color: var(--home-box-bg); + position: relative; + z-index: 0; + + &::before, + &::after { + content: ""; + position: absolute; + top: -2px; + left: -2px; + right: -2px; + bottom: -2px; + border: 2px solid var(--home-box-ring-color); + transition: all .5s; + animation: clippath 3s infinite linear; + border-radius: 10px; + opacity: 0; + z-index: -1; + } + + &::after { + animation: clippath 3s infinite -1.5s linear; + } + + &:hover { + &::before, + &::after { + opacity: 1; + } + } + } + + @keyframes clippath { + 0%, + 100% { + clip-path: inset(0 0 98% 0); + } + + 25% { + clip-path: inset(0 98% 0 0); + } + 50% { + clip-path: inset(98% 0 0 0); + } + 75% { + clip-path: inset(0 0 0 98%); + } } .linkbox { diff --git a/assets/styles/layout/variables/landing/_dark.scss b/assets/styles/layout/variables/landing/_dark.scss index ccb8a7901..6b0579725 100644 --- a/assets/styles/layout/variables/landing/_dark.scss +++ b/assets/styles/layout/variables/landing/_dark.scss @@ -49,4 +49,5 @@ --home-templates-btn-border-bottom:4px solid #424b57; --home-templates-btn-border-left:3px solid #424b57; --home-features-card-shadow: none; + --home-box-ring-color: rgba(52, 211, 153, .3); } \ No newline at end of file diff --git a/assets/styles/layout/variables/landing/_light.scss b/assets/styles/layout/variables/landing/_light.scss index 314bc62bf..8352457a4 100644 --- a/assets/styles/layout/variables/landing/_light.scss +++ b/assets/styles/layout/variables/landing/_light.scss @@ -49,4 +49,5 @@ --home-templates-btn-border-bottom:4px solid rgba(0,0,0,.1); --home-templates-btn-border-left:3px solid rgba(0,0,0,.1); --home-features-card-shadow: 0px 7px 15px 0px rgba(0, 0, 0, 0.02), 0px 28px 28px 0px rgba(0, 0, 0, 0.02), 0px 63px 38px 0px rgba(0, 0, 0, 0.01); + --home-box-ring-color: var(--primary-100); } \ No newline at end of file diff --git a/components/landing/HeroSection.vue b/components/landing/HeroSection.vue index f48bebc64..efa297b3b 100644 --- a/components/landing/HeroSection.vue +++ b/components/landing/HeroSection.vue @@ -10,7 +10,7 @@ class="bg-yellow-300 border-1 border-yellow-400 text-yellow-900 py-1 px-3 xl:align-self-start font-semibold text-lg transition-colors transition-duration-300 hover:border-yellow-600" >🎉 Introducing the Tailwind CSS Presets -
Elevate your web applications with PrimeVue's comprehensive suite of customizable, feature-rich UI components. With PrimeVue, turning your development vision into reality has never been easier.
@@ -58,7 +58,7 @@ Date -