-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Handle Dynamic Content Display on Login Page (#853)
Fixed static content in the login page
- Loading branch information
1 parent
464b821
commit e6f0af4
Showing
2 changed files
with
57 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<div className="right-section-text-wrapper"> | ||
<div className="right-title-cover"> | ||
<Typography.Title className="right-section-title"> | ||
{title || defaultUnstractContent.title} | ||
</Typography.Title> | ||
</div> | ||
<div className="right-subtitle-cover"> | ||
<Typography align="center" className="right-subtitle"> | ||
{description || defaultUnstractContent.description} | ||
</Typography> | ||
</div> | ||
<div> | ||
<img | ||
src={image || loginRightBanner} | ||
alt="login background" | ||
className="login-background" | ||
/> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
ProductContentLayout.propTypes = { | ||
title: PropTypes.string, | ||
description: PropTypes.string, | ||
image: PropTypes.any, | ||
}; | ||
|
||
export { ProductContentLayout }; |