-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a popup dialog when clicking stage images
- Loading branch information
1 parent
947e003
commit af04cdc
Showing
6 changed files
with
84 additions
and
13 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<template> | ||
<ModalDialog inner-class="-rotate-1 relative"> | ||
<div class="bg-zinc-100 p-2"> | ||
<button class="text-zinc-300 bg-zinc-600/50 rounded-full p-1 absolute top-3 right-3" @click="$emit('close')"> | ||
<span class="sr-only">Close</span> | ||
<XMarkIcon class="h-4 w-4" aria-hidden="true" /> | ||
</button> | ||
<img :src="imgUrl" v-if="imgUrl" /> | ||
</div> | ||
|
||
<div class="absolute -top-8 w-full text-center"> | ||
<img class="w-56 -rotate-1 inline-block" src="@/assets/img/tape/tape-1.png" /> | ||
</div> | ||
|
||
<div class="absolute -bottom-6 w-full text-center"> | ||
<img class="w-80 inline-block rotate-2" src="@/assets/img/stickers/sticker-12.png" /> | ||
<div class="absolute inset-0 flex items-center justify-center text-black font-splatoon2"> | ||
{{ stage.name }} | ||
</div> | ||
</div> | ||
</ModalDialog> | ||
</template> | ||
|
||
<script setup> | ||
import { computed } from 'vue'; | ||
import ModalDialog from './ModalDialog.vue'; | ||
import { XMarkIcon } from '@heroicons/vue/24/outline' | ||
const props = defineProps({ | ||
stage: Object, | ||
}); | ||
const imgUrl = computed(() => props.stage?.image.url); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters