From a4e3697f24ec439da690090342c39e63eb589252 Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Mon, 4 Nov 2019 17:47:05 +0100 Subject: [PATCH] refactor: display allyTeam in blue and enemyTeam in red --- client/src/components/Match/DetailedMatch.vue | 23 +++++-------------- .../components/Match/DetailedMatchTeam.vue | 11 +++++---- client/tailwind.config.js | 1 + 3 files changed, 13 insertions(+), 22 deletions(-) diff --git a/client/src/components/Match/DetailedMatch.vue b/client/src/components/Match/DetailedMatch.vue index e241f46..08a93a2 100644 --- a/client/src/components/Match/DetailedMatch.vue +++ b/client/src/components/Match/DetailedMatch.vue @@ -9,16 +9,15 @@
{{ ban.pickTurn }}
@@ -27,16 +26,15 @@
{{ ban.pickTurn }}
@@ -77,15 +75,6 @@ export default { return this.data.blueTeam.players.some(p => p.name.toLowerCase() === this.$route.params.name.toLowerCase()) ? this.data.redTeam : this.data.blueTeam }, ...mapGetters('ddragon', ['version']), - }, - - methods: { - banColorChampion(colorTeam) { - return colorTeam === 'Blue' ? 'ban-blue border-teal-500' : 'ban-red border-red-500' - }, - banColorPickOrder(colorTeam) { - return colorTeam === 'Blue' ? 'text-teal-100 bg-teal-500' : 'text-red-100 bg-red-500' - } } } diff --git a/client/src/components/Match/DetailedMatchTeam.vue b/client/src/components/Match/DetailedMatchTeam.vue index e8613d5..9c1dc3c 100644 --- a/client/src/components/Match/DetailedMatchTeam.vue +++ b/client/src/components/Match/DetailedMatchTeam.vue @@ -5,9 +5,9 @@
{{ data.color }} Team + >{{ allyTeam ? 'Ally' : 'Enemy' }} Team {{ `${data.teamStats.kills}/${data.teamStats.deaths}/${data.teamStats.assists}` }}
@@ -55,9 +55,10 @@ class="ml-3 relative w-8 h-8 bg-cover bg-center bg-blue-1000 rounded-full" >
- {{ player.level }} + {{ player.level }}
@@ -253,6 +254,6 @@ export default { } .level-position { - left: -10px; + left: -5px; } diff --git a/client/tailwind.config.js b/client/tailwind.config.js index bd82830..1b7cecc 100644 --- a/client/tailwind.config.js +++ b/client/tailwind.config.js @@ -258,6 +258,7 @@ module.exports = { ], }, fontSize: { + xxs: '0.625rem', xs: '0.75rem', sm: '0.875rem', base: '1rem',