Added a countdown timer

This commit is contained in:
Leon Mika 2026-01-16 22:12:30 +11:00
parent 70a782d0e4
commit 89a6b4d062
6 changed files with 115 additions and 16 deletions

View file

@ -3,14 +3,35 @@
}
body {
min-height: 100dvh;
--pico-form-element-disabled-opacity: 1.0;
}
.game-card {
display: flex;
flex-direction: column;
min-height: 80dvh;
min-height: 50vh;
}
.welcome-card .game-variant footer {
display: flex;
align-items: center;
justify-content: space-between;
}
.welcome-card .game-variant .high-scores {
display: flex;
gap: 10px;
}
.countdown-timer {
font-size: 3em;
text-align: center;
width: 100%;
}
input.fake {
position: fixed;
top: -600px;
}
.game-card header,
@ -29,6 +50,8 @@ body {
display: flex;
align-items: center;
padding-block-start: 40px;
}
.game-card .question {
@ -46,13 +69,13 @@ body {
}
.game-card .answer.right {
border-color: green;
color: green;
border-color: #4EB31B;
color: #4EB31B;
}
.game-card .answer.wrong {
border-color: red;
color: red;
border-color: #EE402E;
color: #EE402E;
}
.game-card .answer .indicator {