-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
101 lines (84 loc) · 3.17 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
96
97
98
99
100
101
<!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-Form</title>
<style>
body {
background-color: rgb(197, 202, 247);
}
.container {
width: 25%;
background-color: rgb(210, 183, 241);
display: flex;
flex-direction: column;
padding: 50px;
border-radius: 20px;
box-shadow: 0 0 20px rgb(237, 12, 245);
margin: auto;
margin-top: 14%;
}
.input-field {
width: 95%;
padding: 7px;
border-radius: 10px;
cursor: pointer;
transition: all 0.5s ease;
}
.input-field:hover {
border: none;
box-shadow: 0px 0 30px rgb(11, 3, 54);
}
.register {
border-radius: 10px;
background-color: antiquewhite;
margin: auto;
font-size: 15px;
transition: all 0.5s ease-in-out;
}
.register:hover {
font-size: 16px;
box-shadow: 0 0 20px rgb(252, 6, 6);
}
</style>
</head>
<body>
<div class="container">
<input type="text" id="username" name="username" class="input-field" placeholder="Enter username"><br>
<input type="text" id="full-name" name="full-name" class="input-field" placeholder="Enter Name "><br>
<input type="email" id="email" name="email" class="input-field" placeholder="Enter email"><br>
<input type="password" id="password" name="password" class="input-field" placeholder="Enter password"><br>
<input type="password" id="confirm-password" name="confirm-password" class="input-field"
placeholder="Confirm password"><br>
<select name="branch" id="branch" class="input-field">
<option value="">Select Branch</option>
<option value="CE">CE</option>
<option value="IT">IT</option>
<option value="ETC">E&TC</option>
<option value="EE">EE</option>
</select><br>
<button class="register" onclick="submitForm()">Submit</button>
</div>
<script>
function submitForm() {
const username = document.getElementById('username').value;
const fullName = document.getElementById('full-name').value;
const email = document.getElementById('email').value;
const password = document.getElementById('password').value;
const confirmPassword = document.getElementById('confirm-password').value;
const branch = document.getElementById('branch').value;
if (!username || !fullName || !email || !password || !confirmPassword || !branch) {
alert('Please fill out all fields.');
return;
}
if (password !== confirmPassword) {
alert('Passwords do not match.');
return;
}
window.location.href = 'page.html';
}
</script>
</body>
</html>