Deploy from Lumerel

This commit is contained in:
Lumerel Deploy
2026-02-14 23:00:52 +00:00
commit 5d0874eab1
14 changed files with 443 additions and 0 deletions

27
assets/js/main.js Normal file
View File

@@ -0,0 +1,27 @@
document.addEventListener('DOMContentLoaded', () => {
// Smooth scroll for internal links
document.querySelectorAll('a[href^="/"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const targetPath = this.getAttribute('href');
// Optional: Add a subtle fade out/in transition
document.body.style.opacity = '0';
setTimeout(() => {
window.location.href = targetPath;
}, 300);
});
});
// Optional: Add hover effects or other interactive elements
const buttons = document.querySelectorAll('.btn');
buttons.forEach(btn => {
btn.addEventListener('mouseenter', function() {
this.style.transform = 'scale(1.05)';
});
btn.addEventListener('mouseleave', function() {
this.style.transform = 'scale(1)';
});
});
});