@@ -4,6 +4,7 @@
|
||||
import type { NavigationMenuItem } from '@nuxt/ui'
|
||||
import { computed } from 'vue'
|
||||
import { useHead } from '@unhead/vue'
|
||||
import HowToPlay from "./components/HowToPlay.vue";
|
||||
|
||||
const items: NavigationMenuItem[] = [{
|
||||
label: 'Git',
|
||||
@@ -20,13 +21,16 @@
|
||||
<template>
|
||||
|
||||
<UApp>
|
||||
<UHeader>
|
||||
<UHeader :toggle="false">
|
||||
<template #title>
|
||||
TLAdle
|
||||
</template>
|
||||
|
||||
|
||||
|
||||
<template #right>
|
||||
<UColorModeButton />
|
||||
<HowToPlay/>
|
||||
<UColorModeSwitch :size="xl"/>
|
||||
</template>
|
||||
</UHeader>
|
||||
<UMain class="main">
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
<script setup lang="ts">
|
||||
import GuessWord from './GuessWord.vue';
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UModal title="How to play">
|
||||
<UButton label="How to play" color="neutral" variant="subtle" />
|
||||
|
||||
<template #body>
|
||||
You have to try and guess the TLA (Three Letter Acronym). You get a Motto to start on, and on each try you get more information about the kinds of words
|
||||
and letters the abbreviation has.
|
||||
|
||||
<br>
|
||||
<br>
|
||||
You can use the following color codes to determine how close you were to the correct answer:
|
||||
<div class="flex-container">
|
||||
|
||||
<GuessWord :correctness="4">Correct word, correct 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, 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>
|
||||
|
||||
</template>
|
||||
</UModal>
|
||||
</template>
|
||||
@@ -79,43 +79,6 @@
|
||||
{{ hint }}
|
||||
|
||||
<br>
|
||||
<UModal title="How to play">
|
||||
<UButton label="How to play" color="neutral" variant="subtle" />
|
||||
|
||||
<template #body>
|
||||
You have to try and guess the TLA (Three Letter Acronym). You get a Motto to start on, and on each try you get more information about the kinds of words
|
||||
and letters the abbreviation has.
|
||||
|
||||
<br>
|
||||
<br>
|
||||
You can use the following color codes to determine how close you were to the correct answer:
|
||||
<div class="flex-container">
|
||||
|
||||
<GuessWord :correctness="4">Correct word, correct 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, 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>
|
||||
|
||||
</template>
|
||||
</UModal>
|
||||
|
||||
</template>
|
||||
|
||||
@@ -141,7 +104,7 @@
|
||||
</template>
|
||||
</div>
|
||||
<form ref="main-form" @submit="onSubmit" onsubmit="return false">
|
||||
<UInput v-model="guess" @keyup="onkeyup()"/>
|
||||
<UInput v-model="guess" @keyup="onkeyup()" autofocus/>
|
||||
</form>
|
||||
</template>
|
||||
<template v-if="!correct && guesses.length >= maxGuesses">
|
||||
@@ -150,7 +113,7 @@
|
||||
<template v-if="correct">
|
||||
You completed todays TLAdle! Todays TLA was {{ tla }}
|
||||
</template>
|
||||
<h3>Guesses: {{ guesses.length }} / {{ maxGuesses }}</h3>
|
||||
<h3>Guesses left: {{ maxGuesses - guesses.length }}</h3>
|
||||
|
||||
</template>
|
||||
</UCard>
|
||||
|
||||
Reference in New Issue
Block a user