This commit is contained in:
Hepatica
2024-02-23 21:22:57 +01:00
parent 2f91879747
commit 9b4be986f5
4 changed files with 122 additions and 9 deletions

View File

@@ -21,11 +21,36 @@
width: 100%;
/* height: 480px; */
height: 100%;
/* height: 100%; */
border: 1px solid #262C55;
height: 100%;
/* margin-top: 2.6%; */
/* margin: 2.6%; */
}
.jackpot-carousel{
z-index: 1;
position: relative;
/* margin-left: 5%; */
border-radius: 10px;
background: #1D223E;
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
width: 100%;
margin-top: 1%;
/* height: 480px; */
/* height: 100%; */
border: 1px solid #262C55;
height: 95%;
}
.carousel-arrow {
position: absolute;
bottom: -20px; /* Регулируйте положение стрелки относительно нижнего края карусели */
left: 50%; /* Центрирование стрелки по горизонтали */
transform: translateX(-50%); /* Дополнительное центрирование, чтобы точка указывала точно на центр */
color: #ffffff; /* Цвет стрелки */
font-size: 24px; /* Размер стрелки */
/* Добавьте любые дополнительные стили, такие как цвет фона, границы и т.д. */
}
.jackpot-game {
z-index: 1;
@@ -129,6 +154,9 @@
transition: width 0.25s ease-in-out;
}
.no-pointer-events {
pointer-events: none;
}
@media (max-width: 1415px) {
.padding-elements-jackpot {

View File

@@ -115,20 +115,38 @@
/>
</div>
</div>
<!-- <progress class="progress is-primary" value="39" max="100">
15%
</progress> -->
<div class="progress-bar">
<div class="progress" style="width: 70%">15.00 СЕК</div>
</div>
</div>
</div>
<div class="col-md-2">
<div class="jackpot-loading-bar"></div>
</div>
<div class="col-md-12">
<div class="jackpot-carousel">
<div class="carousel-arrow"></div>
<Carousel
ref="carousel"
:itemsToShow="15"
:wrapAround="true"
:transition="400"
class="no-pointer-events"
>
<Slide v-for="slide in 10" :key="slide">
<div class="carousel__item">
<img
src="https://avatar.spworlds.ru/face/55/Hepatir.png"
alt="Голова"
/>
</div>
</Slide>
</Carousel>
</div>
</div>
</div>
</div>
</div>
@@ -156,6 +174,11 @@ import { GetCurrentMoney } from "@/assets/js/rest/RestMethods";
import "@/assets/css/PagesStyles/games-pages/jackpot.css";
import "@/assets/css/global.css";
import JackpotNumbers from "@/mocks/JackpotNumbers";
import { Carousel, Slide } from "vue3-carousel";
import "vue3-carousel/dist/carousel.css";
// import ProgressBar from "vue-bulma-progress-bar";
// import '@/assets/css/PagesStyles/games-pages/jackpot.css'
@@ -164,6 +187,9 @@ export default {
HeaderComponent,
AsideBarComponent,
ChatComponent,
Carousel,
Slide,
// Pagination
// ProgressBar,
},
data() {
@@ -176,7 +202,7 @@ export default {
value: 0,
max: 100,
amountDeposit: 0,
// crashObject: '',
// textError: '',
// startGame: false,
@@ -184,7 +210,14 @@ export default {
};
},
methods: {
startAutoScroll() {
this.interval = setInterval(() => {
this.$refs.carousel.next();
}, 1);
},
},
mounted() {
this.startAutoScroll();
},
watch: {
amountDeposit(DepositCount) {
@@ -249,3 +282,45 @@ export default {
},
};
</script>
<style scoped>
.carousel__slide {
padding: 5px;
}
.carousel__viewport {
perspective: 2000px;
}
.carousel__track {
transform-style: preserve-3d;
}
.carousel__slide--sliding {
transition: 0.5s;
}
.carousel__slide {
opacity: 0.9;
transform: rotateY(-20deg) scale(0.9);
}
.carousel__slide--active ~ .carousel__slide {
transform: rotateY(20deg) scale(0.9);
}
.carousel__slide--prev {
opacity: 1;
transform: rotateY(-10deg) scale(0.95);
}
.carousel__slide--next {
opacity: 1;
transform: rotateY(10deg) scale(0.95);
}
.carousel__slide--active {
opacity: 1;
transform: rotateY(0) scale(1.1);
}
</style>