-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (37 loc) · 1.84 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<title>Age Calculator</title>
</head>
<body>
<div
class="w-full h-screen bg-gradient-to-br from-purple-900 via-violet-500 to-indigo-400 dark:bg-gradient-to-br dark:from-purple-400 dark:via-purple-700 dark:to-black/90 flex flex-wrap">
<div class="pt-[8%] ml-[8%] w-2/4">
<h1 class="text-6xl font-extrabold text-white">JavaScript<br><span class="text-yellow-500">Age
Calculator</span></h1>
<div class="bg-white/20 p-9 mt-10 rounded-lg flex items-center">
<input type="date" id="date"
class="flex-1 rounded-md text-lg py-3 px-2 mr-4 outline-none dark:bg-neutral-800 dark:text-white">
<button
class="bg-yellow-500 dark:text-white font-semibold py-3 px-4 rounded-lg text-xl cursor-pointer hover:scale-105"
onclick="ageCalculate()">Calculate</button>
</div>
<p id="spcl-msg"
class="text-3xl text-white font-extrabold mt-5 transform scale-0 transition-transform duration-2000">
Wohoo.... Happy Birthday Stranger</p>
<p id="result" class="text-2xl text-white font-bold mt-6"></p>
</div>
<div class="ml-5 flex items-center">
<img src="https://clipart-library.com/images/dc48Kxpei.gif" id="spcl-img"
class="w-auto h-56 transform scale-0 transition-transform duration-2000">
</div>
<div class="absolute bottom-0 left-0 right-0 text-center mb-2 text-white ">
© Made by Debraj
</div>
</div>
<script src="main.js"></script>
</body>
</html>