-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
97 lines (87 loc) · 4.64 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
91
92
93
94
95
96
97
<!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 Informática</title>
</head>
<body class="bg-gradient-to-br from-gray-900 via-blue-900 to-gray-900 text-white min-h-screen flex flex-col items-center justify-center p-4">
<!-- Background Animations -->
<div class="fixed z-0 inset-0 overflow-hidden pointer-events-none">
<div class="absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjMDAwMDAwMjAiPjwvcmVjdD4KPHBhdGggZD0iTTAgNUw1IDBaTTYgNEw0IDZaTS0xIDFMMSAtMVoiIHN0cm9rZT0iIzAwMDAwMDQwIiBzdHJva2Utd2lkdGg9IjEiPjwvcGF0aD4KPC9zdmc+')] opacity-10"></div>
<div class="absolute top-10 left-10 w-20 h-20 bg-blue-500 rounded-full filter blur-3xl opacity-20 pulsing"></div>
<div class="absolute bottom-10 right-10 w-32 h-32 bg-purple-500 rounded-full filter blur-3xl opacity-20 pulsing"></div>
</div>
<!-- Conteúdo Principal -->
<main class="bg-white rounded-lg shadow-xl p-8 max-w-2xl w-full z-10">
<h1 class="text-3xl font-bold text-center text-blue-600 mb-6">Quiz de Informática</h1>
<!-- Introdução -->
<div id="intro" class="space-y-6">
<p class="text-center text-gray-700">
Teste seus conhecimentos em informática 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>
<!-- 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>
<!-- Pergunta -->
<h2 id="question" class="text-xl font-semibold text-gray-800"></h2>
<!-- Respostas -->
<div id="answers" class="space-y-3"></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>© 2024 Quiz de Informática. Todos os direitos reservados.</p>
<p>Projeto para Feira de Ciências do CETEP.</p>
</footer>
</body>
</html>