File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,13 @@ type Contributor = {
36
36
};
37
37
38
38
const getContributorLevel = (contributions : number ) => {
39
- if (contributions > 100 ) {
39
+ if (contributions >= 100 ) {
40
+ return " champion" ;
41
+ } else if (contributions >= 50 ) {
40
42
return " diamond" ;
41
- } else if (contributions > 50 ) {
43
+ } else if (contributions >= 25 ) {
42
44
return " gold" ;
43
- } else if (contributions > 25 ) {
45
+ } else if (contributions >= 10 ) {
44
46
return " silver" ;
45
47
}
46
48
@@ -292,12 +294,15 @@ if (!contributors) {
292
294
img {
293
295
border-style: solid;
294
296
box-sizing: border-box;
295
- box-shadow: var(--tier-color) 0px 0px 10px 2px ;
297
+ box-shadow: var(--tier-color) 0px 0px 10px 3px ;
296
298
border-width: 0.2em;
297
299
border-color: var(--tier-color);
298
300
position: relative;
299
301
}
300
302
303
+ &.champion {
304
+ --tier-color: #ff2626;
305
+ }
301
306
&.diamond {
302
307
--tier-color: #00f7ff;
303
308
}
You can’t perform that action at this time.
0 commit comments