-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (62 loc) · 2.69 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
<!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">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="queries.css">
<title>Age calculator app</title>
<style>
.attribution { font-size: 11px; text-align: center; margin-bottom: 30px;}
.attribution a { color: hsl(228, 45%, 44%); }
</style>
</head>
<body>
<section>
<form id="form">
<div class="row">
<div class="col">
<label for="day">DAY</label>
<!-- <br> -->
<input type="number" name="" id="day" placeholder="DD" maxlength="2">
<div class="empty__string__text">This field is required</div>
<div class="invalid__string__day">Must be a valid day</div>
<div class="invalid__string__whole">Must be a valid date</div>
</div>
<div class="col">
<label for="month">MONTH</label>
<!-- <br> -->
<input type="number" name="" id="month" placeholder="MM" maxlength="2">
<div class="empty__string__text">This field is required</div>
<div class="invalid__string__month">Must be a valid month</div>
</div>
<div class="col">
<label for="year">YEAR</label>
<!-- <br> -->
<input type="number" name="" id="year" placeholder="YYYY" maxlength="4">
<div class="empty__string__text">This field is required</div>
<div class="invalid__string__year">Must be in the past</div>
</div>
</div>
<!-- <div class="sub"> -->
<div class="wrapper">
<button type="submit" class="submit">
<svg xmlns="http://www.w3.org/2000/svg" width="46" height="44" viewBox="0 0 46 44"><g fill="none" stroke="#FFF" stroke-width="2"><path d="M1 22.019C8.333 21.686 23 25.616 23 44M23 44V0M45 22.019C37.667 21.686 23 25.616 23 44"/></g></svg>
</button>
</div>
<!-- </div> -->
</form>
<div class="results">
<p><span class="yearResult counter" data-count="">- -</span> years</p>
<p><span class="monthResult counter" data-count="">- -</span> months</p>
<p><span class="daysResult counter" data-count="">- -</span> days</p>
</div>
</section>
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://samuelogboru.vercel.app/">Samuel Osaronungwe</a>.
</div>
<script src="index.js"></script>
</body>
</html>