change some frontend stuff and add new view
Build / Build-image (push) Successful in 54s

This commit is contained in:
2026-08-12 13:04:11 +02:00
parent 11d440c6ed
commit 9b69a2afff
5 changed files with 27 additions and 7 deletions
+18 -3
View File
@@ -92,10 +92,25 @@
<div class="flex-container">
<GuessWord :correctness="4">Correct word, correct place</GuessWord>
<GuessWord :correctness="3">Correct word, wrong place</GuessWord>
<GuessWord :correctness="3">Correct word, incorrect place</GuessWord>
<GuessWord :correctness="2">Correct starting letter, correct place</GuessWord>
<GuessWord :correctness="1">Correct starting letter, wrong place</GuessWord>
<GuessWord :correctness="1">Correct starting letter, incorrect place</GuessWord>
</div>
<br>
As an example, if the acronym of the day is
<div class="flex-container">
<GuessWord :correctness="4">Three</GuessWord>
<GuessWord :correctness="4">Letter</GuessWord>
<GuessWord :correctness="4">Acronym</GuessWord>
</div>
And your guess was "Letter True Acronym", then the colors would be as follows:
<div class="flex-container">
<GuessWord :correctness="3">Letter</GuessWord>
<GuessWord :correctness="1">True</GuessWord>
<GuessWord :correctness="4">Acronym</GuessWord>
</div>
If you have any feedback, <a style="text-decoration: underline;" href="mailto:peter@sc0tt.org">
let me know in an email</a>, or create a <a style="text-decoration: underline;" href='https://gitea.sc0tt.org/Belupeti/TLA/pulls'>pull request</a>
@@ -117,6 +132,7 @@
<template #footer>
<template v-if="guesses.length < maxGuesses && !correct">
<div class="flex-container">
<template v-for="word in words">
<GuessWord :correctness="words.length == 3 ? -1 : (words.length > 3 ? -2 : -3)">
@@ -124,7 +140,6 @@
</GuessWord>
</template>
</div>
<template v-if="guesses.length < maxGuesses && !correct">
<form ref="main-form" @submit="onSubmit" onsubmit="return false">
<UInput v-model="guess" @keyup="onkeyup()"/>
</form>