-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
110 lines (107 loc) · 5.31 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Alpha Clash Pro</title>
<!-- daisy UI and Tailwind -->
<link href="https://cdn.jsdelivr.net/npm/daisyui@4.12.2/dist/full.min.css" rel="stylesheet" type="text/css" />
<script src="https://cdn.tailwindcss.com"></script>
<!-- custom css -->
<link rel="stylesheet" href="Styles/styles.css">
</head>
<body class="font-poppins">
<main class="min-h-screen bg-[#010313] bg-[url(images/background.png)] bg-no-repeat bg-center">
<!-- home screen -->
<section id="home-screen" class="min-h-screen text-white flex justify-center items-center">
<div class="flex flex-col items-center gap-10" >
<p class="font-medium hover:font-bold">Developed By: Sumaiya Hossain Surovi</p>
<h1 class="text-8xl font-anton uppercase ">Alpha Clash Pro</h1>
<p>Unleash Your Keyboard Kung Fu : Press “Enter” to Play</p>
<button onclick="play()" class="btn bg-white text-black">Play Now</button>
</div>
</section>
<!-- playground start-->
<section id="play-ground" class="hidden">
<div class="flex flex-col items-center gap-20 pt-20">
<!-- screen -->
<div class="artboard artboard-horizontal phone-6 border-[20px] rounded-2xl border-[#010313CC] bg-[#FFFFFFB3]">
<div class="flex justify-center">
<p class="bg-[#2F2941] text-white px-6 pb-4 rounded-b-xl h-full">Don't watch keyboard while playing...</p>
</div>
<div class="flex justify-center items-center h-full">
<p id="current-alphabet" class="text-black font-bold text-9xl pb-12 uppercase">Y</p>
</div>
</div>
<!-- keyboard start-->
<div class="pt-20">
<div class="flex justify-center gap-1 my-1 w-full">
<kbd id="q" class="kbd">q</kbd>
<kbd id="w" class="kbd">w</kbd>
<kbd id="e" class="kbd">e</kbd>
<kbd id="r" class="kbd">r</kbd>
<kbd id="t" class="kbd">t</kbd>
<kbd id="y" class="kbd">y</kbd>
<kbd id="u" class="kbd">u</kbd>
<kbd id="i" class="kbd">i</kbd>
<kbd id="o" class="kbd">o</kbd>
<kbd id="p" class="kbd">p</kbd>
</div>
<div class="flex justify-center gap-1 my-1 w-full">
<kbd id="a" class="kbd">a</kbd>
<kbd id="s" class="kbd">s</kbd>
<kbd id="d" class="kbd">d</kbd>
<kbd id="f" class="kbd">f</kbd>
<kbd id="g" class="kbd">g</kbd>
<kbd id="h" class="kbd">h</kbd>
<kbd id="j" class="kbd">j</kbd>
<kbd id="k" class="kbd">k</kbd>
<kbd id="l" class="kbd">l</kbd>
</div>
<div class="flex justify-center gap-1 my-1 w-full">
<kbd id="z" class="kbd">z</kbd>
<kbd id="x" class="kbd">x</kbd>
<kbd id="c" class="kbd">c</kbd>
<kbd id="v" class="kbd">v</kbd>
<kbd id="b" class="kbd">b</kbd>
<kbd id="n" class="kbd">n</kbd>
<kbd id="m" class="kbd">m</kbd>
<kbd id="/" class="kbd">/</kbd>
</div>
</div>
<!-- keyboard end -->
<!-- life score -->
<div class="flex justify-between w-3/4">
<!-- display Life -->
<button class="btn rounded-full bg-[#894189] text-white px-4">
Life
<img src="images/heart.svg" alt="">
<span id="current-life">5</span>
</button>
<!-- display Score -->
<button class="btn rounded-full bg-[#360490] text-white px-4">
Score
<img src="images/dollar.svg" alt="">
<span id="current-score">0</span>
</button>
</div>
</div>
</section>
<!-- playground end -->
<!-- final score start-->
<section id="final-score" class="flex justify-center items-center min-h-screen hidden">
<div class="text-white text-center space-y-6 bg-[#FFFFFF33] p-6 rounded-lg">
<h4 class="text-3xl" >Game Over</h4>
<h1 class="text-8xl">
<span class="font-extrabold">Score:</span>
<span id="last-score">14</span>
</h1>
<button onclick="play()" class="btn">Play Again</button>
<p>Practice will make you a Pro</p>
</div>
</section>
</main>
<script src="scripts/utility.js"></script>
<script src="scripts/alpha-clas.js"></script>
</body>
</html>