Świecące nicki i poziomy sponsorów

This commit is contained in:
2022-10-14 23:15:50 +02:00
parent fcb8357489
commit cceeffe49d
6 changed files with 28 additions and 9 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ export default defineComponent({
calculateExpStyle(exp: number, isSupporter = false): string {
const bgColor = exp > -1 ? (exp < 2 ? '#26B0D9' : `hsl(${-exp * 5 + 100}, 85%, 50%)`) : '#666';
const fontColor = exp > 15 || exp == -1 ? 'white' : 'black';
const fontColor = exp > 14 || exp == -1 ? 'white' : 'black';
const boxShadow = isSupporter ? `box-shadow: 0 0 10px 2px ${bgColor};` : '';
return `background-color: ${bgColor}; color: ${fontColor}; ${boxShadow}`;