Design rudimentary UI for printing text

This commit is contained in:
Joscha 2025-03-02 21:57:07 +01:00
parent c81f331c04
commit 8eaf465101
3 changed files with 67 additions and 20 deletions

View 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>

View file

@ -0,0 +1,27 @@
<script setup lang="ts"></script>
<template>
<section>
<h2>Text</h2>
<textarea rows="10"></textarea>
<fieldset>
<label><input type="checkbox" /> Force-Wrap</label>
<label><input type="checkbox" checked /> Feed</label>
</fieldset>
<button>Print</button>
</section>
</template>
<style scoped>
section {
display: flex;
flex-direction: column;
gap: 16px;
}
fieldset {
display: flex;
flex-direction: column;
border: none;
}
</style>