From d84539f1d05c56acbea1f0f1cd9bf6d08003638b Mon Sep 17 00:00:00 2001 From: Fedorov Vladimir Date: Sat, 1 Aug 2026 20:56:40 +0700 Subject: [PATCH] add icons and scroll --- src/components/GameInputForm.vue | 112 ++++++++++++++++++++++++++++++- src/components/TeamStoryPage.vue | 49 ++++++++++++-- 2 files changed, 156 insertions(+), 5 deletions(-) diff --git a/src/components/GameInputForm.vue b/src/components/GameInputForm.vue index 9822e13..804c3d9 100644 --- a/src/components/GameInputForm.vue +++ b/src/components/GameInputForm.vue @@ -4,12 +4,24 @@ import MetalPlate from './MetalPlate.vue'; import HeaderText from './HeaderText.vue'; import { ref, type PropType } from 'vue'; +import { Footsteps } from '@vicons/ionicons5' +import { ContactMailRound } from '@vicons/material' +import { Icon } from '@vicons/utils' + const code = ref('') const props = defineProps({ addAction: { type: Function as PropType<(param: string) => void>, - required: true, + required: true + }, + allPlacesCount: { + type: Number, + required: true + }, + newPlacesCount: { + type: Number, + required: true } }) @@ -18,6 +30,24 @@ async function addClickButton() { code.value = '' } +function getTextForCounter(count: number): string[] { + count = count % 100 + const number1 = Math.floor(count / 10) % 10 + const number2 = count % 10 + + let text1 = '–' + let text2 = '–' + + if (number1 > 0) { + text1 = String(number1) + } + if (number2 > 0 || number1 > 0) { + text2 = String(number2) + } + + return [text1, text2] +} +