advent22/ui/src/components/DoorMapEditor.vue

54 lines
1.1 KiB
Vue
Raw Normal View History

2023-01-17 18:25:56 +00:00
<template>
2023-01-19 00:22:01 +00:00
<div class="box">
<p class="title is-4">Türchen bearbeiten</p>
<div class="tabs is-centered">
<ul>
<li class="is-active"><a>Platzieren</a></li>
<li><a>Ordnen</a></li>
<li><a>Überprüfen</a></li>
</ul>
</div>
<section v-if="step === 0">
<div class="content">
<ul>
<li>Linksklick + Ziehen: Neues Türchen erstellen</li>
<li>Rechtsklick + Ziehen: Türchen verschieben</li>
<li>Doppel- oder Mittelklick: Türchen löschen</li>
</ul>
</div>
<figure class="image">
<img src="@/assets/adventskalender.jpg" />
<RectPad />
</figure>
</section>
2023-01-17 18:25:56 +00:00
</div>
</template>
<script lang="ts">
import { Vue, Options } from "vue-class-component";
import RectPad from "./rects/RectPad.vue";
@Options({
components: {
RectPad,
},
})
export default class CalendarImage extends Vue {
2023-01-19 00:22:01 +00:00
private step = 0;
2023-01-17 18:25:56 +00:00
}
</script>
<style lang="scss" scoped>
2023-01-19 00:22:01 +00:00
figure {
2023-01-17 18:25:56 +00:00
user-select: none;
2023-01-19 00:22:01 +00:00
img + * {
2023-01-17 18:25:56 +00:00
position: absolute;
2023-01-19 00:22:01 +00:00
left: 0;
top: 0;
z-index: 99;
2023-01-17 18:25:56 +00:00
}
}
</style>