-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
165 lines (145 loc) · 4.7 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Minimalist Form</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #87CEEB;
display: flex;
justify-content: center;
align-items: center;
margin: 0;
padding: 0;
}
form {
background-color: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
width: 40vw;
min-width: 300px;
margin: 50px 0 0 50px;
max-width: 100%;
}
label {
display: block;
font-size: 1em;
margin-bottom: 8px;
}
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select, textarea {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
font-size: 1em;
}
.radio-group {
display: flex;
align-items: center;
margin-bottom: 15px;
}
.radio-group input[type="radio"] {
margin-right: 8px;
}
input[type="submit"] {
background-color: #4CAF50;
color: white;
padding: 12px;
border: none;
border-radius: 4px;
cursor: pointer;
width: 100%;
font-size: 1.1em;
}
input[type="submit"]:hover {
background-color: #45a049;
}
textarea {
resize: none;
}
</style>
</head>
<body>
<form action="">
<!-- Firstname Field -->
<div>
<label for="fname">First name:</label>
<input type="text" id="fname" name="fname" required>
</div>
<br>
<!-- Middlename Field -->
<div>
<label for="mname">Middle name:</label>
<input type="text" id="mname" name="mname" required>
</div>
<br>
<!-- Lastname Field -->
<div>
<label for="lname">Last name:</label>
<input type="text" id="lname" name="lname" required>
</div>
<br>
<!-- Course Field -->
<div>
<label for="course">Course:</label>
<select id="course" name="course" required>
<option value="" disabled selected hidden>Course</option>
<option value="PBKK">PBKK</option>
<option value="PWEB">Pweb</option>
<option value="RSBP">RSBP</option>
<option value="Aljabar Linier">Aljabar Linier</option>
</select>
</div>
<br>
<!-- Gender Radio Buttons -->
<div>
<label>Gender:</label>
<div class="radio-group">
<input type="radio" id="male" name="gender" value="M" required>
<label for="male" style="margin-right: 20px;">Male</label>
<input type="radio" id="female" name="gender" value="F" required>
<label for="female">Female</label>
</div>
</div>
<br>
<!-- Phone Field -->
<div>
<label for="phone">Phone:</label>
<input type="text" id="phonecode" name="code" maxlength="3" value="+62" required style="width: 20%; display: inline-block;">
<input type="tel" id="phone" name="phone" required style="width: 75%; display: inline-block;">
</div>
<br>
<!-- Address Field -->
<div>
<label for="addr">Address:</label>
<textarea id="addr" name="addr" rows="4" required></textarea>
</div>
<br>
<!-- Email Field -->
<div>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
</div>
<br>
<!-- Password Field -->
<div>
<label for="pwd">Password:</label>
<input type="password" id="pwd" name="pwd" required>
</div>
<br>
<!-- Re-type Password Field -->
<div>
<label for="rpwd">Re-type Password:</label>
<input type="password" id="rpwd" name="rpwd" required>
</div>
<br>
<!-- Submit Button -->
<input type="submit" value="Submit">
</form>
</body>
</html>