update
This commit is contained in:
parent
aa60c54c8f
commit
880c305731
BIN
src/assets/metal.png
Normal file
BIN
src/assets/metal.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 MiB |
BIN
src/assets/pin.png
Normal file
BIN
src/assets/pin.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
@ -1,14 +1,38 @@
|
|||||||
<script setup lang="ts"></script>
|
<script setup lang="ts"></script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<div>
|
||||||
|
<div class="shadow shadow-top"></div>
|
||||||
|
<div class="shadow shadow-bottom"></div>
|
||||||
<div class="belt-block">
|
<div class="belt-block">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.belt-block {
|
.belt-block {
|
||||||
|
height: 100%;
|
||||||
background-image: url("@/assets/belt.png");
|
background-image: url("@/assets/belt.png");
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.shadow {
|
||||||
|
height: 10px;
|
||||||
|
width: 120%;
|
||||||
|
position: absolute;
|
||||||
|
left: -10%;
|
||||||
|
background-color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.shadow-top {
|
||||||
|
top: 0px;
|
||||||
|
box-shadow: 0px -5px 10px black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.shadow-bottom {
|
||||||
|
bottom: 0px;
|
||||||
|
box-shadow: 0px 5px 10px black;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -1,14 +1,29 @@
|
|||||||
<script setup lang="ts"></script>
|
<script setup lang="ts"></script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<div>
|
||||||
|
<div class="shadow"></div>
|
||||||
<div class="belt-block">
|
<div class="belt-block">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.belt-block {
|
.belt-block {
|
||||||
|
height: 100%;
|
||||||
background-image: url("@/assets/belt_mini.png");
|
background-image: url("@/assets/belt_mini.png");
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.shadow {
|
||||||
|
height: 10px;
|
||||||
|
width: 120%;
|
||||||
|
left: -10%;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 5px;
|
||||||
|
background-color: black;
|
||||||
|
box-shadow: 0px 5px 10px black;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -5,6 +5,7 @@ import { encodeUTF8ToBase64, getApiUrl } from './utils';
|
|||||||
import VueQrcode from '@chenfengyuan/vue-qrcode';
|
import VueQrcode from '@chenfengyuan/vue-qrcode';
|
||||||
import BeltMiniBlock from './BeltMiniBlock.vue';
|
import BeltMiniBlock from './BeltMiniBlock.vue';
|
||||||
import BeltBlock from './BeltBlock.vue';
|
import BeltBlock from './BeltBlock.vue';
|
||||||
|
import MetalPlate from './MetalPlate.vue';
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
@ -212,19 +213,18 @@ onMounted(() => {
|
|||||||
<div class="game-header">
|
<div class="game-header">
|
||||||
<div class="game-header-empty-block"></div>
|
<div class="game-header-empty-block"></div>
|
||||||
<img alt="Вечерний детектив" class="logo" src="@/assets/logo_belt.png" />
|
<img alt="Вечерний детектив" class="logo" src="@/assets/logo_belt.png" />
|
||||||
<div class="game-header-belt-mini-shadow"></div>
|
|
||||||
<BeltMiniBlock class="game-header-belt-mini">
|
<BeltMiniBlock class="game-header-belt-mini">
|
||||||
</BeltMiniBlock>
|
</BeltMiniBlock>
|
||||||
<div class="game-header-belt-shadow"></div>
|
|
||||||
<BeltBlock class="game-header-belt center-bold-text">
|
<BeltBlock class="game-header-belt center-bold-text">
|
||||||
|
<div class="position-right-center">
|
||||||
<!-- Вечерний детектив -->
|
<!-- Вечерний детектив -->
|
||||||
<!-- <span class="team-name-block text-truncate">{{ team.name }}</span> -->
|
<MetalPlate class="team-name-block text-truncate">{{ team.name }}</MetalPlate>
|
||||||
|
</div>
|
||||||
</BeltBlock>
|
</BeltBlock>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Форма ввода -->
|
<!-- Форма ввода -->
|
||||||
<div class="form-custom">
|
<div class="form-custom">
|
||||||
<div class="game-input-form-shadow"></div>
|
|
||||||
<BeltBlock class="game-input-form">
|
<BeltBlock class="game-input-form">
|
||||||
<div class="center-block-custom">
|
<div class="center-block-custom">
|
||||||
<form @submit.prevent="addAction">
|
<form @submit.prevent="addAction">
|
||||||
@ -304,19 +304,6 @@ body {
|
|||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-custom {
|
|
||||||
padding-left: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo-right {
|
|
||||||
float: right;
|
|
||||||
margin: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.second-color {
|
|
||||||
color: var(--second-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-custom {
|
.form-custom {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
@ -328,7 +315,6 @@ body {
|
|||||||
|
|
||||||
.game-input-form {
|
.game-input-form {
|
||||||
height: 76px;
|
height: 76px;
|
||||||
padding: 13px;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
@ -407,12 +393,12 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.team-name-block {
|
.team-name-block {
|
||||||
float: right;
|
margin-right: 10px;
|
||||||
padding: 0 20px;
|
width: 150px;
|
||||||
|
height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-truncate {
|
.text-truncate {
|
||||||
width: 100px;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
/* Запрещаем перенос текста */
|
/* Запрещаем перенос текста */
|
||||||
@ -420,20 +406,9 @@ body {
|
|||||||
/* Обрезаем все, что не помещается */
|
/* Обрезаем все, что не помещается */
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
/* Добавляем троеточие */
|
/* Добавляем троеточие */
|
||||||
padding: 2px 7px;
|
|
||||||
margin: 0 20px;
|
|
||||||
background: rgb(40, 69, 87);
|
|
||||||
border-radius: 4px;
|
|
||||||
font-size: medium;
|
font-size: medium;
|
||||||
}
|
}
|
||||||
|
|
||||||
.belt-mini-block {
|
|
||||||
height: 30px;
|
|
||||||
width: 100%;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.controller {
|
.controller {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
@ -458,32 +433,17 @@ body {
|
|||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-header-belt-mini-shadow {
|
|
||||||
height: 20px;
|
|
||||||
width: 120%;
|
|
||||||
left: -10%;
|
|
||||||
position: absolute;
|
|
||||||
top: 10px;
|
|
||||||
box-shadow: 0px 5px 10px black;
|
|
||||||
z-index: 9;
|
|
||||||
background-color: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
.game-header-belt {
|
.game-header-belt {
|
||||||
height: 60px;
|
height: 60px;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -5px;
|
top: -5px;
|
||||||
z-index: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-header-belt-shadow {
|
.position-right-center {
|
||||||
width: 120%;
|
height: 100%;
|
||||||
left: -10%;
|
display: flex;
|
||||||
height: 60px;
|
align-items: center;
|
||||||
top: 30px;
|
justify-content: right;
|
||||||
position: absolute;
|
|
||||||
background-color: black;
|
|
||||||
box-shadow: 0px 5px 10px black;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
|
|||||||
58
src/components/MetalPlate.vue
Normal file
58
src/components/MetalPlate.vue
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="plate-block">
|
||||||
|
<div class="metal-plate-block">
|
||||||
|
<slot></slot>
|
||||||
|
</div>
|
||||||
|
<div class="pin pin-top-left"></div>
|
||||||
|
<div class="pin pin-top-right"></div>
|
||||||
|
<div class="pin pin-bottom-right"></div>
|
||||||
|
<div class="pin pin-bottom-left"></div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.plate-block {
|
||||||
|
border-radius: 4px;
|
||||||
|
position: relative;
|
||||||
|
box-shadow: 0px 0px 10px black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metal-plate-block {
|
||||||
|
height: 100%;
|
||||||
|
background-image: url("@/assets/metal.png");
|
||||||
|
background-size: cover;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pin {
|
||||||
|
width: 5px;
|
||||||
|
height: 5px;
|
||||||
|
position: absolute;
|
||||||
|
background-image: url("@/assets/pin.png");
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pin-top-left {
|
||||||
|
top: 3px;
|
||||||
|
left: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pin-top-right {
|
||||||
|
top: 3px;
|
||||||
|
right: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pin-bottom-right {
|
||||||
|
bottom: 3px;
|
||||||
|
right: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pin-bottom-left {
|
||||||
|
bottom: 3px;
|
||||||
|
left: 3px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Loading…
x
Reference in New Issue
Block a user