-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
90 lines (80 loc) · 3.81 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="public/css/globals.css" />
<script src="https://cdn.tailwindcss.com"></script>
<script src="public/js/shuffle.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/confetti.browser.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/progressbar.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script defer src="public/js/core.js"></script>
<title>Quiz de Manutenção e Suporte</title>
</head>
<body class="text-white min-h-screen flex flex-col items-center justify-center p-4">
<!-- Conteúdo Principal -->
<main class="p-8 max-w-2xl w-full z-10">
<h1 class="text-3xl font-bold text-center text-blue-600 mb-6">Quiz de Manutenção e Suporte</h1>
<!-- Introdução -->
<div id="intro" class="space-y-6">
<p class="text-center text-gray-700">
Coloque seus conhecimentos em manutenção e suporte à prova com este quiz divertido e desafiador!
</p>
<button id="startQuiz" class="w-full bg-blue-500 hover:bg-blue-600 text-white font-bold py-3 px-6 rounded-lg transition duration-300 transform hover:scale-105">
Iniciar Quiz
</button>
</div>
<!-- Container do Quiz -->
<div id="quizContainer" class="hidden space-y-6">
<div class="flex justify-between items-center">
<div id="questionChip" class="bg-blue-100 text-blue-800 font-semibold py-1 px-3 rounded-full text-sm"></div>
<div id="categoryChip" class="bg-pink-100 text-pink-800 font-semibold py-1 px-3 rounded-full text-sm"></div>
<div id="scoreCounter" class="bg-green-100 text-green-800 font-semibold py-1 px-3 rounded-full text-sm"></div>
</div>
<!-- Barra de Progresso -->
<div id="progress-bar" class="mb-4"></div>
<!-- Pergunta -->
<h2 id="question" class="text-xl font-semibold text-gray-800"></h2>
<!-- Respostas -->
<div id="answers" class="space-y-3"></div>
<!-- Próxima Pergunta -->
<button id="nextQuestion" class="w-full bg-green-500 hover:bg-green-600 text-white font-bold py-3 px-6 rounded-lg transition duration-300 transform hover:scale-105 hidden">
Próxima Pergunta
</button>
<!-- Desistir do Quiz -->
<button id="giveUpQuiz" class="w-full bg-red-500 hover:bg-red-600 text-white font-bold py-3 px-6 rounded-lg transition duration-300 transform hover:scale-105">
Desistir do Quiz
</button>
<!-- Explicação -->
<div id="explanation" class="mt-4 p-4 bg-gray-100 rounded-lg hidden">
<p id="explanationText" class="text-gray-700"></p>
</div>
</div>
<!-- Resultados -->
<div id="result" class="hidden text-center">
<h2 class="text-2xl font-bold text-blue-600 mb-4">Resultado Final</h2>
<p id="score" class="text-xl mb-2 text-black"></p>
<p id="percentage" class="text-lg mb-4 text-black"></p>
<!-- Gráficos -->
<div class="chart-container">
<canvas id="resultChart"></canvas>
</div>
<div class="chart-container mt-8">
<canvas id="radarChart"></canvas>
</div>
<div class="chart-container mt-8">
<canvas id="pieChart"></canvas>
</div>
<!-- Reiniciar Quiz -->
<button id="restartQuiz" class="mt-6 bg-blue-500 hover:bg-blue-600 text-white font-bold py-3 px-6 rounded-lg transition duration-300 transform hover:scale-105">
Reiniciar Quiz
</button>
</div>
</main>
<!-- Rodapé -->
<footer class="mt-8 text-center text-gray-400">
<p>Projeto para Feira de Ciências do CETEP.</p>
</footer>
</body>
</html>