Skip to content

Commit

Permalink
chg: make the style of the signup button less confusing
Browse files Browse the repository at this point in the history
  • Loading branch information
SeddikKadi committed Oct 25, 2023
1 parent 7031b60 commit cf4ad93
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
35 changes: 20 additions & 15 deletions src/i18n/fr-FR/app.po
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ msgstr "Validation des demandes de crédit"
msgid "Approve"
msgstr "Valider"

#: src/views/Login.vue:210
#: src/views/Login.vue:205
msgid "Ask me later"
msgstr "Plus tard"

Expand All @@ -209,7 +209,7 @@ msgstr "Authentification"
msgid "Biometric login successfully disabled"
msgstr "Identification biométrique désactivée"

#: src/views/Login.vue:242
#: src/views/Login.vue:237
msgid "Biometric login successfully set up"
msgstr "Identification biométrique mise en place"

Expand Down Expand Up @@ -247,7 +247,7 @@ msgstr "valider"
msgid "Confirm password"
msgstr "Confirmez votre mot de passe"

#: src/views/Login.vue:165
#: src/views/Login.vue:160
msgid "Connection successful"
msgstr "Connection réussie"

Expand Down Expand Up @@ -317,7 +317,7 @@ msgstr "Courriel"
msgid "Email sent"
msgstr "Courriel envoyé"

#: src/views/Login.vue:203
#: src/views/Login.vue:198
msgid "Enable biometric login"
msgstr "Activer le login biométrique"

Expand Down Expand Up @@ -345,7 +345,8 @@ msgstr "Prénom"
msgid "for account %{ name }"
msgstr "pour le compte %{ name }"

#: src/views/Login.vue:48 src/views/Login.vue:51
#: src/views/Login.vue:35 src/views/Login.vue:39 src/views/Login.vue:53
#: src/views/Login.vue:58
msgid "Forgot password ?"
msgstr "Mot de passe oublié ?"

Expand All @@ -368,7 +369,7 @@ msgstr "Les codes PINs entrés ne sont pas identiques"
msgid "Help"
msgstr "Aide"

#: src/views/Login.vue:177
#: src/views/Login.vue:172
msgid "Invalid credentials"
msgstr "Identifiant ou mot de passe incorrect"

Expand Down Expand Up @@ -437,7 +438,7 @@ msgstr "Nom, adresse email ou téléphone"
msgid "Next"
msgstr "Suivant"

#: src/views/Login.vue:209
#: src/views/Login.vue:204
msgid "No"
msgstr "Non"

Expand Down Expand Up @@ -466,6 +467,10 @@ msgstr "Aucune transaction à afficher"
msgid "No transactions found"
msgstr "Aucune transaction à afficher"

#: src/views/Login.vue:48 src/views/Login.vue:50
msgid "Not a member yet ?"
msgstr "Pas encore adhérent ?"

#: src/components/ConfirmPaymentModal.vue:159
#: src/components/ConfirmPaymentModal.vue:162
msgid "Ok"
Expand Down Expand Up @@ -629,11 +634,11 @@ msgstr "Rafraîchir le solde et les transactions"
msgid "Request"
msgstr "Recevoir"

#: src/views/Login.vue:181
#: src/views/Login.vue:176
msgid "Request failed to remote server."
msgstr "La requête a échoué, impossible de joindre le serveur distant."

#: src/views/Login.vue:171
#: src/views/Login.vue:166
msgid "Request refused by remote server. Contact your administrator"
msgstr "Refus du serveur distant, contactez votre administrateur"

Expand Down Expand Up @@ -714,15 +719,15 @@ msgstr "Partager"
msgid "Share transactions"
msgstr "Partager les opérations"

#: src/components/TheNavBar.vue:55 src/views/Login.vue:61
#: src/components/TheNavBar.vue:55 src/views/Login.vue:70
msgid "Sign in"
msgstr "Se connecter"

#: src/components/TheNavBar.vue:139
msgid "Sign out"
msgstr "Déconnexion"

#: src/views/Login.vue:72 src/views/Signup.vue:146
#: src/views/Signup.vue:146
msgid "Sign up"
msgstr "Créer un compte"

Expand Down Expand Up @@ -933,13 +938,13 @@ msgstr "Impossible de lire le QR code."
msgid "Unexpected error occurred"
msgstr "Erreure Inattendue"

#: src/views/Login.vue:235
#: src/views/Login.vue:230
msgid "Unexpected issue occurred while saving your credentials"
msgstr ""
"Une erreur inattendue est survenue pendant l'enregistrement de vos "
"identifiants"

#: src/views/Login.vue:184 src/views/ResetPassword.vue:74
#: src/views/Login.vue:179 src/views/ResetPassword.vue:74
#: src/views/Signup.vue:213
msgid "Unexpected issue when attempting to connect to remote server."
msgstr ""
Expand Down Expand Up @@ -1004,7 +1009,7 @@ msgstr "Compte à créditer"
msgid "week"
msgstr "semaine"

#: src/views/Login.vue:204
#: src/views/Login.vue:199
msgid ""
"Would you like to use your device's biometric (fingerprint, face "
"recognition, ...) capability to login ?"
Expand All @@ -1016,7 +1021,7 @@ msgstr ""
msgid "year"
msgstr "année"

#: src/views/Login.vue:208
#: src/views/Login.vue:203
msgid "Yes"
msgstr "Oui"

Expand Down
53 changes: 24 additions & 29 deletions src/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,20 @@
</span>
</p>
</div>
<div
v-if="!$config?.hideResetPassword && canResetPassword"
class="forgot-password mb-4"
>
<div class="links-container mb-2">
<button
v-if="
!$config?.hideAccountCreate && ($config.signUpUrl || canSignup)
"
class="button-link"
@click="onClickSignUp()"
type="button"
>
{{ $gettext("Not a member yet ?") }}
</button>
<button
v-if="!$config?.hideResetPassword && canResetPassword"
class="button-link"
@click="$router.push({ name: 'Reset password' })"
type="button"
>
Expand All @@ -62,22 +71,8 @@
</button>
</p>
</div>
<div
v-if="
!$config?.hideAccountCreate && ($config.signUpUrl || canSignup)
"
>
<p class="control has-text-centered">
<button
@click="onClickSignUp()"
type="button"
class="button create-account"
>
{{ $gettext("Sign up") }}
</button>
</p>
</div>
</div>
<p class="has-text-danger has-text-centered" v-if="fail">
{{ fail }}
</p>
Expand Down Expand Up @@ -283,16 +278,16 @@
.login-buttons > div {
margin: 6px;
}
.forgot-password {
text-align: right;
margin-right: 2px;
margin-top: 10px;
button {
border: none;
background: none;
color: #777777;
cursor: pointer;
}
.links-container {
margin-top: 1em;
display: flex;
justify-content: space-between;
}
.button-link {
border: none;
background: none;
color: #777777;
cursor: pointer;
}
@media screen and (min-width: 768px) {
Expand Down

0 comments on commit cf4ad93

Please sign in to comment.