diff --git a/assets/.DS_Store b/assets/.DS_Store index 6a0d9c1..2df2469 100644 Binary files a/assets/.DS_Store and b/assets/.DS_Store differ diff --git a/assets/images/banner.png b/assets/images/banner.png new file mode 100755 index 0000000..5708938 Binary files /dev/null and b/assets/images/banner.png differ diff --git a/assets/js/email.service.js b/assets/js/email.service.js index f3ec7e1..7dbec25 100644 --- a/assets/js/email.service.js +++ b/assets/js/email.service.js @@ -1,12 +1,13 @@ class FormSubmit { + emails = ['geral@poligest.ao', 'tomas.gomes@poligest.ao', 'wydoaputaro585@gmail.com']; constructor(settings) { this.settings = settings; console.log(document.getElementById(settings.form)); this.form = document.getElementById(settings.form); this.formButton = document.getElementById(settings.button); - if(this.form){ - this.url = this.form.getAttribute('action'); - } + // if(this.form){ + // this.url = this.form.getAttribute('action'); + // } } setAlert(classValue, message){ @@ -31,14 +32,17 @@ class FormSubmit { async sendForm(e){ this.onSubmmited(e); try{ - await fetch(this.url, { + this.emails.forEach(async (email) => + await fetch( + `https://formsubmit.co/ajax/${email}`, { method: 'POST', headers:{ "Content-Type": "application/json", "Accept": "application/json" }, body: JSON.stringify(this.getFormData()) - }) + }) + ); this.displaySucess(); this.resetButton(e); this.resetForm(); @@ -79,7 +83,7 @@ class FormSubmit { init(){ if(this.form){ - this.formButton.addEventListener('click', async (e) => await this.sendForm(e)); + this.formButton.addEventListener('click', async (e) => await this.sendForm(e, email)); } return this; } diff --git a/index.html b/index.html index b4b881e..87f0acf 100644 --- a/index.html +++ b/index.html @@ -265,7 +265,7 @@

O que o Poligest oferece?

- +
@@ -728,8 +728,8 @@

diff --git a/parceiros.html b/parceiros.html index 181ed68..95824ff 100644 --- a/parceiros.html +++ b/parceiros.html @@ -416,8 +416,8 @@

@@ -472,12 +472,6 @@
Subscreva
- - diff --git a/style.css b/style.css index d6dd09f..b900a44 100644 --- a/style.css +++ b/style.css @@ -1124,6 +1124,7 @@ p { padding-top: 30px; } .about-five-content .about-five-tab .tab-content p { + text-align: justify; margin-bottom: 20px; } .about-five-content .about-five-tab .tab-content p:last-child { @@ -1849,7 +1850,7 @@ p { } .footer-eleven .f-about .copyright-text { color: var(--dark-3); - margin-top: 20px; + margin-top: 40px; } .footer-eleven .f-about .copyright-text span { display: block;