Skip to content

Commit 178033c

Browse files
committed
impr: add perfection badge
1 parent 2d430c1 commit 178033c

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

frontend/src/styles/animations.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,15 @@
120120
box-shadow: 0 0 0 0.2em transparent;
121121
}
122122
}
123+
124+
@keyframes gold-shimmer {
125+
0% {
126+
background-position: 0% 50%;
127+
}
128+
50% {
129+
background-position: 100% 50%;
130+
}
131+
100% {
132+
background-position: 0% 50%;
133+
}
134+
}

frontend/src/ts/controllers/badge-controller.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ const badges: Record<number, UserBadge> = {
133133
color: "var(--bg-color)",
134134
background: "var(--main-color)",
135135
},
136+
16: {
137+
id: 16,
138+
name: "Perfection",
139+
description: "Longest test with zero mistakes - 4 hours and 1 minute",
140+
icon: "fa-bullseye",
141+
color: "white",
142+
customStyle:
143+
"animation: gold-shimmer 10s cubic-bezier(0.5, -0.15, 0.5, 1.15) infinite; background: linear-gradient(45deg, #b8860b 0%, #daa520 25%, #ffd700 50%, #daa520 75%, #b8860b 100%); background-size: 200% 200%;",
144+
},
136145
};
137146

138147
export function getHTMLById(

0 commit comments

Comments
 (0)