diff --git a/luckydiamond/src/assets/css/global.css b/luckydiamond/src/assets/css/global.css index b702f24..da1ea14 100644 --- a/luckydiamond/src/assets/css/global.css +++ b/luckydiamond/src/assets/css/global.css @@ -125,6 +125,22 @@ button { grid-gap: 0.625rem; } +.jackpot-history__content-grid { + display: grid; + grid-auto-columns: 1fr; + grid-template-columns: 0.35fr repeat(5, 1fr) 1fr; + grid-template-rows: auto 0fr repeat(4, 1fr); + grid-template-areas: + "menu header header header header header header" + "menu jackpot-history jackpot-history jackpot-history jackpot-history jackpot-history chat" + "menu jackpot-history jackpot-history jackpot-history jackpot-history jackpot-history chat" + "menu jackpot-history jackpot-history jackpot-history jackpot-history jackpot-history chat" + "menu jackpot-history jackpot-history jackpot-history jackpot-history jackpot-history chat" + "menu jackpot-history jackpot-history jackpot-history jackpot-history jackpot-history chat" + "menu jackpot-history jackpot-history jackpot-history jackpot-history jackpot-history chat"; + grid-gap: 0.625rem; +} + .grid-crash { display: grid; grid-template-columns: 0.35fr repeat(5, 1fr) 1fr; @@ -227,6 +243,13 @@ button { margin: 0.625rem 2.438rem 1.125rem 1.125rem; */ } +.jackpot-history { + grid-area: jackpot-history; + background: #17181C; + border-radius: 20px; + height: 97%; +} + .double { display: flex; grid-area: double; diff --git a/luckydiamond/src/assets/js/jackpot/JackpotLogic.js b/luckydiamond/src/assets/js/jackpot/JackpotLogic.js index 3213b34..902b833 100644 --- a/luckydiamond/src/assets/js/jackpot/JackpotLogic.js +++ b/luckydiamond/src/assets/js/jackpot/JackpotLogic.js @@ -85,3 +85,25 @@ export async function JoinJackpotGame(userData, amount) { console.log('Fetch error') } } + +export async function getJackpotHistoryGame () { + try { + const response = await fetch(`${BackendApiUrl}/GameJackpot/GetNewestJackpotGames`, { + method: 'POST', + headers: { + 'Content-Type': 'application/json' + }, + redirect: "follow" + }) + + if (!response.ok) { + console.log('Fetch error:', response.status) + } + + console.log(response) + return await response.json() + } + catch (error) { + console.log('Fetch error') + } +} \ No newline at end of file diff --git a/luckydiamond/src/pages/JackpothistoryPage.vue b/luckydiamond/src/pages/JackpothistoryPage.vue new file mode 100644 index 0000000..0280b99 --- /dev/null +++ b/luckydiamond/src/pages/JackpothistoryPage.vue @@ -0,0 +1,70 @@ +t + + + + \ No newline at end of file diff --git a/luckydiamond/src/router/router.js b/luckydiamond/src/router/router.js index febf745..a8954a6 100644 --- a/luckydiamond/src/router/router.js +++ b/luckydiamond/src/router/router.js @@ -6,6 +6,7 @@ import SapergamePage from "@/pages/games-pages/SapergamePage.vue"; import SettingsPage from "@/pages/SettingsPage.vue"; import CrashGamePage from "@/pages/games-pages/CrashgamePage.vue"; import JackpotPage from "@/pages/games-pages/JackpotPage.vue"; +import JackopthistoryPage from "@/pages/JackopthistoryPage.vue"; import DoublePage from "@/pages/games-pages/DoublePage.vue"; import AboutPage from "@/pages/AboutPage.vue"; import HelpPage from "@/pages/HelpPage.vue" ; @@ -18,6 +19,7 @@ export default createRouter({ { path: '/game/saper', component: SapergamePage, name: 'saper' }, { path: '/game/crash', component: CrashGamePage, name: 'crash' }, { path: '/game/jackpot', component: JackpotPage, name: 'jackpot' }, + { path: '/game/jackpot/history', component: JackopthistoryPage, name: 'jackpot-history' }, { path: '/game/double', component: DoublePage, name: 'double' }, { path: '/settings', component: SettingsPage, name: 'settings' }, { path: '/about', component: AboutPage, name: 'about' },