-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (64 loc) · 2.42 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form Validation</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;800&display=swap" rel="stylesheet">
<link rel="icon" href="favicon-32x32.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main>
<div class="container">
<form id="date-form" action="">
<div class="input-group">
<fieldset>
<label for="day">day</label>
<input id="day" type="text" placeholder="dd">
<p class="error-message">This field is required</p>
</fieldset>
<fieldset>
<label for="month">month</label>
<input id="month" type="text" placeholder="mm">
<p class="error-message">This field is required</p>
</fieldset>
<fieldset>
<label for="year">year</label>
<input id="year" type="text" placeholder="yyyy">
<p class="error-message">This field is required</p>
</fieldset>
</div>
<div class="button-container">
<div></div>
<button type="submit"><img src="icon-arrow.svg" alt="" width="30"></button>
</div>
</form>
<div class="result-container">
<div class="years-result result">
<div class="result-info">
<div class="result-dash"></div>
<div class="result-dash"></div>
<span class="result-text" id="years-info"></span> years
</div>
</div>
<div class="months-result result">
<div class="result-info">
<div class="result-dash"></div>
<div class="result-dash"></div>
<span class="result-text" id="months-info"></span> months
</div>
</div>
<div class="days-result result">
<div class="result-info">
<div class="result-dash"></div>
<div class="result-dash"></div>
<span class="result-text" id="days-info"></span> days
</div>
</div>
</div>
</div>
</main>
<script src="script.js"></script>
</body>
</html>