Skip to content

Commit 12ad308

Browse files
committed
Adiciona atributo alt em imagens e melhora código do WhatsApp 📷✨
Incluído o atributo alt nas tags de imagem para melhorar acessibilidade. Código da geração de link para WhatsApp foi simplificado, removendo redundâncias.
1 parent fb88606 commit 12ad308

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

resources/views/home/index.blade.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<div class="col-md-4">
1717
<h2 class="card-title fs-4 text-center mb-1">Consórcio de <span style="color: #1e9ef3">{{ $tipoCarta->Descricao }}</span></h2>
1818
<div class="d-flex align-items-center justify-content-center">
19-
<img class="img-thumbnail " src="{{ asset('/images/tipoproduto/' . $tipoCarta->Imagem) }}">
19+
<img alt="imagem do produto" class="img-thumbnail " src="{{ asset('/images/tipoproduto/' . $tipoCarta->Imagem) }}">
2020
</div>
2121
<div class="row">
2222
<div class="items">
@@ -56,11 +56,9 @@ function comprarCarta(button) {
5656
", Prazo: " + button.dataset.cartaPrazo + " meses";
5757
5858
mensagemPadrao = encodeURIComponent(mensagemPadrao);
59-
60-
var linkWhatsApp = 'https://api.whatsapp.com/send?phone=' + numeroVendedor + '&text=' +
61-
mensagemPadrao;
62-
63-
window.location.href = linkWhatsApp;
59+
60+
window.location.href = 'https://api.whatsapp.com/send?phone=' + numeroVendedor + '&text=' +
61+
mensagemPadrao;
6462
}
6563
$(document).ready(function() {
6664
$('.items').slick({

0 commit comments

Comments
 (0)