-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #217 from kbase/feature/sign-in-layout
Add log in layout design
- Loading branch information
Showing
10 changed files
with
194 additions
and
2 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,18 @@ | ||
@import "../../common/colors"; | ||
|
||
.logo { | ||
height: 150px; | ||
width: auto; | ||
} | ||
|
||
.sso-logo { | ||
height: 2.5rem; | ||
width: auto; | ||
} | ||
|
||
.separator { | ||
align-self: center; | ||
background-color: use-color("base-lighter"); | ||
height: 1px; | ||
width: 80%; | ||
} |
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,111 @@ | ||
import { | ||
Box, | ||
Button, | ||
Container, | ||
Link, | ||
Paper, | ||
Stack, | ||
Typography, | ||
} from '@mui/material'; | ||
import { FC } from 'react'; | ||
import logoRectangle from '../../common/assets/logo/rectangle.png'; | ||
import orcidLogo from '../../common/assets/orcid.png'; | ||
import globusLogo from '../../common/assets/globus.png'; | ||
import googleLogo from '../../common/assets/google.webp'; | ||
import classes from './LogIn.module.scss'; | ||
|
||
export const LogIn: FC = () => { | ||
return ( | ||
<Container maxWidth="sm"> | ||
<Stack spacing={2} textAlign="center"> | ||
<Stack | ||
direction="row" | ||
spacing={2} | ||
alignItems="center" | ||
justifyContent="center" | ||
> | ||
<img | ||
src={logoRectangle} | ||
alt="KBase circles logo" | ||
className={classes['logo']} | ||
/> | ||
</Stack> | ||
<Typography fontStyle="italic"> | ||
A collaborative, open environment for systems biology of plants, | ||
microbes and their communities. | ||
</Typography> | ||
<Paper | ||
elevation={0} | ||
sx={{ | ||
padding: 2, | ||
}} | ||
> | ||
<Stack spacing={2}> | ||
<Typography variant="h4" component="h1"> | ||
Log in | ||
</Typography> | ||
<Stack spacing={2}> | ||
<Button | ||
variant="outlined" | ||
color="base" | ||
size="large" | ||
startIcon={ | ||
<img | ||
src={orcidLogo} | ||
alt="ORCID logo" | ||
className={classes['sso-logo']} | ||
/> | ||
} | ||
> | ||
Continue with ORCID | ||
</Button> | ||
<Box className={classes['separator']} /> | ||
<Stack spacing={1}> | ||
<Button | ||
variant="outlined" | ||
color="base" | ||
size="large" | ||
startIcon={ | ||
<img | ||
src={googleLogo} | ||
alt="Google logo" | ||
className={classes['sso-logo']} | ||
/> | ||
} | ||
> | ||
Continue with Google | ||
</Button> | ||
<Button | ||
variant="outlined" | ||
color="base" | ||
size="large" | ||
startIcon={ | ||
<img | ||
src={globusLogo} | ||
alt="Globus logo" | ||
className={classes['sso-logo']} | ||
/> | ||
} | ||
> | ||
Continue with Globus | ||
</Button> | ||
</Stack> | ||
</Stack> | ||
<Box className={classes['separator']} /> | ||
<Typography> | ||
New to KBase? <Link>Sign up</Link> | ||
</Typography> | ||
<Typography> | ||
<Link | ||
href="https://docs.kbase.us/getting-started/sign-up" | ||
target="_blank" | ||
> | ||
Need help logging in? | ||
</Link> | ||
</Typography> | ||
</Stack> | ||
</Paper> | ||
</Stack> | ||
</Container> | ||
); | ||
}; |
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