From 530d7c664fc6d6ead87265187a50976c44b698d5 Mon Sep 17 00:00:00 2001 From: Yustina Date: Tue, 16 Dec 2025 01:51:22 +0700 Subject: [PATCH] update : credit + edit container --- gameboard-easy.html | 14 +- mainboard.html | 421 +++++++++++++++++++------------------------- 2 files changed, 188 insertions(+), 247 deletions(-) diff --git a/gameboard-easy.html b/gameboard-easy.html index 8985866..eb25ffc 100644 --- a/gameboard-easy.html +++ b/gameboard-easy.html @@ -8,9 +8,8 @@ +/* ================================ +4. OVERLAY CREDITS (ANIMASI JALAN) +================================== */ +.credits-overlay { + position: fixed; + top: 0; left: 0; width: 100%; height: 100%; + background: rgba(0, 0, 0, 0.95); + backdrop-filter: blur(10px); + display: none; /* Muncul lewat JS */ + flex-direction: column; + justify-content: center; + align-items: center; + z-index: 9999; + color: white; +} +.credits-box { + height: 60%; + width: 80%; + max-width: 500px; + overflow: hidden; + position: relative; + border-top: 1px solid rgba(255,255,255,0.2); + border-bottom: 1px solid rgba(255,255,255,0.2); +} + +.credits-scroll { + position: absolute; + width: 100%; + text-align: center; + animation: scrollAnimation 15s linear infinite; +} + +@keyframes scrollAnimation { + 0% { top: 100%; } + 100% { top: -120%; } +} + +.credits-title { color: #ff419b; font-size: 2.5rem; margin-bottom: 30px; } +.credits-section { margin-bottom: 30px; } +.close-credits { + margin-top: 30px; + padding: 12px 40px; + background: white; + color: black; + border: none; + border-radius: 10px; + font-weight: bold; + cursor: pointer; +} + +/* Musik */ +.music-container { position: fixed; top: 20px; right: 20px; z-index: 1000; } +.music-btn { width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer; font-size: 24px; background: white; } + + + + + + +
- +
- - - - - - - - - - - - -
+
-
- + +
-

Memory Flip Card Game

+

Memory Flip Card

Pilih tingkat kesulitan untuk memulai permainan

- - - - -
-
- + document.getElementById("logoutBtn").addEventListener("click", () => { + alert("Logout berhasil!"); + }); + + // OVERLAY CREDITS + function openCredits() { + document.getElementById('creditsOverlay').style.display = 'flex'; + } + + function closeCredits() { + document.getElementById('creditsOverlay').style.display = 'none'; + } + \ No newline at end of file