fix: panda interactivity is not running
Build Container Image / Build linux/arm64 image (push) Successful in 2m2s
Build Container Image / Build linux/amd64 image (push) Successful in 2m6s
Build Container Image / Create multi-architecture image (push) Successful in 24s

This commit is contained in:
2026-10-06 00:41:56 +07:00
parent 0b09513257
commit c509f39999
16 changed files with 275 additions and 314 deletions
+21 -5
View File
@@ -3,10 +3,6 @@ package web
templ CaveBackground() {
@templ.Raw(` <div class="cave-decorations" aria-hidden="true">
<div class="cave-decoration cave-ore cave-ore-vein-1"><img class="cave-ore-2" src="https://cdn.fossy.my.id/public/ore-decoration-set.svg" width="336" height="48" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-ore cave-ore-vein-2"><img class="cave-ore-5" src="https://cdn.fossy.my.id/public/ore-decoration-set.svg" width="336" height="48" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-ore cave-ore-right"><img class="cave-ore-7" src="https://cdn.fossy.my.id/public/ore-decoration-set.svg" width="336" height="48" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-torchlight cave-light-left"><img src="https://cdn.fossy.my.id/public/torchlight-dither-overlay.svg" width="192" height="192" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-torch cave-torch-left cave-torch-animated cave-animated"><img class="torch-sheet" src="https://cdn.fossy.my.id/public/wall-torch.svg" width="256" height="128" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-torchlight cave-light-right"><img src="https://cdn.fossy.my.id/public/torchlight-dither-overlay.svg" width="192" height="192" loading="lazy" decoding="async" alt=""></div>
@@ -23,7 +19,27 @@ templ CaveBackground() {
<div class="cave-decoration cave-dust cave-dust-9 cave-animated"><img class="cave-dust-frame-1" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-10 cave-animated"><img class="cave-dust-frame-2" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
</div>
</div>
<div class="cave-ore-cluster cave-ore-cluster-left" aria-hidden="true">
<span class="cave-ore-block cave-ore-2 cave-ore-block-1"></span>
<span class="cave-ore-block cave-ore-2 cave-ore-block-2"></span>
<span class="cave-ore-block cave-ore-2 cave-ore-block-3"></span>
<span class="cave-ore-block cave-ore-2 cave-ore-block-4"></span>
<span class="cave-ore-block cave-ore-2 cave-ore-block-5"></span>
</div>
<div class="cave-ore-cluster cave-ore-cluster-left-lower" aria-hidden="true">
<span class="cave-ore-block cave-ore-5 cave-ore-block-1"></span>
<span class="cave-ore-block cave-ore-5 cave-ore-block-2"></span>
<span class="cave-ore-block cave-ore-5 cave-ore-block-3"></span>
<span class="cave-ore-block cave-ore-5 cave-ore-block-4"></span>
<span class="cave-ore-block cave-ore-5 cave-ore-block-5"></span>
</div>
<div class="cave-ore-cluster cave-ore-cluster-right" aria-hidden="true">
<span class="cave-ore-block cave-ore-7 cave-ore-block-1"></span>
<span class="cave-ore-block cave-ore-7 cave-ore-block-3"></span>
<span class="cave-ore-block cave-ore-7 cave-ore-block-4"></span>
<span class="cave-ore-block cave-ore-7 cave-ore-block-5"></span>
</div>
<button type="button" class="cave-miner cave-animated" aria-label="Panda penambang: Semangat kuis nya >ᴗ<" aria-pressed="false">
<span class="cave-miner-sprite" aria-hidden="true"><img src="https://cdn.fossy.my.id/public/panda-miner.svg" width="768" height="192" loading="lazy" decoding="async" alt=""></span>
<span class="cave-miner-bubble" aria-hidden="true"><span>Semangat kuis nya &gt;ᴗ&lt;</span></span>
+21 -5
View File
@@ -30,10 +30,6 @@ func CaveBackground() templ.Component {
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templ.Raw(` <div class="cave-decorations" aria-hidden="true">
<div class="cave-decoration cave-ore cave-ore-vein-1"><img class="cave-ore-2" src="https://cdn.fossy.my.id/public/ore-decoration-set.svg" width="336" height="48" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-ore cave-ore-vein-2"><img class="cave-ore-5" src="https://cdn.fossy.my.id/public/ore-decoration-set.svg" width="336" height="48" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-ore cave-ore-right"><img class="cave-ore-7" src="https://cdn.fossy.my.id/public/ore-decoration-set.svg" width="336" height="48" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-torchlight cave-light-left"><img src="https://cdn.fossy.my.id/public/torchlight-dither-overlay.svg" width="192" height="192" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-torch cave-torch-left cave-torch-animated cave-animated"><img class="torch-sheet" src="https://cdn.fossy.my.id/public/wall-torch.svg" width="256" height="128" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-torchlight cave-light-right"><img src="https://cdn.fossy.my.id/public/torchlight-dither-overlay.svg" width="192" height="192" loading="lazy" decoding="async" alt=""></div>
@@ -50,7 +46,27 @@ func CaveBackground() templ.Component {
<div class="cave-decoration cave-dust cave-dust-9 cave-animated"><img class="cave-dust-frame-1" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
<div class="cave-decoration cave-dust cave-dust-10 cave-animated"><img class="cave-dust-frame-2" src="https://cdn.fossy.my.id/public/cave-dust-particles.svg" width="128" height="32" loading="lazy" decoding="async" alt=""></div>
</div>
</div>
<div class="cave-ore-cluster cave-ore-cluster-left" aria-hidden="true">
<span class="cave-ore-block cave-ore-2 cave-ore-block-1"></span>
<span class="cave-ore-block cave-ore-2 cave-ore-block-2"></span>
<span class="cave-ore-block cave-ore-2 cave-ore-block-3"></span>
<span class="cave-ore-block cave-ore-2 cave-ore-block-4"></span>
<span class="cave-ore-block cave-ore-2 cave-ore-block-5"></span>
</div>
<div class="cave-ore-cluster cave-ore-cluster-left-lower" aria-hidden="true">
<span class="cave-ore-block cave-ore-5 cave-ore-block-1"></span>
<span class="cave-ore-block cave-ore-5 cave-ore-block-2"></span>
<span class="cave-ore-block cave-ore-5 cave-ore-block-3"></span>
<span class="cave-ore-block cave-ore-5 cave-ore-block-4"></span>
<span class="cave-ore-block cave-ore-5 cave-ore-block-5"></span>
</div>
<div class="cave-ore-cluster cave-ore-cluster-right" aria-hidden="true">
<span class="cave-ore-block cave-ore-7 cave-ore-block-1"></span>
<span class="cave-ore-block cave-ore-7 cave-ore-block-3"></span>
<span class="cave-ore-block cave-ore-7 cave-ore-block-4"></span>
<span class="cave-ore-block cave-ore-7 cave-ore-block-5"></span>
</div>
<button type="button" class="cave-miner cave-animated" aria-label="Panda penambang: Semangat kuis nya >ᴗ<" aria-pressed="false">
<span class="cave-miner-sprite" aria-hidden="true"><img src="https://cdn.fossy.my.id/public/panda-miner.svg" width="768" height="192" loading="lazy" decoding="async" alt=""></span>
<span class="cave-miner-bubble" aria-hidden="true"><span>Semangat kuis nya &gt;ᴗ&lt;</span></span>
+1 -35
View File
@@ -205,6 +205,7 @@ templ Landing() {
</div>
`)
@ScaryRightBackground()
@MascotInteractions()
@templ.Raw(` </div>
</section>
@@ -266,42 +267,7 @@ templ Landing() {
const serverIP = 'minecraft.csui.dev';
const toast = document.getElementById('advancementToast');
const toastMessage = document.getElementById('toastMessage');
const pandaRunner = document.querySelector('.panda-runner');
const caveMiner = document.querySelector('.cave-miner');
const scaryPanda = document.querySelector('.login-scary-panda-trigger');
let toastTimer = null;
let pandaTouchTimer = null;
let minerTouchTimer = null;
let scaryPandaTouchTimer = null;
pandaRunner.addEventListener('click', () => {
if (pandaRunner.classList.contains('is-touched')) return;
clearTimeout(pandaTouchTimer);
pandaRunner.classList.add('is-touched');
pandaTouchTimer = setTimeout(() => pandaRunner.classList.remove('is-touched'), 3000);
});
caveMiner.addEventListener('click', () => {
if (caveMiner.classList.contains('is-touched')) return;
clearTimeout(minerTouchTimer);
caveMiner.classList.add('is-touched');
caveMiner.setAttribute('aria-pressed', 'true');
minerTouchTimer = setTimeout(() => {
caveMiner.classList.remove('is-touched');
caveMiner.setAttribute('aria-pressed', 'false');
}, 3000);
});
scaryPanda.addEventListener('click', () => {
if (scaryPanda.classList.contains('is-touched')) return;
clearTimeout(scaryPandaTouchTimer);
scaryPanda.classList.add('is-touched');
scaryPanda.setAttribute('aria-pressed', 'true');
scaryPandaTouchTimer = setTimeout(() => {
scaryPanda.classList.remove('is-touched');
scaryPanda.setAttribute('aria-pressed', 'false');
}, 3000);
});
function showToast(message) {
if (toastTimer) clearTimeout(toastTimer);
+4 -35
View File
@@ -262,6 +262,10 @@ func Landing() templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = MascotInteractions().Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.Raw(` </div>
</section>
@@ -323,42 +327,7 @@ func Landing() templ.Component {
const serverIP = 'minecraft.csui.dev';
const toast = document.getElementById('advancementToast');
const toastMessage = document.getElementById('toastMessage');
const pandaRunner = document.querySelector('.panda-runner');
const caveMiner = document.querySelector('.cave-miner');
const scaryPanda = document.querySelector('.login-scary-panda-trigger');
let toastTimer = null;
let pandaTouchTimer = null;
let minerTouchTimer = null;
let scaryPandaTouchTimer = null;
pandaRunner.addEventListener('click', () => {
if (pandaRunner.classList.contains('is-touched')) return;
clearTimeout(pandaTouchTimer);
pandaRunner.classList.add('is-touched');
pandaTouchTimer = setTimeout(() => pandaRunner.classList.remove('is-touched'), 3000);
});
caveMiner.addEventListener('click', () => {
if (caveMiner.classList.contains('is-touched')) return;
clearTimeout(minerTouchTimer);
caveMiner.classList.add('is-touched');
caveMiner.setAttribute('aria-pressed', 'true');
minerTouchTimer = setTimeout(() => {
caveMiner.classList.remove('is-touched');
caveMiner.setAttribute('aria-pressed', 'false');
}, 3000);
});
scaryPanda.addEventListener('click', () => {
if (scaryPanda.classList.contains('is-touched')) return;
clearTimeout(scaryPandaTouchTimer);
scaryPanda.classList.add('is-touched');
scaryPanda.setAttribute('aria-pressed', 'true');
scaryPandaTouchTimer = setTimeout(() => {
scaryPanda.classList.remove('is-touched');
scaryPanda.setAttribute('aria-pressed', 'false');
}, 3000);
});
function showToast(message) {
if (toastTimer) clearTimeout(toastTimer);
+2 -1
View File
@@ -6,7 +6,8 @@ templ LoginStrataBackground() {
{{ selected := rand.IntN(3) }}
if selected == 0 {
<div class="status-random-background status-random-background-overworld">
@OverworldBackground()
@OverworldScenery()
<button type="button" class="status-panda-runner" aria-label="Klik untuk mengelus panda" aria-pressed="false"><span class="status-panda" aria-hidden="true"></span><span class="status-panda-bubble" role="status">Hari yang cerah tanpa kuis ◝(ᵔᗜᵔ)◜</span></button>
</div>
} else if selected == 1 {
<div class="status-random-background status-random-background-cave stratum-cave">
+2 -2
View File
@@ -37,11 +37,11 @@ func LoginStrataBackground() templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = OverworldBackground().Render(ctx, templ_7745c5c3_Buffer)
templ_7745c5c3_Err = OverworldScenery().Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "</div>")
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "<button type=\"button\" class=\"status-panda-runner\" aria-label=\"Klik untuk mengelus panda\" aria-pressed=\"false\"><span class=\"status-panda\" aria-hidden=\"true\"></span><span class=\"status-panda-bubble\" role=\"status\">Hari yang cerah tanpa kuis ◝(ᵔᗜᵔ)◜</span></button></div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
+3 -48
View File
@@ -33,9 +33,8 @@ templ LoginFailure() {
`)
@LoginStrataBackground()
@templ.Raw(`<div class="panda-bubble login-panda-chat-bubble" role="status" aria-live="polite" hidden></div>
<div aria-live="assertive" class="relative z-10 w-full max-w-[560px] bevel-inventory p-6 sm:p-8 md:p-10 animate-drop-in mx-auto text-center" role="alert">
@MascotInteractions()
@templ.Raw(`<div aria-live="assertive" class="relative z-10 w-full max-w-[560px] bevel-inventory p-6 sm:p-8 md:p-10 animate-drop-in mx-auto text-center" role="alert">
<div class="w-20 h-20 sm:w-24 sm:h-24 mx-auto mb-6 bevel-slot-inset flex items-center justify-center"><div class="w-14 h-14 sm:w-16 sm:h-16 bg-[#AA0000] border-2 border-black flex items-center justify-center shadow-[inset_2px_2px_0_#ff5555,inset_-2px_-2px_0_#550000]"><svg aria-label="Tanda silang merah tanda gagal" class="w-10 h-10 sm:w-12 sm:h-12 animate-check-pop" fill="none" role="img" viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><rect fill="#FFFFFF" height="2" width="2" x="2" y="2"></rect><rect fill="#FFFFFF" height="2" width="2" x="12" y="2"></rect><rect fill="#FFFFFF" height="2" width="2" x="4" y="4"></rect><rect fill="#FFFFFF" height="2" width="2" x="10" y="4"></rect><rect fill="#FFFFFF" height="4" width="4" x="6" y="6"></rect><rect fill="#FFFFFF" height="2" width="2" x="4" y="10"></rect><rect fill="#FFFFFF" height="2" width="2" x="10" y="10"></rect><rect fill="#FFFFFF" height="2" width="2" x="2" y="12"></rect><rect fill="#FFFFFF" height="2" width="2" x="12" y="12"></rect><rect fill="#550000" height="1" width="2" x="2" y="4"></rect><rect fill="#550000" height="1" width="2" x="12" y="4"></rect><rect fill="#550000" height="1" width="2" x="4" y="6"></rect><rect fill="#550000" height="1" width="2" x="10" y="6"></rect><rect fill="#550000" height="1" width="4" x="6" y="10"></rect><rect fill="#550000" height="1" width="2" x="4" y="12"></rect><rect fill="#550000" height="1" width="2" x="10" y="12"></rect><rect fill="#550000" height="1" width="2" x="2" y="14"></rect><rect fill="#550000" height="1" width="2" x="12" y="14"></rect></svg></div></div>
@@ -61,57 +60,13 @@ templ LoginFailure() {
</p>
</div>
</footer>
<script>
window.addEventListener('DOMContentLoaded', () => {
const heading = document.getElementById('success-heading');
if (heading) {
heading.focus();
}
const statusMain = document.querySelector('.status-main');
const chatBubble = statusMain && statusMain.querySelector('.login-panda-chat-bubble');
const mascots = statusMain && statusMain.querySelectorAll('.panda-runner, .cave-miner, .login-scary-panda-trigger');
let bubbleTimer = null;
let activeMascot = null;
mascots && mascots.forEach(mascot => {
mascot.addEventListener('click', () => {
const target = mascot;
if (bubbleTimer) clearTimeout(bubbleTimer);
if (activeMascot && activeMascot !== target) {
activeMascot.classList.remove('is-touched');
activeMascot.setAttribute('aria-pressed', 'false');
}
activeMascot = target;
target.classList.add('is-touched');
target.setAttribute('aria-pressed', 'true');
const message = mascot.dataset.loginChat || (mascot.classList.contains('cave-miner') ? 'Semangat kuis nya >ᴗ<' : 'Hari yang cerah tanpa kuis ◝(ᵔᗜᵔ)◜');
const mirrored = mascot.classList.contains('cave-miner') || mascot.classList.contains('login-scary-panda-trigger');
const mainBounds = statusMain.getBoundingClientRect();
const mascotBounds = mascot.getBoundingClientRect();
chatBubble.replaceChildren(Object.assign(document.createElement('span'), { textContent: message }));
chatBubble.classList.toggle('is-mirrored', mirrored);
chatBubble.hidden = false;
chatBubble.classList.remove('is-visible');
const bubbleWidth = chatBubble.offsetWidth;
const bubbleHeight = chatBubble.offsetHeight;
const left = Math.max(16, Math.min(mascotBounds.left + mascotBounds.width / 2 - bubbleWidth / 2 - mainBounds.left, mainBounds.width - bubbleWidth - 16));
const above = mascotBounds.top - bubbleHeight - 12 - mainBounds.top;
const top = Math.max(16, Math.min(above, mainBounds.height - bubbleHeight - 16));
chatBubble.style.left = left + 'px';
chatBubble.style.top = top + 'px';
void chatBubble.offsetWidth;
chatBubble.classList.add('is-visible');
bubbleTimer = setTimeout(() => {
chatBubble.classList.remove('is-visible');
chatBubble.hidden = true;
target.classList.remove('is-touched');
target.setAttribute('aria-pressed', 'false');
activeMascot = null;
}, 3000);
});
});
});
</script>
</body>
+6 -48
View File
@@ -66,9 +66,11 @@ func LoginFailure() templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.Raw(`<div class="panda-bubble login-panda-chat-bubble" role="status" aria-live="polite" hidden></div>
<div aria-live="assertive" class="relative z-10 w-full max-w-[560px] bevel-inventory p-6 sm:p-8 md:p-10 animate-drop-in mx-auto text-center" role="alert">
templ_7745c5c3_Err = MascotInteractions().Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.Raw(`<div aria-live="assertive" class="relative z-10 w-full max-w-[560px] bevel-inventory p-6 sm:p-8 md:p-10 animate-drop-in mx-auto text-center" role="alert">
<div class="w-20 h-20 sm:w-24 sm:h-24 mx-auto mb-6 bevel-slot-inset flex items-center justify-center"><div class="w-14 h-14 sm:w-16 sm:h-16 bg-[#AA0000] border-2 border-black flex items-center justify-center shadow-[inset_2px_2px_0_#ff5555,inset_-2px_-2px_0_#550000]"><svg aria-label="Tanda silang merah tanda gagal" class="w-10 h-10 sm:w-12 sm:h-12 animate-check-pop" fill="none" role="img" viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><rect fill="#FFFFFF" height="2" width="2" x="2" y="2"></rect><rect fill="#FFFFFF" height="2" width="2" x="12" y="2"></rect><rect fill="#FFFFFF" height="2" width="2" x="4" y="4"></rect><rect fill="#FFFFFF" height="2" width="2" x="10" y="4"></rect><rect fill="#FFFFFF" height="4" width="4" x="6" y="6"></rect><rect fill="#FFFFFF" height="2" width="2" x="4" y="10"></rect><rect fill="#FFFFFF" height="2" width="2" x="10" y="10"></rect><rect fill="#FFFFFF" height="2" width="2" x="2" y="12"></rect><rect fill="#FFFFFF" height="2" width="2" x="12" y="12"></rect><rect fill="#550000" height="1" width="2" x="2" y="4"></rect><rect fill="#550000" height="1" width="2" x="12" y="4"></rect><rect fill="#550000" height="1" width="2" x="4" y="6"></rect><rect fill="#550000" height="1" width="2" x="10" y="6"></rect><rect fill="#550000" height="1" width="4" x="6" y="10"></rect><rect fill="#550000" height="1" width="2" x="4" y="12"></rect><rect fill="#550000" height="1" width="2" x="10" y="12"></rect><rect fill="#550000" height="1" width="2" x="2" y="14"></rect><rect fill="#550000" height="1" width="2" x="12" y="14"></rect></svg></div></div>
@@ -94,57 +96,13 @@ func LoginFailure() templ.Component {
</p>
</div>
</footer>
<script>
window.addEventListener('DOMContentLoaded', () => {
const heading = document.getElementById('success-heading');
if (heading) {
heading.focus();
}
const statusMain = document.querySelector('.status-main');
const chatBubble = statusMain && statusMain.querySelector('.login-panda-chat-bubble');
const mascots = statusMain && statusMain.querySelectorAll('.panda-runner, .cave-miner, .login-scary-panda-trigger');
let bubbleTimer = null;
let activeMascot = null;
mascots && mascots.forEach(mascot => {
mascot.addEventListener('click', () => {
const target = mascot;
if (bubbleTimer) clearTimeout(bubbleTimer);
if (activeMascot && activeMascot !== target) {
activeMascot.classList.remove('is-touched');
activeMascot.setAttribute('aria-pressed', 'false');
}
activeMascot = target;
target.classList.add('is-touched');
target.setAttribute('aria-pressed', 'true');
const message = mascot.dataset.loginChat || (mascot.classList.contains('cave-miner') ? 'Semangat kuis nya >ᴗ<' : 'Hari yang cerah tanpa kuis ◝(ᵔᗜᵔ)◜');
const mirrored = mascot.classList.contains('cave-miner') || mascot.classList.contains('login-scary-panda-trigger');
const mainBounds = statusMain.getBoundingClientRect();
const mascotBounds = mascot.getBoundingClientRect();
chatBubble.replaceChildren(Object.assign(document.createElement('span'), { textContent: message }));
chatBubble.classList.toggle('is-mirrored', mirrored);
chatBubble.hidden = false;
chatBubble.classList.remove('is-visible');
const bubbleWidth = chatBubble.offsetWidth;
const bubbleHeight = chatBubble.offsetHeight;
const left = Math.max(16, Math.min(mascotBounds.left + mascotBounds.width / 2 - bubbleWidth / 2 - mainBounds.left, mainBounds.width - bubbleWidth - 16));
const above = mascotBounds.top - bubbleHeight - 12 - mainBounds.top;
const top = Math.max(16, Math.min(above, mainBounds.height - bubbleHeight - 16));
chatBubble.style.left = left + 'px';
chatBubble.style.top = top + 'px';
void chatBubble.offsetWidth;
chatBubble.classList.add('is-visible');
bubbleTimer = setTimeout(() => {
chatBubble.classList.remove('is-visible');
chatBubble.hidden = true;
target.classList.remove('is-touched');
target.setAttribute('aria-pressed', 'false');
activeMascot = null;
}, 3000);
});
});
});
</script>
</body>
+9 -55
View File
@@ -18,7 +18,7 @@ templ LoginSuccess() {
<header class="h-[72px] bevel-plank relative z-20 flex items-center px-6 md:px-10 border-b-4 border-black">
<div class="flex items-center gap-4">
<div class="w-10 h-10 bevel-logo flex items-center justify-center relative overflow-hidden" aria-hidden="true">
<img src="https://cdn.fossy.my.id/public/pacil-smp-logo.png" class="w-9 h-9 object-contain" alt="">
</div>
@@ -32,16 +32,15 @@ templ LoginSuccess() {
`)
@LoginStrataBackground()
@templ.Raw(`<div class="panda-bubble login-panda-chat-bubble" role="status" aria-live="polite" hidden></div>
<div class="relative z-10 w-full max-w-[560px] bevel-inventory p-6 sm:p-8 md:p-10 animate-drop-in mx-auto text-center"
role="status"
@MascotInteractions()
@templ.Raw(`<div class="relative z-10 w-full max-w-[560px] bevel-inventory p-6 sm:p-8 md:p-10 animate-drop-in mx-auto text-center"
role="status"
aria-live="polite">
<div class="w-20 h-20 sm:w-24 sm:h-24 mx-auto mb-6 bevel-slot-inset flex items-center justify-center">
<svg class="w-16 h-16 animate-check-pop" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Centang hijau tanda berhasil">
<rect x="12" y="3" width="2" height="2" fill="#00AA00"/>
<rect x="11" y="4" width="2" height="2" fill="#55FF55"/>
<rect x="10" y="5" width="2" height="2" fill="#55FF55"/>
@@ -53,7 +52,7 @@ templ LoginSuccess() {
<rect x="4" y="7" width="2" height="2" fill="#55FF55"/>
<rect x="3" y="6" width="2" height="2" fill="#55FF55"/>
<rect x="2" y="5" width="2" height="2" fill="#00AA00"/>
<rect x="3" y="8" width="2" height="1" fill="#004400"/>
<rect x="5" y="10" width="2" height="1" fill="#004400"/>
<rect x="6" y="11" width="2" height="1" fill="#004400"/>
@@ -69,8 +68,8 @@ templ LoginSuccess() {
</span>
</div>
<h1 id="success-heading"
tabindex="-1"
<h1 id="success-heading"
tabindex="-1"
class="font-display text-[#373737] text-lg sm:text-xl md:text-2xl leading-relaxed sm:leading-loose mb-5 outline-none drop-shadow-[1px_1px_0px_#FFFFFF]">
Autentikasi Berhasil
</h1>
@@ -105,51 +104,6 @@ templ LoginSuccess() {
if (heading) {
heading.focus();
}
const statusMain = document.querySelector('.status-main');
const chatBubble = statusMain && statusMain.querySelector('.login-panda-chat-bubble');
const mascots = statusMain && statusMain.querySelectorAll('.panda-runner, .cave-miner, .login-scary-panda-trigger');
let bubbleTimer = null;
let activeMascot = null;
mascots && mascots.forEach(mascot => {
mascot.addEventListener('click', () => {
const target = mascot;
if (bubbleTimer) clearTimeout(bubbleTimer);
if (activeMascot && activeMascot !== target) {
activeMascot.classList.remove('is-touched');
activeMascot.setAttribute('aria-pressed', 'false');
}
activeMascot = target;
target.classList.add('is-touched');
target.setAttribute('aria-pressed', 'true');
const message = mascot.dataset.loginChat || (mascot.classList.contains('cave-miner') ? 'Semangat kuis nya >ᴗ<' : 'Hari yang cerah tanpa kuis ◝(ᵔᗜᵔ)◜');
const mirrored = mascot.classList.contains('cave-miner') || mascot.classList.contains('login-scary-panda-trigger');
const mainBounds = statusMain.getBoundingClientRect();
const mascotBounds = mascot.getBoundingClientRect();
chatBubble.replaceChildren(Object.assign(document.createElement('span'), { textContent: message }));
chatBubble.classList.toggle('is-mirrored', mirrored);
chatBubble.hidden = false;
chatBubble.classList.remove('is-visible');
const bubbleWidth = chatBubble.offsetWidth;
const bubbleHeight = chatBubble.offsetHeight;
const left = Math.max(16, Math.min(mascotBounds.left + mascotBounds.width / 2 - bubbleWidth / 2 - mainBounds.left, mainBounds.width - bubbleWidth - 16));
const above = mascotBounds.top - bubbleHeight - 12 - mainBounds.top;
const top = Math.max(16, Math.min(above, mainBounds.height - bubbleHeight - 16));
chatBubble.style.left = left + 'px';
chatBubble.style.top = top + 'px';
void chatBubble.offsetWidth;
chatBubble.classList.add('is-visible');
bubbleTimer = setTimeout(() => {
chatBubble.classList.remove('is-visible');
chatBubble.hidden = true;
target.classList.remove('is-touched');
target.setAttribute('aria-pressed', 'false');
activeMascot = null;
}, 3000);
});
});
});
</script>
</body>
+12 -55
View File
@@ -45,7 +45,7 @@ func LoginSuccess() templ.Component {
<header class="h-[72px] bevel-plank relative z-20 flex items-center px-6 md:px-10 border-b-4 border-black">
<div class="flex items-center gap-4">
<div class="w-10 h-10 bevel-logo flex items-center justify-center relative overflow-hidden" aria-hidden="true">
<img src="https://cdn.fossy.my.id/public/pacil-smp-logo.png" class="w-9 h-9 object-contain" alt="">
</div>
@@ -65,16 +65,18 @@ func LoginSuccess() templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.Raw(`<div class="panda-bubble login-panda-chat-bubble" role="status" aria-live="polite" hidden></div>
<div class="relative z-10 w-full max-w-[560px] bevel-inventory p-6 sm:p-8 md:p-10 animate-drop-in mx-auto text-center"
role="status"
templ_7745c5c3_Err = MascotInteractions().Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.Raw(`<div class="relative z-10 w-full max-w-[560px] bevel-inventory p-6 sm:p-8 md:p-10 animate-drop-in mx-auto text-center"
role="status"
aria-live="polite">
<div class="w-20 h-20 sm:w-24 sm:h-24 mx-auto mb-6 bevel-slot-inset flex items-center justify-center">
<svg class="w-16 h-16 animate-check-pop" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Centang hijau tanda berhasil">
<rect x="12" y="3" width="2" height="2" fill="#00AA00"/>
<rect x="11" y="4" width="2" height="2" fill="#55FF55"/>
<rect x="10" y="5" width="2" height="2" fill="#55FF55"/>
@@ -86,7 +88,7 @@ func LoginSuccess() templ.Component {
<rect x="4" y="7" width="2" height="2" fill="#55FF55"/>
<rect x="3" y="6" width="2" height="2" fill="#55FF55"/>
<rect x="2" y="5" width="2" height="2" fill="#00AA00"/>
<rect x="3" y="8" width="2" height="1" fill="#004400"/>
<rect x="5" y="10" width="2" height="1" fill="#004400"/>
<rect x="6" y="11" width="2" height="1" fill="#004400"/>
@@ -102,8 +104,8 @@ func LoginSuccess() templ.Component {
</span>
</div>
<h1 id="success-heading"
tabindex="-1"
<h1 id="success-heading"
tabindex="-1"
class="font-display text-[#373737] text-lg sm:text-xl md:text-2xl leading-relaxed sm:leading-loose mb-5 outline-none drop-shadow-[1px_1px_0px_#FFFFFF]">
Autentikasi Berhasil
</h1>
@@ -138,51 +140,6 @@ func LoginSuccess() templ.Component {
if (heading) {
heading.focus();
}
const statusMain = document.querySelector('.status-main');
const chatBubble = statusMain && statusMain.querySelector('.login-panda-chat-bubble');
const mascots = statusMain && statusMain.querySelectorAll('.panda-runner, .cave-miner, .login-scary-panda-trigger');
let bubbleTimer = null;
let activeMascot = null;
mascots && mascots.forEach(mascot => {
mascot.addEventListener('click', () => {
const target = mascot;
if (bubbleTimer) clearTimeout(bubbleTimer);
if (activeMascot && activeMascot !== target) {
activeMascot.classList.remove('is-touched');
activeMascot.setAttribute('aria-pressed', 'false');
}
activeMascot = target;
target.classList.add('is-touched');
target.setAttribute('aria-pressed', 'true');
const message = mascot.dataset.loginChat || (mascot.classList.contains('cave-miner') ? 'Semangat kuis nya >ᴗ<' : 'Hari yang cerah tanpa kuis ◝(ᵔᗜᵔ)◜');
const mirrored = mascot.classList.contains('cave-miner') || mascot.classList.contains('login-scary-panda-trigger');
const mainBounds = statusMain.getBoundingClientRect();
const mascotBounds = mascot.getBoundingClientRect();
chatBubble.replaceChildren(Object.assign(document.createElement('span'), { textContent: message }));
chatBubble.classList.toggle('is-mirrored', mirrored);
chatBubble.hidden = false;
chatBubble.classList.remove('is-visible');
const bubbleWidth = chatBubble.offsetWidth;
const bubbleHeight = chatBubble.offsetHeight;
const left = Math.max(16, Math.min(mascotBounds.left + mascotBounds.width / 2 - bubbleWidth / 2 - mainBounds.left, mainBounds.width - bubbleWidth - 16));
const above = mascotBounds.top - bubbleHeight - 12 - mainBounds.top;
const top = Math.max(16, Math.min(above, mainBounds.height - bubbleHeight - 16));
chatBubble.style.left = left + 'px';
chatBubble.style.top = top + 'px';
void chatBubble.offsetWidth;
chatBubble.classList.add('is-visible');
bubbleTimer = setTimeout(() => {
chatBubble.classList.remove('is-visible');
chatBubble.hidden = true;
target.classList.remove('is-touched');
target.setAttribute('aria-pressed', 'false');
activeMascot = null;
}, 3000);
});
});
});
</script>
</body>
+31
View File
@@ -0,0 +1,31 @@
package web
templ MascotInteractions() {
@templ.Raw(`<script>
window.addEventListener('DOMContentLoaded', () => {
document.querySelectorAll('.status-panda-runner, .cave-miner, .login-scary-panda-trigger').forEach(mascot => {
let touchTimer = null;
mascot.addEventListener('click', () => {
if (touchTimer) clearTimeout(touchTimer);
mascot.classList.add('is-touched');
mascot.setAttribute('aria-pressed', 'true');
touchTimer = setTimeout(() => {
mascot.classList.remove('is-touched');
mascot.setAttribute('aria-pressed', 'false');
touchTimer = null;
}, 3000);
});
});
const watcher = document.querySelector('.status-random-background .dungeon-watcher');
if (watcher) {
watcher.addEventListener('animationend', event => {
if (event.animationName === 'dungeon-watcher-arrive') {
watcher.classList.add('dungeon-watcher-finished');
}
});
watcher.classList.add('dungeon-watcher-start');
}
});
</script>`)
}
+66
View File
@@ -0,0 +1,66 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.960
package web
//lint:file-ignore SA4006 This context is only used if a nested component is present.
import "github.com/a-h/templ"
import templruntime "github.com/a-h/templ/runtime"
func MascotInteractions() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
}()
}
ctx = templ.InitializeContext(ctx)
templ_7745c5c3_Var1 := templ.GetChildren(ctx)
if templ_7745c5c3_Var1 == nil {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templ.Raw(`<script>
window.addEventListener('DOMContentLoaded', () => {
document.querySelectorAll('.status-panda-runner, .cave-miner, .login-scary-panda-trigger').forEach(mascot => {
let touchTimer = null;
mascot.addEventListener('click', () => {
if (touchTimer) clearTimeout(touchTimer);
mascot.classList.add('is-touched');
mascot.setAttribute('aria-pressed', 'true');
touchTimer = setTimeout(() => {
mascot.classList.remove('is-touched');
mascot.setAttribute('aria-pressed', 'false');
touchTimer = null;
}, 3000);
});
});
const watcher = document.querySelector('.status-random-background .dungeon-watcher');
if (watcher) {
watcher.addEventListener('animationend', event => {
if (event.animationName === 'dungeon-watcher-arrive') {
watcher.classList.add('dungeon-watcher-finished');
}
});
watcher.classList.add('dungeon-watcher-start');
}
});
</script>`).Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return nil
})
}
var _ = templruntime.GeneratedTemplate
+19 -2
View File
@@ -1,13 +1,30 @@
package web
templ OverworldBackground() {
templ OverworldScenery() {
@templ.Raw(` <img class="pixel-cloud cloud-1 cloud-drift" src="https://cdn.fossy.my.id/public/large-cloud.svg" alt="" aria-hidden="true">
<img class="pixel-cloud cloud-2 cloud-drift cloud-drift-slow" src="https://cdn.fossy.my.id/public/large-cloud.svg" alt="" aria-hidden="true">
<div class="pixel-hills" aria-hidden="true">
</div>
<button type="button" class="panda-runner" aria-label="Klik untuk mengelus panda"><span class="panda-run" aria-hidden="true"></span><span class="panda-bubble" role="status">Hari yang cerah tanpa kuis ◝(ᵔᗜᵔ)◜</span></button>
`)
}
templ OverworldBackground() {
@OverworldScenery()
@templ.Raw(`<button type="button" class="panda-runner" aria-label="Klik untuk mengelus panda"><span class="panda-run" aria-hidden="true"></span><span class="panda-bubble" role="status">Hari yang cerah tanpa kuis ◝(ᵔᗜᵔ)◜</span></button>
<script>
(() => {
const panda = document.querySelector('.panda-runner');
if (!panda) return;
let touchTimer;
panda.addEventListener('click', () => {
if (panda.classList.contains('is-touched')) return;
clearTimeout(touchTimer);
panda.classList.add('is-touched');
touchTimer = setTimeout(() => panda.classList.remove('is-touched'), 3000);
});
})();
</script>`)
}
+47 -2
View File
@@ -8,7 +8,7 @@ package web
import "github.com/a-h/templ"
import templruntime "github.com/a-h/templ/runtime"
func OverworldBackground() templ.Component {
func OverworldScenery() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
@@ -34,7 +34,6 @@ func OverworldBackground() templ.Component {
<div class="pixel-hills" aria-hidden="true">
</div>
<button type="button" class="panda-runner" aria-label="Klik untuk mengelus panda"><span class="panda-run" aria-hidden="true"></span><span class="panda-bubble" role="status">Hari yang cerah tanpa kuis ◝(ᵔᗜᵔ)◜</span></button>
`).Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
@@ -44,4 +43,50 @@ func OverworldBackground() templ.Component {
})
}
func OverworldBackground() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
}()
}
ctx = templ.InitializeContext(ctx)
templ_7745c5c3_Var2 := templ.GetChildren(ctx)
if templ_7745c5c3_Var2 == nil {
templ_7745c5c3_Var2 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = OverworldScenery().Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.Raw(`<button type="button" class="panda-runner" aria-label="Klik untuk mengelus panda"><span class="panda-run" aria-hidden="true"></span><span class="panda-bubble" role="status">Hari yang cerah tanpa kuis ◝(ᵔᗜᵔ)◜</span></button>
<script>
(() => {
const panda = document.querySelector('.panda-runner');
if (!panda) return;
let touchTimer;
panda.addEventListener('click', () => {
if (panda.classList.contains('is-touched')) return;
clearTimeout(touchTimer);
panda.classList.add('is-touched');
touchTimer = setTimeout(() => panda.classList.remove('is-touched'), 3000);
});
})();
</script>`).Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return nil
})
}
var _ = templruntime.GeneratedTemplate
File diff suppressed because one or more lines are too long
+30 -20
View File
@@ -457,9 +457,10 @@
.cave-dust-frame-2 { @apply left-[-44px]; }
.cave-dust-frame-3 { @apply left-[-76px]; }
.cave-dust-frame-4 { @apply left-[-108px]; }
.cave-ore-vein-1 { @apply left-[8px]; @apply top-[calc(30%_+_256px)]; }
.cave-ore-vein-2 { @apply left-[56px]; @apply top-[calc(30%_+_256px)]; }
.cave-ore-right { @apply right-[8px]; @apply top-[calc(45%_+_256px)]; }
.cave-ore-cluster { position: absolute; z-index: 1; width: 96px; height: 144px; pointer-events: none; }
.cave-ore-cluster-left { left: 0; top: calc(30% + 256px); }
.cave-ore-cluster-left-lower { left: 0; top: calc(55% + 256px); }
.cave-ore-cluster-right { right: 0; top: calc(45% + 256px); }
.cave-torch-left { @apply left-[64px]; @apply top-[30%]; }
.cave-torch-right { @apply right-[64px]; @apply top-[45%]; }
.cave-light-left { @apply left-[0]; @apply top-[calc(30%_-_62px)]; }
@@ -475,15 +476,20 @@
.cave-dust-9 { @apply right-[56px]; @apply top-[416px]; }
.cave-dust-10 { @apply right-[8px]; @apply top-[416px]; }
.cave-ore { @apply w-[48px]; @apply h-[48px]; }
.cave-ore img { @apply w-[336px]; @apply h-[48px]; }
.cave-ore-1 { @apply left-[0]; }
.cave-ore-2 { @apply left-[-48px]; }
.cave-ore-3 { @apply left-[-96px]; }
.cave-ore-4 { @apply left-[-144px]; }
.cave-ore-5 { @apply left-[-192px]; }
.cave-ore-6 { @apply left-[-240px]; }
.cave-ore-7 { @apply left-[-288px]; }
.cave-ore-block { position: absolute; display: block; width: 48px; height: 48px; background: url("https://cdn.fossy.my.id/public/ore-decoration-set.svg") 0 0 / 336px 48px no-repeat; }
.cave-ore-block-1 { left: 0; top: 0; }
.cave-ore-block-2 { left: 48px; top: 0; }
.cave-ore-block-3 { left: 0; top: 48px; }
.cave-ore-block-4 { left: 48px; top: 48px; }
.cave-ore-block-5 { left: 0; top: 96px; }
.cave-ore-block-6 { left: 48px; top: 96px; }
.cave-ore-1 { background-position-x: 0; }
.cave-ore-2 { background-position-x: -48px; }
.cave-ore-3 { background-position-x: -96px; }
.cave-ore-4 { background-position-x: -144px; }
.cave-ore-5 { background-position-x: -192px; }
.cave-ore-6 { background-position-x: -240px; }
.cave-ore-7 { background-position-x: -288px; }
.cave-torch { @apply w-[64px]; @apply h-[128px]; }
.cave-torchlight { @apply w-[192px]; @apply h-[192px]; @apply opacity-[.18]; }
.cave-torchlight img { @apply w-[192px]; @apply h-[192px]; }
@@ -720,7 +726,6 @@
}
@media (max-width: 1023px) {
.cave-ore-right { @apply hidden; }
.cave-torch-right, .cave-light-right { @apply hidden; }
.cave-dust-7, .cave-dust-8, .cave-dust-9, .cave-dust-10 { @apply hidden; }
.cave-torch-left { @apply left-[0]; }
@@ -751,7 +756,7 @@
.cave-miner-bubble::before { background-size: 260px 87px; }
.stratum-cave { @apply p-[480px_0_400px]; }
.cave-content { @apply max-w-[100%]; }
.cave-ore, .cave-torch, .cave-torchlight { @apply hidden; }
.cave-ore-cluster, .cave-torch, .cave-torchlight { @apply hidden; }
.cave-dust-5, .cave-dust-6, .cave-dust-7, .cave-dust-8, .cave-dust-9, .cave-dust-10 { @apply hidden; }
.cave-light-left { @apply hidden; }
.cave-miner { @apply left-[112px]; @apply right-[auto]; @apply bottom-[48px]; }
@@ -1234,16 +1239,21 @@
overflow: hidden;
pointer-events: none;
user-select: none;
-webkit-user-select: none;
}
.status-random-background,
.status-random-background * { user-select: none; -webkit-user-select: none; }
.status-random-background img { pointer-events: none; -webkit-user-drag: none; }
.status-random-background-overworld { background-color: var(--sky); }
.status-random-background-cave.stratum-cave { min-height: 0; padding: 0; background-size: 512px 256px; }
.status-random-background-scary.haunted-dungeon { position: absolute; inset: 0; height: auto; min-height: 0; padding: 0; overflow: hidden; }
.status-random-background-scary .dungeon-layout {
height: 100%;
min-height: 0;
grid-template-columns: minmax(0, 1fr) minmax(0, min(900px, 70%)) minmax(0, 1fr);
}
.status-random-background-scary .dungeon-watcher { bottom: -24px; }
.status-random-background .panda-runner,
.status-random-background .status-panda-runner,
.status-random-background .cave-miner { pointer-events: auto; }
.status-random-background .login-scary-panda-trigger {
pointer-events: auto;
@@ -1253,8 +1263,7 @@
background: transparent;
cursor: pointer;
}
.status-random-background .panda-bubble,
.status-random-background .cave-miner-bubble { display: none; }
.status-random-background .cave-miner-bubble { display: grid; }
.login-panda-chat-bubble {
position: absolute;
z-index: 12;
@@ -1326,7 +1335,7 @@
@apply items-center;
background: url("https://cdn.fossy.my.id/public/speech-bubble.svg") 0 0 / 324px 108px no-repeat;
@apply text-[color:#1B1B22];
@apply font-body font-normal text-sm leading-5;
@apply font-display font-normal text-xl leading-relaxed;
@apply text-center;
@apply opacity-[0];
@apply pointer-events-none;
@@ -1442,7 +1451,7 @@
.dungeon-torch-left { top: 12%; left: 48px; }
.dungeon-torch-right { top: 8%; left: 48px; }
@keyframes dungeon-torch-flicker { from { transform: translateX(0); } to { transform: translateX(-256px); } }
.dungeon-watcher { bottom: -66px; right: 48px; width: 96px; height: 192px; }
.dungeon-watcher { bottom: -106px; right: 48px; width: 96px; height: 192px; }
.dungeon-watcher img { width: 576px; height: 192px; animation: dungeon-watcher-arrive 4s steps(6, end) forwards paused; }
@keyframes dungeon-watcher-arrive { from { transform: translateX(0); } to { transform: translateX(-576px); } }
.dungeon-watcher.dungeon-watcher-finished img { animation: none !important; transform: translateX(-480px); }
@@ -1453,7 +1462,6 @@
.dungeon-panda-bubble { position: absolute; z-index: 3; display: grid; right: calc(100% + 12px); top: -100px; width: 324px; height: 108px; padding: 0 20px 16px; place-items: center; background: url("https://cdn.fossy.my.id/public/speech-bubble.svg") 0 0 / 324px 108px no-repeat; transform: scaleX(-1); color: #1B1B22; font-family: var(--font-display); font-size: 20px; line-height: 1.5; text-align: center; opacity: 0; pointer-events: none; }
.dungeon-panda-bubble span { transform: scaleX(-1); }
.login-scary-panda-trigger.is-touched .dungeon-panda-bubble { opacity: 1; }
.status-random-background .dungeon-panda-bubble { display: none; }
@keyframes dungeon-panda-peek { from { transform: translateX(0); } to { transform: translateX(-768px); } }
.dungeon-cobweb { z-index: 2; top: 0; width: 128px; height: 128px; }
.dungeon-cobweb img { width: 256px; height: 128px; }
@@ -1471,6 +1479,7 @@
@keyframes dungeon-fog-front-drift { to { background-position-x: calc(50% - 512px); } }
.dungeon-on-screen .dungeon-animated:not(.dungeon-watcher) { animation-play-state: running; }
.dungeon-on-screen .dungeon-animated:not(.dungeon-watcher) > img { animation-play-state: running; }
.dungeon-on-screen .dungeon-panda-sprite img { animation-play-state: running; }
.dungeon-on-screen .dungeon-watcher.dungeon-watcher-start > img { animation-play-state: running; }
.haunted-dungeon .panel-book { position: relative; z-index: 4; background-color: var(--parchment); color: var(--on-parchment); }
.haunted-dungeon .book-title { font-family: var(--font-display); font-size: 24px; line-height: 1.5; color: var(--on-parchment); }
@@ -1498,6 +1507,7 @@
.dungeon-cobweb img { width: 192px; height: 96px; }
.dungeon-panda { right: -36px; width: 144px; height: 144px; }
.dungeon-panda-sprite img { width: 576px; height: 144px; }
@keyframes dungeon-panda-peek { from { transform: translateX(0); } to { transform: translateX(-576px); } }
.dungeon-panda-bubble { right: calc(100% + 12px); top: -100px; width: 324px; height: 108px; }
.dungeon-torch-left { top: 8%; }
@keyframes dungeon-torch-flicker { to { transform: translateX(-192px); } }