-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.html
260 lines (235 loc) · 10.5 KB
/
signup.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?family=Baloo+2&display=swap" rel="stylesheet">
<link rel="stylesheet" href="bootstrap.min.css" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="fonts/icomoon/style.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
<link href="http://fonts.googleapis.com/css?family=Cookie" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" />
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Source+Serif+Pro:400,600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="fonts/icomoon/style.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
<link href="http://fonts.googleapis.com/css?family=Cookie" rel="stylesheet" type="text/css">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<script src="script.js" defer></script>
<link rel="icon" type="image/png" href="Images/logo3.png"/>
<link rel="icon" href="Images/footerlogo.png" type="image/x-icon"/>
<style>
/* --------Sign in--------- */
:root {
--main-btn-bg-color: #bde7d7;
}
.input-group-text {
color: #fff;
background-color: var(--main-btn-bg-color);
}
.form-control:focus, .custom-select:focus, .custom-file-label:focus {
box-shadow: none;
}
.section {
z-index: 999;
box-shadow: 0px 6px 3px 0px rgba(0, 0, 0, 0.15);
position: relative;
text-decoration: none;
}
.bg-colored {
background-color: var(--main-btn-bg-color);
width: 100%;
height: 50vh;
position: absolute;
z-index: 0;
}
.full-button {
background-color: var(--main-btn-bg-color);
color: #fff;
transition: background-color 0.3s ease;
border-radius: 5px;
}
.full-button:hover {
background-color: #10562a;
}
</style>
<title>Sign Up</title>
</head>
<body>
<!-- Header -->
<div class="header">
<div class="logo">
<img src="Images/mainlogo.png" alt="Logo">
</div>
<button class="menu-btn">☰</button>
<ul class="menu">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="faq.html">FAQ's</a></li>
</ul>
<div class="search">
<input type="text" placeholder="Search...">
<a href=""><i class="fas fa-search"></i></a>
</div>
<div class="sign-in">
<a href="signin.html">
<button>Sign In</button></a>
</div>
</div>
<div class="bg-colored"></div>
<div class="container d-flex justify-content-center align-items-center min-vh-100">
<div class=" col-lg-6">
<div class="section bg-white p-0">
<div class="card-header ">
<div class="text-center mt-2 mb-1">
<h1>Registration</h1>
</div>
</div>
<div class="card-body">
<div>
<form id="form" role="form" class="row" onsubmit="return validateForm()">
<div class="form-group col-6">
<input type="text" class="form-control" id="first_name" name="first_name"
placeholder="First Name" required>
</div>
<div class="form-group col-6">
<input type="text" class="form-control" id="last_name" name="last_name"
placeholder="Last Name" required>
</div>
<div class="form-group col-12">
<input type="email" class="form-control" id="email" name="email" placeholder="Email"
required>
</div>
<div class="form-group col-12">
<input type="tel" class="form-control" id="phone" name="phone"
placeholder="Phone Number" required>
</div>
<div class="form-group col-12">
<input type="text" class="form-control" id="home_address" name="home_address"
placeholder="Home Address" required>
</div>
<div class="form-group col-12">
<select class="custom-select ">
<option selected disabled>State</option>
<option value="Zagazig">Maharashtra</option>
<option>UP</option>
<option>Delhi </option>
<option>Gujrat</option>
</select>
</div>
<div class="form-group col-12">
<select class="custom-select ">
<option selected disabled>City</option>
<option value="Alexandria">Malkapur</option>
<option>Nashik</option>
<option>Pune </option>
<option>Mumbai</option>
</select>
</div>
<div class="form-group col-12">
<input type="password" class="form-control" id="password" name="password"
placeholder="Password" required>
</div>
<div class="col-12">
<small>Already have an account?</small>
<a style="text-decoration: none;" href="signin.html">Sign In</a>
</div>
<div class=" col-12 text-center mt-3">
<button type="submit" class="full-button">Sign Up</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
function validateForm() {
var firstName = document.getElementById("first_name").value;
var lastName = document.getElementById("last_name").value;
var email = document.getElementById("email").value;
var phone = document.getElementById("phone").value;
var homeAddress = document.getElementById("home_address").value;
var password = document.getElementById("password").value;
var namePattern = /^[A-Za-z ]{6,}$/;
var emailPattern = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/;
var phonePattern = /^\d{10}$/;
if (!namePattern.test(firstName)) {
alert("First Name should contain alphabets and be at least 6 characters long.");
return false;
}
if (!namePattern.test(lastName)) {
alert("Last Name should not be empty.");
return false;
}
if (!emailPattern.test(email)) {
alert("Invalid email address. Please follow the standard pattern ([email protected]).");
return false;
}
if (!phonePattern.test(phone)) {
alert("Phone number should contain 10 digits only.");
return false;
}
if (homeAddress === "") {
alert("Home Address should not be empty.");
return false;
}
if (password.length < 6) {
alert("Password should be at least 6 characters long.");
return false;
}
return true;
}
</script>
<!-- Footer -->
<footer class="footer-distributed">
<div class="footer-left">
<h3>Jan<span>Jagruti</span></h3>
<p class="footer-links">
<a href="index.html" target=”_blank”>Home</a>
|
<a href="about.html"target=”_blank”>About</a>
|
<a href="services.html"target=”_blank”>Services</a>
|
<a href="contact.html"target=”_blank”>Contact</a>
|
<a href="faq.html"target=”_blank”>FAQ's</a>
</p>
<p class="footer-company-name">Copyright © 2023 <strong>JanJagruti</strong> All rights reserved</p>
</div>
<div class="footer-center">
<div>
<i class="fa fa-map-marker"></i>
<p><span>Nashik</span>
Maharashtra</p>
</div>
<div>
<i class="fa fa-phone"></i>
<p>+91 8087990543</p>
</div>
<div>
<i class="fa fa-envelope"></i>
<p><a href="mailto:[email protected]">[email protected]</a></p>
</div>
</div>
<div class="footer-right">
<p class="footer-company-about">
<span>JanJagruti</span>
<strong>#Scheme4All</strong> The platform helps the citizen to find the right Government schemes for them. It also guides on how to apply for different Government schemes. Thus no need to visit multiple Government websites.
</p>
<div class="footer-icons">
<a href="#"><i class="fa fa-instagram"target=”_blank”></i></a>
<a href="https://www.linkedin.com/in/ashish-bhangale-2759a523a/"><i class="fa fa-linkedin"target=”_blank”></i></a>
<a href="https://twitter.com/home"target=”_blank”><i class="fa fa-twitter"target=”_blank”></i></a>
<a href="#"><i class="fa fa-whatsapp"target=”_blank”></i></a>
</div>
</div>
</footer>
</body>
</html>