show logo when not in lobby
This commit is contained in:
parent
ca495a108e
commit
f0d51aa464
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<div v-if="!username" id="logo" class="center-stuff" style="margin-bottom:10pt;">
|
||||
<div v-if="!isInLobby" id="logo" class="center-stuff" style="margin-bottom:10pt;">
|
||||
<h1 style="margin-bottom:0pt;">PewPew!</h1>
|
||||
<i style="font-size: x-small;">Bang! è un marchio registrato DVGiochi</i>
|
||||
</div>
|
||||
@ -73,7 +73,7 @@ export default {
|
||||
this.isConnected = true;
|
||||
if (Vue.config.devtools) {
|
||||
setTimeout(function(){
|
||||
this.username = (1+Math.random() * 100 % 100).toFixed(2).toString();
|
||||
this.username =(1+Math.random() * 100 % 100).toFixed(2).toString();
|
||||
this.setUsername();
|
||||
}.bind(this), 1000)
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="lobby">
|
||||
<div style="flex-grow: 4;">
|
||||
<h1>Lobby: {{ lobbyName }}</h1>
|
||||
<h2>Lobby: {{ lobbyName }}</h2>
|
||||
<h3>Giocatori (tu sei {{username}})</h3>
|
||||
<div class="players-table">
|
||||
<Card v-if="startGameCard" :card="startGameCard" @click.native="startGame"/>
|
||||
@ -162,9 +162,6 @@ export default {
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style >
|
||||
#logo {
|
||||
display:none;
|
||||
}
|
||||
.is_my_turn {
|
||||
box-shadow: 0 0 0 3pt rgb(138, 12, 12), 0 0 0 6pt white, 0 0 5pt 6pt #aaa !important;
|
||||
animation-name: turn-animation;
|
||||
|
Loading…
Reference in New Issue
Block a user