Skip to content

Commit 14c7bc7

Browse files
Merge pull request #12 from Typext/feature/implementing-recovery-login-screen
Feature/implementing recovery login screen
2 parents 0084ab3 + b71b9cd commit 14c7bc7

File tree

10 files changed

+193
-25
lines changed

10 files changed

+193
-25
lines changed

Sprint 1/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ Nele você poderá criar atas e exportá-las como PDF. Uma amostra do que nossa
1515
2º - A interface gráfica completa da ferramenta pode ser vista no nosso protótipo visual, em [nosso Figma.](https://www.figma.com/file/Zc5xu1dvWulkhRkqGWU8bS/Typext-Novo-Prot%C3%B3tipo?node-id=0%3A1)
1616

1717
3º - Nossa primeira versão da documentação, contemplando todos os casos de uso e requisitos funcionais, é acessada [clicando aqui.](https://github.com/MatheusCampos-450/typext-frontend/blob/main/docs/Documenta%C3%A7%C3%A3o%20geral%20-%20Casos%20de%20uso%2C%20requisitos%20e%20diagrama%20de%20modelo.pdf)
18+
19+
4º - Apresentação realizada para empresa cliente: [Acesse aqui.](https://www.canva.com/design/DAEaLlaUFec/Sa-mv3LFWQdluoEd9wFDUw/view?utm_content=DAEaLlaUFec&utm_campaign=designshare&utm_medium=link&utm_source=sharebutton)

src/App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import React from 'react';
22

3-
import Header from './components/Header/Header';
43
import Routes from './routes';
54
import GlobalStyle from './styles/global';
65

76
function App() {
87
return (
98
<>
10-
<Header />
119
<Routes />
1210
<GlobalStyle />
1311
</>

src/contexts/MainContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import React, { createContext } from 'react';
22

3-
export const MainContext = createContext({});
4-
53
interface IMainContext {
64
children: React.ReactNode;
75
}
86

7+
export const MainContext = createContext({});
8+
99
export const MainProvider: React.FC<IMainContext> = ({ children }: IMainContext) => {
1010
return (
1111
<MainContext.Provider value="teste">

src/pages/Main/index.tsx

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { useState } from 'react';
22

33
import { MainProvider } from 'contexts/MainContext';
44

5+
import Header from 'components/Header/Header';
56
import Initial from './components/Initial/Initial';
67
import ProjectInformation from './components/ProjectInformation/ProjectInformation';
78
import OptionButtons from './components/OptionButtons';
@@ -53,30 +54,33 @@ const Main = () => {
5354
};
5455

5556
return (
56-
<MainProvider>
57-
{showMinute && (
58-
<MinuteViewer setShowMinute={setShowMinute} minute={minute} />
59-
)}
57+
<>
58+
<Header />
59+
<MainProvider>
60+
{showMinute && (
61+
<MinuteViewer setShowMinute={setShowMinute} minute={minute} />
62+
)}
6063

61-
{showSchedule && <ScheduleModal setShowSchedule={setShowSchedule} />}
64+
{showSchedule && <ScheduleModal setShowSchedule={setShowSchedule} />}
6265

63-
<Container>
64-
<Initial setAddressAndHour={setAddressAndHour} />
65-
<ProjectInformation setProjectInfo={setProjectInfo} />
66-
<Topics setTopics={setTopics} topics={topics} />
66+
<Container>
67+
<Initial setAddressAndHour={setAddressAndHour} />
68+
<ProjectInformation setProjectInfo={setProjectInfo} />
69+
<Topics setTopics={setTopics} topics={topics} />
6770

68-
<Subjects subjects={subjects} setSubjects={setSubjects} />
69-
<Distributions
70-
setDistributions={setDistributions}
71-
distributions={distributions}
72-
/>
73-
<OptionButtons
74-
setShowMinute={setShowMinute}
75-
handleGenerateMinute={handleGenerateMinute}
76-
setShowSchedule={setShowSchedule}
77-
/>
78-
</Container>
79-
</MainProvider>
71+
<Subjects subjects={subjects} setSubjects={setSubjects} />
72+
<Distributions
73+
setDistributions={setDistributions}
74+
distributions={distributions}
75+
/>
76+
<OptionButtons
77+
setShowMinute={setShowMinute}
78+
handleGenerateMinute={handleGenerateMinute}
79+
setShowSchedule={setShowSchedule}
80+
/>
81+
</Container>
82+
</MainProvider>
83+
</>
8084
);
8185
};
8286

src/pages/NewPassword/index.tsx

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
7+
import StyledNewPassword from './styles';
8+
9+
const index = () => {
10+
return (
11+
<StyledNewPassword>
12+
<img src={Logo} alt="Logo Typext" />
13+
14+
<div className="NewPassword">
15+
<Input
16+
title="Inserir nova senha"
17+
color="var(--black)"
18+
styleWidth="41.875rem"
19+
Type="text"
20+
/>
21+
22+
<Input
23+
title="Confirme nova senha"
24+
color="var(--black)"
25+
styleWidth="41.875rem"
26+
Type="text"
27+
/>
28+
29+
<Button
30+
color="var(--green)"
31+
>
32+
Atualizar
33+
</Button>
34+
35+
</div>
36+
</StyledNewPassword>
37+
38+
);
39+
};
40+
41+
export default index;

src/pages/NewPassword/styles.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import styled from 'styled-components';
2+
3+
export const StyledNewPassword = styled.div`
4+
display: flex;
5+
flex-direction: column;
6+
align-items: center;
7+
justify-content: center;
8+
9+
margin-top: 4.375rem;
10+
11+
.NewPassword {
12+
display: flex;
13+
align-items: center;
14+
justify-content: center;
15+
flex-direction: column;
16+
17+
margin-top: 13.25rem;
18+
19+
align-items: flex-end;
20+
21+
Input {
22+
margin-bottom: 2rem;
23+
}
24+
25+
Button {
26+
margin-top: 4rem;
27+
width: 14.063rem;
28+
}
29+
}
30+
31+
`;
32+
33+
export default StyledNewPassword;
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import React from 'react';
2+
3+
import Button from 'components/Button/Button';
4+
import Input from 'components/Input/Input';
5+
6+
import LogoIcon from 'assets/logo.svg';
7+
8+
import StyledRecoveryPassword from './styles';
9+
10+
const RecoveryPassword = () => {
11+
return (
12+
<>
13+
<StyledRecoveryPassword>
14+
<div className="RecoveryPassword">
15+
<a href="/recovery-password">
16+
<img src={LogoIcon} alt="Typext" />
17+
</a>
18+
19+
<div className="Email">
20+
<Input
21+
title="Confirme seu e-mail"
22+
color="var(--black)"
23+
styleWidth="41.875rem"
24+
Type="text"
25+
/>
26+
27+
<Button
28+
color="var(--black)"
29+
>
30+
Próximo
31+
</Button>
32+
</div>
33+
</div>
34+
</StyledRecoveryPassword>
35+
</>
36+
);
37+
};
38+
39+
export default RecoveryPassword;
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import styled from 'styled-components';
2+
3+
const StyledRecoveryPassword = styled.div`
4+
display: flex;
5+
justify-content: center;
6+
margin-top: 4.375rem;
7+
8+
.RecoveryPassword {
9+
display: flex;
10+
flex-direction: column;
11+
align-items: center;
12+
justify-content: center;
13+
14+
max-width: 102.125rem;
15+
width: 100%;
16+
17+
a {
18+
width: 18.125rem;
19+
height: 3.125rem;
20+
21+
img {
22+
width: 18.125rem;
23+
height: 3.125rem;
24+
}
25+
}
26+
27+
.Email {
28+
display: flex;
29+
flex-direction: column;
30+
align-items: flex-end;
31+
justify-content: center;
32+
33+
width: 41.875rem;
34+
35+
margin-top: 16rem;
36+
37+
Button {
38+
margin-top: 9.688rem;
39+
}
40+
}
41+
}
42+
`;
43+
44+
export default StyledRecoveryPassword;

src/routes.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import RecoveryPassword from 'pages/RecoveryPassword';
12
import React from 'react';
23
import { Switch, Route, BrowserRouter } from 'react-router-dom';
34

5+
import NewPassword from 'pages/NewPassword';
46
import Main from './pages/Main';
57
import Login from './pages/Login';
68

@@ -9,7 +11,12 @@ export default function Routes() {
911
<BrowserRouter>
1012
<Switch>
1113
<Route path="/" exact component={Main} />
14+
<<<<<<< HEAD
15+
<Route path="/recovery-password" exact component={RecoveryPassword} />
16+
<Route path="/new-password" exact component={NewPassword} />
17+
=======
1218
<Route path="/login" exact component={Login} />
19+
>>>>>>> 0084ab32ef450edc611b3d1fe3d1c34acd8d2b3c
1320
</Switch>
1421
</BrowserRouter>
1522
);

0 commit comments

Comments
 (0)