Skip to content

Commit 3444d02

Browse files
style(webdev): sparkly yellow tag with CSS gradient and shine (#52)
Replace the purple webdev pill with an animated gold/yellow gradient, a periodic highlight sweep via ::after, and a subtle text glow. Respects prefers-reduced-motion by disabling animations. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent ad685ec commit 3444d02

File tree

1 file changed

+66
-2
lines changed

1 file changed

+66
-2
lines changed

components/ArticleTag.vue

Lines changed: 66 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,72 @@ a::before {
5858
color: #fff;
5959
}
6060
.webdev {
61-
background-color: #562765;
62-
color: #fff;
61+
position: relative;
62+
overflow: hidden;
63+
color: #3d2a00;
64+
border-color: #c9a227;
65+
background: linear-gradient(
66+
125deg,
67+
#ffd700 0%,
68+
#ffec8b 18%,
69+
#ffe135 38%,
70+
#fffef0 50%,
71+
#ffd700 62%,
72+
#daa520 82%,
73+
#ffec8b 100%
74+
);
75+
background-size: 280% 280%;
76+
animation: webdev-sparkle 3.5s ease-in-out infinite;
77+
text-shadow: 0 0 2px rgb(255 255 255 / 75%);
78+
}
79+
80+
.webdev::after {
81+
content: '';
82+
position: absolute;
83+
inset: 0;
84+
border-radius: inherit;
85+
background: linear-gradient(
86+
110deg,
87+
transparent 0%,
88+
transparent 40%,
89+
rgb(255 255 255 / 65%) 50%,
90+
transparent 60%,
91+
transparent 100%
92+
);
93+
transform: translateX(-120%);
94+
animation: webdev-shine 2.6s ease-in-out infinite;
95+
pointer-events: none;
96+
}
97+
98+
@keyframes webdev-sparkle {
99+
0%,
100+
100% {
101+
background-position: 0% 50%;
102+
}
103+
50% {
104+
background-position: 100% 50%;
105+
}
106+
}
107+
108+
@keyframes webdev-shine {
109+
0% {
110+
transform: translateX(-120%);
111+
}
112+
25%,
113+
100% {
114+
transform: translateX(120%);
115+
}
116+
}
117+
118+
@media (prefers-reduced-motion: reduce) {
119+
.webdev {
120+
animation: none;
121+
background-size: 100% 100%;
122+
}
123+
124+
.webdev::after {
125+
display: none;
126+
}
63127
}
64128
.productivity {
65129
background-color: #2a0798;

0 commit comments

Comments
 (0)