add button

This commit is contained in:
Владимир Фёдоров 2026-03-19 12:29:31 +07:00
parent 25f1da5a32
commit aa60c54c8f
3 changed files with 49 additions and 23 deletions

BIN
src/assets/button.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 678 KiB

View File

@ -16,22 +16,6 @@
margin-right: 15px; margin-right: 15px;
} }
.button-custom {
margin-left: auto;
background-color: var(--main-color);
font-weight: 600;
color: white;
}
.button-custom:hover {
background-color: var(--main-color);
opacity: 0.9;
}
.button-custom:disabled {
opacity: 0.5;
}
.button-dialog { .button-dialog {
background-color: var(--main-color); background-color: var(--main-color);
font-weight: 600; font-weight: 600;

View File

@ -229,9 +229,10 @@ onMounted(() => {
<div class="center-block-custom"> <div class="center-block-custom">
<form @submit.prevent="addAction"> <form @submit.prevent="addAction">
<div class="controller"> <div class="controller">
<input class="input-custom" v-model="place" type="text" placeholder="Место назначения (А-1, а-1, а1)" <input class="game-input-run" v-model="place" type="text" placeholder="Место назначения (А-1, а-1, а1)"
:disabled="gameState !== 'RUN'"> :disabled="gameState !== 'RUN'">
<button class="button-custom" type="submit" :disabled="gameState !== 'RUN'">Поехали</button> <div class="game-button-run-shadow"></div>
<button class="game-button-run" type="submit" :disabled="gameState !== 'RUN'">Поехали</button>
</div> </div>
</form> </form>
</div> </div>
@ -290,6 +291,7 @@ onMounted(() => {
<style scoped> <style scoped>
body { body {
overflow: hidden; overflow: hidden;
background-color: gray;
} }
.hr { .hr {
@ -298,6 +300,8 @@ body {
.body-custom { .body-custom {
font-size: medium; font-size: medium;
background-color: gray;
height: 100vh;
} }
.info-custom { .info-custom {
@ -323,8 +327,8 @@ body {
} }
.game-input-form { .game-input-form {
height: 90px; height: 76px;
padding: 20px; padding: 13px;
position: relative; position: relative;
z-index: 1000; z-index: 1000;
} }
@ -337,7 +341,7 @@ body {
position: absolute; position: absolute;
box-shadow: 0px -5px 10px black; box-shadow: 0px -5px 10px black;
z-index: 9; z-index: 9;
background-color: aqua; background-color: black;
} }
.message-cloud { .message-cloud {
@ -462,7 +466,7 @@ body {
top: 10px; top: 10px;
box-shadow: 0px 5px 10px black; box-shadow: 0px 5px 10px black;
z-index: 9; z-index: 9;
background-color: aqua; background-color: black;
} }
.game-header-belt { .game-header-belt {
@ -478,7 +482,7 @@ body {
height: 60px; height: 60px;
top: 30px; top: 30px;
position: absolute; position: absolute;
background-color: aqua; background-color: black;
box-shadow: 0px 5px 10px black; box-shadow: 0px 5px 10px black;
} }
@ -498,4 +502,42 @@ body {
vertical-align: middle; vertical-align: middle;
font-weight: 700; font-weight: 700;
} }
.game-button-run {
background-image: url("@/assets/button.png");
background-size: cover;
font-size: 1.5em;
color: white;
position: absolute;
right: 10px;
top: -5px;
height: 80px;
width: 155px;
border: 0;
background-color: transparent;
margin: 0;
padding: 0;
}
.game-button-run-shadow {
position: absolute;
right: 10px;
top: -5px;
height: 80px;
width: 150px;
box-shadow: -5px 5px 10px black;
}
.game-button-run:hover {
/* TODO */
}
.game-button-run:disabled {
/* TODO */
}
.game-input-run {
height: 50px;
width: calc(100% - 150px);
}
</style> </style>