-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #263 from codersforcauses/i188-display_message_whe…
…n_challenge_is_achieved I188 display message when challenge is achieved
- Loading branch information
Showing
2 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
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,35 @@ | ||
<template> | ||
<v-dialog v-model="value" :fullscreen="isFullscreen" max-width="500"> | ||
<v-card> | ||
<div style="height: 8px"> | ||
<v-img src="/images/Footer-min.jpeg" width="100%" alt="red background" cover /> | ||
</div> | ||
<v-card-item class="d-flex justify-center"> | ||
<v-card-title class="d-flex justify-center"> Congratulations! </v-card-title> | ||
<v-card-subtitle>You completed the {{ challengeName }} challenge!</v-card-subtitle> | ||
</v-card-item> | ||
<v-card-actions class="d-flex justify-end"> | ||
<v-btn @click="$emit('update:modelValue', !modelValue)">CLOSE</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref, computed } from 'vue' | ||
const isFullscreen = ref(false) | ||
const emit = defineEmits(['update:modelValue']) | ||
const props = defineProps(['modelValue', 'challengeName']) | ||
const value = computed({ | ||
get() { | ||
return props.modelValue | ||
}, | ||
set(value) { | ||
emit('update:modelValue', value) | ||
} | ||
}) | ||
</script> | ||
|
||
<style scoped></style> |
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