From 7489460ef9d710c78d1291b46f35ee489a4ba2fa Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Sun, 31 Dec 2023 22:21:00 +0300 Subject: [PATCH 1/2] Add animation to boxes --- assets/styles/layout/landing/_main.scss | 46 +++++++++++++++++++ .../layout/variables/landing/_dark.scss | 1 + .../layout/variables/landing/_light.scss | 1 + components/landing/HeroSection.vue | 42 +++++++++++++++-- 4 files changed, 85 insertions(+), 5 deletions(-) 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 -

The Most Complete UI Suite for Vue.js

+

The Next-Gen UI Suite for Vue.js

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 - +
@@ -72,7 +72,7 @@
-
+
@@ -80,7 +80,7 @@
- Watch + Watch
@@ -124,6 +124,27 @@
+
+ + + + + +
@@ -157,9 +178,20 @@ export default { selectButtonValue: { name: 'Styled', value: 1 }, dateValue: null, rangeValues: [20, 80], + checked: false, + splitButtonItems: [ + { + label: 'Update', + icon: 'pi pi-refresh' + }, + { + label: 'Delete', + icon: 'pi pi-times' + } + ], items: [ { label: 'Home', icon: 'pi pi-fw pi-home' }, - { label: 'Calendar', icon: 'pi pi-fw pi-calendar' } + { label: 'Inbox', icon: 'pi pi-fw pi-inbox' } ], selectButtonOptions: [ { name: 'Styled', value: 1 }, From 8e1354d0997bf79d8c40ef0cfa16f4d59db8234a Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 3 Jan 2024 11:06:19 +0000 Subject: [PATCH 2/2] Fixed #5020 - Add caption option to passthrough options on Card --- components/lib/card/Card.d.ts | 4 ++++ components/lib/card/Card.vue | 12 +++++++----- components/lib/card/style/CardStyle.js | 1 + 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/components/lib/card/Card.d.ts b/components/lib/card/Card.d.ts index 816fb2127..f757ab3b5 100755 --- a/components/lib/card/Card.d.ts +++ b/components/lib/card/Card.d.ts @@ -31,6 +31,10 @@ export interface CardPassThroughOptions { * Used to pass attributes to the body's DOM element. */ body?: CardPassThroughOptionType; + /** + * Used to pass attributes to the caption's DOM element. + */ + caption?: CardPassThroughOptionType; /** * Used to pass attributes to the title's DOM element. */ diff --git a/components/lib/card/Card.vue b/components/lib/card/Card.vue index 32c5e3d08..7b6f94a31 100755 --- a/components/lib/card/Card.vue +++ b/components/lib/card/Card.vue @@ -4,11 +4,13 @@
-
- -
-
- +
+
+ +
+
+ +
diff --git a/components/lib/card/style/CardStyle.js b/components/lib/card/style/CardStyle.js index 0a3c98982..5b5e72abf 100644 --- a/components/lib/card/style/CardStyle.js +++ b/components/lib/card/style/CardStyle.js @@ -4,6 +4,7 @@ const classes = { root: 'p-card p-component', header: 'p-card-header', body: 'p-card-body', + caption: 'p-card-caption', title: 'p-card-title', subtitle: 'p-card-subtitle', content: 'p-card-content',