-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
88 lines (87 loc) · 2.92 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./assets/images/favicon-32x32.png"
/>
<link rel="stylesheet" href="css/style.css" />
<title>
Frontend Mentor | Newsletter sign-up form with success message
</title>
<script src="https://unpkg.com/validator@latest/validator.min.js"></script>
</head>
<body>
<main>
<div class="container">
<div id="formContainer" class="container__cols">
<section class="form__textSection">
<h1 class="form__title">Stay updated!</h1>
<p class="form__text">
Join 60,000+ product managers receiving monthly updates on:
</p>
<ul class="form__list">
<li class="form__list-item">
Product discovery and building what matters
</li>
<li class="form__list-item">
Measuring to ensure updates are a success
</li>
<li class="form__list-item">And much more!</li>
</ul>
<form id="form" action="index.html" novalidate>
<div class="email__label-and-status">
<label for="emailInput">Email address</label>
<p class="emailStatus" id="emailStatusText"></p>
</div>
<input
class="form__emailInput"
type="email"
placeholder="email@company.com"
name="email"
id="emailInput"
/>
<button class="form__submitButton" id="submitBtn" type="submit">
Subscribe to monthly newsletter
</button>
</form>
</section>
<section class="form__imageSection">
<picture>
<source
media="(min-width: 50rem)"
srcset="assets/images/illustration-sign-up-desktop.svg"
/>
<img
class="right__image"
src="assets/images/illustration-sign-up-mobile.svg"
alt="illustration"
/>
</picture>
</section>
</div>
</div>
<!-- modal -->
<div id="modal" class="modal">
<img
src="assets/images/icon-success.svg"
alt=""
class="modal__checkmark"
/>
<h1 class="modal__heading">Thanks for subscribing!</h1>
<p class="modal__text">
A confirmation email has been sent to
<span id="emailAddressText"></span>. Please open it and click the
button inside to confirm your subscription.
</p>
<button id="dismissBtn" class="dismissButton">Dismiss message</button>
</div>
</main>
<!-- Validator -->
<script src="app.js"></script>
</body>
</html>