Skip to content

Commit

Permalink
feat: banner, rodapé e justificação do texto
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuel-Marques committed May 10, 2024
1 parent 1a5115b commit af16918
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 18 deletions.
Binary file modified assets/.DS_Store
Binary file not shown.
Binary file added assets/images/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 10 additions & 6 deletions assets/js/email.service.js
Original file line number Diff line number Diff line change
@@ -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){
Expand All @@ -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();
Expand Down Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ <h2 class="fw-bold">O que o Poligest oferece?</h2>
<!--====== End Section Title Five ======-->
<div class="details">
<div class="card-image">
<img src="assets/images/banner.jpg" alt="">
<img src="assets/images/banner.png" width="2186">
</div>
<div class="row">
<div class="col-md-3 col-sm-12 info">
Expand Down Expand Up @@ -728,8 +728,8 @@ <h2>
</a>
</div>
<p class="copyright-text">
<span>Um produto:</span>
<img src="assets/images/logo-oficial.jpeg" width="200" alt="logo poligest">
<span>© 2024 Poligest.</span>Um produto:
<a href="javascript:void()" rel="nofollow"> Tenda Digital </a>
<span>Todos os direitos reservados</span>
<!-- © 2024 Poligest. -->
</p>
Expand Down
10 changes: 2 additions & 8 deletions parceiros.html
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,8 @@ <h2>
</a>
</div>
<p class="copyright-text">
<span>Um produto:</span>
<img src="assets/images/logo-oficial.jpeg" width="200" alt="logo poligest">
<span>© 2024 Poligest.</span>Um produto:
<a href="javascript:void()" rel="nofollow"> Tenda Digital </a>
<span>Todos os direitos reservados</span>
<!-- © 2024 Poligest. -->
</p>
Expand Down Expand Up @@ -472,12 +472,6 @@ <h5>Subscreva</h5>
</footer>
<!--/ End Footer Area -->

<!-- <div class="made-in-ayroui mt-4">
<a href="http://www.poligest.ao/" target="_blank" rel="nofollow">
<img style="width:190px" src="assets/images/logo-oficial.png">
</a>
</div> -->

<a href="#" class="scroll-top btn-hover">
<i class="lni lni-chevron-up"></i>
</a>
Expand Down
3 changes: 2 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit af16918

Please # to comment.