mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
Fix rank c color
This commit is contained in:
parent
2153e390c9
commit
2d2b414469
1 changed files with 5 additions and 1 deletions
|
|
@ -100,7 +100,11 @@ export const getTrophyIcon = (rank = RANK.UNKNOWN) => {
|
||||||
let color = "currentColor";
|
let color = "currentColor";
|
||||||
let rankColor = "#333";
|
let rankColor = "#333";
|
||||||
let backgroundIcon = "";
|
let backgroundIcon = "";
|
||||||
let gradationColor = "";
|
let gradationColor = `
|
||||||
|
<stop offset="0%" stop-color="#333"/>
|
||||||
|
<stop offset="50%" stop-color="#333"/>
|
||||||
|
<stop offset="100%" stop-color="#000"/>
|
||||||
|
`;
|
||||||
if (rank === RANK.SECRET) {
|
if (rank === RANK.SECRET) {
|
||||||
rankColor = "fuchsia";
|
rankColor = "fuchsia";
|
||||||
gradationColor = `
|
gradationColor = `
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue