-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
83 lines (63 loc) · 2.77 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
<!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>Frontend Mentor | Age calculator app</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="d-flex justify-content-center align-items-center">
<div class="wrapper">
<form class="row g-3 needs-validation" novalidate>
<div class="col-4 col-xl-3 input-control">
<label for="dayOfBirth" class="form-label">DAY</label>
<input type="number" id="dayOfBirth" class="form-control" placeholder="DD" required>
<div class="feedback"></div>
</div>
<div class="col-4 col-xl-3 input-control">
<label for="monthOfBirth" class="form-label">MONTH</label>
<input type="number" id="monthOfBirth" class="form-control" placeholder="MM" required>
<div class="feedback"></div>
</div>
<div class="col-4 col-xl-3 input-control">
<label for="yearOfBirth" class="form-label">YEAR</label>
<input type="number" id="yearOfBirth" class="form-control" placeholder="YYYY" required>
<div class="feedback"></div>
</div>
</form>
<hr>
<div>
<img class="icon-btn " id="calculate-age" src="./assets/images/icon-arrow.svg" alt="">
</div>
<div class="age-info">
<div class="d-flex align-items-center">
<span class="me-3 color-purple " id="years">--</span>
<h1 class="">years</h1>
</div>
<div class="d-flex align-items-center">
<span class="me-3 color-purple " id="months">--</span>
<h1 class="">months</h1>
</div>
<div class="d-flex align-items-center">
<span class="me-3 color-purple" id="days">--</span>
<h1 class="">days</h1>
</div>
</div>
</div>
</main>
<footer class="attribution">
Coded by <a href="https://github.com/SartHak-0-Sach" target="_blank">Sarthak Sachdev</a>.
</footer>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"
integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.min.js"
integrity="sha384-fbbOQedDUMZZ5KreZpsbe1LCZPVmfTnH7ois6mU1QK+m14rQ1l2bGBq41eYeM/fS"
crossorigin="anonymous"></script>
<script src="script.js"></script>
</body>
</html>