Skip to content

Commit

Permalink
Allow disassembling sets you own
Browse files Browse the repository at this point in the history
  • Loading branch information
wraitii committed Dec 7, 2023
1 parent c6ec0c7 commit 91600a3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/briqout/GameScreen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -280,17 +280,21 @@ const shareUrl = computed(() => {
</div>
</template>
<template v-else-if="pageStatus === 'ingame' && game.status === 'won'">
<div class="absolute w-full h-full flex flex-col gap-4 justify-center items-center">
<div class="absolute w-full h-full flex flex-col gap-2 justify-center items-center">
<h1 class="text-xl md:text-[6rem] text-text mb-8">You won in {{ Math.ceil(game.time) }}s !</h1>
<template v-if="(game.getParams()?.setToMigrate || '0x0') !== '0x0'">
<h3>Challenge others to do better</h3>
<h3 class="mt-4">Challenge others to do better</h3>
<a
target="_blank"
:href="`https://twitter.com/intent/tweet?text=${encodeURIComponent(tweetText)}&url=${encodeURIComponent(shareUrl)}`">
<Btn v-bind="$attrs" icon class="text-sm justify-start font-normal"><i class="fa-brands fa-twitter text-md mr-2"/> Share on Twitter</Btn>
</a>
<template v-if="userSetStore.current?.setData?.[game.getParams()!.setToMigrate]">
<h4 class="mt-8 !mb-0">Roleplay</h4>
<Btn secondary @click="userSetStore.current!.disassemble(game.getParams()!.setToMigrate);">Disassemble the set</Btn>
</template>
</template>
<Btn secondary class="w-[14rem] mt-8" @click="page = 'home'">Back to Main Menu</Btn>
<Btn secondary class="w-[14rem] mt-16" @click="page = 'home'">Back to Main Menu</Btn>
</div>
</template>
</Transition>
Expand Down

0 comments on commit 91600a3

Please sign in to comment.