Skip to content

Commit

Permalink
,gff
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitorfrios committed Nov 28, 2024
1 parent c0b1a90 commit 91e92a8
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 9 deletions.
17 changes: 16 additions & 1 deletion codigo/public/assets/css/00_Sobre.css
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,17 @@ section {
border-left: 5px solid #00a4cc;
margin-bottom: 20px;
}
.iframe-00,.iframe-01{
width: 49%;
height: 100%;
object-fit: contain;
border: none;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
gap: 1;
}

h3{
color: #333;
font-size: 1.23rem;
Expand All @@ -188,7 +199,11 @@ h2 {
display: inline-block;
padding-bottom: 5px;
}

hr {
color: #333;
font-size: 2rem;
border-bottom: 2px solid #00a4cc;
}
p {
font-size: 1.1rem;
margin: 10px 0;
Expand Down
14 changes: 7 additions & 7 deletions codigo/public/assets/js/10_Suporte_Feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,19 @@ async function initializeIds() {
const response = await fetch('http://localhost:3000/feedback');
const feedbacks = await response.json();

// Filtrar os IDs de feedback e suporte e pegar o maior número

const feedbackIds = feedbacks
.filter(f => f.tipo === "feedback")
.map(f => parseInt(f.id.replace("feedback", "")));
const suporteIds = feedbacks
.filter(f => f.tipo === "suporte")
.map(f => parseInt(f.id.replace("suporte", "")));

// Define o último ID como o maior número encontrado ou 0

lastFeedbackId = feedbackIds.length > 0 ? Math.max(...feedbackIds) : 0;
lastSuporteId = suporteIds.length > 0 ? Math.max(...suporteIds) : 0;

// Salva no localStorage

localStorage.setItem('lastFeedbackId', lastFeedbackId);
localStorage.setItem('lastSuporteId', lastSuporteId);
} catch (error) {
Expand All @@ -98,13 +98,13 @@ function enviarFeedback() {

let id;
if (tipo === "feedback") {
lastFeedbackId++; // Incrementa o ID para o próximo feedback
lastFeedbackId++;
id = `feedback${lastFeedbackId}`;
localStorage.setItem('lastFeedbackId', lastFeedbackId); // Atualiza o localStorage
localStorage.setItem('lastFeedbackId', lastFeedbackId);
} else if (tipo === "suporte") {
lastSuporteId++; // Incrementa o ID para o próximo suporte
lastSuporteId++;
id = `suporte${lastSuporteId}`;
localStorage.setItem('lastSuporteId', lastSuporteId); // Atualiza o localStorage
localStorage.setItem('lastSuporteId', lastSuporteId);
} else {
alert("Selecione um tipo de feedback antes de enviar.");
return;
Expand Down
13 changes: 12 additions & 1 deletion codigo/public/pages/00_Sobre.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,18 @@ <h2 style="margin-top: 0;">Documentos</h2>
<p><a href="../pages/00_Sobre.html">Documentação geral do projeto</a></p>
<p><a href="../docs/files/Doc.pdf" download>Documentação do Projeto (pdf)</a></p>
<p><a href="../docs/files/processo-dt-G5.pdf">Documentação de Design Thinking (MIRO)</a></p>
</div>
</div>
<hr></hr>
<div style="display: flex; justify-content: space-around">
<p> <a href="../pages/00_Sobre.html" style="color: black;">Tela da documentação</a></p>
<p> <a href="../pages/01_Telas.html" style="color: black;">Telas do projeto</a></p>

</div>

<div class="video" style="display: flex; justify-content: space-between;">
<video class="iframe-00" src="../docs/gif/00_Sobre.mp4"loop autoplay muted></video>
<video class="iframe-01" src="../docs/gif/01_Telas.mp4"loop autoplay muted></video>
</div>
</section>

<!-- Seção: Contexto -->
Expand Down

0 comments on commit 91e92a8

Please sign in to comment.