-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdating-form.html
More file actions
153 lines (144 loc) · 5.14 KB
/
Copy pathdating-form.html
File metadata and controls
153 lines (144 loc) · 5.14 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="robots" content="noindex,nofollow">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Super Dating App</title>
<style>
body {
font-family: Verdana, Arial, sans-serif;
}
p {
margin: 0;
}
legend {
background-color: purple;
border-radius: 10px;
color: #fff;
padding: 12px;
}
fieldset {
background: lavender;
border: solid 10px darkblue;
border-radius: 20px;
margin-bottom: 10px;
width: 720px;
}
div {
margin: 10px;
}
label {
display: inline-block;
text-align: right;
vertical-align: top;
width: 200px;
}
input[type="radio"]+label, input[type="checkbox"]+label {
width: auto;
}
.range-caption {
background: darkcyan;
color: #fff;
padding: 6px;
text-align: center;
}
input[type="submit"] {
background: darkcyan;
border-radius: 10px;
color:#fff;
font-size: 20px;
padding: 12px;
}
div:hover {
color: blue;
}
</style>
</head>
<body>
<h1>Enter Your Details For Our Dating Website</h1>
<form action="https://us-central1-nucamp-production.cloudfunctions.net/post/formdata" method="post" enctype="multipart/form-data">
<fieldset>
<legend>Your Face</legend>
<div>
<lable for="avatar">Upload Your Image: </lable>
<input type="file" id="avatar" name="avatar" required />
<p>Image preview: <img id="preview" width="500" /></p>
</div>
</fieldset>
<fieldset>
<legend>Your Details</legend>
<div>
<label for="name">Name: </label>
<input type="text" id="name" name="name" placeholder="Your full name" required />
</div>
<div>
<label>Gender: </label>
<input type="radio" id="woman" name="gender" value="woman" required /><label for="woman">Woman</label>
<input type="radio" id="man" name="gender" value="man" required /><label for="man">Man</label>
</div>
<div>
<label for="age">Age: </label>
<input type="number" id="age" name="age" />
</div>
<div>
<label for="dob">Dob: </label>
<input type="date" id="dob" name="dob" />
</div>
<div>
<label for="color">Favorite Color: </label>
<input type="color" name="color" id="color" />
</div>
<div>
<label for="country">Country: </label>
<select name="country" id="country">
<option>Choose a country:</option>
<option value="brazil">Brazil</option>
<option value="france">France</option>
<option value="japan">Japan</option>
<option value="libya">Libya</option>
<option value="usa">U.S.A.</option>
</select>
</div>
<div>
<label for="salary">Salary: </label>
<span class="range-caption">Poor</span>
<input type="range" id="salary" name="salary" min="0" max="100" value="50" />
<span class="range-caption">Rich</span>
</div>
</fieldset>
<fieldset>
<legend>Your Contact Information</legend>
<div>
<label for="email">Email: </label>
<input type="email" id="email" name="email" required />
</div>
<div>
<label for="phone">Phone: </label>
<input type="tel" id="phone" name="phone" />
</div>
<div>
<label for="address">Address: </label>
<textarea name="address" id="address" cols="40"></textarea>
</div>
<div>
<label>Contact method(s): </label>
<input type="checkbox" name="contact" id="emailCheckbox" value="email" />
<label for="emailCheckbox">Email</label>
<input type="checkbox" name="contact" id="phoneCheckbox" value="phone">
<label for="phoneCheckbox">Phone</label>
</div>
</fieldset>
<div>
<input type="submit" name="submit" id="submit" value="Submit" />
</div>
</form>
<!--This script shows image preview before submission-->
<script src="https://url.nucamp.co/datingjs"></script>
<h2>HTML and CSS used to build this form:</h2>
<ul>
<li><a href="https://github.com/chaparin/1-HTML-CSS-JavaScript/blob/master/dating-form.html" target="_blank">dating-form.html</a></li>
</ul>
</body>
</html>