From b9f405e52de63276bced8733d57abe27de92f053 Mon Sep 17 00:00:00 2001 From: ArneBo Date: Mon, 23 Dec 2024 17:38:06 +0100 Subject: [PATCH] fix(style): password reset pages --- front/src/views/auth/EmailConfirm.vue | 116 ++++++++-------- front/src/views/auth/PasswordReset.vue | 111 +++++++-------- front/src/views/auth/PasswordResetConfirm.vue | 126 +++++++++--------- 3 files changed, 177 insertions(+), 176 deletions(-) diff --git a/front/src/views/auth/EmailConfirm.vue b/front/src/views/auth/EmailConfirm.vue index 85a7acd5d..c5f6419bf 100644 --- a/front/src/views/auth/EmailConfirm.vue +++ b/front/src/views/auth/EmailConfirm.vue @@ -4,6 +4,9 @@ import type { BackendError } from '~/types' import { computed, ref, onMounted } from 'vue' import { useI18n } from 'vue-i18n' +import Alert from '~/components/ui/Alert.vue' +import Input from '~/components/ui/Input.vue' + import axios from 'axios' interface Props { @@ -45,67 +48,60 @@ onMounted(() => {
-
-
-

{{ labels.confirm }}

-
- -
- - -
- - {{ t('views.auth.EmailConfirm.link.back') }} - - -
-
-

- {{ t('views.auth.EmailConfirm.header.success') }} -

-

- {{ t('views.auth.EmailConfirm.message.success') }} -

- - {{ t('views.auth.EmailConfirm.link.login') }} - -
+ {{ error }} + + + +
+ +
-
+ + {{ t('views.auth.EmailConfirm.link.back') }} + + + + +

+ {{ t('views.auth.EmailConfirm.header.success') }} +

+

+ {{ t('views.auth.EmailConfirm.message.success') }} +

+ + {{ t('views.auth.EmailConfirm.link.login') }} + +
diff --git a/front/src/views/auth/PasswordReset.vue b/front/src/views/auth/PasswordReset.vue index 1707e2aab..1171411a1 100644 --- a/front/src/views/auth/PasswordReset.vue +++ b/front/src/views/auth/PasswordReset.vue @@ -5,6 +5,10 @@ import { computed, ref, onMounted } from 'vue' import { useI18n } from 'vue-i18n' import { useRouter } from 'vue-router' +import Input from '~/components/ui/Input.vue' +import Button from '~/components/ui/Button.vue' +import Spacer from '~/components/ui/layout/Spacer.vue' + import axios from 'axios' interface Props { @@ -48,59 +52,62 @@ onMounted(() => emailInput.value.focus()) v-title="labels.reset" class="main" > -
-
-

- {{ t('views.auth.PasswordReset.header.reset') }} -

-
-
-
+

+ {{ t('views.auth.PasswordReset.help.form') }} +

+
+ + +
+ + + + diff --git a/front/src/views/auth/PasswordResetConfirm.vue b/front/src/views/auth/PasswordResetConfirm.vue index ac2373c03..7a562df0d 100644 --- a/front/src/views/auth/PasswordResetConfirm.vue +++ b/front/src/views/auth/PasswordResetConfirm.vue @@ -7,6 +7,8 @@ import { computed, ref } from 'vue' import axios from 'axios' import PasswordInput from '~/components/forms/PasswordInput.vue' +import Alert from '~/components/ui/Alert.vue' +import Button from '~/components/ui/Button.vue' interface Props { defaultToken: string @@ -53,71 +55,67 @@ const submit = async () => {
-
-
-

{{ labels.changePassword }}

-
- - - -
-
-

- {{ t('views.auth.PasswordResetConfirm.header.success') }} -

-

- {{ t('views.auth.PasswordResetConfirm.message.success') }} -

- - {{ t('views.auth.PasswordResetConfirm.link.login') }} - + {{ error }} + + + + + + + +

+ {{ t('views.auth.PasswordResetConfirm.header.success') }} +

+

+ {{ t('views.auth.PasswordResetConfirm.message.success') }} +

+ + {{ t('views.auth.PasswordResetConfirm.link.login') }} + +