From 35a89bfa993a7550bf8695ab0313dd403d374494 Mon Sep 17 00:00:00 2001
From: Marco Beretta <81851188+berry-13@users.noreply.github.com>
Date: Wed, 11 Sep 2024 04:20:19 -0900
Subject: [PATCH] =?UTF-8?q?=F0=9F=94=90=20style:=20update=20auth=20and=20l?=
=?UTF-8?q?oading=20screen=20(#3875)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* style: improve auth UI
* style(SocialButton): fix hover style
* remove testing files
* fix: package-lock
* feat: loading screen color based on theme
* fix: handle `system` style on loading screen
* fix(ThemeSelector): Correct icon and text color handling for `system` theme
* remove test file
---
client/index.html | 88 +++++++++++--------
client/src/components/Auth/AuthLayout.tsx | 2 +-
client/src/components/Auth/LoginForm.tsx | 28 ++++--
client/src/components/Auth/Registration.tsx | 18 ++--
.../components/Auth/RequestPasswordReset.tsx | 14 ++-
client/src/components/Auth/ResetPassword.tsx | 26 ++++--
client/src/components/Auth/SocialButton.tsx | 47 +---------
client/src/components/ui/ThemeSelector.tsx | 31 +++++--
8 files changed, 144 insertions(+), 110 deletions(-)
diff --git a/client/index.html b/client/index.html
index e70cc76784..c72d3951cb 100644
--- a/client/index.html
+++ b/client/index.html
@@ -2,47 +2,57 @@
-
-
-
-
+
+
+
+
LibreChat
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
+
+
diff --git a/client/src/components/Auth/AuthLayout.tsx b/client/src/components/Auth/AuthLayout.tsx
index 6d99a00489..9f222a110a 100644
--- a/client/src/components/Auth/AuthLayout.tsx
+++ b/client/src/components/Auth/AuthLayout.tsx
@@ -57,7 +57,7 @@ function AuthLayout({
return (
-
+
diff --git a/client/src/components/Auth/LoginForm.tsx b/client/src/components/Auth/LoginForm.tsx
index 3e50e92578..fea8a61406 100644
--- a/client/src/components/Auth/LoginForm.tsx
+++ b/client/src/components/Auth/LoginForm.tsx
@@ -81,7 +81,7 @@ const LoginForm: React.FC
= ({ onSubmit, startupConfig, error,
method="POST"
onSubmit={handleSubmit((data) => onSubmit(data))}
>
-
+
= ({ onSubmit, startupConfig, error,
},
})}
aria-invalid={!!errors.email}
- className="webkit-dark-styles peer block w-full appearance-none rounded-md border border-gray-300 bg-transparent px-3.5 pb-3.5 pt-4 text-sm text-gray-900 focus:border-green-500 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-green-500"
+ className="
+ webkit-dark-styles transition-color peer w-full rounded-2xl border border-border-light
+ bg-surface-primary px-3.5 pb-2.5 pt-3 duration-200 focus:border-green-500 focus:outline-none
+ "
placeholder=" "
/>