mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 20:29:35 +02:00
Add game start form and producing frontend part for double
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
.double-start {
|
||||||
|
z-index: 1;
|
||||||
|
border-radius: 20px;
|
||||||
|
background: #1D223E;
|
||||||
|
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
|
||||||
|
width: 42vh;
|
||||||
|
height: 32vh;
|
||||||
|
border: 1px solid #262C55;
|
||||||
|
margin: 2.6%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.double-game-main-box{
|
||||||
|
border-radius: 10px;
|
||||||
|
border: 1px solid #262C55;
|
||||||
|
padding-top: 7vh;
|
||||||
|
padding-bottom: 7vh;
|
||||||
|
padding-left: 0vh !important;
|
||||||
|
padding-right: 0vh !important;
|
||||||
|
background: #1A1F37;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.double-carousel {
|
||||||
|
z-index: 1;
|
||||||
|
position: relative;
|
||||||
|
border-radius: 10px;
|
||||||
|
background: #2E2D37;
|
||||||
|
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 1px;
|
||||||
|
border: 1px solid #262C55;
|
||||||
|
height: 95%;
|
||||||
|
}
|
||||||
@@ -5,12 +5,67 @@
|
|||||||
<header-component></header-component>
|
<header-component></header-component>
|
||||||
<div class="bg-gradient-left"></div>
|
<div class="bg-gradient-left"></div>
|
||||||
<section class="double">
|
<section class="double">
|
||||||
|
<div class="double-start">
|
||||||
|
<div
|
||||||
|
class="jackpot-start__content title-saper padding-elements-jackpot"
|
||||||
|
>
|
||||||
|
<h2>Рулетка</h2>
|
||||||
|
<p>Крути, ставь, побеждай!</p>
|
||||||
|
<div class="saper-start__choises diamonds diamonds-input__margin">
|
||||||
|
<h3>Сумма депозита</h3>
|
||||||
|
|
||||||
|
<div class="diamonds__choises">
|
||||||
|
<img
|
||||||
|
class="diamond-icon"
|
||||||
|
src="@/assets/icons-games/saper-game/icon-diamond-ore-saper.png"
|
||||||
|
/>
|
||||||
|
<input
|
||||||
|
v-model="amountDeposit"
|
||||||
|
type="number"
|
||||||
|
id="diamonds-input"
|
||||||
|
/>
|
||||||
|
<div class="diamonds__btns btn-style__diamonds">
|
||||||
|
<ul class="diamonds-btns__display">
|
||||||
|
<li v-for="(item, index) in JackpotNumbers" :key="index">
|
||||||
|
<button
|
||||||
|
@click="clickedBtnChoice(index, item.diamonds)"
|
||||||
|
:class="{
|
||||||
|
'btn-click': clickedBtn === index,
|
||||||
|
[index]: clickedBtn === index,
|
||||||
|
}"
|
||||||
|
:id="item.diamonds === 'max' ? 'max-button' : null"
|
||||||
|
v-if="item.diamonds !== undefined"
|
||||||
|
>
|
||||||
|
{{ item.diamonds }}
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="jackpot-start__btns">
|
||||||
|
<div class="error-block" v-if="ErrorClick">
|
||||||
|
<h2>Ошибка при заполнении</h2>
|
||||||
|
</div>
|
||||||
|
<button
|
||||||
|
class="btn-start"
|
||||||
|
:class="{ 'animate-start-btn': ErrorClick }"
|
||||||
|
@click="clickPlayBtn"
|
||||||
|
>
|
||||||
|
Начать игру
|
||||||
|
</button>
|
||||||
|
<!-- <button class="btn-claim" v-if="winningAmount === 0">Забрать {{ winningAmount }} АР</button>
|
||||||
|
<button class="btn-claim" @click="claimWinningAmount()" v-else>Забрать {{ winningAmount.toFixed(2) }} АР</button> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- </div> -->
|
||||||
<div class="jackpot-game">
|
<div class="jackpot-game">
|
||||||
<div class="bootstrap-wrapper">
|
<div class="bootstrap-wrapper">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12 double-game-main-box">
|
||||||
<div class="jackpot-carousel">
|
<div class="double-carousel">
|
||||||
<Carousel
|
<Carousel
|
||||||
ref="carousel"
|
ref="carousel"
|
||||||
:wrapAround="true"
|
:wrapAround="true"
|
||||||
@@ -30,13 +85,14 @@
|
|||||||
</Slide>
|
</Slide>
|
||||||
</Carousel>
|
</Carousel>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12">
|
|
||||||
<h1>double</h1>
|
|
||||||
<h2 v-if="timeToGame !== null">
|
|
||||||
time to game - {{ timeToGame.toFixed(0) }}
|
|
||||||
</h2>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<h1>double</h1>
|
||||||
|
<h2 v-if="timeToGame !== null">
|
||||||
|
time to game - {{ timeToGame.toFixed(0) }}
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
<!-- </div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -50,11 +106,13 @@ import { reactive, ref, onMounted } from "vue";
|
|||||||
import AsideBarComponent from "@/components/AsidebarComponent.vue";
|
import AsideBarComponent from "@/components/AsidebarComponent.vue";
|
||||||
import HeaderComponent from "@/components/HeaderComponent.vue";
|
import HeaderComponent from "@/components/HeaderComponent.vue";
|
||||||
import ChatComponent from "@/components/ChatComponent.vue";
|
import ChatComponent from "@/components/ChatComponent.vue";
|
||||||
|
import JackpotNumbers from "@/mocks/JackpotNumbers";
|
||||||
|
|
||||||
import { Carousel, Slide } from "vue3-carousel";
|
import { Carousel, Slide } from "vue3-carousel";
|
||||||
import "vue3-carousel/dist/carousel.css";
|
import "vue3-carousel/dist/carousel.css";
|
||||||
|
|
||||||
import "@/assets/css/PagesStyles/games-pages/jackpot.css";
|
import "@/assets/css/PagesStyles/games-pages/jackpot.css";
|
||||||
|
import "@/assets/css/PagesStyles/games-pages/double.css";
|
||||||
import "@/assets/css/global.css";
|
import "@/assets/css/global.css";
|
||||||
import { eventBus } from "@/main";
|
import { eventBus } from "@/main";
|
||||||
|
|
||||||
@@ -66,6 +124,11 @@ export default {
|
|||||||
Carousel,
|
Carousel,
|
||||||
Slide,
|
Slide,
|
||||||
},
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
JackpotNumbers,
|
||||||
|
};
|
||||||
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const slides = reactive([]);
|
const slides = reactive([]);
|
||||||
let doubleData = reactive({});
|
let doubleData = reactive({});
|
||||||
|
|||||||
Reference in New Issue
Block a user