-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
115 lines (113 loc) · 3.57 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Signup and Login Form</title>
<link
rel="icon"
href="./assets/favicon_io/favicon.ico"
type="image/x-icon"
/>
<link rel="stylesheet" href="css/main.css" />
<link rel="stylesheet" href="css/signup-login-form.css" />
<script src="https://kit.fontawesome.com/a81368914c.js"></script>
</head>
<body>
<div class="container">
<div class="img">
<img src="assets/images/svg/signup-login-bg.svg" />
</div>
<div class="login-content">
<!-- Signup Form -->
<form id="signupForm" class="form active">
<img src="assets/images/svg/avatar.svg" id="signupAvatar" />
<input
type="file"
id="signupImageInput"
class="file-input"
accept="image/*"
onchange="previewImage(this, 'signupAvatar')"
/>
<button
type="button"
class="upload-btn"
onclick="triggerFileInput('signupImageInput')"
>
Upload Image
</button>
<h2 class="title">Sign Up</h2>
<div class="input-div one">
<div class="i">
<i class="fas fa-user"></i>
</div>
<div class="div">
<h5>Student Name</h5>
<input type="text" class="input" id="SignupstudentName" />
</div>
</div>
<div class="input-div one">
<div class="i">
<i class="fas fa-id-card"></i>
</div>
<div class="div">
<h5>Student ID</h5>
<input type="text" class="input" id="SignupstudentID" />
</div>
</div>
<input
type="button"
class="btn"
value="Sign Up"
onclick="validateSignup()"
/>
<a href="#" class="toggle-link" onclick="showLoginForm()"
>Already have an account? Login here</a
>
<div id="signupFeedback" class="feedback-message"></div>
</form>
<!-- Login Form -->
<form id="loginForm" class="form">
<img src="assets/images/svg/avatar.svg" id="loginAvatar" />
<input
type="file"
id="loginImageInput"
class="file-input"
accept="image/*"
onchange="previewImage(this, 'loginAvatar')"
/>
<h2 class="title">Login</h2>
<div class="input-div one">
<div class="i">
<i class="fas fa-user"></i>
</div>
<div class="div">
<h5>Student Name</h5>
<input type="text" class="input" id="loginStudentName" />
</div>
</div>
<div class="input-div pass">
<div class="i">
<i class="fas fa-id-card"></i>
</div>
<div class="div">
<h5>Student ID</h5>
<input type="password" class="input" id="loginStudentID" />
</div>
</div>
<input
type="button"
class="btn"
value="Login"
onclick="validateLogin()"
/>
<a href="#" class="toggle-link" onclick="showSignupForm()"
>Don't have an account? Sign up here</a
>
<div id="loginFeedback" class="feedback-message"></div>
</form>
</div>
</div>
<script src="js/signupLoginForm.js"></script>
</body>
</html>