diff --git a/luckydiamond/package-lock.json b/luckydiamond/package-lock.json index 21ad994..917ad23 100644 --- a/luckydiamond/package-lock.json +++ b/luckydiamond/package-lock.json @@ -12,6 +12,7 @@ "bootstrap": "^5.3.2", "core-js": "^3.8.3", "mitt": "^3.0.1", + "swiper": "^11.0.5", "vue": "^3.2.13", "vue-recaptcha": "^3.0.0-alpha.6", "vue-router": "^4.2.5", @@ -10759,6 +10760,24 @@ "node": ">= 10" } }, + "node_modules/swiper": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/swiper/-/swiper-11.0.5.tgz", + "integrity": "sha512-rhCwupqSyRnWrtNzWzemnBLMoyYuoDgGgspAm/8iBD3jCvAWycPLH4Z3TB0O5520DHLzMx94yUMH/B9Efpa48w==", + "funding": [ + { + "type": "patreon", + "url": "https://www.patreon.com/swiperjs" + }, + { + "type": "open_collective", + "url": "http://opencollective.com/swiper" + } + ], + "engines": { + "node": ">= 4.7.0" + } + }, "node_modules/table": { "version": "6.8.1", "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", diff --git a/luckydiamond/package.json b/luckydiamond/package.json index 2a6e606..495326d 100644 --- a/luckydiamond/package.json +++ b/luckydiamond/package.json @@ -13,6 +13,7 @@ "bootstrap": "^5.3.2", "core-js": "^3.8.3", "mitt": "^3.0.1", + "swiper": "^11.0.5", "vue": "^3.2.13", "vue-recaptcha": "^3.0.0-alpha.6", "vue-router": "^4.2.5", diff --git a/luckydiamond/src/assets/css/PagesStyles/games-pages/saper.css b/luckydiamond/src/assets/css/PagesStyles/games-pages/saper.css index f438283..4b815bc 100644 --- a/luckydiamond/src/assets/css/PagesStyles/games-pages/saper.css +++ b/luckydiamond/src/assets/css/PagesStyles/games-pages/saper.css @@ -492,4 +492,32 @@ input[type="number"]::-webkit-outer-spin-button { } } -/* /Media */ \ No newline at end of file +/* /Media */ + +/* Swiper */ + +.swiper { + user-select: none; + width: 100%; + height: 100%; +} + +.swiper-slide { + text-align: center; + font-size: 18px; + display: flex; + align-items: center; +} + +.swiper-slide img { + display: block; + width: 100%; + height: 100%; + object-fit: cover; +} + +.swiper-pagination { + position: unset !important; +} + +/* /Swiper */ \ No newline at end of file diff --git a/luckydiamond/src/components/NotiicationwindowComponent.vue b/luckydiamond/src/components/NotiicationwindowComponent.vue index 0416cc7..3c40b0c 100644 --- a/luckydiamond/src/components/NotiicationwindowComponent.vue +++ b/luckydiamond/src/components/NotiicationwindowComponent.vue @@ -1,7 +1,7 @@ diff --git a/luckydiamond/src/pages/games-pages/SapergamePage.vue b/luckydiamond/src/pages/games-pages/SapergamePage.vue index fa56489..d0bb70b 100644 --- a/luckydiamond/src/pages/games-pages/SapergamePage.vue +++ b/luckydiamond/src/pages/games-pages/SapergamePage.vue @@ -20,7 +20,7 @@ @@ -44,11 +44,22 @@
- + + 1 1 + 1 1 + 1 1 + 1 1 + 1 1 + 1 1 + 1 1 + 1 1 + 1 1 + + + + + +
@@ -125,19 +136,28 @@ import ChatComponent from "@/components/ChatComponent.vue"; import AsideBarElement from "@/components/AsidebarComponent.vue"; import HeaderElementPage from "@/components/HeaderComponent.vue"; + +import { Swiper, SwiperSlide } from 'swiper/vue'; +import 'swiper/css'; +import 'swiper/css/pagination'; +import { Pagination } from 'swiper/modules'; + import '@/assets/css/PagesStyles/games-pages/saper.css' import SaperNumbers from "@/mocks/SaperNumbers"; export default { - components: {ChatComponent, HeaderElementPage, AsideBarElement }, + components: {ChatComponent, HeaderElementPage, AsideBarElement, Swiper, SwiperSlide }, data() { return { SaperNumbers, clickedBtn: '', + clickedBtnCrystal : '', amountCrystals: 5, balance: 1000, amountDeposit: 5, - flippedCards: [] + flippedCards: [], + + modules: [ Pagination ] } }, methods: { @@ -157,7 +177,11 @@ export default { else { this.amountDeposit = content } - } + }, + clickedBtnCrystals(index, content) { + this.clickedBtnCrystal = index + this.amountCrystals = content + }, }, }