mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-16 18:15:17 +00:00
Fix sso button style for login page (#21284)
* fix sso button style for login page * update styles * update styles
This commit is contained in:
parent
7314b33d5e
commit
a31504139b
@ -14,17 +14,15 @@
|
|||||||
|
|
||||||
.signin-button.ant-btn {
|
.signin-button.ant-btn {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 4rem;
|
width: 100%;
|
||||||
width: 20rem;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-evenly;
|
justify-content: center;
|
||||||
|
gap: @size-sm;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
background-color: @white;
|
background-color: @white;
|
||||||
padding-left: 1rem;
|
|
||||||
padding-right: 1rem;
|
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
|
border-color: @blue-17 !important;
|
||||||
border: unset;
|
padding: 1.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.anchor-drop-down {
|
.anchor-drop-down {
|
||||||
|
|||||||
@ -256,10 +256,11 @@ const SignInPage = () => {
|
|||||||
<>
|
<>
|
||||||
{authConfig?.enableSelfSignup && (
|
{authConfig?.enableSelfSignup && (
|
||||||
<div className="mt-4 d-flex flex-center">
|
<div className="mt-4 d-flex flex-center">
|
||||||
<Typography.Text className="mr-1">
|
<Typography.Text>
|
||||||
{t('message.new-to-the-platform')}
|
{t('message.new-to-the-platform')}
|
||||||
</Typography.Text>
|
</Typography.Text>
|
||||||
<Button
|
<Button
|
||||||
|
className="link-btn"
|
||||||
data-testid="signup"
|
data-testid="signup"
|
||||||
type="link"
|
type="link"
|
||||||
onClick={onClickSignUp}>
|
onClick={onClickSignUp}>
|
||||||
@ -273,7 +274,12 @@ const SignInPage = () => {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="">{getSignInButton()}</div>
|
<div className="m-t-md">
|
||||||
|
<Typography.Text className="text-lg text-grey-muted m-t-lg">
|
||||||
|
{t('message.om-description')}
|
||||||
|
</Typography.Text>
|
||||||
|
<div className="sso-signup">{getSignInButton()}</div>
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
right: @size-md;
|
right: @size-md;
|
||||||
top: @size-md;
|
top: @size-md;
|
||||||
width: calc(58.33% - @size-md * 2);
|
width: calc(58.33% - @size-md);
|
||||||
height: calc(100vh - @size-md * 2);
|
height: calc(100vh - @size-md * 2);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
@ -53,7 +53,6 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
height: auto;
|
height: auto;
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
margin-left: @size-2xl;
|
|
||||||
|
|
||||||
@media screen and (max-width: 1200px) {
|
@media screen and (max-width: 1200px) {
|
||||||
margin: @size-md;
|
margin: @size-md;
|
||||||
@ -389,3 +388,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sso-signup {
|
||||||
|
margin-top: @size-xl;
|
||||||
|
margin-bottom: @size-lg;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-btn-link.link-btn {
|
||||||
|
padding: @size-xs;
|
||||||
|
}
|
||||||
|
|||||||
@ -26,6 +26,7 @@ import { passwordRegex } from '../../constants/regex.constants';
|
|||||||
import { AuthProvider } from '../../generated/settings/settings';
|
import { AuthProvider } from '../../generated/settings/settings';
|
||||||
import { useAlertStore } from '../../hooks/useAlertStore';
|
import { useAlertStore } from '../../hooks/useAlertStore';
|
||||||
import { useApplicationStore } from '../../hooks/useApplicationStore';
|
import { useApplicationStore } from '../../hooks/useApplicationStore';
|
||||||
|
import brandClassBase from '../../utils/BrandData/BrandClassBase';
|
||||||
import LoginCarousel from '../LoginPage/LoginCarousel';
|
import LoginCarousel from '../LoginPage/LoginCarousel';
|
||||||
import './../LoginPage/login.style.less';
|
import './../LoginPage/login.style.less';
|
||||||
|
|
||||||
@ -47,6 +48,8 @@ const BasicSignUp = () => {
|
|||||||
const [form] = Form.useForm();
|
const [form] = Form.useForm();
|
||||||
const password = Form.useWatch('password', form);
|
const password = Form.useWatch('password', form);
|
||||||
|
|
||||||
|
const brandName = brandClassBase.getPageTitle();
|
||||||
|
|
||||||
const { isAuthProviderBasic } = useMemo(() => {
|
const { isAuthProviderBasic } = useMemo(() => {
|
||||||
return {
|
return {
|
||||||
isAuthProviderBasic:
|
isAuthProviderBasic:
|
||||||
@ -78,10 +81,10 @@ const BasicSignUp = () => {
|
|||||||
<Row className="login-form-container" data-testid="signin-page">
|
<Row className="login-form-container" data-testid="signin-page">
|
||||||
<Col lg={10} sm={24}>
|
<Col lg={10} sm={24}>
|
||||||
<div className="form-item">
|
<div className="form-item">
|
||||||
<BrandImage height="auto" width={160} />
|
<BrandImage isMonoGram height="auto" width={50} />
|
||||||
<Typography.Text className="text-lg text-grey-muted m-t-lg">
|
<Typography.Title className="header-text" level={3}>
|
||||||
{t('message.om-description')}
|
{t('label.welcome-to')} {brandName}
|
||||||
</Typography.Text>
|
</Typography.Title>
|
||||||
|
|
||||||
{alert && (
|
{alert && (
|
||||||
<div className="login-alert">
|
<div className="login-alert">
|
||||||
@ -199,11 +202,12 @@ const BasicSignUp = () => {
|
|||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<div className="mt-4 d-flex flex-center">
|
<div className="mt-4 d-flex flex-center">
|
||||||
<Typography.Text className="mr-4">
|
<Typography.Text>
|
||||||
{t('message.already-a-user')}
|
{t('message.already-a-user')}
|
||||||
</Typography.Text>
|
</Typography.Text>
|
||||||
<Button
|
<Button
|
||||||
ghost
|
ghost
|
||||||
|
className="link-btn"
|
||||||
data-testid="login"
|
data-testid="login"
|
||||||
type="link"
|
type="link"
|
||||||
onClick={handleLogin}>
|
onClick={handleLogin}>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user