victor HF Staff commited on
Commit
bbaad76
Β·
1 Parent(s): 2e90798

feat: Add game over message and player performance information

Browse files
Files changed (1) hide show
  1. index.html +4 -3
index.html CHANGED
@@ -24,7 +24,7 @@
24
  <h1 class="sm:text-xl">
25
  <span class="sm:text-2xl">🐞</span> Fake Insects <span class="bg-gray-200 text-sm text-gray-500 px-1 py-0.5 rounded ml-1 align-text-bottom">v0.0</span>
26
  </h1>
27
- <div class="flex items-center gap-1 max-sm:text-sm sm:gap-1.5 mx-auto">
28
  <p class="rounded bg-black px-1.5 text-white">
29
  <span class="font-normal">TIME LEFT:</span> <span id="time-left">25</span>s
30
  </p>
@@ -88,16 +88,17 @@
88
  <div
89
  class="flex flex-col gap-6 rounded-xl bg-white p-12 text-center shadow-2xl"
90
  >
91
- <p id="game-over-reason"></p>
92
  <div class="text-5xl">🐞</div>
93
  <div>
94
  <p class="mb-2 text-4xl font-bold">
95
  Your score:
96
  <span id="final-score" class="rounded-xl bg-black px-2 text-white">0</span>
97
  </p>
98
- <p id="game-over-message" class="text-lg text-gray-400">
99
  You found 0 fake insects in 25 seconds.
100
  </p>
 
101
  </div>
102
 
103
  <button
 
24
  <h1 class="sm:text-xl">
25
  <span class="sm:text-2xl">🐞</span> Fake Insects <span class="bg-gray-200 text-sm text-gray-500 px-1 py-0.5 rounded ml-1 align-text-bottom">v0.0</span>
26
  </h1>
27
+ <div class="flex items-center gap-1 max-sm:text-sm sm:gap-1.5 ml-auto sm:ml-12">
28
  <p class="rounded bg-black px-1.5 text-white">
29
  <span class="font-normal">TIME LEFT:</span> <span id="time-left">25</span>s
30
  </p>
 
88
  <div
89
  class="flex flex-col gap-6 rounded-xl bg-white p-12 text-center shadow-2xl"
90
  >
91
+ <p id="game-over-reason" class="font-semibold text-lg"></p>
92
  <div class="text-5xl">🐞</div>
93
  <div>
94
  <p class="mb-2 text-4xl font-bold">
95
  Your score:
96
  <span id="final-score" class="rounded-xl bg-black px-2 text-white">0</span>
97
  </p>
98
+ <p id="game-over-message" class="text-lg text-gray-500">
99
  You found 0 fake insects in 25 seconds.
100
  </p>
101
+ <p class="text-md text-gray-500">You've outperformed 97% of players.</p>
102
  </div>
103
 
104
  <button