From 8eaf465101feb55f488dce847eadb5dff3c82541 Mon Sep 17 00:00:00 2001 From: Joscha Date: Sun, 2 Mar 2025 21:57:07 +0100 Subject: [PATCH] Design rudimentary UI for printing text --- showbits-thermal-printer-ui/src/App.vue | 27 ++++----------- .../src/components/CSegment.vue | 33 +++++++++++++++++++ .../src/components/CSegmentText.vue | 27 +++++++++++++++ 3 files changed, 67 insertions(+), 20 deletions(-) create mode 100644 showbits-thermal-printer-ui/src/components/CSegment.vue create mode 100644 showbits-thermal-printer-ui/src/components/CSegmentText.vue diff --git a/showbits-thermal-printer-ui/src/App.vue b/showbits-thermal-printer-ui/src/App.vue index b9bf3f4..e720548 100644 --- a/showbits-thermal-printer-ui/src/App.vue +++ b/showbits-thermal-printer-ui/src/App.vue @@ -1,18 +1,10 @@ + + @@ -23,12 +15,6 @@ padding: 32px; background-color: white; - mask: conic-gradient(from 100deg at top, #000 160deg, #0000 160deg) - center/64px; -} - -.glow { - filter: drop-shadow(0 0 50px rgb(255, 238, 214)); } @@ -53,6 +39,7 @@ padding: 0; } +h1, h2 { font-size: 32px; } diff --git a/showbits-thermal-printer-ui/src/components/CSegment.vue b/showbits-thermal-printer-ui/src/components/CSegment.vue new file mode 100644 index 0000000..92d910a --- /dev/null +++ b/showbits-thermal-printer-ui/src/components/CSegment.vue @@ -0,0 +1,33 @@ + + + + + diff --git a/showbits-thermal-printer-ui/src/components/CSegmentText.vue b/showbits-thermal-printer-ui/src/components/CSegmentText.vue new file mode 100644 index 0000000..fc1dd0e --- /dev/null +++ b/showbits-thermal-printer-ui/src/components/CSegmentText.vue @@ -0,0 +1,27 @@ + + + + +