Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

FIX: Handled Dynamic Rendering of Product Logo Based on Query Parameters (#851)

Tahier Hussainca3917d60679
diff --git a/frontend/src/components/log-in/Login.css b/frontend/src/components/log-in/Login.css
index 8e76ec1a8..93aaee047 100644
--- a/frontend/src/components/log-in/Login.css
+++ b/frontend/src/components/log-in/Login.css
@@ -75,10 +75,11 @@
.logo {
height: 50px;
+ width: 100%;
}
.text-wrapper {
- height: 50%;
+ margin: 40px 0px;
width: 100%;
display: flex;
flex-direction: column;
diff --git a/frontend/src/components/log-in/Login.jsx b/frontend/src/components/log-in/Login.jsx
index 7d632b363..76a12485a 100644
--- a/frontend/src/components/log-in/Login.jsx
+++ b/frontend/src/components/log-in/Login.jsx
@@ -1,17 +1,14 @@
import { Typography, Button } from "antd";
import { Row, Col } from "antd";
-import logo from "../../assets/UnstractLogoBlack.svg";
import loginRightBanner from "../../assets/login-right-panel.svg";
import { getBaseUrl } from "../../helpers/GetStaticData";
import "./Login.css";
+import { UnstractBlackLogo } from "../../assets";
let LoginForm = null;
-let UnstractCloudLogo;
try {
LoginForm = require("../../plugins/login-form/LoginForm").LoginForm;
- UnstractCloudLogo =
- require("../../plugins/assets/llmWhisperer/index.js").UnstractCloudLogo;
} catch {
// The components will remain null of it is not available
}
@@ -28,22 +25,20 @@ function Login() {
<Row>
<Col xs={24} md={12} className="login-left-section">
<div className="button-wraper">
- {UnstractCloudLogo ? (
- <UnstractCloudLogo />
- ) : (
- <img src={logo} alt="Logo" className="logo" />
- )}
{LoginForm ? (
<LoginForm handleLogin={handleLogin} />
) : (
- <div>
- <Button
- className="login-button button-margin"
- onClick={handleLogin}
- >
- Login
- </Button>
- </div>
+ <>
+ <UnstractBlackLogo className="logo" />
+ <div>
+ <Button
+ className="login-button button-margin"
+ onClick={handleLogin}
+ >
+ Login
+ </Button>
+ </div>
+ </>
)}
</div>
</Col>