add finish game

This commit is contained in:
2026-09-13 13:34:31 +07:00
parent d37ca05ad8
commit 2a918e5bc4
39 changed files with 53 additions and 40 deletions
+15 -2
View File
@@ -236,8 +236,17 @@ useSimplePolling(() => {
:style="{ backgroundImage: `url(${JSON.stringify(story.background)})` }"
aria-hidden="true"
/>
<div class="center-block-custom bottom-margin smooth-scroll" ref="scrollContainer">
<div class="width700">
<div
class="center-block-custom bottom-margin smooth-scroll"
:class="{ 'game-finished': game?.status === 'finish' }"
ref="scrollContainer"
>
<div v-if="game?.status === 'finish'" class="width700">
<MessagePaper role="status">
<div class="font">Игра завершена. Спасибо за участие!</div>
</MessagePaper>
</div>
<div v-else class="width700">
<GameInputForm
:addAction="addAction"
:allPlacesCount="story.places.length"
@@ -334,6 +343,10 @@ useSimplePolling(() => {
margin-top: 0;
}
.game-finished {
height: 100dvh;
}
.smooth-scroll {
scroll-behavior: smooth;
}