-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
128 lines (123 loc) · 4.24 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./assets/images/favicon-32x32.png"
/>
<title>Age Calculator</title>
<link rel="stylesheet" href="style.css" />
<link
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
rel="stylesheet"
/>
<link rel="manifest" href="manifest.json" />
<link rel="apple-touch-icon" href="images/icons/icon-72x72.png" />
<link rel="apple-touch-icon" href="images/icons/icon-96x96.png" />
<link rel="apple-touch-icon" href="images/icons/icon-128x128.png" />
<link rel="apple-touch-icon" href="images/icons/icon-144x144.png" />
<link rel="apple-touch-icon" href="images/icons/icon-152x152.png" />
<link rel="apple-touch-icon" href="images/icons/icon-192x192.png" />
<link rel="apple-touch-icon" href="images/icons/icon-384x384.png" />
<link rel="apple-touch-icon" href="images/icons/icon-512x512.png" />
<meta name="apple-mobile-web-app-status-bar" content="#141414" />
<meta name="theme-color" content="#141414" />
</head>
<body>
<div class="toggle-icon">
<i class="fa-solid fa-bars fa-xl"></i>
</div>
<main role="main" class="container">
<form>
<div class="form-item">
<label for="day">DAY</label>
<input
type="number"
class="date-input"
id="day"
min="1"
max="31"
data-max="31"
placeholder="DD"
/>
<p class="error-day error"></p>
</div>
<div class="form-item">
<label for="month">MONTH</label>
<input
type="number"
class="date-input"
id="month"
min="1"
max="12"
data-max="12"
placeholder="MM"
/>
<p class="error-month error"></p>
</div>
<div class="form-item">
<label for="year">YEAR</label>
<input
type="number"
class="date-input"
id="year"
min="1600"
data-max=""
placeholder="YYYY"
/>
<p class="error-year error"></p>
</div>
</form>
<div class="vertical-divider">
<hr class="first-arrow" />
<div class="down-arrow display-result">
<img
src="./assets/images/icon-arrow.svg"
class="arrow"
alt="down arrow"
/>
</div>
<hr class="second-arrow" />
</div>
<div class="result">
<p class="year-output">
<span class="number year-result" data-val-year="0">-- </span>
<span class="year-text">year</span>
</p>
<p class="month-output">
<span class="number month-result" data-val-month="0">--</span>
<span class="month-text">month</span>
</p>
<p class="day-output">
<span class="number day-result" data-val-day="0">--</span>
<span class="day-text">day</span>
</p>
</div>
</main>
<div class="history">
<header>
<h2>History</h2>
<div class="close-history">
<i class="fa-solid fa-xmark fa-2xl"></i>
</div>
</header>
<ul class="history-content">
<!-- <li class="histories"></li> -->
</ul>
</div>
<div class="attribution">
Challenge by
<a href="https://www.frontendmentor.io?ref=challenge" target="_blank"
>Frontend Mentor</a
>. Coded by
<a href="https://www.twitter.com/oyeinbomo" target="_blank"
>Oyeinbomo Opuene</a
>.
</div>
<script src="index.js"></script>
</body>
</html>