Skip to content

Commit a055c0c

Browse files
Merge pull request #15 from Typext/feature/register-new-user
finished implement register new user screen
2 parents 28aa3cc + 9d1690c commit a055c0c

File tree

3 files changed

+132
-1
lines changed

3 files changed

+132
-1
lines changed
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
import React from 'react';
2+
import LogoIcon from 'assets/logo.svg';
3+
import Input from 'components/Input/Input';
4+
import Button from 'components/Button/Button';
5+
import StyledRegisterNewUser from './styles';
6+
7+
const RegisterNewUser = () => {
8+
return (
9+
<StyledRegisterNewUser>
10+
<a href="/recovery-password">
11+
<img src={LogoIcon} alt="Typext" />
12+
</a>
13+
14+
<div className="RegisterNewUser">
15+
<div className="Content">
16+
<div className="LeftContent">
17+
<Input
18+
title="Nome completo"
19+
color="var(--black)"
20+
styleWidth="41.875rem"
21+
Type="text"
22+
/>
23+
24+
<Input
25+
title="Título / Cargo"
26+
color="var(--black)"
27+
styleWidth="41.875rem"
28+
Type="text"
29+
/>
30+
31+
<Input
32+
title="Área"
33+
color="var(--black)"
34+
styleWidth="41.875rem"
35+
Type="text"
36+
/>
37+
38+
<Input
39+
title="Empresa"
40+
color="var(--black)"
41+
styleWidth="41.875rem"
42+
Type="text"
43+
/>
44+
</div>
45+
46+
<div className="RightContent">
47+
<Input
48+
title="E-mail"
49+
color="var(--black)"
50+
styleWidth="41.875rem"
51+
Type="text"
52+
/>
53+
54+
<Input
55+
title="Telefone"
56+
color="var(--black)"
57+
styleWidth="41.875rem"
58+
Type="text"
59+
/>
60+
61+
<Input
62+
title="Senha"
63+
color="var(--black)"
64+
styleWidth="41.875rem"
65+
Type="text"
66+
/>
67+
68+
<Input
69+
title="Confirme a senha"
70+
color="var(--black)"
71+
styleWidth="41.875rem"
72+
Type="text"
73+
/>
74+
</div>
75+
</div>
76+
77+
<Button
78+
color="var(--green)"
79+
>
80+
Cadastrar
81+
</Button>
82+
</div>
83+
</StyledRegisterNewUser>
84+
);
85+
};
86+
87+
export default RegisterNewUser;
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import styled from 'styled-components';
2+
3+
const StyledRegisterNewUser = styled.div`
4+
display: flex;
5+
flex-direction: column;
6+
align-items: center;
7+
margin-top: 4.375rem;
8+
9+
a {
10+
width: 18.125rem;
11+
height: 3.125rem;
12+
13+
img {
14+
width: 18.125rem;
15+
height: 3.125rem;
16+
}
17+
}
18+
19+
.RegisterNewUser{
20+
display: flex;
21+
flex-direction: column;
22+
align-items: flex-end;
23+
24+
.Content {
25+
display: grid;
26+
grid-template-columns: 1fr 1fr;
27+
gap: 7.25rem;
28+
29+
margin-top: 8.75rem;
30+
31+
Input {
32+
margin-bottom: 1.25rem;
33+
}
34+
}
35+
36+
Button {
37+
margin-top: 5.625rem;
38+
}
39+
}
40+
`;
41+
42+
export default StyledRegisterNewUser;

src/routes.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import RecoveryPassword from 'pages/RecoveryPassword';
33
import { Switch, Route, BrowserRouter } from 'react-router-dom';
44

55
import NewPassword from 'pages/NewPassword';
6+
import RegisterNewUser from 'pages/RegisterNewUser';
67
import Main from './pages/Main';
78
import Login from './pages/Login';
89
import InviteUsers from './pages/InviteUsers';
@@ -12,9 +13,10 @@ export default function Routes() {
1213
<BrowserRouter>
1314
<Switch>
1415
<Route path="/" exact component={Main} />
15-
<Route path="/recovery-password" exact component={RecoveryPassword} />
1616
<Route path="/new-password" exact component={NewPassword} />
17+
<Route path="/recovery-password" exact component={RecoveryPassword} />
1718
<Route path="/login" exact component={Login} />
19+
<Route path="/register-new-user" exact component={RegisterNewUser} />
1820
<Route path="/invite-users" exact component={InviteUsers} />
1921
</Switch>
2022
</BrowserRouter>

0 commit comments

Comments
 (0)