6 changed files with 105 additions and 49 deletions
@ -0,0 +1,24 @@ |
|||||
|
<template> |
||||
|
<div class="md-layout md-alignment-center-center" style="margin: 2%"> |
||||
|
<div class="md-layout-item md-size-30 rounded-and-colored"> |
||||
|
<div class="md-layout md-alignment-center-center" style="margin: -5% 5%"> |
||||
|
<div class="md-layout-item md-size-5"> |
||||
|
<h4 style="text-align: left">{{' > '}}</h4> |
||||
|
</div> |
||||
|
<div class="md-layout-item"> |
||||
|
<h4 style="text-align: center;">ПОДКЛЮЧИТЬСЯ К СЕРВЕРУ</h4> |
||||
|
</div> |
||||
|
<div class="md-layout-item md-size-5"> |
||||
|
<h4 style="text-align: right">{{' < '}}</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
/* eslint-disable */ |
||||
|
export default { |
||||
|
name: 'ConnectButton' |
||||
|
} |
||||
|
</script> |
@ -0,0 +1,54 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<div class="md-layout md-alignment-center-center"> |
||||
|
<div class="md-layout-item" v-bind:class="`md-size-${puff_size}`"> |
||||
|
<h5 style="text-align: center">Сейчас играют</h5> |
||||
|
</div> |
||||
|
<div class="md-layout-item" v-bind:class="`md-size-${space_size}`" style="border-left:1px solid #000;height:3.5em;border-right: 1px solid #000"/> |
||||
|
<div class="md-layout-item" v-bind:class="`md-size-${puff_size}`"> |
||||
|
<h5 style="text-align: center;">Пик игроков за день</h5> |
||||
|
</div> |
||||
|
<div class="md-layout-item" v-bind:class="`md-size-${space_size}`" style="border-left:1px solid #000;height:3.5em;border-right: 1px solid #000"/> |
||||
|
<div class="md-layout-item" v-bind:class="`md-size-${puff_size}`"> |
||||
|
<h5 style="text-align: center">Серверов работает</h5> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="md-layout md-alignment-center-center" style="margin-top: -1%"> |
||||
|
<div class="md-layout-item rounded-and-colored" v-bind:class="`md-size-${puff_size}`"> |
||||
|
<h4 style="text-align: center; margin: 10% 10%;">{{player_now}}</h4> |
||||
|
</div> |
||||
|
<div class="md-layout-item" v-bind:class="`md-size-${space_size}`"/> |
||||
|
<div class="md-layout-item rounded-and-colored" v-bind:class="`md-size-${puff_size}`"> |
||||
|
<h4 style="text-align: center; margin: 10% 10%;">{{player_max}}</h4> |
||||
|
</div> |
||||
|
<div class="md-layout-item" v-bind:class="`md-size-${space_size}`"/> |
||||
|
<div class="md-layout-item rounded-and-colored" v-bind:class="`md-size-${puff_size}`"> |
||||
|
<h4 style="text-align: center; margin: 10% 10%;">{{working_servers}}/{{total_servers}}</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import PublicMethods from "@/components/PublicMethods"; |
||||
|
|
||||
|
export default { |
||||
|
name: 'CurrentPlayers', |
||||
|
data: () => ({ |
||||
|
player_now: -1, |
||||
|
player_max: -1, |
||||
|
working_servers: -1, |
||||
|
total_servers: -1, |
||||
|
puff_size: 10, |
||||
|
space_size: 5 |
||||
|
}), |
||||
|
beforeCreate() { |
||||
|
PublicMethods.getStatistics().then(response => { |
||||
|
this.player_now = response['statistic'].player_now; |
||||
|
this.player_max = response['statistic'].player_max; |
||||
|
this.working_servers = response['statistic'].working_servers; |
||||
|
this.total_servers = response['statistic'].total_servers; |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
</script> |
@ -0,0 +1,13 @@ |
|||||
|
<template> |
||||
|
<div class="md-layout md-alignment-center-center" style="margin: 2%"> |
||||
|
<div class="md-layout-item md-size-50" style="margin: -5% 0%"> |
||||
|
<h4 style="text-align: center">Почему стоит начать играть?</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
name: 'WhyNotText' |
||||
|
} |
||||
|
</script> |
Loading…
Reference in new issue