diff --git a/public/images/cards.png b/public/images/cards.png new file mode 100644 index 0000000..623da56 Binary files /dev/null and b/public/images/cards.png differ diff --git a/src/pages/Findwords.vue b/src/pages/Findwords.vue index 306420f..1903a8e 100644 --- a/src/pages/Findwords.vue +++ b/src/pages/Findwords.vue @@ -1,11 +1,13 @@ + + diff --git a/src/pages/Flipcard.vue b/src/pages/Flipcard.vue new file mode 100644 index 0000000..c1451be --- /dev/null +++ b/src/pages/Flipcard.vue @@ -0,0 +1,207 @@ + + + + + diff --git a/src/pages/Minigame.vue b/src/pages/Minigame.vue index a6cd145..18dce9a 100644 --- a/src/pages/Minigame.vue +++ b/src/pages/Minigame.vue @@ -82,7 +82,7 @@ export default { return{ games: [ { name: "Temukan kata", img: "/images/crossword.png", badge:"New" }, - { name: "Tebak Gambar", img: "/images/tebak-gambar.png", badge:"coming soon" }, + { name: "Tebak Gambar", img: "/images/cards.png", badge:"New" }, ], tiltTransforms: {} }; @@ -90,8 +90,11 @@ export default { methods: { toContents(content) { if(content){ - if(content.name == "Temukan kata") - this.$router.push({ name: "game-find-words", params: { content: content } }); + if(content.name == "Temukan kata"){ + this.$router.push({ name: "game-find-words", params: { content: content } }); + }else if(content.name == "Tebak Gambar"){ + this.$router.push({ name: "flipcard", params: { content: content } }); + } } }, resetTilt(name) { diff --git a/src/router/index.js b/src/router/index.js index 70cbc47..8f61bf8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -13,6 +13,7 @@ import SynopsisPage from '@/pages/Synopsis.vue' import MissionPage from '@/pages/MissionPage.vue' import FindwordsPage from '@/pages/Findwords.vue' import MinigamePage from '@/pages/Minigame.vue' +import FlipcardPage from '@/pages/Flipcard.vue' const routes = [ { path: '/', name: 'home', component: HomePage , meta:{requiresAuth:true}}, @@ -36,6 +37,7 @@ const routes = [ // game { path: '/entertainment/game/find-words/', name:'game-find-words', component:FindwordsPage, props:true}, { path: '/entertainment/mini-games/', name:'mini-games', component:MinigamePage, props:true}, + { path: '/entertainment/mini-games/flipcard/', name:'flipcard', component:FlipcardPage, props:true}, ] const router = createRouter({