-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (56 loc) · 2.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./assets/images/favicon-32x32.png"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600&family=Kumbh+Sans:wght@400;700&family=Libre+Franklin:wght@300;600;700&family=Manrope:wght@500;700&family=Open+Sans:wght@400;700&family=Overpass:wght@400;700&family=Plus+Jakarta+Sans:wght@500;800&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,700;1,800&display=swap"
rel="stylesheet"
/>
<title>Age calculator app</title>
</head>
<body>
<div class="container">
<form action="">
<div class="flex">
<div class="box">
<p class="small-text">Day</p>
<input type="number" name="day" id="day" placeholder="DD" />
<p class="err" id="day-err"></p>
</div>
<div class="box">
<p class="small-text">Month</p>
<input type="number" name="month" id="month" placeholder="MM" />
<p class="err" id="month-err"></p>
</div>
<div class="box">
<p class="small-text">Year</p>
<input type="number" name="year" id="year" placeholder="YYYY" />
<p class="err" id="year-err"></p>
</div>
</div>
<div class="inline-block">
<hr />
<button id="btn" type="submit">
<img src="assets/images/icon-arrow.svg" alt="down-arrow" />
</button>
</div>
</form>
<div class="flex-2">
<h1 class="heading"><span id="years">- - </span>years</h1>
<h1 class="heading"><span id="months">- - </span>months</h1>
<h1 class="heading"><span id="days">- - </span>days</h1>
</div>
</div>
<script src="index.js"></script>
</body>
</html>