Files
wishboard/resources/js/components/WishPanel.vue
T
Belupeti 1cae84b229
Build / Build-image (push) Failing after 29s
add back button
2026-09-26 01:24:45 +02:00

75 lines
1.3 KiB
Vue

<script setup>
import { onMounted } from 'vue';
const emit = defineEmits(['closeWish']);
const props = defineProps({
selected: {
type: Boolean,
default: false,
},
wish: Object,
});
function handleClose(event) {
if (event.key == 'Escape') emit('closeWish');
}
onMounted(() => {
window.addEventListener('keydown', handleClose);
});
</script>
<template>
<img :src="'/skonk/divider.png'" style="width: 90%; margin: auto;">
<div class="panel-container main-panel">
<h1>{{ wish.title }}</h1>
<p>
{{ wish.description }}
</p>
<br>
<div class="button-container">
<button>
Promise
</button><br>
<button @click="emit('closeWish')">
Back
</button>
</div>
</div>
</template>
<style lang="css" scoped>
.button-container {
text-align: center;
}
button {
font-size: 3.5vh;
}
.main-panel {
width: 100%;
padding: 30px;
border-radius: 10px;
}
h1 {
font-size: 3vh;
text-wrap: wrap;
padding-right: 40px;
}
p {
font-size: 2vh;
color: rgb(200,200,200);
padding-right: 40px;
margin-top: 40px;
text-wrap: wrap;
}
.panel-container {
top: 50%;
left: 50%;
z-index: 100;
}
</style>