diff --git a/client/src/components/Summoner/Records/RecordCard.vue b/client/src/components/Summoner/Records/RecordCard.vue index 758da1b..8459da0 100644 --- a/client/src/components/Summoner/Records/RecordCard.vue +++ b/client/src/components/Summoner/Records/RecordCard.vue @@ -7,26 +7,42 @@ `${hover ? gradientHover : gradient}, url('https://raw.communitydragon.org/latest/plugins/rcp-be-lol-game-data/global/default/v1/champion-splashes/${record.champion.id}/${record.champion.id}000.jpg')` }" - class="w-full p-2 mx-2 mt-6 leading-none bg-center bg-cover rounded-lg record-card" + :class="borderColor" + class="relative w-full p-4 mx-2 mt-6 leading-none bg-center bg-cover border rounded-lg record-card" > -
{{ record[property] }}
-
- {{ title.substr(0, title.indexOf(' ')) }} - {{ title.substr(title.indexOf(' ') + 1) }} +
+ {{ title }}
+ Champion Played +
{{ record[property] }}
+
-
+
{{ record.result === 'Win' ? 'won' : 'lost' }} - {{ timeDifference(record.date) }} + >{{ record.result === 'Win' ? 'Won' : 'Lost' }} + {{ timeDifference(record.date) }}
-
- as - {{ record.champion.name }} +
+ As + {{ record.champion.name }}
-
match {{ record.gameId }}
+
match {{ record.gameId }}
@@ -35,10 +51,18 @@ import { timeDifference } from '@/helpers/functions.js' export default { props: { + borderColor: { + type: String, + required: true + }, color: { type: String, required: true }, + textColor: { + type: String, + required: true + }, property: { type: String, required: true @@ -55,7 +79,7 @@ export default { data() { return { - gradient: 'linear-gradient(180deg, rgba(42, 67, 101, 0.3) 0%, rgba(42, 67, 101, 0.8) 60%, rgba(42, 67, 101, 1) 100%)', + gradient: 'linear-gradient(180deg, rgba(42, 67, 101, 0.8) 0%, rgba(42, 67, 101, 0.95) 60%, rgba(42, 67, 101, 1) 100%)', gradientHover: 'linear-gradient(rgba(42, 67, 101, 0.1) 0%, rgba(42, 67, 101, 0.3) 60%, rgba(42, 67, 101, 0.5) 100%)', hover: false, } @@ -69,7 +93,7 @@ export default {