caiubymr's picture
this is not done where is the beatiful styling
e6aa2e0 verified
Raw History Blame Contribute Delete
1.47 kB
// Language management
const translations = {
en: {
heroTitle: "Secure Your PII Data Across All Cloud Platforms",
heroSubtitle: "Advanced protection for AWS RDS, DynamoDB, OpenSearch and more",
featuresTitle: "Comprehensive PII Protection",
pricingTitle: "Custom Pricing for Your Needs",
contactTitle: "Request a Personalized Quote"
},
pt: {
heroTitle: "Proteja Seus Dados PII em Todas as Plataformas Cloud",
heroSubtitle: "Proteção avançada para AWS RDS, DynamoDB, OpenSearch e mais",
featuresTitle: "Proteção Abrangente de PII",
pricingTitle: "Preços Personalizados para Suas Necessidades",
contactTitle: "Solicite um Orçamento Personalizado"
}
};
function updateLanguage(lang) {
document.documentElement.lang = lang;
// Update all elements with data-i18n attributes
document.querySelectorAll('[data-i18n]').forEach(el => {
const key = el.getAttribute('data-i18n');
el.textContent = translations[lang][key];
});
}
// Initialize with English
updateLanguage('en');
// Form submission
document.getElementById('contactForm')?.addEventListener('submit', function(e) {
e.preventDefault();
const formData = new FormData(this);
const data = Object.fromEntries(formData);
console.log('Form submitted:', data);
alert('Thank you for your request! We will contact you soon with a personalized quote.');
this.reset();
});