Redesign karty stacji, małe zmiany w wyglądzie listy

This commit is contained in:
2020-07-17 21:24:37 +02:00
parent 8072daa68c
commit 3e7f8466cd
7 changed files with 530 additions and 162 deletions
+13
View File
@@ -0,0 +1,13 @@
import Vue from 'vue'
import Component from 'vue-class-component'
// You can declare mixins as the same style as components.
@Component
export default class styleMixin extends Vue {
calculateStyle(exp: string | number): string {
const bgColor = exp < 2 ? "#26B0D9" : `hsl(${-exp * 5 + 100}, 65%, 50%)`;
const fontColor = exp > 15 ? "white" : "black";
return `backgroundColor: ${bgColor}; color: ${fontColor}`;
}
}