Skip to content

Commit c304c66

Browse files
authored
Merge pull request #7 from fga-eps-mds/feature/#28-creation-of-the-registration-screen
Fiz as alterações necessárias, colocando a responsividade e o scroll.
2 parents 4187cba + 6935976 commit c304c66

File tree

7 files changed

+418
-3
lines changed

7 files changed

+418
-3
lines changed

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"devDependencies": {
1919
"@eslint/eslintrc": "^3",
20+
"@types/estree": "^1.0.8",
2021
"@types/node": "^20",
2122
"@types/react": "^19",
2223
"@types/react-dom": "^19",

public/images/d20.png

44.3 KB
Loading

public/jogador-icon.svg

Lines changed: 4 additions & 0 deletions
Loading

public/mestre-icon.svg

Lines changed: 4 additions & 0 deletions
Loading

src/app/register/page.tsx

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
// src/app/register/page.tsx
2+
import Image from 'next/image'
3+
import Link from 'next/link'
4+
import styles from './register.module.css'
5+
6+
export default function RegisterPage() {
7+
return (
8+
<div className={styles.pageContainer}>
9+
<div className={styles.header}>
10+
<Image src='/images/d20.png' alt='EasyCrit Logo' width={25} height={25} className={styles.logo} />
11+
<span className={styles.headerTitle}>EasyCrit</span>
12+
</div>
13+
14+
<div className={styles.mainContainer}>
15+
<div className={styles.blackContainer}>
16+
<form className={styles.formWrapper}>
17+
<h2 className={styles.greeting}>Saudações, aventureiro!</h2>
18+
19+
<div className={styles.inputGroup}>
20+
<label htmlFor='email'>Email</label>
21+
<input type='email' id='email' className={styles.inputField} placeholder='example@email.com' />
22+
</div>
23+
24+
<div className={styles.inputGroup}>
25+
<label htmlFor='nickname'>Apelido</label>
26+
<input type='text' id='nickname' className={styles.inputField} placeholder='Seu Apelido' />
27+
</div>
28+
29+
<div className={styles.inputGroup}>
30+
<label htmlFor='password'>Senha</label>
31+
<input type='password' id='password' className={styles.inputField} placeholder='••••••••' />
32+
</div>
33+
34+
<div className={styles.inputGroup}>
35+
<label htmlFor='confirm-password'>Confirmar Senha</label>
36+
<input type='password' id='confirm-password' className={styles.inputField} placeholder='••••••••' />
37+
</div>
38+
39+
<div className={styles.adventureChoice}>
40+
<div className={styles.chooseAdventure}>Escolha sua aventura</div>
41+
<div className={styles.roles}>
42+
<label className={styles.roleOption}>
43+
<input type='radio' name='role' value='master' className={styles.radioInput} defaultChecked />
44+
<Image
45+
src='/mestre-icon.svg'
46+
alt='Dungeon Master'
47+
width={40}
48+
height={40}
49+
className={styles.roleImage}
50+
/>
51+
<span className={styles.roleLabel}>Mestre</span>
52+
</label>
53+
<label className={styles.roleOption}>
54+
<input type='radio' name='role' value='Player' className={styles.radioInput} />
55+
<Image src='/jogador-icon.svg' alt='Player' width={40} height={40} className={styles.roleImage} />
56+
<span className={styles.roleLabel}>Jogador</span>
57+
</label>
58+
</div>
59+
</div>
60+
61+
<button type='submit' className={styles.submitButton}>
62+
CADASTRAR-SE
63+
</button>
64+
65+
<p className={styles.AccountNew}>
66+
<Link href='/login'>Já tem uma conta?</Link>
67+
</p>
68+
</form>
69+
</div>
70+
</div>
71+
</div>
72+
)
73+
}

0 commit comments

Comments
 (0)