Skip to content

Commit

Permalink
Perguntas frequetes
Browse files Browse the repository at this point in the history
  • Loading branch information
Geilson9 committed Jan 28, 2025
1 parent 819ccb8 commit a5bc7e9
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 9 deletions.
20 changes: 18 additions & 2 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,25 @@ footer {
}

/* Perguntas Frequentes */
.faq-answer {
display: none;
padding: 10px 0;
color: #000000;
}

.faq-question {
cursor: pointer;
transition: color 0.3s;
}

.faq-question:hover {
color: #ffffff;
}

@media screen and (max-width: 768px) {
.perguntas {
padding-left: 20px;
padding-right: 20px;
padding-left: 20px;
padding-right: 20px;
}
}

24 changes: 17 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ <h1>Slide 4</h1>
</div>
</div>
</div>
</div><!--fim de "pag1"-->
</div>
<hr><!--fim de "pag1"-->

<!--Página 2: sobre-->
<div class="pag2" id="sobre">
Expand All @@ -61,7 +62,7 @@ <h3>Pretty Nails é um aplicativo de agenda <br> que permite que a cliente tenha
<img src="imagens/1.png" alt="Imagem 1" />
</div>
</div>

<hr>
<div class="topico2">
<div class="imagem2">
<img src="imagens/2.png" alt="Imagem 2" />
Expand All @@ -84,20 +85,29 @@ <h3> - Valorização do seu trabalho; <br> - Auxílio; <br> - Facilidade; <br> -
</div>
</div>
</div>
</div><!--fim de "pag2"-->
</div>
<hr><!--fim de "pag2"-->

<div class="pag3" id="Suporte">
<div class="pf">
<h1>Perguntas Frequentes</h1>
</div>
<div class="perguntas">
<div class="pfs">
<div class="faq-item">
<h3 class="faq-question">O aplicativo é gratuito?</h3>
<p class="faq-answer">Sim, o aplicativo é totalmente gratuito para download e uso.</p>
</div>
<hr>
<h3>O aplicativo é gratuito?</h3>
<hr>
<h3>Posso cancelar ou remarcar meu agendamento?</h3>
<div class="faq-item">
<h3 class="faq-question">Posso cancelar ou remarcar meu agendamento?</h3>
<p class="faq-answer">Sim, você pode cancelar ou remarcar seu agendamento diretamente pelo aplicativo, desde que esteja dentro do prazo permitido.</p>
</div>
<hr>
<h3>Como posso agendar um horário?</h3>
<div class="faq-item">
<h3 class="faq-question">Como posso agendar um horário?</h3>
<p class="faq-answer">Para agendar um horário, basta acessar a seção de agendamentos no aplicativo e seguir as instruções.</p>
</div>
<hr>
</div>
</div>
Expand Down
8 changes: 8 additions & 0 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,11 @@ function autoSlide() {

// Muda o slide automaticamente a cada 5 segundos
setInterval(autoSlide, 5000);

//Perguntas frequentes
document.querySelectorAll('.faq-question').forEach(question => {
question.addEventListener('click', () => {
const answer = question.nextElementSibling;
answer.style.display = answer.style.display === 'block' ? 'none' : 'block';
});
});

0 comments on commit a5bc7e9

Please sign in to comment.