From 8eac0bed845b335da73dfa47e1271feab20e8822 Mon Sep 17 00:00:00 2001 From: "Thomas \"ajnart\" Camlong" Date: Fri, 22 Jul 2022 13:16:42 +0200 Subject: [PATCH] :zap: Improve login page Styling and responsiveness --- src/pages/login.tsx | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/src/pages/login.tsx b/src/pages/login.tsx index 0f5ca4375..8b26c95ca 100644 --- a/src/pages/login.tsx +++ b/src/pages/login.tsx @@ -5,6 +5,7 @@ import { useForm } from '@mantine/hooks'; import { showNotification, updateNotification } from '@mantine/notifications'; import axios from 'axios'; import { IconCheck, IconX } from '@tabler/icons'; +import { Logo } from '../components/layout/Logo'; // TODO: Add links to the wiki articles about the login process. export default function AuthenticationTitle() { @@ -15,22 +16,26 @@ export default function AuthenticationTitle() { }); return ( - ({ fontFamily: `Greycliff CF, ${theme.fontFamily}`, fontWeight: 900 })} - > - Welcome back! - + + ({ fontFamily: `Greycliff CF, ${theme.fontFamily}`, fontWeight: 900 })} + > + Welcome back! + + + + Please enter the{' '} href="#" size="sm" onClick={(event) => event.preventDefault()}> @@ -38,7 +43,7 @@ export default function AuthenticationTitle() { - +
{ setCookies('password', values.password, { @@ -64,8 +69,7 @@ export default function AuthenticationTitle() { id: 'load-data', color: 'teal', title: 'Password correct', - message: - 'Notification will close in 2 seconds, you can close this notification now', + message: undefined, icon: , autoClose: 300, onClose: () => { @@ -78,8 +82,7 @@ export default function AuthenticationTitle() { id: 'load-data', color: 'red', title: 'Password is wrong, please try again.', - message: - 'Notification will close in 2 seconds, you can close this notification now', + message: undefined, icon: , autoClose: 2000, }); @@ -93,14 +96,10 @@ export default function AuthenticationTitle() { label="Password" placeholder="Your password" required + autoFocus mt="md" {...form.getInputProps('password')} /> - - onClick={(event) => event.preventDefault()} href="#" size="sm"> - Forgot password? - -