Skip to content

Commit d98965b

Browse files
committed
fix: Update strength bar animation class and remove unused keyframes
1 parent 3145cde commit d98965b

2 files changed

Lines changed: 8 additions & 12 deletions

File tree

src/components/PasswordGenerator.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
</div>
151151
<div class="w-full bg-dark-700 rounded-full h-2">
152152
<div
153-
:class="[strengthColor.replace('text-', 'bg-'), 'strength-bar-glow']"
153+
:class="[strengthColor.replace('text-', 'bg-'), 'strength-bar-shadow']"
154154
class="h-2 rounded-full transition-all duration-500"
155155
:style="{ width: strengthPercentage + '%' }"
156156
></div>

src/style.css

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,14 @@
2727
}
2828
}
2929

30-
@keyframes yellow-glow {
31-
0%, 100% {
32-
box-shadow: 0 0 5px rgba(234, 179, 8, 0.4), 0 0 10px rgba(234, 179, 8, 0.2);
33-
}
34-
50% {
35-
box-shadow: 0 0 10px rgba(234, 179, 8, 0.6), 0 0 20px rgba(234, 179, 8, 0.3);
36-
}
37-
}
38-
3930
@layer components {
4031
.card {
4132
@apply bg-dark-900 border border-dark-700 rounded-2xl backdrop-blur-sm relative;
33+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
34+
transition: all 0.3s ease;
35+
}
36+
37+
.card:hover {
4238
animation: rgb-glow 4s ease-in-out infinite;
4339
}
4440

@@ -66,8 +62,8 @@
6662
@apply w-5 h-5 text-primary-500 bg-dark-800 border-dark-600 rounded focus:ring-primary-500 focus:ring-2;
6763
}
6864

69-
.strength-bar-glow {
70-
animation: yellow-glow 2s ease-in-out infinite;
65+
.strength-bar-shadow {
66+
box-shadow: 0 2px 8px rgba(234, 179, 8, 0.2);
7167
border-radius: 9999px;
7268
}
7369
}

0 commit comments

Comments
 (0)