Skip to content

Commit cc652b8

Browse files
committed
updates countdown UI
1 parent 3e2bc70 commit cc652b8

File tree

4 files changed

+477
-345
lines changed

4 files changed

+477
-345
lines changed

client/src/components/Round.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,15 @@ const Round: React.FC = () => {
8181
return (
8282
<div className="flex flex-col w-full items-center justify-center my-2">
8383
{isCountdownPeriod ? (
84-
<div className="fixed z-10 inset-0 backdrop-brightness-50 backdrop-blur-sm">
85-
<div className="flex w-full h-full items-center justify-center">
84+
<>
85+
<div className="z-40 absolute inset-0 bg-black/50 backdrop-brightness-50"></div>
86+
87+
<div className="z-50 absolute inset-0 bg-black/50 flex w-full h-full items-center justify-center">
8688
<div className="flex flex-row items-center justify-center">
8789
<h2 className="h2 !font-bold !text-white px-6">The next round starts in {countdown}</h2>
8890
</div>
8991
</div>
90-
</div>
92+
</>
9193
) : (
9294
<>
9395
<div className="flex w-full justify-between my-[2px]">

client/src/pages/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const Home: React.FC = () => {
4949
<Round />
5050
</div>
5151
{isAdmin && (
52-
<div className="w-full h-14 bottom-0 left-0 fixed flex justify-center items-start bg-white">
52+
<div className="w-full h-14 bottom-0 left-0 fixed flex justify-center items-start">
5353
<button onClick={handleEnd} disabled={endLoading} type="button" className="btn btn-enhanced !w-72">
5454
{endLoading ? "Ending..." : "End"}
5555
</button>

0 commit comments

Comments
 (0)