-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
95 lines (90 loc) · 3.31 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="icon"
href="https://cdn.glitch.global/5a63e0b3-6170-4adc-8c67-fc38555a0e69/Logo%20TT.svg?v=1721306621301"
/>
<title>TTwitter</title>
<link rel="stylesheet" href="/style.css" />
</head>
<body>
<div class="wrapper">
<main class="cadastro">
<h2 id="cadastroTitle">
Cadastro
</h2>
<div class="box" id="boxNome">
<label class="boxTitle">
Nome
</label>
<input class="inputCadastro" type="text" placeholder="nome de usuário">
</div>
<div class="box" id="boxEmail">
<label class="boxTitle">
Email
</label>
<input class="inputCadastro" type="email" placeholder="[email protected]">
</div>
<div class="box" id="boxDataNasc">
<label class="boxTitle">
Data de Nascimento
</label>
<input class="inputCadastro" type="date">
</div>
<div class="box" id="boxSenha">
<label class="boxTitle">
Senha
</label>
<div class="inputContainer">
<input class="inputCadastro" type="password" placeholder="••••••••">
<img class="visualizacaoSenha" src="https://cdn.glitch.global/5a63e0b3-6170-4adc-8c67-fc38555a0e69/Vector.svg?v=1721312677770" alt="Revelar/Esconder Senha" title="Revelar/Esconder Senha">
</div>
</div>
<div class="box" id="boxConfirmarSenha">
<label class="boxTitle">
Confirmar Senha
</label>
<div class="inputContainer">
<input class="inputCadastro" type="password" placeholder="••••••••">
<img class="visualizacaoSenha" src="https://cdn.glitch.global/5a63e0b3-6170-4adc-8c67-fc38555a0e69/Vector.svg?v=1721312677770" alt="Revelar/Esconder Senha" title="Revelar/Esconder Senha">
</div>
</div>
<div class="inputTermos">
<input type="checkbox">
<p id="textTermos">
Li e estou de acordo com os <a class="termos" href="https://x.com/pt/tos" target="_blank">Termos</a> e <a class="termos" href="https://x.com/pt/tos" target="_blank">Condições de Uso</a>.
</p>
</div>
<button type="button" id="cadastrarButton">
<p id="cadastrarButtonText">
Cadastrar
</p>
</button>
<a id="fazerLogin" href="login.html">Fazer Login</a>
</main>
<img
id="logoCadastro"
src="https://cdn.glitch.global/5a63e0b3-6170-4adc-8c67-fc38555a0e69/Logo%20TT.svg?v=1721306621301"
alt="Logo do TTwitter"
/>
</div>
<script>
document.querySelectorAll('.visualizacaoSenha').forEach(item => {
item.addEventListener('click', function() {
const input = this.previousElementSibling;
if (input.type === "password") {
input.type = "text";
} else {
input.type = "password";
}
});
});
document.getElementById('cadastrarButton').addEventListener('click', function() {
window.location.href = 'login.html';
});
</script>
</body>
</html>