Skip to content

Commit b726951

Browse files
uwatanabevPhilipeSousa
authored andcommitted
fix: add scroll and improve responsiveness
Implements vertical scrolling on the registration screen and adjusts media queries for better viewing on different computer screen sizes. Also corrects the spacing between role options and the submit button.
1 parent 0fd66d0 commit b726951

File tree

2 files changed

+152
-31
lines changed

2 files changed

+152
-31
lines changed

src/app/register/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// src/app/register/page.tsx
12
import Image from 'next/image'
23
import Link from 'next/link'
34
import styles from './register.module.css'
@@ -35,7 +36,6 @@ export default function RegisterPage() {
3536
<input type='password' id='confirm-password' className={styles.inputField} placeholder='••••••••' />
3637
</div>
3738

38-
{/* Agrupando a lógica de escolha de personagem */}
3939
<div className={styles.adventureChoice}>
4040
<div className={styles.chooseAdventure}>Escolha sua aventura</div>
4141
<div className={styles.roles}>
@@ -70,4 +70,4 @@ export default function RegisterPage() {
7070
</div>
7171
</div>
7272
)
73-
}
73+
}

src/app/register/register.module.css

Lines changed: 150 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* --- Header --- */
21
.header {
32
background: var(--preto-azulado);
43
width: 100%;
@@ -7,6 +6,10 @@
76
color: #fff;
87
display: flex;
98
align-items: center;
9+
position: fixed;
10+
top: 0;
11+
left: 0;
12+
z-index: 1000;
1013
}
1114
.headerTitle {
1215
font-family: 'Cinzel', serif;
@@ -17,19 +20,25 @@
1720
letter-spacing: 1px;
1821
}
1922

20-
/* --- Container principal --- */
23+
.pageContainer {
24+
overflow-y: auto;
25+
height: 100vh;
26+
display: flex;
27+
flex-direction: column;
28+
}
29+
2130
.mainContainer {
2231
background: #DFE0E2;
23-
height: 100vh;
32+
flex-grow: 1;
2433
width: 100%;
2534
display: flex;
2635
align-items: center;
2736
justify-content: center;
2837
padding: 3rem;
2938
box-sizing: border-box;
39+
padding-top: 6rem;
3040
}
3141

32-
/* --- Caixa preta --- */
3342
.blackContainer {
3443
background: var(--preto-azulado);
3544
border-radius: 18px;
@@ -40,11 +49,9 @@
4049
display: flex;
4150
flex-direction: column;
4251
align-items: center;
43-
overflow: visible;
4452
margin-block: 4rem;
4553
}
4654

47-
/* --- FormWrapper --- */
4855
.formWrapper {
4956
max-width: 400px;
5057
width: 100%;
@@ -54,7 +61,6 @@
5461
align-items: stretch;
5562
}
5663

57-
/* --- Inputs --- */
5864
.inputGroup {
5965
margin-bottom: 1rem;
6066
width: 100%;
@@ -76,7 +82,6 @@
7682
font-size: 0.75rem;
7783
}
7884

79-
/* --- Saudação --- */
8085
.greeting {
8186
text-align: center;
8287
font-size: 1.25rem;
@@ -88,7 +93,10 @@
8893
text-transform: uppercase;
8994
}
9095

91-
/* --- Escolha de aventura --- */
96+
.adventureChoice {
97+
margin-bottom: 2rem;
98+
}
99+
92100
.chooseAdventure {
93101
text-align: center;
94102
font-size: 0.7rem;
@@ -133,7 +141,6 @@
133141
text-align: center;
134142
}
135143

136-
/* --- Botão de submit --- */
137144
.submitButton {
138145
font-family: var(--fonte-titulo);
139146
width: 100%;
@@ -152,7 +159,6 @@
152159
color: #000;
153160
}
154161

155-
/* --- Link “Já tem uma conta?” --- */
156162
.AccountNew {
157163
text-align: left;
158164
margin-top: 0.8rem;
@@ -169,43 +175,158 @@
169175
text-decoration: underline;
170176
}
171177

172-
/* --- Responsividade --- */
173-
/* Tablets e small desktops */
174-
@media (max-width: 1024px) {
178+
@media (min-width: 1441px) {
175179
.blackContainer {
176-
max-width: 320px;
177-
margin-block: 3rem;
178-
padding: 40px 12px;
180+
max-width: 450px;
181+
padding: 40px 24px;
179182
}
180183
.greeting {
181184
font-size: 1.8rem;
182185
}
186+
.inputGroup label {
187+
font-size: 0.85rem;
188+
}
189+
.inputField {
190+
font-size: 0.9rem;
191+
padding: 10px;
192+
}
193+
.roleImage {
194+
width: 50px !important;
195+
height: 50px !important;
196+
}
197+
.roleLabel {
198+
font-size: 0.9rem;
199+
}
183200
.submitButton {
184-
padding: 12px 0;
201+
padding: 16px 0;
202+
font-size: 0.9rem;
203+
}
204+
.AccountNew {
205+
font-size: 0.9rem;
185206
}
186207
}
187208

188-
/* Celulares */
189-
@media (max-width: 600px) {
209+
@media (min-width: 769px) and (max-width: 1440px) {
190210
.blackContainer {
191-
max-width: 280px;
192-
margin-block: 2rem;
193-
padding: 30px 8px;
211+
max-width: 380px;
212+
padding: 35px 20px;
194213
}
195214
.greeting {
196-
font-size: 1.6rem;
215+
font-size: 1.5rem;
216+
}
217+
.inputGroup label {
218+
font-size: 0.75rem;
197219
}
198220
.inputField {
199-
padding: 6px;
221+
font-size: 0.8rem;
222+
padding: 9px;
223+
}
224+
.roleImage {
225+
width: 45px !important;
226+
height: 45px !important;
227+
}
228+
.roleLabel {
229+
font-size: 0.85rem;
200230
}
201231
.submitButton {
202-
padding: 10px 0;
232+
padding: 15px 0;
233+
font-size: 0.85rem;
234+
}
235+
.AccountNew {
236+
font-size: 0.8rem;
237+
}
238+
}
239+
240+
@media (max-width: 768px) {
241+
.header {
242+
padding: 0 1rem;
243+
height: 3.5rem;
244+
}
245+
.headerTitle {
246+
font-size: 1.2rem;
247+
}
248+
.mainContainer {
249+
padding: 2rem 1rem;
250+
padding-top: 5.5rem;
251+
}
252+
.blackContainer {
253+
max-width: 300px;
254+
margin-block: 2rem;
255+
padding: 25px 12px;
256+
}
257+
.greeting {
258+
font-size: 1.4rem;
259+
}
260+
.inputGroup {
261+
margin-bottom: 0.8rem;
262+
}
263+
.inputGroup label {
264+
font-size: 0.65rem;
265+
}
266+
.inputField {
267+
padding: 7px;
268+
font-size: 0.7rem;
203269
}
204270
.roles {
205-
gap: 1.5rem;
271+
gap: 0.8rem;
206272
}
207273
.roleImage {
208-
width: 32px !important;
209-
height: 32px !important;
274+
width: 35px !important;
275+
height: 35px !important;
276+
}
277+
.roleLabel {
278+
font-size: 0.75rem;
279+
}
280+
.submitButton {
281+
padding: 12px 0;
282+
font-size: 0.75rem;
283+
}
284+
.AccountNew {
285+
font-size: 0.7rem;
286+
text-align: center;
210287
}
211288
}
289+
290+
@media (max-width: 480px) {
291+
.mainContainer {
292+
padding: 1.5rem 0.5rem;
293+
padding-top: 5rem;
294+
}
295+
.blackContainer {
296+
padding: 20px 10px;
297+
margin-block: 1.5rem;
298+
}
299+
.greeting {
300+
font-size: 1.2rem;
301+
}
302+
.inputGroup {
303+
margin-bottom: 0.7rem;
304+
}
305+
.inputField {
306+
padding: 6px;
307+
font-size: 0.65rem;
308+
}
309+
.roles {
310+
flex-direction: column;
311+
align-items: center;
312+
gap: 0.5rem;
313+
}
314+
.roleOption {
315+
flex-direction: row;
316+
gap: 0.5rem;
317+
}
318+
.roleImage {
319+
width: 30px !important;
320+
height: 30px !important;
321+
}
322+
.roleLabel {
323+
font-size: 0.7rem;
324+
}
325+
.submitButton {
326+
padding: 10px 0;
327+
font-size: 0.7rem;
328+
}
329+
.AccountNew {
330+
font-size: 0.65rem;
331+
}
332+
}

0 commit comments

Comments
 (0)