-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (52 loc) · 2.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>It's time to live</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="./src/css/main.css" rel="stylesheet">
</head>
<body>
<main>
<section class="min-h-screen bg-gradient-to-r from-blue-300 to-cyan-100 dark:from-blue-900 dark:to-cyan-700 dark:text-gray-200 py-10" id="start">
<div class="container mx-auto px-5 grid grid-cols-1 lg:grid-cols-3 gap-5">
<div></div>
<div class="order-2">
<div id="yearsList" class="mt-10 space-y-5"></div>
</div>
<div class="order-1 lg:order-last">
<div class="lg:sticky lg:top-5">
<div class="flex justify-center items-center space-x-2">
<label for="dob">Enter your date of birth:</label>
<input type="date" id="dob" class="rounded py-2 px-3 bg-gray-50 dark:bg-gray-800 dark:text-gray-50" name="dob">
</div>
<div class="space-y-3 mt-10">
<div class="flex items-center space-x-2">
<div class="w-full h-4 max-w-4 border-4 border-black rounded bg-red-500"></div>
<p>This color represents the weeks you have lived</p>
</div>
<div class="flex items-center space-x-2">
<div class="w-full h-4 max-w-4 border-4 border-black rounded bg-green-600"></div>
<p>This color represents the weeks you have remaining if you live up to 100 years</p>
</div>
<div class="flex items-center space-x-2">
<div class="w-full h-4 max-w-4 border-4 border-black rounded bg-gray-400"></div>
<p>This color represents the weeks you have not lived yet</p>
</div>
</div>
<div>
<div id="infoPassed" class="text-base lg:text-xl font-bold text-center mt-5"></div>
<div id="infoRemaining" class="text-base lg:text-xl font-bold text-center mt-2"></div>
</div>
<div class="flex justify-center flex-wrap gap-3 mt-5">
<a href='#year2024' class="px-2 py-1 text-gray-50 bg-gray-800 rounded-lg">Go to current year</a>
<a href='#start' class="px-2 py-1 text-gray-50 bg-gray-800 rounded-lg">Go to start page</a>
</div>
</div>
</div>
</div>
</section>
</main>
<script type="module" src="src/ts/main.ts"></script>
</body>
</html>