Components rework and lots of fixes

This commit is contained in:
2024-09-05 17:44:30 +02:00
parent 094f27d9ad
commit d7a8087c6c
21 changed files with 286 additions and 196 deletions

View File

@@ -80,9 +80,9 @@ function handleErrors(error: Error | ZodError)
<div class="p-8 w-[48em] border border-light-35 dark:border-dark-35">
<form @submit.prevent="submit" class="p-4 bg-light-25 dark:bg-dark-30">
<h1 class="text-2xl font-bold tracking-wider pb-4">Connexion</h1>
<Input type="text" autocomplete="username" v-model="state.usernameOrEmail"
<InputField type="text" autocomplete="username" v-model="state.usernameOrEmail"
placeholder="" title="Nom d'utilisateur ou adresse mail" :error="usernameError" class="w-[24em]" />
<Input type="password" autocomplete="current-password" v-model="state.password"
<InputField type="password" autocomplete="current-password" v-model="state.password"
placeholder="" title="Mot de passe"
:error="passwordError" class="w-[24em]"/>
<span v-if="generalError" class="text-light-red dark:text-dark-red">{{ generalError }}</span>