-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
64 lines (59 loc) · 3.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Verses for Cave Men</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="flex items-center justify-center h-screen bg-gray-50">
<!-- Timer Selection Menu -->
<div id="timer-menu" class="border border-gray-200 rounded-lg shadow-lg w-96 bg-white">
<div class="p-4">
<h1 class="text-center text-xl font-bold mb-4">Select Timer Length</h1>
<div class="grid grid-cols-1 gap-2">
<button id="start-game-60" class="bg-blue-100 text-blue-600 font-semibold hover:bg-blue-200 transition duration-300 p-2 focus:outline-none">60 Seconds</button>
<!-- Custom Timer -->
<div class="flex items-center space-x-2">
<input type="number" id="custom-time" placeholder="Time in Seconds" class="border p-2 w-full focus:outline-none">
<button id="start-game-custom" class="bg-green-100 text-green-600 font-semibold hover:bg-green-200 transition duration-300 p-2 focus:outline-none">Start</button>
</div>
</div>
</div>
</div>
<!-- Main Game Screen (hidden initially) -->
<div id="game-screen" class="border border-gray-200 rounded-lg shadow-lg w-96 bg-white hidden">
<!-- Top section -->
<div class="grid grid-cols-3 border-b border-gray-200 p-4">
<div class="flex flex-col justify-between">
<span id="reset-score" class="text-gray-500 font-semibold hover:text-black transition duration-300 cursor-pointer">Reset Score</span>
<span id="score" class="self-start text-lg font-bold text-gray-800">Score: 0</span>
</div>
<div class="flex flex-col h-20 items-center justify-between">
<span id="word1" class="text-lg font-bold text-yellow-500 text-center break-words">Word1</span>
<span id="word3" class="text-lg font-bold text-green-500 text-center break-words">Word2</span>
</div>
<div class="flex justify-end">
<span id="timer-display" class="text-lg font-bold text-gray-800">Timer: 0</span>
</div>
</div>
<!-- Buttons -->
<div class="grid grid-cols-3 divide-x divide-gray-200">
<!-- -1 -->
<button id="score-1" class="bg-red-100 text-red-600 font-semibold hover:bg-red-200 transition duration-300 flex items-center justify-center p-4 focus:outline-none">
<span class="text-2xl">-1</span>
</button>
<!-- +1 -->
<button id="score+1" class="bg-yellow-100 text-yellow-600 font-semibold hover:bg-yellow-200 transition duration-300 flex items-center justify-center p-4 focus:outline-none">
<span class="text-2xl">+1</span>
</button>
<!-- +3 -->
<button id="score+3" class="bg-green-100 text-green-600 font-semibold hover:bg-green-200 transition duration-300 flex items-center justify-center p-4 focus:outline-none">
<span class="text-2xl">+3</span>
</button>
</div>
</div>
<!-- JavaScript Logic -->
<script src="js/script.js"></script>
</body>
</html>