-
Notifications
You must be signed in to change notification settings - Fork 21
/
index.html
68 lines (61 loc) · 2.73 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Page</title>
<link rel="stylesheet" href="style.css">
<script src="https://kit.fontawesome.com/59052dbbdd.js" crossorigin="anonymous"></script>
</head>
<body>
<header>
<nav id="social-media">
<a href="#" class="facebook"><i class="fa-brands fa-facebook"></i></a>
<a href="#" class="instagram"><i class="fa-brands fa-instagram"></i></a>
<a href="#" class="linkedin"><i class="fa-brands fa-linkedin"></i></a>
<a href="#" class="github"><i class="fa-brands fa-github"></i></a>
<a href="#" class="twitter"><i class="fa-brands fa-twitter"></i></a>
</nav>
</header>
<main>
<div class="hero">
<div class="form-box">
<div class="button-box">
<div id="btn"></div>
<button class="toggle-btn" onclick="login()">Login</button>
<button class="toggle-btn" onclick="register()">Register</button>
</div>
<form id="login" class="input-group">
<input type="text" class="input-id" placeholder="User Id" required>
<input type="password" class="input-id" placeholder="Enter Password" required>
<input type="checkbox" class="check-box"><span>Remember Password</span>
<button type="submit" class="submit-btn">Login</button>
</form>
<form id="register" class="input-group">
<input type="text" class="input-id" placeholder="User Id" required>
<input type="email" class="input-id" placeholder="Email Id" required>
<input type="password" class="input-id" placeholder="Enter Password" required>
<input type="checkbox" class="check-box"><span>I agreed to the terms and conditions</span>
<button type="submit" class="submit-btn">Register</button>
</form>
</div>
</div>
</main>
<script>
var x = document.getElementById("login");
var y = document.getElementById("register");
var z = document.getElementById("btn");
function register() {
x.style.left = "-400px";
y.style.left = "50px";
z.style.left = "110px";
}
function login() {
x.style.left = "50px";
y.style.left = "450px";
z.style.left = "0px";
}
</script>
</body>
</html>