-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
172 lines (166 loc) · 5.07 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
166
167
168
169
170
171
172
<!DOCTYPE html>
<style>
html{
height: 100%;
}
body{
height: 100%;
width: 80%;
margin: auto
}
.overall-container{
position: relative;
height: 100%;
background-size: contain;
background-image: url("data/background-image.jpg");
background-repeat: no-repeat;
}
.form{
width: 58%;
height: 100%;
float: right;
background-color: white;
}
header{
position: relative;
padding-top: 12vh;
padding-bottom: 8vh;
padding-left: 10vh;
padding-right: 5vh;
font-size: 25px;
background-color: rgb(232, 232, 232);
}
.fields{
position: relative;
margin-top: 2vh;
margin-left: 10vh;
margin-right: 5vh;
}
.action{
position: relative;
margin-top: 10vh;
margin-left: 10vh;
margin-right: 5vh;
}
.fieldset-title{
margin-top: 5%;
margin-bottom: 5%;
font-size: 25px;
}
table{
border-spacing: 25px;
}
label {
display:block;
}
button{
padding-top: 1.5vh;
padding-bottom: 1.5vh;
padding-right: 2.5vh;
padding-left: 2.5vh;
font-size: 20px;
font-weight: 800;
background-color: rgb(99, 124, 99);
border-radius: 8px
}
input:focus{
outline: none;
border-color: blue;
}
input:invalid {
border-color: red;
}
input{
display:block;
border-style: solid;
border-color: black;
}
.login_url{
color:rgb(99, 124, 99);
}
</style>
<html lang="en-US">
<body>
<div class="overall-container">
<div class="form">
<div class = "header-container">
<header>
<p>
This is not a real online service! You know you need something like this in your life to help you realize your deepest dreams. Sign up <em>now</em> to get started.
</p>
<p>
You know you want to.
</p>
</header>
</div>
<div class="fields">
<p class="fieldset-title">
Let's do this!
</p>
<table>
<tr>
<td>
<div class = "input-cell">
<label for="first_name">FIRST NAME</label>
<input type="text" id="first_name" name="first_name" value="Thor">
</div>
</td>
<td>
<div class = "input-cell">
<label for="last_name">LAST NAME</label>
<input type="text" id="last_name" name="last_name" value="Odinson">
</div>
</td>
</tr>
<tr>
<td>
<div class = "input-cell">
<label for="email">EMAIL</label>
<input type="email" id="email" name="email">
</div>
</td>
<td>
<div class = "input-cell">
<label for="phone">PHONE NUMBER</label>
<input type="number" id="phone" name="phone">
</div>
</td>
</tr>
<tr>
<td>
<div class = "input-cell">
<label for="password">PASSWORD</label>
<input type="password" id="password" name="password">
</div>
</td>
<td>
<div class = "input-cell">
<label for="confirm_password">CONFIRM PASSWORD</label>
<input type="password" id="confirm_password" name="confirm_password">
</div>
</td>
</tr>
</table>
</div>
<div class="action">
<button type="submit">Create account</button>
<p>
Already have an account? <a href="login/odin.com" class = "login_url">Log in</a>
</p>
</div>
</div>
</div>
</body>
</html>
<script>
const confirm_password = document.getElementById("confirm_password")
confirm_password.addEventListener("input", (event) => {
const password_value = document.getElementById("password").value
const confirm_passport_value = confirm_password.value
if(password_value == confirm_passport_value){
confirm_password.style.borderColor = "green"
} else {
confirm_password.style.borderColor = "red"
}
})
</script>