-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
87 lines (75 loc) · 3.56 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
<!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 | Age calculator app</title>
<link rel="stylesheet" href="resources/css/style.css">
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<style>
.attribution { font-size: 11px; text-align: center;}
.attribution a { color: hsl(228, 45%, 44%); }
</style>
</head>
<body>
<div class="container" id="container">
<form action="">
<div class="input__container">
<!-- FIRST INPUT -->
<div class="input">
<label for="day" class="data__label correct__state__color" id="day-label">Day</label>
<input type="number" class="input__correct__state" id="day-input" name="day" placeholder="DD">
<span class="error__msg" id="day-error-msg"></span>
</div>
<!-- SECOND INPUT -->
<div class="input">
<label for="month" class="data__label correct__state__color" id="month-label">Month</label>
<input type="number" class="input__correct__state" id="month-input" name="month" placeholder="MM">
<span class="error__msg" id="month-error-msg"></span>
</div>
<!-- THIRD INPUT -->
<div class="input">
<label for="year" class="data__label correct__state__color" id="year-label">Year</label>
<input type="number" class="input__correct__state" id="year-input" name="year" placeholder="YYYY">
<span class="error__msg" id="year-error-msg"></span>
</div>
</div>
<div class="divider__container">
<div class="mobile__divider">
<div class="horizontal__line"></div>
<button class="svg__btn" id="svg-btn">
<svg class="svg__image" xmlns="http://www.w3.org/2000/svg" id="svg-img" viewBox="0 0 46 44" width="44" height="44" overflow="visible"><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 class="horizontal__line"></div>
</div>
<div class="desktop__divider">
<div class="horizontal__line"></div>
<button class="svg__btn" id="desktop-svg-btn">
<svg class="svg__image" xmlns="http://www.w3.org/2000/svg" id="svg-img" viewBox="0 0 46 44" width="44" height="44" overflow="visible"><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="result__container">
<div class="data__display">
<p class="years__display" id="years-display">--</p>
<span>years</span>
</div>
<div class="data__display">
<p class="months__display" id="months-display">--</p>
<span>months</span>
</div>
<div class="data__display">
<p class="days__display" id="days-display">--</p>
<span>days</span>
</div>
</div>
</div>
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://github.com/USII-004">Usman Awwal</a>.
</div>
<script src="resources/js/validate.js"></script>
</body>
</html>