File tree Expand file tree Collapse file tree 4 files changed +145
-0
lines changed Expand file tree Collapse file tree 4 files changed +145
-0
lines changed Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change @@ -2,12 +2,14 @@ import React from 'react';
22import { Switch , Route , BrowserRouter } from 'react-router-dom' ;
33
44import Main from './pages/Main' ;
5+ import Login from './pages/Login' ;
56
67export 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 ) ;
You can’t perform that action at this time.
0 commit comments