2021-09-21 05:57:15 +00:00
|
|
|
<template>
|
|
|
|
<div class="final">
|
|
|
|
<div class="final__container">
|
|
|
|
<div class="final__table-outer-border">
|
|
|
|
<div class="final__table-head">
|
|
|
|
<div class="final__title">{{ title }}</div>
|
|
|
|
</div>
|
|
|
|
<div class="final__table-body">
|
2021-09-24 20:23:03 +00:00
|
|
|
<table class="final__table">
|
|
|
|
<tr class="final__table-row" v-for="player in players" :key="player.id">
|
|
|
|
<td class="final__table-col-name">{{ player.name }}</td>
|
|
|
|
<td class="final__table-col-score">{{ player.score }}</td>
|
2021-09-21 05:57:15 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
2022-03-16 08:39:02 +00:00
|
|
|
<hr class="final__progress" />
|
2021-09-21 05:57:15 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
computed: {
|
|
|
|
title() {
|
2022-02-27 19:54:13 +00:00
|
|
|
return this.$store.state.game.name
|
2021-09-21 05:57:15 +00:00
|
|
|
},
|
|
|
|
players() {
|
2021-09-21 06:23:05 +00:00
|
|
|
var players = [...this.$store.state.players.players]
|
|
|
|
players.sort((a, b) => {
|
|
|
|
return b.score - a.score
|
|
|
|
})
|
|
|
|
return players
|
2021-09-21 05:57:15 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
2021-11-28 16:24:22 +00:00
|
|
|
@import '~/assets/css/components';
|
|
|
|
|
2021-09-21 05:57:15 +00:00
|
|
|
.final {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
&__container {
|
|
|
|
margin: 64px 0;
|
|
|
|
width: 600px;
|
|
|
|
min-height: 600px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__table-outer-border {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2021-09-24 19:40:36 +00:00
|
|
|
position: relative;
|
2021-09-21 05:57:15 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
padding: 4px;
|
|
|
|
border-radius: 32px;
|
2021-11-28 19:28:43 +00:00
|
|
|
background: linear-gradient(45deg, $primary-box-border-color 0, $primary-box-border-color 68%, #ffffff 70%, $primary-box-border-color 72%, $primary-box-border-color 100%);
|
2021-09-24 20:23:03 +00:00
|
|
|
background-size: 1000% 1000%;
|
2021-09-26 19:56:57 +00:00
|
|
|
animation: finals-gradient 10s linear infinite 5s;
|
2021-09-24 19:40:36 +00:00
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2021-11-28 16:24:22 +00:00
|
|
|
background: linear-gradient(45deg, rgba(128, 96, 192, 0) 50%, $primary-background-color 60%);
|
2021-09-24 20:23:03 +00:00
|
|
|
background-size: 1000% 1000%;
|
|
|
|
animation: finals-gradient__fade-in 5s ease forwards;
|
2021-09-24 19:40:36 +00:00
|
|
|
}
|
2021-09-21 05:57:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__table-head {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
height: 100px;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2021-11-28 19:28:43 +00:00
|
|
|
background-color: $primary-box-background-color;
|
2021-09-21 05:57:15 +00:00
|
|
|
border-radius: 32px 32px 0 0;
|
|
|
|
margin-bottom: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
2021-11-28 19:28:43 +00:00
|
|
|
color: $primary-box-text-color;
|
2021-09-21 05:57:15 +00:00
|
|
|
font-family: "Wendy One";
|
|
|
|
font-size: 48px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__table-body {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2021-11-28 19:28:43 +00:00
|
|
|
background-color: $primary-box-background-color;
|
2021-09-21 05:57:15 +00:00
|
|
|
border-radius: 0 0 32px 32px;
|
2021-11-28 19:28:43 +00:00
|
|
|
color: $primary-box-text-color;
|
2021-09-21 05:57:15 +00:00
|
|
|
font-family: Dosis;
|
|
|
|
font-size: 32px;
|
|
|
|
|
2021-09-24 20:23:03 +00:00
|
|
|
}
|
|
|
|
&__table {
|
2021-09-21 05:57:15 +00:00
|
|
|
width: 100%;
|
|
|
|
padding: 64px;
|
2021-09-24 20:23:03 +00:00
|
|
|
|
|
|
|
&-row {
|
|
|
|
opacity: 0;
|
|
|
|
animation: finals-text 1s ease forwards;
|
2021-09-26 21:36:47 +00:00
|
|
|
&:nth-child(1) { animation-delay: 5.5s; }
|
|
|
|
&:nth-child(2) { animation-delay: 4.5s; }
|
|
|
|
&:nth-child(3) { animation-delay: 3.5s; }
|
|
|
|
&:nth-child(4) { animation-delay: 2.4s; }
|
|
|
|
&:nth-child(5) { animation-delay: 2.2s; }
|
|
|
|
&:nth-child(6) { animation-delay: 2s; }
|
|
|
|
&:nth-child(7) { animation-delay: 1.9s; }
|
|
|
|
&:nth-child(8) { animation-delay: 1.8s; }
|
|
|
|
&:nth-child(9) { animation-delay: 1.7s; }
|
|
|
|
&:nth-child(10) { animation-delay: 1.6s; }
|
|
|
|
&:nth-child(11) { animation-delay: 1.5s; }
|
|
|
|
&:nth-child(12) { animation-delay: 1.4s; }
|
|
|
|
&:nth-child(13) { animation-delay: 1.3s; }
|
|
|
|
&:nth-child(14) { animation-delay: 1.2s; }
|
|
|
|
&:nth-child(15) { animation-delay: 1.1s; }
|
2021-09-26 19:56:57 +00:00
|
|
|
&:nth-child(16) { animation-delay: 1s; }
|
2021-09-21 05:57:15 +00:00
|
|
|
}
|
2021-09-24 20:23:03 +00:00
|
|
|
|
|
|
|
&-col-name {
|
2021-09-21 05:57:15 +00:00
|
|
|
max-width: 300px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2021-09-24 20:23:03 +00:00
|
|
|
|
|
|
|
&-col-score {
|
2021-09-21 05:57:15 +00:00
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
}
|
2022-03-16 08:39:02 +00:00
|
|
|
|
|
|
|
&__progress {
|
|
|
|
opacity: 0;
|
|
|
|
color: #ffffff;
|
|
|
|
animation: finals-progress 4s ease forwards;
|
|
|
|
animation-delay: 2s;
|
|
|
|
}
|
2021-09-21 05:57:15 +00:00
|
|
|
}
|
2021-09-24 19:40:36 +00:00
|
|
|
|
|
|
|
@keyframes finals-gradient__fade-in {
|
|
|
|
0% { background-position: 100% 50%; }
|
|
|
|
100% { background-position: 0% 50%; }
|
|
|
|
}
|
|
|
|
|
2021-09-21 06:23:05 +00:00
|
|
|
@keyframes finals-gradient {
|
|
|
|
0% { background-position: 130% 50%; }
|
2021-09-24 20:23:03 +00:00
|
|
|
10% { background-position: 130% 50%; }
|
|
|
|
90% { background-position: 0% 50%; }
|
2021-09-24 19:40:36 +00:00
|
|
|
100% { background-position: 0% 50%; }
|
2021-09-21 06:23:05 +00:00
|
|
|
}
|
2021-09-24 20:23:03 +00:00
|
|
|
@keyframes finals-text {
|
|
|
|
0% { opacity: 0; }
|
2022-03-14 21:41:48 +00:00
|
|
|
100% { opacity: 1; }
|
2021-09-24 20:23:03 +00:00
|
|
|
}
|
2022-03-16 08:39:02 +00:00
|
|
|
@keyframes finals-progress {
|
|
|
|
0% { margin-left: 50%; margin-right: 50%; opacity: 0.5; }
|
|
|
|
85% { margin-left: 20px; margin-right: 20px; opacity: 0.5; }
|
|
|
|
100% { margin-left: 20px; margin-right: 20px; opacity: 0; }
|
|
|
|
}
|
2021-09-21 05:57:15 +00:00
|
|
|
</style>
|