// components/header/header.js

document.addEventListener('DOMContentLoaded', () => {
  const button = document.querySelector('.btn-primary');
  button.addEventListener('click', () => {
    const emailInput = document.querySelector('.input[type="email"]').value;
    if (emailInput) {
      alert(`Email ${emailInput} submitted successfully!`);
    } else {
      alert('Please enter a valid email.');
    }
  });
});
