This commit is contained in:
Simon Cambier 2022-02-17 23:43:52 +01:00
parent 9467186907
commit dbeb7db2c3
5 changed files with 9 additions and 11 deletions

View File

@ -2,7 +2,7 @@
<div class="flex gap-2 justify-center my-4"> <div class="flex gap-2 justify-center my-4">
<PlaquetteBox <PlaquetteBox
is="button" is="button"
class="aspect-square w-[1.5em] text-2xl border hover:border-white" class="aspect-square w-[1.5em] text-2xl border btn"
@click="emit('click', item)" @click="emit('click', item)"
v-for="(item, i) in operators" v-for="(item, i) in operators"
:key="i"> :key="i">

View File

@ -10,7 +10,7 @@
class="h-11 border" class="h-11 border"
:class="{ :class="{
'text-stone-600 border-stone-600': !item.free, 'text-stone-600 border-stone-600': !item.free,
'hover:border-white': item.free, 'hover:border-cyan-500': item.free,
}" }"
:style="{ transitionDelay: `${initDelay * i}ms` }" :style="{ transitionDelay: `${initDelay * i}ms` }"
:dynamic-size="true"> :dynamic-size="true">

View File

@ -51,6 +51,7 @@
.slide_left-leave-active { .slide_left-leave-active {
transition: all 0.5s ease; transition: all 0.5s ease;
} }
.slide_left-enter-from, .slide_left-enter-from,
.slide_left-leave-to { .slide_left-leave-to {
opacity: 0; opacity: 0;
@ -61,6 +62,7 @@
.slide_up-leave-active { .slide_up-leave-active {
transition: all 0.5s ease; transition: all 0.5s ease;
} }
.slide_up-enter-from, .slide_up-enter-from,
.slide_up-leave-to { .slide_up-leave-to {
opacity: 0; opacity: 0;
@ -71,6 +73,7 @@
.zero_height-leave-active { .zero_height-leave-active {
transition: all 0.5s ease; transition: all 0.5s ease;
} }
.zero_height-enter-from, .zero_height-enter-from,
.zero_height-leave-to { .zero_height-leave-to {
height: 0; height: 0;
@ -80,6 +83,6 @@
@layer components { @layer components {
.btn { .btn {
@apply w-fit p-2; @apply w-fit p-2;
@apply rounded border border-stone-600 transition-opacity; @apply rounded border border-stone-600 hover:border-cyan-500 transition-opacity;
} }
} }

View File

@ -1,5 +1,5 @@
{ {
"playAgain": "Rejouer", "playAgain": "Nouveau nombre",
"endGame.victoryLabel": "Le compte est bon !", "endGame.victoryLabel": "Le compte est bon !",
"endGame.failureLabel": "Dommage...<br>Une autre partie ?", "endGame.failureLabel": "Dommage...<br>Une autre partie ?",
"startGame": "Démarrer", "startGame": "Démarrer",

View File

@ -2,12 +2,7 @@
<AppHeader /> <AppHeader />
<!-- Number to find --> <!-- Number to find -->
<PlaquetteBox <PlaquetteBox class="p-1 mx-auto mb-4 w-fit text-cyan-500">
class="p-1 mx-auto mb-4 w-fit"
:class="{
'text-blue-400': difficultyLevel === 1,
'text-purple-500': difficultyLevel === 2,
}">
<span class="text-4xl">{{ result }}</span> <span class="text-4xl">{{ result }}</span>
</PlaquetteBox> </PlaquetteBox>
@ -61,7 +56,7 @@
v-else v-else
v-html="t('endGame.failureLabel')" /> v-html="t('endGame.failureLabel')" />
<button <button
class="p-2 rounded border" class="btn"
@click="reboot"> @click="reboot">
{{ t('playAgain') }} {{ t('playAgain') }}
</button> </button>