Design rudimentary UI for printing text
This commit is contained in:
parent
c81f331c04
commit
8eaf465101
3 changed files with 67 additions and 20 deletions
33
showbits-thermal-printer-ui/src/components/CSegment.vue
Normal file
33
showbits-thermal-printer-ui/src/components/CSegment.vue
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import CSegmentText from "./CSegmentText.vue";
|
||||
|
||||
const mode = ref<"text">();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<CSegmentText v-if="mode === 'text'" />
|
||||
<section v-else class="choose">
|
||||
<p>What do you want to print?</p>
|
||||
<div class="list">
|
||||
<button @click="mode = 'text'">Calendar</button>
|
||||
<button @click="mode = 'text'">Cellular Automaton</button>
|
||||
<button @click="mode = 'text'">Chat Message</button>
|
||||
<button @click="mode = 'text'">Easter Egg</button>
|
||||
<button @click="mode = 'text'">Text</button>
|
||||
<button @click="mode = 'text'">Tic Tac Toe</button>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
p {
|
||||
margin-bottom: 1ch;
|
||||
}
|
||||
|
||||
.list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 1ch;
|
||||
}
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue