Skip to content

Commit 03d87bc

Browse files
authored
Merge pull request #10 from amandapolari/configuring-notice-of-entry
Configuring notice of entry
2 parents ec3680a + 654851e commit 03d87bc

File tree

7 files changed

+5
-108
lines changed

7 files changed

+5
-108
lines changed

labeddit/src/components/Card/syled.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ export const ContainerButtons = styled.div`
5454
display: grid;
5555
grid-template-columns: 1fr 1fr 1fr 1fr;
5656
grid-template-rows: 7vh 1fr;
57-
58-
div {
59-
/* border: 1px solid red; */
60-
}
6157
`;
6258

6359
export const ImageComment = styled.img`

labeddit/src/components/Notice/styled.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,14 @@ import styled from 'styled-components';
22

33
export const NoticeContainerComponent = styled.div`
44
display: flex;
5-
/* flex-direction: column; */
65
align-items: center;
76
justify-content: center;
87
padding: 1rem;
9-
/* width: 80vw; */
108
height: 9vh;
11-
/* top: 25vh;
12-
position: absolute; */
13-
/* position: fixed; */
14-
/* border: red 2px solid; */
159
16-
/* Para telas maiores que 1200px */
1710
@media (min-width: 1200px) {
1811
width: 100vw;
19-
/* border: red 2px solid; */
2012
padding: 0;
2113
margin: 0;
22-
/* width: 90vw; */
2314
}
2415
`;
25-
26-
// export const Text = styled.p``;

labeddit/src/contexts/GlobalState.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const GlobalState = ({ children }) => {
1818
const [editingContent, setEditingContent] = useState('');
1919
const [idPostMessageError, setIdPostMessageError] = useState('');
2020
const [isErrorPage, setIsErrorPage] = useState(false);
21-
2221
const [isLoading, setIsLoading] = useState(false);
2322

2423
const handleEdit = async (itemId, editFunction) => {

labeddit/src/pages/LoginPage/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ export const LoginPage = () => {
7575
}
7676
} catch (error) {
7777
setIsLoading(false);
78-
// setIsError(true);
7978
}
8079
};
8180

@@ -100,6 +99,7 @@ export const LoginPage = () => {
10099
id='outlined-adornment-email'
101100
type='email'
102101
name='email'
102+
required
103103
value={form.email}
104104
onChange={onChange}
105105
endAdornment={
@@ -119,6 +119,7 @@ export const LoginPage = () => {
119119
id='outlined-adornment-password'
120120
type={showPassword ? 'text' : 'password'}
121121
name='password'
122+
required
122123
value={form.password}
123124
onChange={onChange}
124125
endAdornment={

labeddit/src/pages/LoginPage/syled.js

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,12 @@
11
import styled from 'styled-components';
22
import { theme } from '../../styles/index';
33

4-
/* RESPONSIVIDADE:
5-
6-
@media (min-width: 375px) {
7-
8-
}
9-
10-
@media (min-width: 769px) {
11-
12-
}
13-
14-
@media (min-width: 1024px) {
15-
16-
}
17-
18-
@media (min-width: 1200px) {
19-
20-
}
21-
22-
23-
Para telas maiores que 1200px
24-
@media (min-width: 1200px) {
25-
26-
}
27-
*/
28-
294
export const ContainerPageLogin = styled.div`
305
padding: 1.3rem;
316
background: ${theme.palette.white[1]};
32-
/* height: 94.5vh; */
337
display: flex;
348
flex-direction: column;
359
align-items: center;
36-
37-
/* @media (min-width: 375px) {
38-
height: 94.4vh;
39-
}
40-
41-
@media (min-width: 769px) {
42-
height: 92.6vh;
43-
}
44-
45-
@media (min-width: 1024px) {
46-
height: 92.6vh;
47-
}
48-
49-
@media (min-width: 1200px) {
50-
} */
5110
`;
5211

5312
export const SubtitleLogin = styled.h2`
@@ -76,12 +35,6 @@ export const ContainerLogoAndTitle = styled.div`
7635
justify-content: center;
7736
font-size: 1rem;
7837
79-
@media (min-width: 769px) {
80-
/* border: red solid 7px; */
81-
/* font-size: 1rem; */
82-
/* padding: 3rem 3rem 1rem 3rem; */
83-
}
84-
8538
@media (min-width: 1024px) {
8639
font-size: 1.3rem;
8740
}
@@ -95,9 +48,7 @@ export const ImageLogo = styled.img`
9548
export const ContainerContentLogin = styled.div`
9649
@media (min-width: 1200px) {
9750
form {
98-
/* height: 92.6vh; */
9951
width: 40vw;
100-
/* margin: 0 auto; */
10152
}
10253
}
10354
`;
@@ -108,9 +59,6 @@ export const ContainerForms = styled.div`
10859
align-items: center;
10960
justify-content: center;
11061
padding: 1rem;
111-
/* border: red solid 7px; */
112-
/* margin-top: 10vh; */
113-
/* margin-top: 8vh; */
11462
11563
form {
11664
display: flex;
@@ -119,22 +67,6 @@ export const ContainerForms = styled.div`
11967
justify-content: center;
12068
}
12169
122-
@media (min-width: 375px) {
123-
/* border: red solid 7px; */
124-
/* margin-top: 3vh; */
125-
}
126-
127-
@media (min-width: 769px) {
128-
}
129-
130-
@media (min-width: 1024px) {
131-
}
132-
133-
@media (min-width: 1200px) {
134-
/* border: blue solid 2px; */
135-
}
136-
137-
/* === */
13870
@media (min-width: 769px) {
13971
margin-top: 2vh;
14072
}
@@ -159,7 +91,6 @@ export const ButtonLoginPage = styled.button`
15991
16092
@media (min-width: 1200px) {
16193
width: 40vw;
162-
/* border: solid red 1px; */
16394
}
16495
`;
16596

@@ -176,7 +107,6 @@ export const ButtonCreateAccount = styled.button`
176107
177108
@media (min-width: 1200px) {
178109
width: 40vw;
179-
/* border: solid red 1px; */
180110
}
181111
`;
182112

labeddit/src/pages/SignupPage/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ export const SignupPage = () => {
162162
type='text'
163163
label='Apelido'
164164
name='nickname'
165+
required
165166
value={form.nickname}
166167
onChange={onChange}
167168
/>
@@ -178,6 +179,7 @@ export const SignupPage = () => {
178179
type='email'
179180
label='E-mail'
180181
name='email'
182+
required
181183
value={form.email}
182184
onChange={onChange}
183185
/>
@@ -193,6 +195,7 @@ export const SignupPage = () => {
193195
id='outlined-adornment-password'
194196
type={showPassword ? 'text' : 'password'}
195197
name='password'
198+
required
196199
value={form.password}
197200
onChange={onChange}
198201
endAdornment={

labeddit/src/pages/SignupPage/syled.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,14 @@ import styled from 'styled-components';
22
import { theme } from '../../styles';
33

44
export const ContainerPageSignup = styled.div`
5-
/* height: 100vh; */
65
background: ${theme.palette.white[1]};
76
`;
87

98
export const ContainerContentSignup = styled.div`
10-
/* === */
119
padding: 0.3rem;
12-
/* background: ${theme.palette.white[1]}; */
13-
/* height: 94.5vh; */
1410
display: flex;
1511
flex-direction: column;
1612
align-items: center;
17-
/* === */
18-
19-
/* padding: 1rem; */
2013
2114
@media (min-width: 769px) {
2215
display: flex;
@@ -26,7 +19,6 @@ export const ContainerContentSignup = styled.div`
2619
margin: 0 auto;
2720
2821
form {
29-
/* height: 92.6vh; */
3022
width: 50vw;
3123
margin: 0 auto;
3224
}
@@ -40,17 +32,11 @@ export const TextApresentation = styled.p`
4032
align-self: center;
4133
margin-bottom: 3.5rem;
4234
justify-content: center;
43-
/* text-align: left; */
44-
/* margin-bottom: 10rem; */
45-
/* margin-bottom: 9.5rem; */
4635
4736
@media (min-width: 769px) {
4837
width: 100%;
4938
padding: 1rem;
50-
/* margin-left: 1rem; */
51-
/* margin-bottom: 0.1rem; */
5239
display: flex;
53-
/* justify-content: left; */
5440
}
5541
5642
@media (min-width: 1024px) {
@@ -73,11 +59,6 @@ export const ContainerFormsSignup = styled.div`
7359
7460
@media (min-width: 769px) {
7561
width: 100%;
76-
form {
77-
button {
78-
/* width: 91vh; */
79-
}
80-
}
8162
}
8263
8364
@media (min-width: 1200px) {
@@ -120,10 +101,8 @@ export const BtnCreateAccount = styled.button`
120101
font-family: 'Noto Sans';
121102
font-weight: 700;
122103
123-
/* border: solid red 2px; */
124104
@media (min-width: 1200px) {
125105
width: 40vw;
126-
/* border: solid red 1px; */
127106
}
128107
`;
129108

0 commit comments

Comments
 (0)