-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (58 loc) · 2.65 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
<!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">
<title>Frontend Mentor | Intro component with sign up form</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap" rel="stylesheet">
<style>
.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }
</style>
</head>
<body>
<main>
<section class="left-section">
<h1>Learn to code by watching others</h1>
<p>See how experienced developers solve problems in real-time. Watching scripted tutorials is great,
but understanding how developers think is invaluable. </p>
</section>
<section class="right-section">
<div class="free-trial">
<p><strong>Try it free 7 days</strong> then $20/mo. thereafter</p>
</div>
<div class="form-area">
<form id="form" action="/" method="get">
<!-- Form input 1 -->
<label for="fname" class="label">First Name</label>
<input type="text" id="fname" placeholder="First Name">
<p id="fname-error" class="error">First Name cannot be empty</p>
<!-- Form input 2 -->
<label for="lname" class="label">lastName Name</label>
<input type="text" id="lname" placeholder="Last Name">
<p id="lname-error" class="error">Last Name cannot be empty</p>
<!-- Form input 3 -->
<label for="email" class="label">Email</label>
<input type="email" id="email" placeholder="Email Address">
<p id="email-error" class="error">Looks like this is not an email</p>
<!-- Form input 4 -->
<label for="pass" class="label">password</label>
<input type="password" minlength="4" id="pass" placeholder="Password">
<p id="pass-error" class="error">password cannot be empty</p>
<button type="submit" onClick="validateForm()" class="submit">Claim your free trial </button>
</form>
<p class="terms">By clicking the button, you are agreeing to our <strong><a href="https://frontendmentor.io">Terms and Services</a></strong></p>
</div>
</section>
</main>
<footer>
<p class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://treygordon.com">Trey Gordon</a>.
</p>
</footer>
<script src="main.js"></script>
</body>
</html>