feat(14): appearing message, new game request

This commit is contained in:
efim 2023-07-02 06:15:11 +00:00
parent 4e1f4f4a8e
commit 697985a480
3 changed files with 43 additions and 4 deletions

View File

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

View File

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

View File

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