-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.html
230 lines (206 loc) · 9.28 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="css/bootstrap.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<link
href="https://fonts.googleapis.com/css?family=Baloo+Bhai|Bevan|Boogaloo|Bowlby+One+SC|Caveat+Brush|Changa+One|Chewy|Concert+One|Fredoka+One|Kumar+One|Lilita+One|Monoton|Nanum+Pen+Script|Patrick+Hand|Permanent+Marker|Rock+Salt|Rubik+Mono+One|Seymour+One|Sigmar+One|Special+Elite|Titan+One|Ultra&display=swap"
rel="stylesheet">
<link
href="https://fonts.googleapis.com/css?family=Alfa+Slab+One|Amaranth|Anton|Baloo|Baloo+Bhai|Bowlby+One+SC|Calistoga|Concert+One|Fredoka+One|Fugaz+One|IBM+Plex+Mono|Modak|Pangolin|Rubik+Mono+One|Special+Elite|Varela+Round|Viga&display=swap"
rel="stylesheet">
<link href="css/styles.css" rel="stylesheet" type="text/css">
<script src="https://code.jquery.com/jquery-3.3.1.min.js "
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin=" anonymous "></script>
<link rel="icon" href="images\skaterr.png">
<title>Skatecorner</title>
</head>
<style>
body,
html {
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
margin: 0px;
background-image: url("images/air.jpg");
background-attachment: fixed;
background-size: cover;
background-repeat: no-repeat;
}
/* The message box is shown when the user clicks on the password field */
#message {
display:none;
background: #f1f1f1;
color: #000;
position: relative;
padding: 20px;
margin-top: 10px;
}
#message p {
padding: 10px 35px;
font-size: 18px;
}
/* Add a green text color and a checkmark when the requirements are right */
.valid {
color: green;
}
.valid:before {
position: relative;
left: -35px;
content: "✔";
}
/* Add a red text color and an "x" when the requirements are wrong */
.invalid {
color: red;
}
.invalid:before {
position: relative;
left: -35px;
content: "✖";
}
@media screen and (max-width: 500px) {
body,
html {
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
margin: 0px;
background-image: url("images/bts (6).jpg");
background-attachment: fixed;
background-size: cover;
background-repeat: no-repeat;
}
}
</style>
<body scroll-behavior: smooth;>
<nav>
<img src="images/skaterr.png">
<a href="index.html"><b>HOME</b></a>
<a href="contact.html"><b>CONTACT US</b></a>
<a href="about.html"><b>ABOUT US</b></a>
<a href="signup.html"><b>SIGN UP</b></a>
</nav>
<br><br>
<div class="signup">
<h3><b>CREATE AN ACCOUNT</b></h3>
</div>
<div>
<form class="col-sm-6 offset-sm-3 text-center" id="fr" action="signup.php" method="POST" autocomplete="on"><br>
<p style="color:white; font-size: medium;"><b>Please fill in the blanks below</b></p>
<div class="input-group">
<input type="text" style="color: honeydew;" placeholder="First name" required
maxlength="20" autofocus id="fname" name="firstName">
<input type="text" style="color: honeydew;" placeholder="Last name" required
maxlength="20" id="lname" name="lastName">
<div class="tab"><b style="color: white;">Choose Date of Birth:</b>
<input placeholder="" type="date" max="12-31-1985" min="12-31-2018" name="DOB">
</div>
<input type="email" style="color: honeydew;" placeholder="Email" required name="email">
<input type="text" style="color: honeydew;" placeholder="Username" required
maxlength="10" name="userName">
<input type="password" id="pwd" name="psw" style="color: honeydew;" placeholder="Choose Password" pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}"
title="Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters"
required>
<!--
<input type="password" id="cpwd" name="psw" style="color: honeydew;" placeholder="Re-enter Password" pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}"
title="Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters"
required>
-->
</div><br>
<center>
<div class="gender">
<select id="gender" name="gender" style="background-color: #0d8df0;">
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option>
</select>
</div><br>
<div class="input-group">
<input type="number" style="color: honeydew;" placeholder="number" required
maxlength="10" name="number">
<div>
<!-- <div class="uplod">
<p><b style="color: #ffffff; font-size: medium;">Upload Profile Picture</b></p>
<input type="file" name="myFile" width="50px" id="inptype">
</div> -->
</center>
<button type="submit" class="submit-btn" onclick=""><a style="text-decoration: none;" href=""><b>SIGN UP</b></a></button>
<p style="color: white; text-align: center;"><b>Already have an account? <a href="index.html" style="text-decoration: none; color: crimson;">Sign In</a></b></p>
<p style="color: #0d8df0;">By creating an account you agree to our <a href="#" style="color: darkgrey; text-decoration: none;">Terms & Privacy</a>.</p>
<br></form>
</div>
<br><br>
<!-- <div class="footer">
<a href="https://www.facebook.com"><img src="soc/facebook.png"><b></b></a>
<a href="https://www.twitter.com"><img src="soc/twitter.png"><b></b></a>
<a href="https://www.instagram.com"><img src="soc/inst.png"><b></b></a>
<a href="https://www.pinterest.com"><img src="soc/pinterest.png"><b></b></a>
<a href="https://www.youtube.com/kayraph"><img src="soc/yut.png"><b></b></a>
<a href="https://www.meetup.com/kayraph"><img src="soc/meetup.png"><b></b></a>
<a href="https://www.github.io.com/kay-raph"><img src="soc/github.png"><b></b></a>
<p>©2020<All><b>||</b>All Rights Reserved. | <a href="https://www.github.io.com/kay-raph">Design by Kevin
Raphael</a></p>
</div> -->
<!-- <div id="message">
<h3>Password must contain the following:</h3>
<p id="letter" class="invalid">A <b>lowercase</b> letter</p>
<p id="capital" class="invalid">A <b>capital (uppercase)</b> letter</p>
<p id="number" class="invalid">A <b>number</b></p>
<p id="length" class="invalid">Minimum <b>8 characters</b></p>
</div>
<script>
var myInput = document.getElementById("psw");
var letter = document.getElementById("letter");
var capital = document.getElementById("capital");
var number = document.getElementById("number");
var length = document.getElementById("length");
// When the user clicks on the password field, show the message box
myInput.onfocus = function () {
document.getElementById("message").style.display = "block";
}
// When the user clicks outside of the password field, hide the message box
myInput.onblur = function () {
document.getElementById("message").style.display = "none";
}
// When the user starts to type something inside the password field
myInput.onkeyup = function () {
// Validate lowercase letters
var lowerCaseLetters = /[a-z]/g;
if (myInput.value.match(lowerCaseLetters)) {
letter.classList.remove("invalid");
letter.classList.add("valid");
} else {
letter.classList.remove("valid");
letter.classList.add("invalid");
}
// Validate capital letters
var upperCaseLetters = /[A-Z]/g;
if (myInput.value.match(upperCaseLetters)) {
capital.classList.remove("invalid");
capital.classList.add("valid");
} else {
capital.classList.remove("valid");
capital.classList.add("invalid");
}
// Validate numbers
var numbers = /[0-9]/g;
if (myInput.value.match(numbers)) {
number.classList.remove("invalid");
number.classList.add("valid");
} else {
number.classList.remove("valid");
number.classList.add("invalid");
}
// Validate length
if (myInput.value.length >= 8) {
length.classList.remove("invalid");
length.classList.add("valid");
} else {
length.classList.remove("valid");
length.classList.add("invalid");
}
}
</script> -->
<script src="scripts.js"></script>
</body>
</html>