-
Notifications
You must be signed in to change notification settings - Fork 0
/
website.html
148 lines (132 loc) · 4.94 KB
/
website.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!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">
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<link rel="stylesheet" href="style.css">
<title>Sathyabama Institute - NPTEL Course Enrollment | Login & Registration</title>
</head>
<body>
<div class="wrapper">
<nav class="nav">
<div class="nav-logo">
<p>Sathyabama Institute - NPTEL Course Enrollment</p>
</div>
<div class="nav-menu" id="navMenu">
<ul>
<li><a href="website.html" class="link">Home</a></li>
<li><a href="course-enrollment.html" class="link">Course Enrollment</a></li>
</ul>
</div>
<div class="nav-button">
<button class="btn white-btn" id="loginBtn" onclick="login()">Sign In</button>
<button class="btn" id="registerBtn" onclick="register()">Sign Up</button>
</div>
<div class="nav-menu-btn">
<i class="bx bx-menu" onclick="myMenuFunction()"></i>
</div>
</nav>
<!----------------------------- Form box ----------------------------------->
<div class="form-box">
<!------------------- login form -------------------------->
<div class="login-container" id="login">
<div class="top">
<span>Don't have an account? <a href="#" onclick="register()">Sign Up</a></span>
<header>Login</header>
</div>
<div class="input-box">
<input type="text" class="input-field" placeholder="Username or Email">
<i class="bx bx-user"></i>
</div>
<div class="input-box">
<input type="password" class="input-field" placeholder="Password">
<i class="bx bx-lock-alt"></i>
</div>
<div class="input-box">
<input type="submit" class="submit" value="Sign In">
</div>
<div class="two-col">
<div class="one">
<input type="checkbox" id="login-check">
<label for="login-check"> Remember Me</label>
</div>
<div class="two">
<label><a href="#">Forgot password?</a></label>
</div>
</div>
</div>
<!------------------- registration form -------------------------->
<div class="register-container" id="register">
<div class="top">
<span>Have an account? <a href="#" onclick="login()">Login</a></span>
<header>Sign Up</header>
</div>
<div class="two-forms">
<div class="input-box">
<input type="text" class="input-field" placeholder="Firstname">
<i class="bx bx-user"></i>
</div>
<div class="input-box">
<input type="text" class="input-field" placeholder="Lastname">
<i class="bx bx-user"></i>
</div>
</div>
<div class="input-box">
<input type="text" class="input-field" placeholder="Email">
<i class="bx bx-envelope"></i>
</div>
<div class="input-box">
<input type="password" class="input-field" placeholder="Password">
<i class="bx bx-lock-alt"></i>
</div>
<div class="input-box">
<input type="submit" class="submit" value="Register">
</div>
<div class="two-col">
<div class="one">
<input type="checkbox" id="register-check">
<label for="register-check"> Remember Me</label>
</div>
<div class="two">
<label><a href="#">Terms & conditions</a></label>
</div>
</div>
</div>
</div>
</div>
<script>
function myMenuFunction() {
var i = document.getElementById("navMenu");
if(i.className === "nav-menu") {
i.className += " responsive";
} else {
i.className = "nav-menu";
}
}
</script>
<script>
var a = document.getElementById("loginBtn");
var b = document.getElementById("registerBtn");
var x = document.getElementById("login");
var y = document.getElementById("register");
function login() {
x.style.left = "4px";
y.style.right = "-520px";
a.className += " white-btn";
b.className = "btn";
x.style.opacity = 1;
y.style.opacity = 0;
}
function register() {
x.style.left = "-510px";
y.style.right = "5px";
a.className = "btn";
b.className += " white-btn";
x.style.opacity = 0;
y.style.opacity = 1;
}
</script>
</body>
</html>