-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·70 lines (61 loc) · 2.58 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
<!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="./assets/images/favicon-32x32.png">
<title>Frontend Mentor | Newsletter sign-up form with success message</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Sign-up form start -->
<article class="signup">
<picture class="signup__img">
<source srcset="assets/images/illustration-sign-up-desktop.svg"
media="(min-width: 850px)">
<img src="assets/images/illustration-sign-up-mobile.svg" alt="image of computer desktop and web browser">
</picture>
<div class="signup__body">
<h1 class="signup__title">Stay updated!</h1>
<p>Join 60,000+ product managers receiving monthly updates on:</p>
<ul class="signup__list">
<li>Product discovery and building what matters</li>
<li>Measuring to ensure updates are a success</li>
<li>And much more!</li>
</ul>
<form class="signup__form" id="signup__form">
<div class="flex-group">
<label class="email__label" for="signup__input">Email address</label>
<span class="email__error hidden">Invalid email!</span>
</div>
<input class="input" type="email" id="signup__input" name="email" placeholder="[email protected]">
<button type="submit" class="button">
Subscribe to monthly newsletter
</button>
</form>
</div>
</article>
<!-- Sign-up form end -->
<!-- Success message start -->
<article class="success hidden">
<div class="success__img">
<img src="assets/images/icon-success.svg" alt="">
</div>
<h1 class="success__title">Thanks for subscribing!</h1>
<p>A confirmation email has been sent to <strong id="success__email"></strong>.
Please open it and click the button inside to confirm your subscription.</p>
<form class="success__form">
<button type="button" class="button" id="dismiss__button">
Dismiss message
</button>
</form>
</article>
<!-- Success message end -->
<script src="index.js"></script>
</body>
</html>