aboutsummaryrefslogtreecommitdiffstats
path: root/pages/login.vue
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2025-01-22 02:09:56 +0000
committerLeonardo Bishop <me@leonardobishop.com>2025-01-22 02:09:56 +0000
commit850affbd55fee9cd48a82ade94a3a5e60fd737a8 (patch)
tree3d53005a151f17bdef27afcfaeec91aa1217a25e /pages/login.vue
parentc6a34e6f7d6c0f592b8e370ee942017d914662bd (diff)
Add version and some icons
Diffstat (limited to 'pages/login.vue')
-rw-r--r--pages/login.vue19
1 files changed, 18 insertions, 1 deletions
diff --git a/pages/login.vue b/pages/login.vue
index 2c38f61..06d1b77 100644
--- a/pages/login.vue
+++ b/pages/login.vue
@@ -40,6 +40,12 @@ const handleSubmit = async (e: Event) => {
isLoading.value = false
}
+onMounted(() => {
+ if (history.state.error) {
+ error.value = history.state.error as string
+ }
+})
+
</script>
<template>
@@ -79,8 +85,11 @@ const handleSubmit = async (e: Event) => {
Sign in
</Button>
</div>
+
+ <Version class="version" />
</form>
</Panel>
+
</div>
<div class="form-footer">
@@ -88,6 +97,7 @@ const handleSubmit = async (e: Event) => {
Register
</NuxtLink>
</div>
+
</div>
</template>
@@ -131,7 +141,8 @@ const handleSubmit = async (e: Event) => {
}
.auth-error {
- color: var(--color-error);
+ color: var(--color-text-error);
+ font-style: oblique;
}
.form-group {
@@ -157,6 +168,12 @@ const handleSubmit = async (e: Event) => {
max-width: 28rem;
}
+.version {
+ font-size: var(--text-smaller);
+ margin: 0 auto;
+ color: var(--color-text-muted-light);
+}
+
.register-link {
font-size: var(--text-small);
font-weight: 500;