-
Notifications
You must be signed in to change notification settings - Fork 193
/
Copy pathindex.html
139 lines (125 loc) · 4.01 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
<!doctype html>
<html ⚡ lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1">
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
<link rel="canonical" href=".">
<title><amp-script></title>
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script>
<style amp-custom>
body {
line-height: 2rem;
font-size: 1rem;
font-family: Roboto, Arial, sans-serif;
color: #222;
}
main {
padding: 56px 0;
margin: 10px;
max-width: 750px;
}
p {
margin-bottom: 2.5rem;
font-size: 1.25rem;
}
input {
height: 1.25rem;
font-size: .875rem;
margin-left: .25rem;
padding: 0 .25rem;
color: #222;
}
button {
background-color: #005af0;
color: #eee;
font-size: 1rem;
margin-top: 1rem;
padding: .5rem 1rem;
border-radius: 6px;
}
button:disabled {
background-color: #ccc;
color: #666;
}
main h2 {
max-width: 600px;
margin-left: .5rem;
margin-right: .5rem;
}
.top {
top: 0;
}
.nav-bar h1 {
margin: 0;
text-align: center;
}
.nav-bar {
background: #005af0;
box-shadow: 0 2px 10px 0 rgba(0,0,0,.07);
color: #ffffff;
height: 56px;
line-height: 56px;
overflow: hidden;
position: fixed;
width: 100%;
z-index: 1000;
}
.card {
background: #dee6ef;
padding: 1rem;
margin: .5rem;
border-radius: 8px;
}
.form-input {
margin-bottom: .5rem;
}
label {
display: inline-block;
width: 5rem;
}
#rules {
line-height: 1.5rem;
margin-top: 1.25rem;
padding-left: .5rem;
font-size: .875rem;
}
</style>
</head>
<body>
<header class="nav-bar top">
<h1><amp-script> exercise!</h1>
</header>
<main>
<p>Welcome to our site! <br/> To register, enter your email address and a secure password.</p>
<form method="post" action-xhr="#" target="_top" class="card">
<div class="form-input">
<label>Email:</label>
<input type="text" name="email" tabindex="1" role="input" required>
</div>
<div class="form-input">
<label>Password:</label>
<input type=password
name="password"
required
role="input"
tabindex="2"
pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^a-zA-Z\d]).{8,}$"
on="tap:rules.show; input-debounced:rules.show">
</div>
<div id="rules" hidden>
<span>Your password must contain each of the following:</span>
<ul>
<li>Lowercase letter</li>
<li>Capital letter</li>
<li>Number</li>
<li>Special character (like @$!%*?&)</li>
<li>At least 8 characters</li>
</ul>
</div>
<button type="submit" tabindex="3">Submit</button>
</form>
</main>
</body>
</html>