-
Login
+
+
+ Login to continue the great work
+
+ }
+ />
+
}
/>
-
+
);
diff --git a/frontend/src/component/user/Login/Login.styles.js b/frontend/src/component/user/Login/Login.styles.js
index d107c058c8..bc0f5bc226 100644
--- a/frontend/src/component/user/Login/Login.styles.js
+++ b/frontend/src/component/user/Login/Login.styles.js
@@ -1,6 +1,13 @@
import { makeStyles } from '@material-ui/styles';
export const useStyles = makeStyles(theme => ({
+ login: {
+ width: '350px',
+ maxWidth: '350px',
+ [theme.breakpoints.down('xs')]: {
+ width: '100%',
+ },
+ },
loginContainer: {
minHeight: '100vh',
width: '100%',
@@ -25,7 +32,7 @@ export const useStyles = makeStyles(theme => ({
},
title: {
fontSize: theme.fontSizes.mainHeader,
- marginBottom: '0.5rem',
+ marginBottom: '1rem',
display: 'flex',
alignItems: 'center',
},
@@ -38,7 +45,8 @@ export const useStyles = makeStyles(theme => ({
fontSize: '1.25rem',
},
loginFormContainer: {
- maxWidth: '500px',
+ display: 'flex',
+ flexDirection: 'column',
},
imageContainer: {
display: 'flex',
diff --git a/frontend/src/component/user/NewUser/NewUser.styles.ts b/frontend/src/component/user/NewUser/NewUser.styles.ts
index 5b91dbfad0..86d985c790 100644
--- a/frontend/src/component/user/NewUser/NewUser.styles.ts
+++ b/frontend/src/component/user/NewUser/NewUser.styles.ts
@@ -1,6 +1,22 @@
import { makeStyles } from '@material-ui/core/styles';
export const useStyles = makeStyles(theme => ({
+ newUser: {
+ width: '350px',
+ [theme.breakpoints.down('xs')]: {
+ width: '100%',
+ },
+ },
+ title: {
+ fontSize: theme.fontSizes.mainHeader,
+ marginBottom: '1.25rem',
+ display: 'flex',
+ alignItems: 'center',
+ },
+ inviteText: {
+ marginBottom: '1rem',
+ textAlign: 'center',
+ },
container: {
display: 'flex',
},
@@ -9,7 +25,6 @@ export const useStyles = makeStyles(theme => ({
},
innerContainer: {
width: '60%',
- minHeight: '100vh',
padding: '4rem 3rem',
},
buttonContainer: {
@@ -20,14 +35,14 @@ export const useStyles = makeStyles(theme => ({
marginRight: '8px',
},
subtitle: {
- marginBottom: '0.5rem',
- fontSize: '1.1rem',
+ margin: '0.5rem 0',
},
passwordHeader: {
marginTop: '2rem',
},
emailField: {
minWidth: '300px',
+ width: '100%',
[theme.breakpoints.down('xs')]: {
minWidth: '100%',
},
diff --git a/frontend/src/component/user/NewUser/NewUser.tsx b/frontend/src/component/user/NewUser/NewUser.tsx
index ed1fea3ab1..e4873d4bdf 100644
--- a/frontend/src/component/user/NewUser/NewUser.tsx
+++ b/frontend/src/component/user/NewUser/NewUser.tsx
@@ -5,13 +5,13 @@ import StandaloneBanner from '../StandaloneBanner/StandaloneBanner';
import ResetPasswordDetails from '../common/ResetPasswordDetails/ResetPasswordDetails';
import { useStyles } from './NewUser.styles';
-import { useCommonStyles } from '../../../common.styles';
import useResetPassword from '../../../hooks/useResetPassword';
import StandaloneLayout from '../common/StandaloneLayout/StandaloneLayout';
import ConditionallyRender from '../../common/ConditionallyRender';
import InvalidToken from '../common/InvalidToken/InvalidToken';
import { IAuthStatus } from '../../../interfaces/user';
import AuthOptions from '../common/AuthOptions/AuthOptions';
+import DividerText from '../../common/DividerText/DividerText';
interface INewUserProps {
user: IAuthStatus;
@@ -21,109 +21,97 @@ const NewUser = ({ user }: INewUserProps) => {
const { token, data, loading, setLoading, invalidToken } =
useResetPassword();
const ref = useLoading(loading);
- const commonStyles = useCommonStyles();
const styles = useStyles();
return (
-
- You have been invited by {data?.createdBy}
-
- }
- />
-
- }
+ BannerComponent={}
>
- }
- elseShow={
-
-
+ }
+ elseShow={
+
- Your username is
-
-
-
-
- In Unleash your role is:{' '}
- {data?.role?.name}
-
-
- {data?.role?.description}
-
-
+
+ Enter your personal details and start your
+ journey
+
0
- }
+ condition={data?.createdBy}
show={
- <>
-
- Login with 3rd party providers
-
-
-
-
- OR set a new password for your
- account
-
- >
- }
- elseShow={
- Set a password for your account.
+ {data?.createdBy}
+
has invited you to join
+ Unleash.
}
/>
-
-
- }
- />
+
+
+ Your username is
+
+
+
+
+
+ 0
+ }
+ show={
+ <>
+
+
+
+
+ >
+ }
+ elseShow={
+
+ Set a password for your account.
+
+ }
+ />
+
+
+ }
+ />
+
);
diff --git a/frontend/src/component/user/PasswordAuth/PasswordAuth.jsx b/frontend/src/component/user/PasswordAuth/PasswordAuth.jsx
index b79240b5e0..275fba6740 100644
--- a/frontend/src/component/user/PasswordAuth/PasswordAuth.jsx
+++ b/frontend/src/component/user/PasswordAuth/PasswordAuth.jsx
@@ -1,21 +1,19 @@
-import React, { useState } from 'react';
+import { useState } from 'react';
import classnames from 'classnames';
import PropTypes from 'prop-types';
-import { Button, TextField, Typography, IconButton } from '@material-ui/core';
-import LockRounded from '@material-ui/icons/LockRounded';
+import { Button, TextField, Typography } from '@material-ui/core';
import ConditionallyRender from '../../common/ConditionallyRender';
import { useHistory } from 'react-router';
import { useCommonStyles } from '../../../common.styles';
import { useStyles } from './PasswordAuth.styles';
-import { Link } from 'react-router-dom';
import useQueryParams from '../../../hooks/useQueryParams';
-import { GoogleSvg } from '../HostedAuth/Icons';
+import AuthOptions from '../common/AuthOptions/AuthOptions';
+import DividerText from '../../common/DividerText/DividerText';
const PasswordAuth = ({ authDetails, passwordLogin }) => {
const commonStyles = useCommonStyles();
const styles = useStyles();
const history = useHistory();
- const [showFields, setShowFields] = useState(false);
const params = useQueryParams();
const [username, setUsername] = useState(params.get('email') || '');
const [password, setPassword] = useState('');
@@ -24,11 +22,6 @@ const PasswordAuth = ({ authDetails, passwordLogin }) => {
passwordError: '',
});
- const onShowOptions = e => {
- e.preventDefault();
- setShowFields(true);
- };
-
const handleSubmit = async evt => {
evt.preventDefault();
@@ -110,17 +103,11 @@ const PasswordAuth = ({ authDetails, passwordLogin }) => {
autoComplete="true"
size="small"
/>
-
-