show logo when not in lobby

This commit is contained in:
Alberto Xamin 2020-11-22 12:32:49 +01:00
parent ca495a108e
commit f0d51aa464
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
2 changed files with 3 additions and 6 deletions

View File

@ -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)
}

View File

@ -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;