Add a disconnect error that appears if the client loses connection
This commit is contained in:
parent
9f8842f8be
commit
d36319e35b
1 changed files with 26 additions and 0 deletions
|
|
@ -1,5 +1,16 @@
|
|||
<template>
|
||||
<div id="app" class="maximize">
|
||||
<transition name="top-slide">
|
||||
<div
|
||||
id="disconnect-error"
|
||||
v-if="$socket.disconnected"
|
||||
>
|
||||
No connection to the game server.
|
||||
<br>
|
||||
If you are in the middle of a game, reload the website and you
|
||||
can reconnect to the game by using the EXACT same name.
|
||||
</div>
|
||||
</transition>
|
||||
<div v-if="!isMobile" class="maximize">
|
||||
<transition name="top-slide">
|
||||
<div
|
||||
|
|
@ -126,6 +137,21 @@ html, body {
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
#disconnect-error {
|
||||
background-color: red;
|
||||
justify-content: center;
|
||||
font-weight: bolder;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
display: flex;
|
||||
color: black;
|
||||
padding: 10px;
|
||||
width: 100vw;
|
||||
z-index: 50;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.alert-bar {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue