diff --git a/frontend/src/components/log-in/Login.jsx b/frontend/src/components/log-in/Login.jsx index 76a12485a..93db1191a 100644 --- a/frontend/src/components/log-in/Login.jsx +++ b/frontend/src/components/log-in/Login.jsx @@ -1,10 +1,10 @@ -import { Typography, Button } from "antd"; +import { Button } from "antd"; import { Row, Col } from "antd"; -import loginRightBanner from "../../assets/login-right-panel.svg"; import { getBaseUrl } from "../../helpers/GetStaticData"; import "./Login.css"; import { UnstractBlackLogo } from "../../assets"; +import { ProductContentLayout } from "./ProductContentLayout"; let LoginForm = null; try { @@ -23,12 +23,12 @@ function Login() { return (
- -
- {LoginForm ? ( - - ) : ( - <> + {LoginForm ? ( + + ) : ( + <> + +
- - )} -
- - -
-
- - UNLOCK VALUE FROM UNSTRUCTURED DATA. - -
-
- - Unstract is a no-code LLM platform that lets you automate even - the most complex workflows involving unstructured data, saving - you time, money, and automation headaches. - -
-
- login background -
-
- +
+ + + + + + )}
); diff --git a/frontend/src/components/log-in/ProductContentLayout.jsx b/frontend/src/components/log-in/ProductContentLayout.jsx new file mode 100644 index 000000000..14a035ab8 --- /dev/null +++ b/frontend/src/components/log-in/ProductContentLayout.jsx @@ -0,0 +1,42 @@ +import PropTypes from "prop-types"; + +import loginRightBanner from "../../assets/login-right-panel.svg"; +import { Typography } from "antd"; + +const defaultUnstractContent = { + title: "UNLOCK VALUE FROM UNSTRUCTURED DATA.", + description: + "Unstract is a no-code LLM platform that lets you automate even the most complex workflows involving unstructured data, saving you time, money, and automation headaches.", +}; + +function ProductContentLayout({ title, description, image }) { + return ( +
+
+ + {title || defaultUnstractContent.title} + +
+
+ + {description || defaultUnstractContent.description} + +
+
+ login background +
+
+ ); +} + +ProductContentLayout.propTypes = { + title: PropTypes.string, + description: PropTypes.string, + image: PropTypes.any, +}; + +export { ProductContentLayout };