|
|
|
|
|
document.addEventListener('DOMContentLoaded', () => { |
|
|
|
|
|
const observer = new IntersectionObserver((entries) => { |
|
|
entries.forEach(entry => { |
|
|
if (entry.isIntersecting) { |
|
|
entry.target.classList.add('animate-fadeInUp'); |
|
|
} |
|
|
}); |
|
|
}, { |
|
|
threshold: 0.1 |
|
|
}); |
|
|
|
|
|
document.querySelectorAll('.bg-gray-800').forEach((card) => { |
|
|
observer.observe(card); |
|
|
}); |
|
|
|
|
|
|
|
|
const waitlistForm = document.querySelector('button'); |
|
|
if (waitlistForm) { |
|
|
waitlistForm.addEventListener('click', () => { |
|
|
alert('Thanks for your interest! We\'ll notify you when the desktop version is ready.'); |
|
|
}); |
|
|
} |
|
|
}); |