Skip to content

Commit 0084ab3

Browse files
Merge pull request #11 from Typext/feature/login-screen
Feature/login screen
2 parents 1319aa7 + c252240 commit 0084ab3

File tree

4 files changed

+145
-0
lines changed

4 files changed

+145
-0
lines changed

src/assets/logo.svg

Lines changed: 5 additions & 0 deletions
Loading

src/pages/Login/index.tsx

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import React from 'react';
2+
3+
import Input from 'components/Input/Input';
4+
import Button from 'components/Button/Button';
5+
import Logo from 'assets/logo.svg';
6+
import Content from './styles';
7+
8+
function Login() {
9+
return (
10+
<>
11+
<Content>
12+
13+
<div className="Login">
14+
15+
<a href="/#">
16+
<img src={Logo} alt="Logo" />
17+
</a>
18+
19+
<div className="EmailPassword">
20+
<Input
21+
title="E-mail"
22+
color="black"
23+
Size="large"
24+
styleWidth="large"
25+
/>
26+
27+
<Input
28+
title="Senha"
29+
color="black"
30+
Size="large"
31+
styleWidth="large"
32+
/>
33+
34+
</div>
35+
36+
<div className="LoginPassForgot">
37+
<Button
38+
color="var(--black)"
39+
colorText="white"
40+
size="23.75rem"
41+
>
42+
Login
43+
44+
</Button>
45+
46+
<a href="/recovery-password">
47+
Esqueceu a senha?
48+
{' '}
49+
<strong> Clique aqui.</strong>
50+
</a>
51+
52+
</div>
53+
54+
</div>
55+
56+
</Content>
57+
</>
58+
);
59+
}
60+
61+
export default Login;

src/pages/Login/styles.ts

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
import styled from 'styled-components';
2+
3+
const Content = styled.div`
4+
5+
display: flex;
6+
justify-content: center;
7+
8+
margin-top: 4.375rem;
9+
10+
11+
.Login {
12+
13+
display: flex;
14+
align-items: center;
15+
justify-content: center;
16+
flex-direction: column;
17+
18+
19+
a {
20+
width: 18.125rem;
21+
height: 3.125rem;
22+
23+
img {
24+
width: 18.125rem;
25+
height: 3.125rem;
26+
}
27+
}
28+
29+
.EmailPassword {
30+
31+
margin-top: 13.25rem;
32+
33+
display: flex;
34+
flex-direction: column;
35+
align-items: flex-start;
36+
37+
Input {
38+
margin-bottom: 2rem;
39+
}
40+
41+
42+
}
43+
44+
.LoginPassForgot {
45+
46+
margin-top: 4rem;
47+
width: 100%;
48+
49+
display: flex;
50+
align-items: center;
51+
justify-content: space-between;
52+
53+
Button {
54+
width: 14.063rem;
55+
}
56+
57+
a {
58+
display: flex;
59+
align-items: center;
60+
color: var(--red-pink);
61+
}
62+
63+
strong {
64+
margin-left: 0.2rem;
65+
}
66+
67+
}
68+
69+
70+
71+
}
72+
73+
74+
75+
`;
76+
77+
export default Content;

src/routes.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import React from 'react';
22
import { Switch, Route, BrowserRouter } from 'react-router-dom';
33

44
import Main from './pages/Main';
5+
import Login from './pages/Login';
56

67
export default function Routes() {
78
return (
89
<BrowserRouter>
910
<Switch>
1011
<Route path="/" exact component={Main} />
12+
<Route path="/login" exact component={Login} />
1113
</Switch>
1214
</BrowserRouter>
1315
);

0 commit comments

Comments
 (0)