diff --git a/client/src/components/Auth/AuthLayout.tsx b/client/src/components/Auth/AuthLayout.tsx index 1aad9a94e7..611e688b7d 100644 --- a/client/src/components/Auth/AuthLayout.tsx +++ b/client/src/components/Auth/AuthLayout.tsx @@ -6,6 +6,7 @@ import SocialLoginRender from './SocialLoginRender'; import { BlinkAnimation } from './BlinkAnimation'; import { Banner } from '../Banners'; import Footer from './Footer'; +import MarkdownLite from '~/components/Chat/Messages/Content/MarkdownLite'; function AuthLayout({ children, @@ -55,19 +56,61 @@ function AuthLayout({ } return null; }; + const logoUrl = startupConfig?.interface?.loginImageUrl; + const logoText = startupConfig?.interface?.loginText; return (
-
- {localize('com_ui_logo', -
+ {logoUrl ? ( +
+ {localize('com_ui_logo', +
+ ) : ( +
+ {localize('com_ui_logo', +
+ )}
+ + {/* Welcome back header and login buttons below logo */} + {!hasStartupConfigError && !isFetching && header && ( +
+

+ {header} +

+ {!pathname.includes('2fa') && + (pathname.includes('login') || pathname.includes('register')) && ( +
+ +
+ )} +
+ )} + + {/* ——— WELCOME SECTIONS ——— */} + {logoText && ( +
+
+
+ +
+
+
+ )} + {/* — end welcome sections — */}
@@ -75,19 +118,7 @@ function AuthLayout({
- {!hasStartupConfigError && !isFetching && header && ( -

- {header} -

- )} {children} - {!pathname.includes('2fa') && - (pathname.includes('login') || pathname.includes('register')) && ( - - )}