Easter egg patch

easter egg patch

Co-Authored-By: Sudo-Xops <209843921+Sudo-Xops@users.noreply.github.com>
This commit is contained in:
Joshua Hare 2025-05-01 09:22:17 +10:00
parent dfa0ef31b2
commit cd06b1b216
4 changed files with 8 additions and 8 deletions

BIN
static/FHIRFLARE.png.old Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -380,8 +380,7 @@ body {
.smoke .s-8 { animation: smokeLeft 7s 5.6s infinite; }
.smoke .s-9 { animation: smokeRight 7s 6.3s infinite; }
/* Dark Theme (fire-off) */
html[data-theme="dark"] .fire-on { opacity: 0; }
html[data-theme="dark"] .section-center { box-shadow: 0 0 50px 5px rgba(200,200,200,.2); }
html[data-theme="dark"] .smoke { opacity: 1; transition-delay: 0.8s; }
html[data-theme="dark"] .fire span { bottom: -26px; transform: scale(0.15, 0.15) rotate(45deg); }
/* Fire-off state (light theme) */
body:not(.fire-on) .section-center { box-shadow: 0 0 50px 5px rgba(200,200,200,.2); }
body:not(.fire-on) .smoke { opacity: 1; transition-delay: 0.8s; }
body:not(.fire-on) .fire span { bottom: -26px; transform: scale(0.15, 0.15) rotate(45deg); }

BIN
static/favicon.ico.old Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 KiB

View File

@ -128,10 +128,11 @@ document.addEventListener('DOMContentLoaded', () => {
animationContainer.style.opacity = '1';
}, 30000);
// Sync animation with theme (inverted: light = fire-off, dark = fire-on)
// Sync animation with theme (reversed: dark = fire-on, light = fire-off)
const updateAnimationState = () => {
const isDark = htmlElement.getAttribute('data-theme') === 'dark';
document.body.classList.toggle('fire-off', !isDark); // Light theme: fire-off, Dark theme: fire-on
const savedTheme = localStorage.getItem('theme') || (document.cookie.includes('theme=dark') ? 'dark' : 'light');
const isDark = savedTheme === 'dark';
document.body.classList.toggle('fire-on', isDark); // Dark theme: fire-on, Light theme: fire-off
};
// Initial state