codebeater - Beta Launch #10

Merged
5803025047 merged 103 commits from dev into main 2025-12-15 11:20:48 -05:00
3 changed files with 12 additions and 14 deletions
Showing only changes of commit ce3d54ab5f - Show all commits

View File

@ -131,6 +131,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
border: 10px solid white; border: 10px solid white;
border-radius: 10px;
} }
.container-first .content .quiz h2 { .container-first .content .quiz h2 {
@ -141,16 +142,23 @@
} }
.container-first #scoreAlert { .container-first #scoreAlert {
margin-bottom: 30px; text-align: center;
padding: 10px; padding: 10px;
color: #ffdf12; color: #ffdf12;
font-size: 40px; font-size: 40px;
bottom: 40px; bottom: 22px;
background-color: #101010f5;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
position: absolute; position: absolute;
} }
.container-first #scoreAlert.border {
width: 550px;
border: 6px solid white;
border-radius: 10px;
}
.container-first .content .quiz #btn-answer { .container-first .content .quiz #btn-answer {
color: #ffdf12; color: #ffdf12;
display: flex; display: flex;

View File

@ -132,15 +132,11 @@ input:-webkit-autofill {
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
height: 100dvh; height: 100dvh;
/* Hapus properti background dari sini dan pindahkan ke ::before */
/* Tambahkan posisi relatif agar pseudo-element bisa diposisikan absolut di dalamnya */
position: relative; position: relative;
/* Pastikan konten di dalam container ada di atas latar */
z-index: 1; z-index: 1;
} }
/* Pseudo-element untuk menampung gambar latar transparan */
.container-board::before { .container-board::before {
content: ""; content: "";
position: absolute; position: absolute;
@ -148,19 +144,12 @@ input:-webkit-autofill {
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
/* Pindahkan properti background Anda ke sini */
background-image: url(/assets/Design/CampFire8WESFIX!-export.png); background-image: url(/assets/Design/CampFire8WESFIX!-export.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: cover; background-size: cover;
background-position: center; background-position: center;
image-rendering: pixelated; image-rendering: pixelated;
/* >>> INI KUNCINYA: Atur opasitasnya di sini <<< */
opacity: 1; opacity: 1;
/* Contoh nilai 40% transparan */
/* Pindahkan latar ini ke lapisan paling bawah */
z-index: -1; z-index: -1;
} }

View File

@ -129,6 +129,7 @@ function showScore(){
bgm.play() bgm.play()
setTimeout(()=> { setTimeout(()=> {
const alerts = document.getElementById("scoreAlert") const alerts = document.getElementById("scoreAlert")
alerts.classList.add("border")
alerts.textContent = `you scored ${score} out of 200 !`; alerts.textContent = `you scored ${score} out of 200 !`;
}, 200); }, 200);
setTimeout(()=> { setTimeout(()=> {