File size: 1,057 Bytes
bde7409
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Simple animation for feature cards on scroll
document.addEventListener('DOMContentLoaded', function() {
    const featureCards = document.querySelectorAll('.features-grid > div');
    
    featureCards.forEach((card, index) => {
        // Add staggered delay for animation
        card.style.transitionDelay = `${index * 0.1}s`;
    });
    
    // Simple form submission for early access
    const earlyAccessForm = document.querySelector('section.py-20.bg-gradient-to-r form');
    if (earlyAccessForm) {
        earlyAccessForm.addEventListener('submit', function(e) {
            e.preventDefault();
            const emailInput = this.querySelector('input[type="email"]');
            if (emailInput.value && emailInput.checkValidity()) {
                // In a real app, you would send this to your backend
                alert('Thank you! You\'ve been added to our early access list.');
                emailInput.value = '';
            } else {
                alert('Please enter a valid email address.');
            }
        });
    }
});