mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 16:26:18 +08:00
added monkey supporter
This commit is contained in:
parent
26a9ff5930
commit
adf02e7c90
|
@ -55,6 +55,14 @@ const badges: Record<number, MonkeyTypes.UserBadge> = {
|
|||
color: "var(--bg-color)",
|
||||
background: "var(--main-color)",
|
||||
},
|
||||
8: {
|
||||
id: 8,
|
||||
name: "Monkey Supporter",
|
||||
description: "Donated more money",
|
||||
icon: "fa-heart",
|
||||
color: "var(--bg-color)",
|
||||
background: "var(--main-color)",
|
||||
},
|
||||
};
|
||||
|
||||
export function getHTMLById(id: number, noText = false): string {
|
||||
|
@ -73,7 +81,7 @@ export function getHTMLById(id: number, noText = false): string {
|
|||
style += badge.customStyle;
|
||||
}
|
||||
return `<div class="badge" aria-label="${
|
||||
badge.description
|
||||
(noText ? badge.name + ": " : "") + badge.description
|
||||
}" data-balloon-pos="right" style="${style}">${
|
||||
badge.icon ? `<i class="fas ${badge.icon}"></i>` : ""
|
||||
}${noText ? "" : `<div class="text">${badge.name}</div>`}</div>`;
|
||||
|
|
Loading…
Reference in a new issue