-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
90 lines (78 loc) · 2.66 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
<!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="style.css">
<title>Frontend Mentor | Age calculator app</title>
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<style>
.attribution {
font-size: 11px;
text-align: center;
font-family: Poppins-Bold;
}
.attribution a {
color: hsl(228, 45%, 44%);
}
</style>
</head>
<body>
<div class="hero">
<div class="DMY">
<div class="Input-section" id="day">
<p class="Heading" id="day-heading">
DAY
</p>
<input type="number" class="input-box" placeholder="DD" id="day-input" inputmode="numeric">
<p class="error" id="day-error"></p>
</div>
<div class="Input-section" id="month">
<p class="Heading" id="month-heading">
MONTH
</p>
<input type="number" class="input-box " placeholder="MM" id="month-input" inputmode="numeric">
<p class="error" id="month-error"></p>
</div>
<div class="Input-section" id="year">
<p class="Heading" id="year-heading">
YEAR
</p>
<input type="number" class="input-box" placeholder="YYYY" id="year-input" inputmode="numeric">
<p class="error" id="year-error"></p>
</div>
</div>
<div class="Seperation">
<div class="line"></div>
<button class="button">
<svg xmlns="http://www.w3.org/2000/svg" width="46" height="44" viewBox="0 0 46 44" id="submit">
<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 class="calc">
<div class="result" id="year-resut">
<p class="result-number" id="years">- -</p>
<p class="result-text">years</p>
</div>
<div class="result" id="month-result">
<p class="result-number" id="months">- -</p>
<p class="result-text">months</p>
</div>
<div class="result" id="day-result">
<p class="result-number" id="days">- -</p>
<p class="result-text">days</p>
</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="#">Sahil Batgeri</a>.
</div>
</body>
<script src="script.js"></script>
</html>