game cancelled

This commit is contained in:
ntr
2019-11-13 21:35:52 +11:00
parent dfcc281416
commit 70f99a6ffd
3 changed files with 11 additions and 1 deletions
+4
View File
@@ -434,6 +434,10 @@
&.winner {
animation: win 2s ease-in-out 0s 1;
}
.cancelled {
color: white;
}
}
.tutorial {
+6
View File
@@ -80,6 +80,12 @@ class Faceoff extends preact.Component {
}
function faceoffText() {
if (!instance.winner) {
if (instance.phase === 'Finished') return (
<div class="faceoff-text">
<div class="cancelled"> game cancelled </div>
</div>
);
return (
<div class="faceoff-text">
<div class="opponent-text"> {otherTeam.name} </div>