-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·96 lines (92 loc) · 2.93 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Building an age calculator application" />
<title>Age calculator app</title>
<!-- Favicon -->
<link
rel="apple-touch-icon"
sizes="180x180"
href="/assets/favicon/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/assets/favicon/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/assets/favicon/favicon-16x16.png"
/>
<link rel="manifest" href="/assets/favicon/site.webmanifest" />
<!-- CSS Link -->
<link rel="stylesheet" href="/src/css/main.css" />
<!-- JavaScript Link -->
<script type="module" src="/src/js/main.js"></script>
</head>
<body>
<main>
<div class="app-component">
<!-- Form component -->
<form class="form-component">
<div class="input-component">
<div class="input-component__day">
<label for="day">Day</label>
<input
type="text"
id="day"
name="day"
placeholder="DD"
aria-errormessage="day-errormessage"
/>
<p aria-live="polite" id="day-errormessage" hidden></p>
</div>
<div class="input-component__month">
<label for="month">Month</label>
<input
type="text"
id="month"
name="month"
placeholder="MM"
aria-errormessage="month-errormessage"
/>
<p aria-live="polite" id="month-errormessage" hidden></p>
</div>
<div class="input-component__year">
<label for="month">Year</label>
<input
type="text"
id="year"
name="year"
placeholder="YYYY"
aria-errormessage="year-errormessage"
/>
<p aria-live="polite" id="year-errormessage" hidden></p>
</div>
</div>
<div class="submit-component">
<div class="stroke" aria-hidden="true"></div>
<button type="submit" class="btn-submit" aria-label="submit values">
<img
src="/assets/images/icon-arrow.svg"
alt=""
aria-hidden="true"
/>
</button>
</div>
</form>
<!-- Display age component -->
<div class="display-age-component">
<p class="display-age-component__year"><span>--</span> years</p>
<p class="display-age-component__month"><span>--</span> months</p>
<p class="display-age-component__days"><span>--</span> days</p>
</div>
</div>
</main>
</body>
</html>