-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (49 loc) · 1.81 KB
/
index.html
File metadata and controls
58 lines (49 loc) · 1.81 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<link href="https://fonts.googleapis.com/css?family=Libre+Franklin:300,600,700&display=swap" rel="stylesheet">
<link rel="stylesheet" type ="text/css" href="/main.css">
<script src="main.js"></script>
<title>Frontend Mentor | Ping coming soon page</title>
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<style>
.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }
</style>
</head>
<body>
<div class="container">
<div class="logo"><img src="/images/logo.svg"></div>
<h1>We are launching <b>soon!</b></h1>
Subscribe and get notified<br>
<form class="uinput" onsubmit="checkRegistration()">
<input type="email" id="mail" name="email" placeholder="Your email address..." required>
<button>Notify Me</button>
</form>
<script>
const email = document.getElementById("mail");
email.addEventListener("input", function (event) {
if(email.validity.valueMissing) {
email.setCustomValidity("Whoops! It looks like you forgot to add your email");
} else if(email.validity.typeMismatch) {
email.setCustomValidity("Please provide a valid email address");
}
else {
email.setCustomValidity("");
}
});
</script>
<img src="images/illustration-dashboard.png">
<footer>
<p class="attribution">
© Copyright Ping. All rights reserved.
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="#">A. Reynolds</a>.
</p>
</footer>
</div>
</body>
</html>