From 9b4be986f521b4baafd409cb61d0003fdff233ff Mon Sep 17 00:00:00 2001 From: Hepatica Date: Fri, 23 Feb 2024 21:22:57 +0100 Subject: [PATCH] work --- luckydiamond/package-lock.json | 9 ++ luckydiamond/package.json | 1 + .../css/PagesStyles/games-pages/jackpot.css | 30 +++++- .../src/pages/games-pages/JackpotPage.vue | 91 +++++++++++++++++-- 4 files changed, 122 insertions(+), 9 deletions(-) diff --git a/luckydiamond/package-lock.json b/luckydiamond/package-lock.json index 7c52dfa..42267d9 100644 --- a/luckydiamond/package-lock.json +++ b/luckydiamond/package-lock.json @@ -21,6 +21,7 @@ "vue-chart-3": "^3.1.8", "vue-recaptcha": "^3.0.0-alpha.6", "vue-router": "^4.2.5", + "vue3-carousel": "^0.3.1", "vue3-recaptcha2": "^1.8.0" }, "devDependencies": { @@ -11892,6 +11893,14 @@ "integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==", "dev": true }, + "node_modules/vue3-carousel": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/vue3-carousel/-/vue3-carousel-0.3.1.tgz", + "integrity": "sha512-86vUkNPBzL2PVuR9w6hUsI90ccFjLp+K8cSFpRTISf+SjUQY3fMHc5CFF5MUL62v1xYYm27zEBmQupO9VQx9Kw==", + "peerDependencies": { + "vue": "^3.2.0" + } + }, "node_modules/vue3-recaptcha2": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/vue3-recaptcha2/-/vue3-recaptcha2-1.8.0.tgz", diff --git a/luckydiamond/package.json b/luckydiamond/package.json index e825f8c..85940b1 100644 --- a/luckydiamond/package.json +++ b/luckydiamond/package.json @@ -22,6 +22,7 @@ "vue-chart-3": "^3.1.8", "vue-recaptcha": "^3.0.0-alpha.6", "vue-router": "^4.2.5", + "vue3-carousel": "^0.3.1", "vue3-recaptcha2": "^1.8.0" }, "devDependencies": { diff --git a/luckydiamond/src/assets/css/PagesStyles/games-pages/jackpot.css b/luckydiamond/src/assets/css/PagesStyles/games-pages/jackpot.css index a924ab9..003c686 100644 --- a/luckydiamond/src/assets/css/PagesStyles/games-pages/jackpot.css +++ b/luckydiamond/src/assets/css/PagesStyles/games-pages/jackpot.css @@ -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 { diff --git a/luckydiamond/src/pages/games-pages/JackpotPage.vue b/luckydiamond/src/pages/games-pages/JackpotPage.vue index cb171e8..74f3fd9 100644 --- a/luckydiamond/src/pages/games-pages/JackpotPage.vue +++ b/luckydiamond/src/pages/games-pages/JackpotPage.vue @@ -115,20 +115,38 @@ /> - +
15.00 СЕК
- - - +
+ +
+ +
@@ -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 { }, }; + +