From 850affbd55fee9cd48a82ade94a3a5e60fd737a8 Mon Sep 17 00:00:00 2001
From: Leonardo Bishop <me@leonardobishop.com>
Date: Wed, 22 Jan 2025 02:09:56 +0000
Subject: Add version and some icons

---
 pages/login.vue | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

(limited to 'pages/login.vue')

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; 
-- 
cgit v1.2.3-70-g09d2

