feat(14): appearing message, new game request
This commit is contained in:
parent
4e1f4f4a8e
commit
697985a480
|
@ -5,3 +5,19 @@
|
||||||
/* div, section, span, p { */
|
/* div, section, span, p { */
|
||||||
/* outline: 1px solid red; */
|
/* outline: 1px solid red; */
|
||||||
/* } */
|
/* } */
|
||||||
|
|
||||||
|
@keyframes slowly-appear {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
30% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.slowly-appear {
|
||||||
|
animation: slowly-appear 3s;
|
||||||
|
}
|
||||||
|
|
|
@ -723,6 +723,10 @@ video {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.place-content-center {
|
||||||
|
place-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
.items-center {
|
.items-center {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
@ -929,3 +933,21 @@ video {
|
||||||
/* outline: 1px solid red; */
|
/* outline: 1px solid red; */
|
||||||
|
|
||||||
/* } */
|
/* } */
|
||||||
|
|
||||||
|
@keyframes slowly-appear {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
30% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.slowly-appear {
|
||||||
|
animation: slowly-appear 3s;
|
||||||
|
}
|
||||||
|
|
|
@ -137,7 +137,7 @@
|
||||||
<!-- FRAGMENT : showdown result -->
|
<!-- FRAGMENT : showdown result -->
|
||||||
<section
|
<section
|
||||||
id="message"
|
id="message"
|
||||||
class="flex flex-col items-center text-white"
|
class="flex flex-col items-center text-white slowly-appear"
|
||||||
th:classappend="${showdownState.gameResult.nonEmpty} ? '' : 'invisible'"
|
th:classappend="${showdownState.gameResult.nonEmpty} ? '' : 'invisible'"
|
||||||
>
|
>
|
||||||
<p
|
<p
|
||||||
|
@ -146,11 +146,12 @@
|
||||||
>
|
>
|
||||||
You lose
|
You lose
|
||||||
</p>
|
</p>
|
||||||
<button
|
<a
|
||||||
class="mt-6 w-9/12 h-12 tracking-widest uppercase bg-white rounded-xl text-radial-gradient-bottom"
|
class="grid place-content-center mt-6 w-9/12 h-12 tracking-widest uppercase bg-white rounded-xl text-radial-gradient-bottom"
|
||||||
|
href="/"
|
||||||
>
|
>
|
||||||
Play again
|
Play again
|
||||||
</button>
|
</a>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue