Skip to content

Commit

Permalink
login styling fix (#492)
Browse files Browse the repository at this point in the history
* login styling fix

* color fix
  • Loading branch information
Ladvace authored May 22, 2020
1 parent 08214f8 commit 413899b
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions src/app/desktop/views/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ipcRenderer } from 'electron';
import styled from 'styled-components';
import { Transition } from 'react-transition-group';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faArrowAltCircleRight } from '@fortawesome/free-solid-svg-icons';
import { faArrowRight } from '@fortawesome/free-solid-svg-icons';
import { Input, Button } from 'antd';
import { useKey } from 'rooks';
import { login } from '../../../common/reducers/actions';
Expand Down Expand Up @@ -57,12 +57,18 @@ const LeftSide = styled.div`
& div {
margin: 10px 0;
}
p {
margin-top: 1em;
color: ${props => props.theme.palette.text.third};
}
`;

const Form = styled.div`
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
margin: 40px 0 !important;
`;

const Background = styled.div`
Expand Down Expand Up @@ -95,12 +101,19 @@ const Footer = styled.div`
bottom: 0;
display: flex;
justify-content: space-between;
align-items: center;
align-items: flex-end;
width: calc(100% - 80px);
`;

const FooterLinks = styled.div`
font-size: 0.75rem;
margin: 0 !important;
a {
color: ${props => props.theme.palette.text.third};
}
a:hover {
color: ${props => props.theme.palette.text.secondary};
}
`;

const Loading = styled.div`
Expand Down Expand Up @@ -159,7 +172,7 @@ const Login = () => {
<Header>
<HorizontalLogo size={200} />
</Header>
Sign in with your Mojang Account
<p>Sign in with your Mojang Account</p>
<Form>
<div>
<Input
Expand All @@ -180,12 +193,12 @@ const Login = () => {
<LoginFailMessage>Invalid email or password. </LoginFailMessage>
)}
<LoginButton color="primary" onClick={authenticate}>
SIGN IN
Sign In
<FontAwesomeIcon
css={`
margin-left: 6px;
`}
icon={faArrowAltCircleRight}
icon={faArrowRight}
/>
</LoginButton>
</Form>
Expand Down

0 comments on commit 413899b

Please sign in to comment.