-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2.html
More file actions
72 lines (60 loc) · 2.24 KB
/
Copy path2.html
File metadata and controls
72 lines (60 loc) · 2.24 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Professional Glassmorphism Login</title>
<link href="https://fonts.googleapis.com/css2?
family=Poppins:wght@300;400;500; 600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax /libs/font-awesome/6.0.0/css/all.min.css" />
<link rel="stylesheet" href="css\2.css" />
</head>
<body>
<div class="login-box">
<h2>Create Account</h2>
<form id="loginForm">
<div class="input-group">
<i class="fas fa-user"></i>
<input type="text" id="Email" required />
<label>Email</label>
</div>
<div class="input-group">
<i class="fas fa-user"></i>
<input type="text" id="Username" required />
<label>Username</label>
</div>
<div class="input-group">
<i class="fas fa-lock"></i>
<input type="password" id="Password" required />
<label>Password</label>
</div>
<button type="submit" class="login-btn" id="submitBtn">
Create Account
</button>
<p class="signup-link">
Already have an account? <a href="index.html">Sign in</a>
</p>
</form>
</div>
<script src="js\index.js"></script>
<script>
function entrar() {
let email = document.getElementById("email").value;
let senha = document.getElementById("Password").value;
let nome = document.getElementById("Username").value;
let erro = document.getElementById("erro");
if (email == "" || senha == "") {
erro.innerHTML = "Preencha os campos!";
return;
}
// salva os dados
localStorage.setItem("email", email);
localStorage.setItem("senha", senha);
localStorage.setItem("nome", nome);
// vai para outra página
window.location.href =
"C:\\Users\\llmar\\Downloads\\Nova pasta\\3.html";
}
</script>
</body>
</html>