-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsigin.html
68 lines (58 loc) · 2.33 KB
/
sigin.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
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign In</title>
<link rel="stylesheet" href="signin.css">
<script src="https://kit.fontawesome.com/f2c232dbd1.js" crossorigin="anonymous"></script>
<!-- <script src="https://kit.fontawesome.com/f2c232dbd1.js" crossorigin="anonymous"></script> -->
</head>
<body>
<div class="container">
<div class="form-box">
<h1 id="title">Sign Up</h1>
<form>
<div class="input-group">
<div class="input-field" id="nameField">
<i class="fa-solid fa-user"></i>
<input type="text" placeholder="Name">
</div>
<div class="input-field">
<i class="fa-solid fa-envelope"></i>
<input type="email" placeholder="Email">
</div>
<div class="input-field">
<i class="fa-solid fa-lock"></i>
<input type="Password" placeholder="Password">
</div>
<p>
Lost password <a href="#" > Click Here</a>
</p>
</div>
<div class="btn-field">
<button type="button" id="signupBtn">Sign up</button>
<button type="button" class="disable" id="signInBtn">Sign in</button>
</div>
</form>
</div>
</div>
<script>
let signupBtn= document.getElementById("signupBtn");
let nameField= document.getElementById("nameField");
let signInBtn= document.getElementById("signInBtn");
let title = document.getElementById("title");
signInBtn.onclick = function(){
nameField.style.maxHeight = "0";
title.innerHTML = "Sign In";
signupBtn.classList.add("disable");
signInBtn.classList.remove("disable");
}
signupBtn.onclick = function(){
nameField.style.maxHeight = "50px";
title.innerHTML = "Sign Up";
signupBtn.classList.remove("disable");
signInBtn.classList.add("disable");
}
</script>
</body>
</html>