-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (44 loc) · 2.27 KB
/
Copy pathindex.html
File metadata and controls
54 lines (44 loc) · 2.27 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Countdown Timer</title>
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
</head>
<body class="flex justify-center items-center min-h-screen bg-gradient-to-br from-blue-100 to-indigo-200 relative">
<div class="bg-white rounded-2xl shadow-lg p-8 max-w-md w-full text-center">
<h2 class="text-2xl font-semibold text-gray-800">🎉 Event Countdown</h2>
<p class="text-sm text-gray-500 mt-1">The event will begin in</p>
<hr class="my-4 border-gray-300">
<div id="timenotset"></div>
<div id="countdown" class="flex justify-center gap-4 text-4xl font-bold text-gray-800">
<div class="flex flex-col items-center">
<span id="days">00</span>
<span class="text-sm text-gray-600 mt-1">Days</span>
</div>
<div class="flex flex-col items-center">
<span id="hours">00</span>
<span class="text-sm text-gray-600 mt-1">Hours</span>
</div>
<div class="flex flex-col items-center">
<span id="minutes">00</span>
<span class="text-sm text-gray-600 mt-1">Minutes</span>
</div>
<div class="flex flex-col items-center">
<span id="seconds">00</span>
<span class="text-sm text-gray-600 mt-1">Seconds</span>
</div>
</div>
</div>
<div class="absolute top-10 left-10 border border-gray-300 rounded-lg bg-white/30 backdrop-blur-md shadow-xl">
<div class="p-8 flex flex-col justify-center">
<h3 class="text-xl font-semibold text-gray-800 mb-4">⏰ Set Event Time</h3>
<label for="set-time" class="text-sm text-gray-700 mb-2">Select Date & Time:</label>
<input type="datetime-local" id="set-time" class="p-2 rounded border border-gray-400 mb-4 w-full bg-white/60 backdrop-blur-sm"/>
<button onclick="setEventTime()" class="w-full bg-blue-600 text-white py-2 rounded hover:bg-blue-700 transition hover:cursor-pointer">Start Countdown</button>
</div>
</div>
<script src="main.js"></script>
</body>
</html>