-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
102 lines (97 loc) · 3.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Solution for Frontend Mentor Newsletter sign-up form with success message challenge. The project is a newsletter signup page with form validation to check email format and shows success message if correct or error message if input email is invalid.">
<meta name="og:title" property="og:title" content=" Frontend Mentor | Newsletter sign-up form with success message">
<meta property="og:description" content="Frontend Mentor Newsletter sign-up form with success message challenge solution with Typescript">
<meta property="og:url" content="https://newsletter-signup-feven.netlify.app/">
<meta property="og:type" content="website">
<meta property="og:image" content="src/assets/images/desktop-design.jpg">
<meta property="og:image:alt" content="Newsletter signup form image Card">
<meta name="author" content="Feven Seyfu">
<link
rel="icon"
type="image/png"
sizes="32x32"
href="src/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:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div class="container">
<!-- Sign-up form start -->
<div id="signup-form" class="signup-form">
<div class="illustration">
<img
src="src/assets/images/illustration-sign-up-desktop.svg"
alt="illustration image"
class="illustration-image"
/>
</div>
<main class="form-content">
<h1>Stay updated!</h1>
<p>Join 60,000+ product managers receiving monthly updates on:</p>
<ul>
<li class="check-list">
<img class="check-icon" alt="check-icon" />
<p>Product discovery and building what matters</p>
</li>
<li class="check-list">
<img class="check-icon" alt="check-icon" />
<p>Measuring to ensure updates are a success</p>
</li>
<li class="check-list">
<img class="check-icon" alt="check-icon" />
<p>And much more!</p>
</li>
</ul>
<form>
<label for="email">Email address
<span class="error-message hidden" id="email">Valid email required</span>
</label>
<input type="email" placeholder="email@company.com"
required
/>
<button type="submit" disabled>Subscribe to monthly newsletter</button>
</form>
</main>
</div>
<!-- Sign-up form end -->
<!-- Success message start -->
<section id="success-message" class="hidden">
<img
alt="success-icon"
class="success-icon"
id="iconSuccessSvg"
/>
<h1>Thanks for subscribing!</h1>
<p>
A confirmation email has been sent to
<span class="registered-email">ash@loremcompany.com</span>. Please
open it and click the button inside to confirm your subscription.
</p>
<button>Dismiss message</button>
</section>
<!-- Success message end -->
</div>
<footer class="attribution">
Challenge by
<a href="https://www.frontendmentor.io?ref=challenge" target="_blank"
>Frontend Mentor</a
>. Coded by
<a href="https://www.frontendmentor.io/profile/FevenSeyfu">Feven Seyfu</a
>.
</footer>
<script type="module" src="/src/main.ts"></script>
</body>
</html>