2020-01-03 21:50:09 +00:00
|
|
|
<template>
|
2020-06-13 13:15:15 +00:00
|
|
|
<div class="flex ml-4 overflow-hidden text-sm rounded-lg">
|
|
|
|
|
<div class="relative flex justify-between w-full overflow-hidden bg-blue-800 rounded-lg">
|
2020-06-11 18:55:39 +00:00
|
|
|
<div class="absolute flex flex-col items-center justify-between h-full horizontal-center">
|
|
|
|
|
<div class="text-base leading-loose text-blue-200">{{ gamemode.name }}</div>
|
|
|
|
|
<div class="flex flex-col text-2xl font-bold leading-none vs">
|
2020-01-03 21:50:09 +00:00
|
|
|
<span>V</span>
|
|
|
|
|
<span class="ml-4 -mt-3">S</span>
|
|
|
|
|
</div>
|
2020-09-29 16:49:20 +00:00
|
|
|
<div class="w-10 pb-2 text-blue-200">{{ displayStartTime }}</div>
|
2020-01-03 21:50:09 +00:00
|
|
|
</div>
|
|
|
|
|
<ul class="w-1/2 text-left">
|
|
|
|
|
<li
|
|
|
|
|
v-for="(ally, index) in allyTeam"
|
|
|
|
|
:key="ally.summonerId"
|
|
|
|
|
:class="index % 2 === 0 ? 'accent-ally' : 'ally'"
|
|
|
|
|
class="flex items-center px-5 py-1 leading-loose"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
:style="{backgroundImage: `url('https://raw.communitydragon.org/latest/plugins/rcp-be-lol-game-data/global/default/v1/champion-icons/${ally.championId}.png')`}"
|
2020-06-11 18:55:39 +00:00
|
|
|
class="w-6 h-6 bg-center bg-cover rounded-full bg-blue-1000"
|
2020-01-03 21:50:09 +00:00
|
|
|
></div>
|
|
|
|
|
<router-link
|
|
|
|
|
v-if="!ally.bot"
|
|
|
|
|
:to="{ name: 'summoner', params: { region: $route.params.region, name: ally.summonerName }}"
|
2020-01-19 15:48:28 +00:00
|
|
|
:class="[ally.summonerId === account.id ? 'text-white' : 'text-blue-200']"
|
2020-01-03 21:50:09 +00:00
|
|
|
class="relative ml-2 hover:text-white"
|
|
|
|
|
>{{ ally.summonerName }}</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<ul class="w-1/2 text-right">
|
|
|
|
|
<li
|
|
|
|
|
v-for="(enemy, index) in enemyTeam"
|
|
|
|
|
:key="enemy.summonerId"
|
|
|
|
|
:class="index % 2 === 0 ? 'accent-enemy' : 'enemy'"
|
|
|
|
|
class="flex items-center justify-end px-5 py-1 leading-loose"
|
|
|
|
|
>
|
|
|
|
|
<router-link
|
|
|
|
|
v-if="!enemy.bot"
|
|
|
|
|
:to="{ name: 'summoner', params: { region: $route.params.region, name: enemy.summonerName }}"
|
|
|
|
|
class="relative text-red-200 hover:text-white"
|
|
|
|
|
>{{ enemy.summonerName }}</router-link>
|
|
|
|
|
<div
|
|
|
|
|
:style="{backgroundImage: `url('https://raw.communitydragon.org/latest/plugins/rcp-be-lol-game-data/global/default/v1/champion-icons/${enemy.championId}.png')`}"
|
2020-06-11 18:55:39 +00:00
|
|
|
class="w-6 h-6 ml-2 bg-center bg-cover rounded-full bg-blue-1000"
|
2020-01-03 21:50:09 +00:00
|
|
|
></div>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
2020-06-13 13:15:15 +00:00
|
|
|
<router-link
|
|
|
|
|
:to="{ name: 'summonerLive', params: { region: $route.params.region, name: $route.params.name }}"
|
|
|
|
|
class="flex items-center pl-6 pr-4 -ml-2 text-base text-blue-200 cursor-pointer live-game-link bg-gradient-x hover:bg-blue-800 hover:text-blue-100"
|
|
|
|
|
>
|
|
|
|
|
<div class="-mt-2px">more</div>
|
|
|
|
|
<svg class="w-4 h-4 ml-1 transition-transform duration-200 ease-in-out transform">
|
|
|
|
|
<use xlink:href="#arrow-right" />
|
|
|
|
|
</svg>
|
|
|
|
|
</router-link>
|
2020-01-03 21:50:09 +00:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2020-01-14 21:04:45 +00:00
|
|
|
import { liveGame } from '@/mixins/liveGame'
|
2020-01-03 21:50:09 +00:00
|
|
|
|
|
|
|
|
export default {
|
2020-01-14 21:04:45 +00:00
|
|
|
mixins: [liveGame],
|
2020-01-03 21:50:09 +00:00
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.accent-ally {
|
|
|
|
|
background-image: linear-gradient(
|
|
|
|
|
90deg,
|
|
|
|
|
rgba(49, 130, 206, 0.7) 0%,
|
|
|
|
|
rgba(44, 82, 130, 0) 100%
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ally {
|
|
|
|
|
background-image: linear-gradient(
|
|
|
|
|
90deg,
|
|
|
|
|
rgba(49, 130, 206, 0.3) 0%,
|
|
|
|
|
rgba(44, 82, 130, 0) 90%
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.accent-enemy {
|
|
|
|
|
background-image: linear-gradient(
|
|
|
|
|
90deg,
|
|
|
|
|
rgba(44, 82, 130, 0) 0%,
|
|
|
|
|
rgba(140, 0, 0, 0.4) 100%
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.enemy {
|
|
|
|
|
background-image: linear-gradient(
|
|
|
|
|
90deg,
|
|
|
|
|
rgba(44, 82, 130, 0) 10%,
|
|
|
|
|
rgba(140, 0, 0, 0.3) 100%
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.vs {
|
|
|
|
|
text-shadow: 3px 2px 0px rgba(49, 130, 206, 0.8),
|
|
|
|
|
-3px 2px 0px rgba(229, 62, 62, 0.8);
|
|
|
|
|
}
|
2020-06-13 13:15:15 +00:00
|
|
|
|
|
|
|
|
.live-game-link:hover svg {
|
|
|
|
|
@apply translate-x-1
|
|
|
|
|
}
|
2020-01-03 21:50:09 +00:00
|
|
|
</style>
|