update: contribute section
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
.env
|
||||
.git
|
||||
.idea
|
||||
.junie
|
||||
node_modules
|
||||
+19
-1
@@ -1,3 +1,18 @@
|
||||
FROM node:24-alpine AS css
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
RUN npm install --global pnpm@11.13.1 \
|
||||
&& mkdir -p public internal/web
|
||||
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
COPY tailwind.config.js ./tailwind.config.js
|
||||
COPY public/tailwind.css ./public/tailwind.css
|
||||
COPY internal/web/*.templ ./internal/web/
|
||||
|
||||
RUN pnpm install --frozen-lockfile \
|
||||
&& pnpm run css:build
|
||||
|
||||
FROM --platform=$BUILDPLATFORM golang:1.27-alpine AS build
|
||||
|
||||
WORKDIR /src
|
||||
@@ -6,6 +21,9 @@ COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
COPY --from=css /src/internal/web/tailwind.css ./internal/web/tailwind.css
|
||||
|
||||
RUN go run github.com/a-h/templ/cmd/templ@v0.3.960 generate
|
||||
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
@@ -23,4 +41,4 @@ USER app
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["authenticator"]
|
||||
ENTRYPOINT ["authenticator"]
|
||||
|
||||
@@ -100,8 +100,11 @@ templ Landing() {
|
||||
<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 class="cave-decoration cave-miner cave-animated" aria-hidden="true"><img src="https://cdn.fossy.my.id/public/panda-miner.svg" width="768" height="192" loading="lazy" decoding="async" alt=""></div>
|
||||
</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!!!</span></span>
|
||||
</button>
|
||||
<div class="mx-auto max-w-[1200px] px-6 cave-content">
|
||||
<div class="relative bg-surface p-6 panel-stone cave-header-panel">
|
||||
<div class="section-header">
|
||||
@@ -181,10 +184,21 @@ templ Landing() {
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="h-4 w-full strata-divider strata-cave-deepslate" aria-hidden="true"></div>
|
||||
|
||||
<section id="kontribusi" class="stratum-deepslate" aria-label="Formulir Kontribusi Pengembang">
|
||||
<div class="mx-auto max-w-[820px] px-6 kontribusi-wrapper">
|
||||
<section id="kontribusi" class="haunted-dungeon" aria-label="Formulir Kontribusi Pengembang">
|
||||
<div class="dungeon-wall-dimmer" aria-hidden="true"></div>
|
||||
<div class="dungeon-fog dungeon-fog-back dungeon-animated" aria-hidden="true"></div>
|
||||
<div class="dungeon-fog dungeon-fog-mobile-front dungeon-animated" aria-hidden="true"></div>
|
||||
<div class="dungeon-decoration dungeon-cobweb dungeon-cobweb-left" aria-hidden="true"><img src="https://cdn.fossy.my.id/public/cobwebs.svg" width="256" height="128" loading="lazy" decoding="async" alt=""></div>
|
||||
<div class="dungeon-decoration dungeon-cobweb dungeon-cobweb-right" aria-hidden="true"><img src="https://cdn.fossy.my.id/public/cobwebs.svg" width="256" height="128" loading="lazy" decoding="async" alt=""></div>
|
||||
<div class="dungeon-decoration dungeon-panda dungeon-animated" aria-hidden="true"><img src="https://cdn.fossy.my.id/public/panda-scared.svg" width="768" height="192" loading="lazy" decoding="async" alt=""></div>
|
||||
<div class="dungeon-layout">
|
||||
<div class="dungeon-flank dungeon-flank-left" aria-hidden="true">
|
||||
<div class="dungeon-decoration dungeon-torch dungeon-torch-left dungeon-animated"><img src="https://cdn.fossy.my.id/public/soul-torch.svg" width="256" height="128" loading="lazy" decoding="async" alt=""></div>
|
||||
<div class="dungeon-decoration dungeon-watcher dungeon-animated"><img src="https://cdn.fossy.my.id/public/the-watcher.svg" width="576" height="192" loading="lazy" decoding="async" alt=""></div>
|
||||
<div class="dungeon-fog dungeon-fog-mid dungeon-animated" aria-hidden="true"></div>
|
||||
<div class="dungeon-fog dungeon-fog-front dungeon-animated" aria-hidden="true"></div>
|
||||
</div>
|
||||
<div class="mx-auto w-full max-w-[820px] px-6 kontribusi-wrapper">
|
||||
<div class="bg-parchment p-[36px_36px_36px_48px] max-[767px]:p-[24px_20px_24px_28px] text-on-parchment panel-book">
|
||||
<h2 class="book-title">Ikut Kembangkan Server Ini</h2>
|
||||
<p class="book-lead-text">
|
||||
@@ -226,9 +240,14 @@ templ Landing() {
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dungeon-flank dungeon-flank-right" aria-hidden="true">
|
||||
<div class="dungeon-decoration dungeon-torch dungeon-torch-right dungeon-animated"><img src="https://cdn.fossy.my.id/public/soul-torch.svg" width="256" height="128" loading="lazy" decoding="async" alt=""></div>
|
||||
<div class="dungeon-fog dungeon-fog-mid dungeon-animated" aria-hidden="true"></div>
|
||||
<div class="dungeon-fog dungeon-fog-front dungeon-animated" aria-hidden="true"></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="h-4 w-full strata-divider strata-stone-deepslate" aria-hidden="true"></div>
|
||||
</main>
|
||||
|
||||
<footer class="stratum-bedrock" role="contentinfo">
|
||||
@@ -288,8 +307,10 @@ templ Landing() {
|
||||
const toast = document.getElementById('advancementToast');
|
||||
const toastMessage = document.getElementById('toastMessage');
|
||||
const pandaRunner = document.querySelector('.panda-runner');
|
||||
const caveMiner = document.querySelector('.cave-miner');
|
||||
let toastTimer = null;
|
||||
let pandaTouchTimer = null;
|
||||
let minerTouchTimer = null;
|
||||
|
||||
pandaRunner.addEventListener('click', () => {
|
||||
if (pandaRunner.classList.contains('is-touched')) return;
|
||||
@@ -298,6 +319,17 @@ templ Landing() {
|
||||
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);
|
||||
});
|
||||
|
||||
function showToast(message) {
|
||||
if (toastTimer) clearTimeout(toastTimer);
|
||||
toastMessage.textContent = message;
|
||||
@@ -405,6 +437,29 @@ templ Landing() {
|
||||
});
|
||||
caveObserver.observe(caveSection);
|
||||
}
|
||||
|
||||
const hauntedSection = document.getElementById('kontribusi');
|
||||
const watcher = hauntedSection && hauntedSection.querySelector('.dungeon-watcher');
|
||||
if ('IntersectionObserver' in window && hauntedSection) {
|
||||
let watcherStarted = false;
|
||||
const hauntedObserver = new IntersectionObserver(entries => {
|
||||
entries.forEach(entry => {
|
||||
hauntedSection.classList.toggle('dungeon-on-screen', entry.isIntersecting);
|
||||
if (entry.isIntersecting && entry.intersectionRatio >= 0.3 && watcher && !watcherStarted) {
|
||||
watcherStarted = true;
|
||||
watcher.classList.add('dungeon-watcher-start');
|
||||
}
|
||||
});
|
||||
}, { threshold: [0, 0.3] });
|
||||
hauntedObserver.observe(hauntedSection);
|
||||
if (watcher) {
|
||||
watcher.addEventListener('animationend', event => {
|
||||
if (event.animationName === 'dungeon-watcher-arrive') {
|
||||
watcher.classList.add('dungeon-watcher-finished');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
@@ -127,8 +127,11 @@ func Landing() 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 class="cave-decoration cave-miner cave-animated" aria-hidden="true"><img src="https://cdn.fossy.my.id/public/panda-miner.svg" width="768" height="192" loading="lazy" decoding="async" alt=""></div>
|
||||
</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!!!</span></span>
|
||||
</button>
|
||||
<div class="mx-auto max-w-[1200px] px-6 cave-content">
|
||||
<div class="relative bg-surface p-6 panel-stone cave-header-panel">
|
||||
<div class="section-header">
|
||||
@@ -208,10 +211,21 @@ func Landing() templ.Component {
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="h-4 w-full strata-divider strata-cave-deepslate" aria-hidden="true"></div>
|
||||
|
||||
<section id="kontribusi" class="stratum-deepslate" aria-label="Formulir Kontribusi Pengembang">
|
||||
<div class="mx-auto max-w-[820px] px-6 kontribusi-wrapper">
|
||||
<section id="kontribusi" class="haunted-dungeon" aria-label="Formulir Kontribusi Pengembang">
|
||||
<div class="dungeon-wall-dimmer" aria-hidden="true"></div>
|
||||
<div class="dungeon-fog dungeon-fog-back dungeon-animated" aria-hidden="true"></div>
|
||||
<div class="dungeon-fog dungeon-fog-mobile-front dungeon-animated" aria-hidden="true"></div>
|
||||
<div class="dungeon-decoration dungeon-cobweb dungeon-cobweb-left" aria-hidden="true"><img src="https://cdn.fossy.my.id/public/cobwebs.svg" width="256" height="128" loading="lazy" decoding="async" alt=""></div>
|
||||
<div class="dungeon-decoration dungeon-cobweb dungeon-cobweb-right" aria-hidden="true"><img src="https://cdn.fossy.my.id/public/cobwebs.svg" width="256" height="128" loading="lazy" decoding="async" alt=""></div>
|
||||
<div class="dungeon-decoration dungeon-panda dungeon-animated" aria-hidden="true"><img src="https://cdn.fossy.my.id/public/panda-scared.svg" width="768" height="192" loading="lazy" decoding="async" alt=""></div>
|
||||
<div class="dungeon-layout">
|
||||
<div class="dungeon-flank dungeon-flank-left" aria-hidden="true">
|
||||
<div class="dungeon-decoration dungeon-torch dungeon-torch-left dungeon-animated"><img src="https://cdn.fossy.my.id/public/soul-torch.svg" width="256" height="128" loading="lazy" decoding="async" alt=""></div>
|
||||
<div class="dungeon-decoration dungeon-watcher dungeon-animated"><img src="https://cdn.fossy.my.id/public/the-watcher.svg" width="576" height="192" loading="lazy" decoding="async" alt=""></div>
|
||||
<div class="dungeon-fog dungeon-fog-mid dungeon-animated" aria-hidden="true"></div>
|
||||
<div class="dungeon-fog dungeon-fog-front dungeon-animated" aria-hidden="true"></div>
|
||||
</div>
|
||||
<div class="mx-auto w-full max-w-[820px] px-6 kontribusi-wrapper">
|
||||
<div class="bg-parchment p-[36px_36px_36px_48px] max-[767px]:p-[24px_20px_24px_28px] text-on-parchment panel-book">
|
||||
<h2 class="book-title">Ikut Kembangkan Server Ini</h2>
|
||||
<p class="book-lead-text">
|
||||
@@ -253,9 +267,14 @@ func Landing() templ.Component {
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dungeon-flank dungeon-flank-right" aria-hidden="true">
|
||||
<div class="dungeon-decoration dungeon-torch dungeon-torch-right dungeon-animated"><img src="https://cdn.fossy.my.id/public/soul-torch.svg" width="256" height="128" loading="lazy" decoding="async" alt=""></div>
|
||||
<div class="dungeon-fog dungeon-fog-mid dungeon-animated" aria-hidden="true"></div>
|
||||
<div class="dungeon-fog dungeon-fog-front dungeon-animated" aria-hidden="true"></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="h-4 w-full strata-divider strata-stone-deepslate" aria-hidden="true"></div>
|
||||
</main>
|
||||
|
||||
<footer class="stratum-bedrock" role="contentinfo">
|
||||
@@ -315,8 +334,10 @@ func Landing() templ.Component {
|
||||
const toast = document.getElementById('advancementToast');
|
||||
const toastMessage = document.getElementById('toastMessage');
|
||||
const pandaRunner = document.querySelector('.panda-runner');
|
||||
const caveMiner = document.querySelector('.cave-miner');
|
||||
let toastTimer = null;
|
||||
let pandaTouchTimer = null;
|
||||
let minerTouchTimer = null;
|
||||
|
||||
pandaRunner.addEventListener('click', () => {
|
||||
if (pandaRunner.classList.contains('is-touched')) return;
|
||||
@@ -325,6 +346,17 @@ func Landing() templ.Component {
|
||||
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);
|
||||
});
|
||||
|
||||
function showToast(message) {
|
||||
if (toastTimer) clearTimeout(toastTimer);
|
||||
toastMessage.textContent = message;
|
||||
@@ -432,6 +464,29 @@ func Landing() templ.Component {
|
||||
});
|
||||
caveObserver.observe(caveSection);
|
||||
}
|
||||
|
||||
const hauntedSection = document.getElementById('kontribusi');
|
||||
const watcher = hauntedSection && hauntedSection.querySelector('.dungeon-watcher');
|
||||
if ('IntersectionObserver' in window && hauntedSection) {
|
||||
let watcherStarted = false;
|
||||
const hauntedObserver = new IntersectionObserver(entries => {
|
||||
entries.forEach(entry => {
|
||||
hauntedSection.classList.toggle('dungeon-on-screen', entry.isIntersecting);
|
||||
if (entry.isIntersecting && entry.intersectionRatio >= 0.3 && watcher && !watcherStarted) {
|
||||
watcherStarted = true;
|
||||
watcher.classList.add('dungeon-watcher-start');
|
||||
}
|
||||
});
|
||||
}, { threshold: [0, 0.3] });
|
||||
hauntedObserver.observe(hauntedSection);
|
||||
if (watcher) {
|
||||
watcher.addEventListener('animationend', event => {
|
||||
if (event.animationName === 'dungeon-watcher-arrive') {
|
||||
watcher.classList.add('dungeon-watcher-finished');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
File diff suppressed because one or more lines are too long
+206
-7
@@ -216,6 +216,7 @@
|
||||
}
|
||||
|
||||
.panda-runner.is-touched {
|
||||
@apply z-[6];
|
||||
animation-play-state: paused;
|
||||
}
|
||||
|
||||
@@ -239,7 +240,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-display 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;
|
||||
@@ -491,8 +492,27 @@
|
||||
.cave-dust img { @apply w-[128px]; @apply h-[32px]; }
|
||||
.cave-dust { animation: cave-dust-drift 8s steps(8, end) infinite alternate; @apply opacity-[.25]; }
|
||||
@keyframes cave-dust-drift { to { transform: translate(8px, -8px); } }
|
||||
.cave-miner { @apply w-[192px]; @apply h-[192px]; @apply bottom-[48px]; @apply right-[24px]; }
|
||||
.cave-miner img { @apply w-[768px]; @apply h-[192px]; animation: cave-miner-idle .8s steps(4, end) infinite; }
|
||||
.cave-miner {
|
||||
@apply absolute block z-[4] w-[192px] h-[192px] bottom-[48px] right-[24px] overflow-visible pointer-events-auto cursor-pointer appearance-none border-0 p-[0] text-[color:inherit] outline-none;
|
||||
}
|
||||
.cave-miner-sprite {
|
||||
@apply absolute left-[0] top-[0] bottom-[0] w-[192px] h-[192px] overflow-hidden;
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
.cave-miner-sprite img { @apply absolute left-[0] top-[0] block max-w-[none] w-[768px] h-[192px]; animation: cave-miner-idle .8s steps(4, end) infinite; }
|
||||
.cave-miner-bubble {
|
||||
@apply absolute left-[-300px] top-[-100px] grid w-[324px] h-[108px] place-items-center text-center text-[#1B1B22] font-display text-xl leading-relaxed opacity-[0] pointer-events-none;
|
||||
}
|
||||
.cave-miner:focus-visible { @apply outline-4 outline-[#FFFF55]; }
|
||||
.cave-miner.is-touched .cave-miner-bubble { animation: miner-bubble-show .2s steps(2) forwards; }
|
||||
@keyframes miner-bubble-show { to { @apply opacity-[1]; } }
|
||||
.cave-miner-bubble::before {
|
||||
content: "";
|
||||
@apply absolute inset-[0];
|
||||
background: url("https://cdn.fossy.my.id/public/speech-bubble.svg") 0 0 / 324px 108px no-repeat;
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
.cave-miner-bubble span { @apply relative z-[1] px-[20px] pb-[16px]; }
|
||||
@keyframes cave-miner-idle { to { transform: translateX(-768px); } }
|
||||
.cave-torch-animated img.torch-sheet { animation: cave-torch-flicker .8s steps(4, end) infinite; }
|
||||
@keyframes cave-torch-flicker { to { transform: translateX(-256px); } }
|
||||
@@ -727,6 +747,8 @@
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.panda-runner { @apply bottom-[80px]; }
|
||||
.cave-miner-bubble { @apply left-[-12px] top-[-92px] w-[260px] h-[87px] text-base; }
|
||||
.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; }
|
||||
@@ -754,7 +776,7 @@
|
||||
.stratum-cave .cave-animated,
|
||||
.stratum-cave .cave-animated img { animation: none !important; }
|
||||
.cave-dust { @apply hidden; }
|
||||
.cave-miner img { transform: none; }
|
||||
.cave-miner-sprite img { transform: none; }
|
||||
.cave-torch .torch-sheet { animation: none !important; }
|
||||
}
|
||||
|
||||
@@ -824,14 +846,16 @@
|
||||
}
|
||||
|
||||
.form-helper {
|
||||
@apply text-[length:15px];
|
||||
@apply text-base;
|
||||
@apply leading-[1.5];
|
||||
@apply text-[color:#5C4A32];
|
||||
@apply mt-[6px];
|
||||
}
|
||||
|
||||
.form-error-msg {
|
||||
@apply hidden;
|
||||
@apply text-[length:15px];
|
||||
@apply text-base;
|
||||
@apply leading-[1.5];
|
||||
@apply text-[color:#AA0000];
|
||||
@apply font-[600];
|
||||
@apply mt-[6px];
|
||||
@@ -842,7 +866,8 @@
|
||||
}
|
||||
|
||||
.form-privacy-note {
|
||||
@apply text-[length:15px];
|
||||
@apply text-base;
|
||||
@apply leading-[1.5];
|
||||
@apply text-[color:#5C4A32];
|
||||
@apply mt-[14px];
|
||||
}
|
||||
@@ -1321,4 +1346,178 @@
|
||||
@apply opacity-[1];
|
||||
}
|
||||
}
|
||||
|
||||
.haunted-dungeon {
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
overflow-x: clip;
|
||||
padding: 112px 0;
|
||||
min-height: 900px;
|
||||
background-color: var(--surface);
|
||||
background-image: url("https://cdn.fossy.my.id/public/haunted-wall-tile.svg");
|
||||
background-repeat: repeat;
|
||||
background-size: 256px 128px;
|
||||
image-rendering: pixelated;
|
||||
color: var(--on-surface);
|
||||
}
|
||||
.haunted-dungeon::before,
|
||||
.haunted-dungeon::after {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
right: 0;
|
||||
left: 0;
|
||||
height: 64px;
|
||||
content: "";
|
||||
pointer-events: none;
|
||||
background-repeat: repeat-x;
|
||||
background-size: 128px 64px;
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
.haunted-dungeon::before { top: 0; background-image: url("https://cdn.fossy.my.id/public/ceiling-edge.svg"); }
|
||||
.stratum-cave:has(+ .haunted-dungeon)::after { display: none; }
|
||||
.haunted-dungeon::after { bottom: 0; background-image: url("https://cdn.fossy.my.id/public/floor-edge.svg"); background-position: left bottom; }
|
||||
.dungeon-wall-dimmer { position: absolute; z-index: 0; inset: 0; pointer-events: none; background: rgba(20, 20, 26, .35); }
|
||||
.dungeon-layout {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 900px) minmax(0, 1fr);
|
||||
align-items: stretch;
|
||||
min-height: 676px;
|
||||
}
|
||||
.dungeon-flank { position: relative; z-index: 2; min-width: 0; pointer-events: none; user-select: none; }
|
||||
.haunted-dungeon .kontribusi-wrapper { position: relative; z-index: 4; width: 100%; max-width: 900px; padding: 0 48px; align-self: center; }
|
||||
.dungeon-decoration, .dungeon-fog { position: absolute; pointer-events: none; user-select: none; image-rendering: pixelated; }
|
||||
.dungeon-decoration { overflow: hidden; }
|
||||
.dungeon-decoration img { position: absolute; top: 0; left: 0; display: block; max-width: none; image-rendering: pixelated; }
|
||||
.dungeon-ceiling-chain { top: -48px; width: 128px; height: 256px; overflow: hidden; }
|
||||
.dungeon-ceiling-chain img { width: 384px; height: 256px; }
|
||||
.dungeon-torch { width: 64px; height: 128px; }
|
||||
.dungeon-torch img { width: 256px; height: 128px; animation: dungeon-torch-flicker 1.6s steps(4, end) infinite paused; }
|
||||
.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 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); }
|
||||
.dungeon-panda { z-index: 2; right: -48px; bottom: 0; width: 192px; height: 192px; }
|
||||
.dungeon-panda img { width: 768px; height: 192px; animation: dungeon-panda-peek 2s steps(4, end) infinite paused; }
|
||||
@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; }
|
||||
.dungeon-cobweb-left { left: 0; }
|
||||
.dungeon-cobweb-left img { transform: translateX(0); }
|
||||
.dungeon-cobweb-right { right: 0; }
|
||||
.dungeon-cobweb-right img { transform: translateX(-128px); }
|
||||
.dungeon-fog { z-index: 1; background-image: url("https://cdn.fossy.my.id/public/fog-band.svg"); background-repeat: no-repeat; background-position: center bottom; background-size: 512px 128px; image-rendering: pixelated; }
|
||||
.dungeon-fog-back { right: 0; bottom: 64px; left: 0; height: 128px; opacity: .25; background-position: center bottom; animation: dungeon-fog-back-drift 90s steps(128, end) infinite paused; }
|
||||
.dungeon-fog-mid { right: 0; left: 0; top: 58%; height: 64px; opacity: .18; background-position: center center; animation: dungeon-fog-mid-drift 120s steps(128, end) infinite paused; }
|
||||
.dungeon-fog-mobile-front { display: none; z-index: 3; }
|
||||
.dungeon-fog-front { z-index: 3; right: 0; bottom: 0; left: 0; height: 40px; opacity: .2; background-position: center bottom; animation: dungeon-fog-front-drift 150s steps(128, end) infinite paused; }
|
||||
@keyframes dungeon-fog-back-drift { to { background-position-x: calc(50% - 512px); } }
|
||||
@keyframes dungeon-fog-mid-drift { to { background-position-x: calc(50% + 512px); } }
|
||||
@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-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); }
|
||||
.haunted-dungeon .book-lead-text,
|
||||
.haunted-dungeon .form-label,
|
||||
.haunted-dungeon .form-helper,
|
||||
.haunted-dungeon .form-error-msg,
|
||||
.haunted-dungeon .form-privacy-note { color: var(--on-parchment); }
|
||||
.haunted-dungeon .book-lead-text { font-size: 20px; line-height: 1.5; }
|
||||
.haunted-dungeon .form-label { font-size: 18px; line-height: 1.5; }
|
||||
.haunted-dungeon .form-helper,
|
||||
.haunted-dungeon .form-error-msg,
|
||||
.haunted-dungeon .form-privacy-note { font-size: 16px; line-height: 1.5; }
|
||||
.haunted-dungeon #submitFormBtn { min-height: 48px; font-family: var(--font-body); font-size: 20px; font-weight: 600; line-height: 1.4; }
|
||||
.haunted-dungeon :is(input, button, a):focus-visible { position: relative; z-index: 5; outline: 4px solid var(--on-surface); outline-offset: 4px; box-shadow: 0 0 0 8px #FFFF55; }
|
||||
@media (min-width: 768px) and (max-width: 1279px) {
|
||||
.dungeon-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr); }
|
||||
.haunted-dungeon .kontribusi-wrapper { max-width: 700px; }
|
||||
.dungeon-ceiling-chain, .dungeon-torch-right { display: none; }
|
||||
.dungeon-ceiling-chain { width: 96px; height: 192px; }
|
||||
.dungeon-ceiling-chain img { width: 288px; height: 192px; }
|
||||
.dungeon-torch { width: 48px; height: 96px; }
|
||||
.dungeon-torch img { width: 192px; height: 96px; }
|
||||
.dungeon-cobweb { width: 96px; height: 96px; }
|
||||
.dungeon-cobweb img { width: 192px; height: 96px; }
|
||||
.dungeon-panda { right: -36px; width: 144px; height: 144px; }
|
||||
.dungeon-panda img { width: 576px; height: 144px; }
|
||||
.dungeon-torch-left { top: 8%; }
|
||||
@keyframes dungeon-torch-flicker { to { transform: translateX(-192px); } }
|
||||
.dungeon-watcher { width: 96px; height: 192px; }
|
||||
.dungeon-watcher img { width: 576px; height: 192px; }
|
||||
.dungeon-fog-back { height: 96px; background-size: 384px 96px; }
|
||||
@keyframes dungeon-fog-back-drift { to { background-position-x: calc(50% - 384px); } }
|
||||
.dungeon-fog-mid { height: 48px; background-size: 384px 96px; }
|
||||
@keyframes dungeon-fog-mid-drift { to { background-position-x: calc(50% + 384px); } }
|
||||
.dungeon-fog-front { display: none; }
|
||||
}
|
||||
@media (min-width: 768px) and (max-width: 900px) {
|
||||
.dungeon-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 616px) minmax(0, 1fr); }
|
||||
.haunted-dungeon .kontribusi-wrapper { max-width: 616px; }
|
||||
.dungeon-torch-right { display: none; }
|
||||
.dungeon-watcher { display: none; }
|
||||
.dungeon-fog-back { height: 64px; background-size: 256px 64px; }
|
||||
@keyframes dungeon-fog-back-drift { to { background-position-x: calc(50% - 256px); } }
|
||||
@keyframes dungeon-fog-front-drift { to { background-position-x: calc(50% - 256px); } }
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.haunted-dungeon { min-height: 0; padding: 128px 0 144px; }
|
||||
.dungeon-layout { display: block; min-height: 0; }
|
||||
.dungeon-flank { position: absolute; inset: 0; width: 100%; height: 100%; }
|
||||
.haunted-dungeon .kontribusi-wrapper { z-index: 4; max-width: 100%; margin: 0; padding: 0 16px; }
|
||||
.haunted-dungeon .panel-book { padding: 24px 20px 24px 28px; }
|
||||
.haunted-dungeon .book-title { font-size: 16px; line-height: 1.75; }
|
||||
.dungeon-torch-right, .dungeon-watcher, .dungeon-fog-mid, .dungeon-fog-front { display: none; }
|
||||
.dungeon-fog-mobile-front { display: block; z-index: 3; right: 0; bottom: 0; left: 0; height: 32px; opacity: .2; background-size: 256px 64px; background-position: center bottom; animation: dungeon-fog-front-drift 150s steps(128, end) infinite paused; }
|
||||
.dungeon-torch-left { top: -88px; right: auto; left: 80px; width: 32px; height: 64px; }
|
||||
.dungeon-torch-left img { width: 128px; height: 64px; }
|
||||
@keyframes dungeon-torch-flicker { to { transform: translateX(-128px); } }
|
||||
.dungeon-cobweb { width: 64px; height: 64px; }
|
||||
.dungeon-cobweb-left { left: 0; }
|
||||
.dungeon-cobweb-right { right: 0; }
|
||||
.dungeon-cobweb-left img { width: 128px; height: 64px; }
|
||||
.dungeon-cobweb-right img { width: 128px; height: 64px; }
|
||||
.dungeon-panda { right: -24px; bottom: 0; width: 96px; height: 96px; }
|
||||
.dungeon-panda img { width: 384px; height: 96px; }
|
||||
@keyframes dungeon-panda-peek { from { transform: translateX(0); } to { transform: translateX(-384px); } }
|
||||
.dungeon-fog-back { bottom: 64px; height: 64px; background-size: 256px 64px; }
|
||||
@keyframes dungeon-fog-back-drift { to { background-position-x: calc(50% - 256px); } }
|
||||
.haunted-dungeon .book-lead-text { font-size: 16px; }
|
||||
.haunted-dungeon .book-title,
|
||||
.haunted-dungeon .book-lead-text,
|
||||
.haunted-dungeon .form-label,
|
||||
.haunted-dungeon .form-helper,
|
||||
.haunted-dungeon .form-error-msg,
|
||||
.haunted-dungeon .form-privacy-note { line-height: 1.5; }
|
||||
}
|
||||
@media (min-width: 1280px) and (max-width: 1427px) {
|
||||
.dungeon-ceiling-chain, .dungeon-torch-right { display: none; }
|
||||
}
|
||||
@media (min-width: 768px) and (max-width: 1035px) {
|
||||
.dungeon-torch-right, .dungeon-watcher { display: none; }
|
||||
.dungeon-torch-left { top: 8%; left: 24px; right: auto; }
|
||||
}
|
||||
@media (min-width: 768px) and (max-width: 900px) {
|
||||
.dungeon-torch-left { display: none; }
|
||||
}
|
||||
@media (min-width: 768px) and (max-width: 807px) {
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.haunted-dungeon .dungeon-animated,
|
||||
.haunted-dungeon .dungeon-animated > img,
|
||||
.haunted-dungeon .dungeon-torch > img { animation: none !important; }
|
||||
.haunted-dungeon .dungeon-watcher img { transform: translateX(-480px); }
|
||||
.haunted-dungeon .dungeon-watcher.dungeon-watcher-finished img { transform: translateX(-480px); }
|
||||
.haunted-dungeon .dungeon-panda img { transform: translateX(0); }
|
||||
.haunted-dungeon .dungeon-torch > img { transform: translateX(0); }
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) and (max-width: 1279px) {
|
||||
.haunted-dungeon .dungeon-watcher img { transform: translateX(-480px); }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user