-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
47 lines (45 loc) · 2.78 KB
/
index.html
File metadata and controls
47 lines (45 loc) · 2.78 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stone_Paper_Scissors</title>
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
</head>
<body>
<div class="min-w-sm h-screen bg-orange-500/50">
<div id="heading" class="h-fit w-screen pt-3 md:pt-4 lg:pt-5 2xl:pt-6 bg-blue-900 grid items-center">
<p class="text-center text-4xl lg:text-5xl px-3 py-3 md:py-4 2xl:py-5 font-serif font-extrabold text-blue-50">Rock Paper Scissors</p>
</div>
<div id="options" class="flex flex-wrap gap-6 md:gap-10 lg:gap-20 py-10 md:py-12 lg:py-16 justify-center">
<img src="./images/rock.png" id="option" name="rock" alt="" class="h-[100px] w-[100px] md:h-[140px] md:w-[140px] lg:h-[150px] lg:w-[150px] object-cover rounded-full border-4 border-black lg:hover:scale-110">
<img src="./images/paper.png" id="option" name="paper" alt="" class="h-[100px] w-[100px] md:h-[140px] md:w-[140px] lg:h-[150px] lg:w-[150px] object-cover rounded-full border-4 border-black lg:hover:scale-110">
<img src="./images/scissors.png" id="option" name="scissor" alt="" class="h-[100px] w-[100px] md:h-[140px] md:w-[140px] lg:h-[150px] lg:w-[150px] object-cover rounded-full border-4 border-black lg:hover:scale-110">
</div>
<div id="choices" class="h-fit font-serif text-2xl md:text-3xl py-4 md:py-8">
<div id="user" class="flex mb-2 md:mb-3">
<div class="w-1/2 text-right pr-4">You :-</div>
<div id="user_choice" class="font-bold"></div>
</div>
<div id="computer" class="flex">
<div class="w-1/2 text-right pr-4">Computer :-</div>
<div id="comp_choice" class="font-bold"></div>
</div>
</div>
<div id="score_cards" class="flex gap-16 md:gap-24 lg:gap-32 py-10 md:py-8 lg:pb-6 justify-center">
<div class="font-serif text-3xl md:text-4xl lg:text-5xl">
<div id="userScore" class="text-center text-5xl md:text-7xl font-extrabold">0</div>
<div class="overline pt-2 md:pt-4 lg:pt-6">You</div>
</div>
<div class="font-serif text-3xl md:text-4xl lg:text-5xl">
<div id="compScore" class="text-center text-5xl md:text-7xl font-extrabold">0</div>
<div class="overline pt-2 md:pt-4 lg:pt-6">Comp</div>
</div>
</div>
<div class="flex justify-center md:mt-3 lg:mt-7">
<button type="reset" id="resetbtn" class="bg-blue-900 text-blue-50 text-xl md:text-2xl lg:text-4xl font-serif px-3 py-1 rounded-lg hidden">Reset</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>