From 9889344902f8647a8ade7b7e6af0d06f5b045086 Mon Sep 17 00:00:00 2001 From: ElementalCrisis <9443295+ElementalCrisis@users.noreply.github.com> Date: Thu, 23 Nov 2023 12:43:59 -0800 Subject: [PATCH] Login Redesign (#697) * Fix File Info Direction Bug. * Update Login Design. * Fix Gap Issue. * Increase Series Name Width. --- src/css/theme-shoko-gray.css | 2 +- src/pages/login/LoginPage.tsx | 264 ++++++++++++++++++---------------- 2 files changed, 138 insertions(+), 128 deletions(-) diff --git a/src/css/theme-shoko-gray.css b/src/css/theme-shoko-gray.css index 965406899..79dcd0655 100644 --- a/src/css/theme-shoko-gray.css +++ b/src/css/theme-shoko-gray.css @@ -23,7 +23,7 @@ --panel-background: #2c333e; --panel-background-alt: #282e38; --panel-background-overlay: #1e2027e5; - --panel-background-transparent: #2c333ea6; + --panel-background-transparent: #2c333ebf; --panel-border: #21242b; --panel-icon: #cfd8e3; --panel-icon-action: #44a3ff; diff --git a/src/pages/login/LoginPage.tsx b/src/pages/login/LoginPage.tsx index 154b5cd5b..597c04bd6 100644 --- a/src/pages/login/LoginPage.tsx +++ b/src/pages/login/LoginPage.tsx @@ -121,141 +121,151 @@ function LoginPage() { )} style={imageUrl !== '' && imageUrl !== 'default' ? { backgroundImage: `url('${imageUrl}')` } : {}} > -
- {imageMetadata.isError ? 'One Piece' : seriesName} -
- -
-
- -
- Version:  - {parsedVersion} -
-
- -
- {!status.data?.State && ( -
- +
+
+
+ +
+ Version + {parsedVersion}
- )} - {status.data?.State === 1 && ( -
- -
Server is starting. Please wait!
-
- Status: - {status.data?.StartupMessage ?? 'Unknown'} +
+
+ {!status.data?.State && ( +
+
-
- )} - {status.data?.State === 2 && ( -
- setUsername(e.target.value)} - /> - setPassword(e.target.value)} - /> - setRememberUser(e.target.checked)} - className="font-semibold" - labelRight - /> - - - )} - {status.data?.State === 3 && ( -
- -
Server startup failed!
- Check the error message below -
- {status.data?.StartupMessage ?? 'Unknown'} + )} + {status.data?.State === 1 && ( +
+ +
Server is starting. Please wait!
+
+ Status: + {status.data?.StartupMessage ?? 'Unknown'} +
-
- )} - {status.data?.State === 4 && ( -
-
-
Welcome and thanks for installing Shoko!
-
- Before Shoko can start managing your anime collection for you, you'll need to go through - our  - First Run Wizard -  to set everything up. Don't worry, its extremely easy, straightforward and should only - take you a couple minutes. + )} + {status.data?.State === 2 && ( +
+ setUsername(e.target.value)} + /> + setPassword(e.target.value)} + /> + setRememberUser(e.target.checked)} + className="font-semibold" + labelRight + /> + + + )} + {status.data?.State === 3 && ( +
+ +
Server startup failed!
+ Check the error message below +
+ {status.data?.StartupMessage ?? 'Unknown'}
-
- Click  - Continue -  below to proceed. +
+ )} + {status.data?.State === 4 && ( +
+
+
Welcome and thanks for installing Shoko!
+
+ Before Shoko can start managing your anime collection for you, you'll need to go through + our  + First Run Wizard +  to set everything up. Don't worry, its extremely easy, straightforward and should only + take you a couple minutes. +
+
+ Click  + Continue +  below to proceed. +
+
- -
- )} + )} +
- -
- +
- - Discord - - - - Docs - - - - GitHub - + {/* eslint-disable-next-line no-nested-ternary */} + {imageMetadata.data?.Series === undefined + ? 'Series Name Not Found' + : imageMetadata.isError + ? 'One Piece' + : seriesName} +
+