diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/img/data-collaboration.png b/openmetadata-ui/src/main/resources/ui/src/assets/img/data-collaboration.png deleted file mode 100644 index 8177770e4fb..00000000000 Binary files a/openmetadata-ui/src/main/resources/ui/src/assets/img/data-collaboration.png and /dev/null differ diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/img/data-discovery.png b/openmetadata-ui/src/main/resources/ui/src/assets/img/data-discovery.png deleted file mode 100644 index 228afe253a9..00000000000 Binary files a/openmetadata-ui/src/main/resources/ui/src/assets/img/data-discovery.png and /dev/null differ diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/img/data-governance.png b/openmetadata-ui/src/main/resources/ui/src/assets/img/data-governance.png deleted file mode 100644 index 5f739e88b09..00000000000 Binary files a/openmetadata-ui/src/main/resources/ui/src/assets/img/data-governance.png and /dev/null differ diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/img/data-insights.png b/openmetadata-ui/src/main/resources/ui/src/assets/img/data-insights.png deleted file mode 100644 index 71c45427dbc..00000000000 Binary files a/openmetadata-ui/src/main/resources/ui/src/assets/img/data-insights.png and /dev/null differ diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/img/data-qauality.png b/openmetadata-ui/src/main/resources/ui/src/assets/img/data-qauality.png deleted file mode 100644 index 9e4d06d16b0..00000000000 Binary files a/openmetadata-ui/src/main/resources/ui/src/assets/img/data-qauality.png and /dev/null differ diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/img/login-screen/data-collaboration.png b/openmetadata-ui/src/main/resources/ui/src/assets/img/login-screen/data-collaboration.png new file mode 100644 index 00000000000..109db800971 Binary files /dev/null and b/openmetadata-ui/src/main/resources/ui/src/assets/img/login-screen/data-collaboration.png differ diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/img/login-screen/data-discovery.png b/openmetadata-ui/src/main/resources/ui/src/assets/img/login-screen/data-discovery.png new file mode 100644 index 00000000000..c986218df1c Binary files /dev/null and b/openmetadata-ui/src/main/resources/ui/src/assets/img/login-screen/data-discovery.png differ diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/img/login-screen/data-governance.png b/openmetadata-ui/src/main/resources/ui/src/assets/img/login-screen/data-governance.png new file mode 100644 index 00000000000..7ff4f2ee89e Binary files /dev/null and b/openmetadata-ui/src/main/resources/ui/src/assets/img/login-screen/data-governance.png differ diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/img/login-screen/data-insights.png b/openmetadata-ui/src/main/resources/ui/src/assets/img/login-screen/data-insights.png new file mode 100644 index 00000000000..6875c5a9308 Binary files /dev/null and b/openmetadata-ui/src/main/resources/ui/src/assets/img/login-screen/data-insights.png differ diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/img/login-screen/data-quality.png b/openmetadata-ui/src/main/resources/ui/src/assets/img/login-screen/data-quality.png new file mode 100644 index 00000000000..4e00291d474 Binary files /dev/null and b/openmetadata-ui/src/main/resources/ui/src/assets/img/login-screen/data-quality.png differ diff --git a/openmetadata-ui/src/main/resources/ui/src/constants/Login.constants.ts b/openmetadata-ui/src/main/resources/ui/src/constants/Login.constants.ts index 7f5561c464d..75e96fb3c3b 100644 --- a/openmetadata-ui/src/main/resources/ui/src/constants/Login.constants.ts +++ b/openmetadata-ui/src/main/resources/ui/src/constants/Login.constants.ts @@ -12,36 +12,40 @@ */ import { CarouselProps } from 'antd'; -import collaborationImg from '../assets/img/data-collaboration.png'; -import discoveryImg from '../assets/img/data-discovery.png'; -import governanceImg from '../assets/img/data-governance.png'; -import insightImg from '../assets/img/data-insights.png'; -import dataQualityImg from '../assets/img/data-qauality.png'; +import loginClassBase from './LoginClassBase'; + +const { + dataDiscovery, + dataQuality, + governance, + dataInsightPlural, + dataCollaboration, +} = loginClassBase.carouselImages(); export const LOGIN_SLIDE = [ { title: 'data-discovery', - image: discoveryImg, + image: dataDiscovery, descriptionKey: 'enables-end-to-end-metadata-management', }, { title: 'data-quality', - image: dataQualityImg, + image: dataQuality, descriptionKey: 'discover-your-data-and-unlock-the-value-of-data-assets', }, { title: 'governance', - image: governanceImg, + image: governance, descriptionKey: 'assess-data-reliability-with-data-profiler-lineage', }, { title: 'data-insight-plural', - image: insightImg, + image: dataInsightPlural, descriptionKey: 'fosters-collaboration-among-producers-and-consumers', }, { title: 'data-collaboration', - image: collaborationImg, + image: dataCollaboration, descriptionKey: 'deeply-understand-table-relations-message', }, ]; diff --git a/openmetadata-ui/src/main/resources/ui/src/constants/LoginClassBase.ts b/openmetadata-ui/src/main/resources/ui/src/constants/LoginClassBase.ts new file mode 100644 index 00000000000..3859d1a6980 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/src/constants/LoginClassBase.ts @@ -0,0 +1,35 @@ +/* + * Copyright 2024 Collate. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import collaborationImg from '../assets/img/login-screen/data-collaboration.png'; +import discoveryImg from '../assets/img/login-screen/data-discovery.png'; +import governanceImg from '../assets/img/login-screen/data-governance.png'; +import insightImg from '../assets/img/login-screen/data-insights.png'; +import dataQualityImg from '../assets/img/login-screen/data-quality.png'; + +class LoginClassBase { + public carouselImages() { + return { + dataDiscovery: discoveryImg, + dataQuality: dataQualityImg, + governance: governanceImg, + dataInsightPlural: insightImg, + dataCollaboration: collaborationImg, + }; + } +} + +const loginClassBase = new LoginClassBase(); + +export default loginClassBase; +export { LoginClassBase }; diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/LoginPage/SignInPage.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/LoginPage/SignInPage.tsx index 1028c5db356..d22dd854282 100644 --- a/openmetadata-ui/src/main/resources/ui/src/pages/LoginPage/SignInPage.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/pages/LoginPage/SignInPage.tsx @@ -190,136 +190,134 @@ const SignInPage = () => { const onClickForgotPassword = () => history.push(ROUTES.FORGOT_PASSWORD); return ( -
- - -
- - - {t('message.om-description')}{' '} - + + +
+ + + {t('message.om-description')}{' '} + - {isAuthProviderBasic ? ( -
-
- + + + - - - - - + /> + + + + - -
- {loginError && ( -
-
-
- -
-

- {loginError} -

+ + + {loginError && ( +
+
+
+
+

+ {loginError} +

- )} - {!isAuthProviderLDAP && ( - <> -
- - {t('label.forgot-password')} - -
- {authConfig?.enableSelfSignup && ( - <> - - - {t('label.or-lowercase')} - - +
+ )} + {!isAuthProviderLDAP && ( + <> +
+ + {t('label.forgot-password')} + +
+ {authConfig?.enableSelfSignup && ( + <> + + + {t('label.or-lowercase')} + + -
- - {t('message.new-to-the-platform')} - - -
- - )} - - )} -
- ) : ( -
{getSignInButton()}
- )} -
- - -
- bg-image -
+
+ + {t('message.new-to-the-platform')} + + +
+ + )} + + )} +
+ ) : ( +
{getSignInButton()}
+ )} +
+ + +
+ bg-image +
- - -
-
+ + +
); }; diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/LoginPage/login.style.less b/openmetadata-ui/src/main/resources/ui/src/pages/LoginPage/login.style.less index 6d508c234a4..b1925b0f6e9 100644 --- a/openmetadata-ui/src/main/resources/ui/src/pages/LoginPage/login.style.less +++ b/openmetadata-ui/src/main/resources/ui/src/pages/LoginPage/login.style.less @@ -49,6 +49,7 @@ transform: translate(-50%, -50%); .slick-dots.slick-dots-bottom { + position: initial; .slick-active { button { background-color: @primary-color; diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/SignUp/BasicSignup.component.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/SignUp/BasicSignup.component.tsx index 149a29989d7..8267f01ee85 100644 --- a/openmetadata-ui/src/main/resources/ui/src/pages/SignUp/BasicSignup.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/pages/SignUp/BasicSignup.component.tsx @@ -11,7 +11,7 @@ * limitations under the License. */ -import { Button, Divider, Form, Input, Typography } from 'antd'; +import { Button, Col, Divider, Form, Input, Row, Typography } from 'antd'; import { isEmpty } from 'lodash'; import React, { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; @@ -66,149 +66,146 @@ const BasicSignUp = () => { const handleLogin = () => history.push(ROUTES.SIGNIN); return ( -
-
-
-
- - - {t('message.om-description')} - + + +
+ + + {t('message.om-description')} + - {isAuthProviderBasic ? ( -
-
- + + + - - - + + + - - - - - - - - - + + + { - if (isEmpty(password)) { - return Promise.reject( - t('label.please-password-type-first') - ); - } - if (value !== password) { - return Promise.reject( - t('label.password-not-match') - ); - } + /> + + + + + { + if (isEmpty(password)) { + return Promise.reject( + t('label.please-password-type-first') + ); + } + if (value !== password) { + return Promise.reject(t('label.password-not-match')); + } - return Promise.resolve(); - }, + return Promise.resolve(); }, - ]}> - - + }, + ]}> + + - + + + + {t('label.or-lowercase')} + + + +
+ + {t('message.already-a-user')} + + - - - - {t('label.or-lowercase')} - - - -
- - {t('message.already-a-user')} - - -
- -
- ) : null} -
+
+ +
+ ) : null}
-
-
- bg-image -
+ - + +
+ bg-image
-
-
+ + + + ); };