wagtail-enap-designsystem 1.2.1.170__py3-none-any.whl → 1.2.1.172__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of wagtail-enap-designsystem might be problematic. Click here for more details.
- enap_designsystem/blocks/content_blocks.py +2 -0
- enap_designsystem/blocks/html_blocks.py +4 -1
- enap_designsystem/migrations/0441_perguntaquiz_quizrotapage_alter_areaaluno_body_and_more.py +56121 -0
- enap_designsystem/migrations/0442_remove_perguntaquiz_page_delete_opcaoresposta_and_more.py +26 -0
- enap_designsystem/migrations/0443_capsulaindexpage_footer_capsulaindexpage_navbar_and_more.py +56029 -0
- enap_designsystem/migrations/0444_alter_areaaluno_body_alter_cursoeadpage_curso_and_more.py +70304 -0
- enap_designsystem/models.py +208 -2
- enap_designsystem/static/enap_designsystem/blocks/capsulas.css +0 -1
- enap_designsystem/static/enap_designsystem/blocks/cards.css +1 -0
- enap_designsystem/templates/enap_designsystem/blocks/card_block.html +158 -1
- enap_designsystem/templates/enap_designsystem/blocks/section_block.html +5 -5
- enap_designsystem/templates/enap_designsystem/pages/capsula_index_page.html +137 -128
- enap_designsystem/templates/enap_designsystem/pages/capsula_page.html +135 -276
- enap_designsystem/templates/enap_designsystem/pages/page_search.html +1 -1
- enap_designsystem/templates/enap_designsystem/pages/quiz_rota_page.html +922 -0
- enap_designsystem/templates/enap_designsystem/semana_inovacao/blocks_menu_navigation.html +6 -2
- {wagtail_enap_designsystem-1.2.1.170.dist-info → wagtail_enap_designsystem-1.2.1.172.dist-info}/METADATA +1 -1
- {wagtail_enap_designsystem-1.2.1.170.dist-info → wagtail_enap_designsystem-1.2.1.172.dist-info}/RECORD +21 -16
- {wagtail_enap_designsystem-1.2.1.170.dist-info → wagtail_enap_designsystem-1.2.1.172.dist-info}/WHEEL +0 -0
- {wagtail_enap_designsystem-1.2.1.170.dist-info → wagtail_enap_designsystem-1.2.1.172.dist-info}/licenses/LICENSE +0 -0
- {wagtail_enap_designsystem-1.2.1.170.dist-info → wagtail_enap_designsystem-1.2.1.172.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,922 @@
|
|
|
1
|
+
|
|
2
|
+
{% extends "enap_designsystem/base.html" %}
|
|
3
|
+
{% load static %}
|
|
4
|
+
{% load wagtailcore_tags wagtailimages_tags %}
|
|
5
|
+
|
|
6
|
+
{% block extra_css %}
|
|
7
|
+
<style>
|
|
8
|
+
/* Estilos do Quiz */
|
|
9
|
+
.quiz-container {
|
|
10
|
+
max-width: 1200px;
|
|
11
|
+
margin: 0 auto;
|
|
12
|
+
padding: 40px 20px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.quiz-header {
|
|
16
|
+
text-align: center;
|
|
17
|
+
margin-bottom: 60px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.quiz-header h1 {
|
|
21
|
+
font-size: 2.5rem;
|
|
22
|
+
color: #0066CC;
|
|
23
|
+
margin-bottom: 20px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.quiz-progress {
|
|
27
|
+
max-width: 600px;
|
|
28
|
+
margin: 0 auto 40px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.progress-bar {
|
|
32
|
+
height: 8px;
|
|
33
|
+
background: #e0e0e0;
|
|
34
|
+
border-radius: 10px;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
margin-bottom: 10px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.progress-fill {
|
|
40
|
+
height: 100%;
|
|
41
|
+
background: linear-gradient(90deg, #0066CC, #00A3E0);
|
|
42
|
+
transition: width 0.3s ease;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.progress-text {
|
|
46
|
+
text-align: center;
|
|
47
|
+
display: block;
|
|
48
|
+
color: #666;
|
|
49
|
+
font-size: 14px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.pergunta-card {
|
|
53
|
+
background: white;
|
|
54
|
+
border-radius: 12px;
|
|
55
|
+
padding: 40px;
|
|
56
|
+
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
|
|
57
|
+
margin-bottom: 30px;
|
|
58
|
+
animation: fadeIn 0.5s ease;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@keyframes fadeIn {
|
|
62
|
+
from {
|
|
63
|
+
opacity: 0;
|
|
64
|
+
transform: translateY(20px);
|
|
65
|
+
}
|
|
66
|
+
to {
|
|
67
|
+
opacity: 1;
|
|
68
|
+
transform: translateY(0);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.pergunta-texto {
|
|
73
|
+
font-size: 1.8rem;
|
|
74
|
+
color: #333;
|
|
75
|
+
margin-bottom: 10px;
|
|
76
|
+
font-weight: 600;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.pergunta-ajuda {
|
|
80
|
+
color: #666;
|
|
81
|
+
font-size: 1rem;
|
|
82
|
+
margin-bottom: 30px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.opcoes-grid {
|
|
86
|
+
display: grid;
|
|
87
|
+
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
88
|
+
gap: 20px;
|
|
89
|
+
margin-top: 30px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.opcao-card {
|
|
93
|
+
background: white;
|
|
94
|
+
border: 2px solid #e0e0e0;
|
|
95
|
+
border-radius: 8px;
|
|
96
|
+
padding: 24px;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
transition: all 0.3s ease;
|
|
99
|
+
text-align: left;
|
|
100
|
+
position: relative;
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.opcao-card:hover {
|
|
105
|
+
border-color: #0066CC;
|
|
106
|
+
box-shadow: 0 6px 20px rgba(0,102,204,0.15);
|
|
107
|
+
transform: translateY(-4px);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.opcao-card.selecionado {
|
|
111
|
+
border-color: #0066CC;
|
|
112
|
+
background: #f0f7ff;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.opcao-card i {
|
|
116
|
+
font-size: 2rem;
|
|
117
|
+
color: #0066CC;
|
|
118
|
+
margin-bottom: 12px;
|
|
119
|
+
display: block;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.opcao-card h3 {
|
|
123
|
+
font-size: 1.2rem;
|
|
124
|
+
color: #333;
|
|
125
|
+
margin: 0 0 8px 0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.opcao-card p {
|
|
129
|
+
color: #666;
|
|
130
|
+
font-size: 0.9rem;
|
|
131
|
+
margin: 0;
|
|
132
|
+
line-height: 1.5;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.btn-selecionar {
|
|
136
|
+
display: inline-block;
|
|
137
|
+
margin-top: 12px;
|
|
138
|
+
color: #0066CC;
|
|
139
|
+
font-weight: 600;
|
|
140
|
+
font-size: 0.9rem;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.escolhas-resumo {
|
|
144
|
+
background: #f8f9fa;
|
|
145
|
+
border-left: 4px solid #0066CC;
|
|
146
|
+
padding: 20px;
|
|
147
|
+
border-radius: 8px;
|
|
148
|
+
margin-top: 30px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.escolhas-resumo h4 {
|
|
152
|
+
margin: 0 0 15px 0;
|
|
153
|
+
color: #333;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.escolhas-resumo ul {
|
|
157
|
+
list-style: none;
|
|
158
|
+
padding: 0;
|
|
159
|
+
margin: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.escolhas-resumo li {
|
|
163
|
+
padding: 8px 0;
|
|
164
|
+
border-bottom: 1px solid #e0e0e0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.escolhas-resumo li:last-child {
|
|
168
|
+
border-bottom: none;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.escolhas-resumo strong {
|
|
172
|
+
color: #0066CC;
|
|
173
|
+
text-transform: capitalize;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.btn-recomecar {
|
|
177
|
+
display: inline-block;
|
|
178
|
+
padding: 10px 20px;
|
|
179
|
+
background: #6c757d;
|
|
180
|
+
color: white;
|
|
181
|
+
border: none;
|
|
182
|
+
border-radius: 6px;
|
|
183
|
+
cursor: pointer;
|
|
184
|
+
text-decoration: none;
|
|
185
|
+
transition: background 0.3s;
|
|
186
|
+
margin-top: 20px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.btn-recomecar:hover {
|
|
190
|
+
background: #5a6268;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* Estilos do Resultado */
|
|
194
|
+
.resultado-rotas {
|
|
195
|
+
padding: 40px 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.resultado-header {
|
|
199
|
+
text-align: center;
|
|
200
|
+
margin-bottom: 40px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.resultado-header h1 {
|
|
204
|
+
color: #0066CC;
|
|
205
|
+
font-size: 2.5rem;
|
|
206
|
+
margin-bottom: 20px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.badges-respostas {
|
|
210
|
+
display: flex;
|
|
211
|
+
gap: 10px;
|
|
212
|
+
justify-content: center;
|
|
213
|
+
flex-wrap: wrap;
|
|
214
|
+
list-style: none;
|
|
215
|
+
padding: 0;
|
|
216
|
+
margin: 20px 0;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.badge {
|
|
220
|
+
background: #0066CC;
|
|
221
|
+
color: white;
|
|
222
|
+
padding: 10px 20px;
|
|
223
|
+
border-radius: 20px;
|
|
224
|
+
font-size: 14px;
|
|
225
|
+
font-weight: 500;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.acoes-resultado {
|
|
229
|
+
display: flex;
|
|
230
|
+
gap: 20px;
|
|
231
|
+
justify-content: center;
|
|
232
|
+
margin: 40px 0;
|
|
233
|
+
flex-wrap: wrap;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.btn {
|
|
237
|
+
display: inline-block;
|
|
238
|
+
padding: 14px 28px;
|
|
239
|
+
border-radius: 8px;
|
|
240
|
+
text-decoration: none;
|
|
241
|
+
font-weight: 600;
|
|
242
|
+
transition: all 0.3s;
|
|
243
|
+
border: none;
|
|
244
|
+
cursor: pointer;
|
|
245
|
+
font-size: 16px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.btn-primary {
|
|
249
|
+
background: #0066CC;
|
|
250
|
+
color: white;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.btn-primary:hover {
|
|
254
|
+
background: #0052a3;
|
|
255
|
+
transform: translateY(-2px);
|
|
256
|
+
box-shadow: 0 4px 12px rgba(0,102,204,0.3);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.btn-secondary {
|
|
260
|
+
background: #6c757d;
|
|
261
|
+
color: white;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.btn-secondary:hover {
|
|
265
|
+
background: #5a6268;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.btn-lg {
|
|
269
|
+
padding: 16px 32px;
|
|
270
|
+
font-size: 18px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.capsulas-grid {
|
|
274
|
+
display: grid;
|
|
275
|
+
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
|
|
276
|
+
gap: 30px;
|
|
277
|
+
margin-top: 30px;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.capsula-card {
|
|
281
|
+
border: 2px solid #e0e0e0;
|
|
282
|
+
border-radius: 12px;
|
|
283
|
+
padding: 24px;
|
|
284
|
+
transition: all 0.3s;
|
|
285
|
+
background: white;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.capsula-card:hover {
|
|
289
|
+
box-shadow: 0 6px 20px rgba(0,0,0,0.1);
|
|
290
|
+
border-color: #0066CC;
|
|
291
|
+
transform: translateY(-4px);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.capsula-card.obrigatorio {
|
|
295
|
+
border-left: 6px solid #dc3545;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.capsula-card.recomendado {
|
|
299
|
+
border-left: 6px solid #28a745;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.badge-prioridade {
|
|
303
|
+
display: inline-block;
|
|
304
|
+
padding: 6px 12px;
|
|
305
|
+
border-radius: 4px;
|
|
306
|
+
font-size: 12px;
|
|
307
|
+
font-weight: bold;
|
|
308
|
+
text-transform: uppercase;
|
|
309
|
+
margin-bottom: 12px;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.badge-obrigatorio {
|
|
313
|
+
background: #dc3545;
|
|
314
|
+
color: white;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.badge-recomendado {
|
|
318
|
+
background: #28a745;
|
|
319
|
+
color: white;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.capsula-card h3 {
|
|
323
|
+
margin: 12px 0;
|
|
324
|
+
color: #333;
|
|
325
|
+
font-size: 1.3rem;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.capsula-card h3 a {
|
|
329
|
+
text-decoration: none;
|
|
330
|
+
color: inherit;
|
|
331
|
+
transition: color 0.3s;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.capsula-card h3 a:hover {
|
|
335
|
+
color: #0066CC;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.capsula-resumo {
|
|
339
|
+
color: #666;
|
|
340
|
+
line-height: 1.6;
|
|
341
|
+
margin: 12px 0;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.capsula-tags {
|
|
345
|
+
display: flex;
|
|
346
|
+
gap: 8px;
|
|
347
|
+
flex-wrap: wrap;
|
|
348
|
+
margin: 12px 0;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.tag {
|
|
352
|
+
background: #f0f0f0;
|
|
353
|
+
padding: 4px 10px;
|
|
354
|
+
border-radius: 4px;
|
|
355
|
+
font-size: 12px;
|
|
356
|
+
color: #666;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.btn-ler-capsula {
|
|
360
|
+
display: inline-block;
|
|
361
|
+
margin-top: 12px;
|
|
362
|
+
color: #0066CC;
|
|
363
|
+
text-decoration: none;
|
|
364
|
+
font-weight: 600;
|
|
365
|
+
transition: all 0.3s;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.btn-ler-capsula:hover {
|
|
369
|
+
color: #0052a3;
|
|
370
|
+
text-decoration: underline;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.sem-resultados {
|
|
374
|
+
text-align: center;
|
|
375
|
+
padding: 60px 20px;
|
|
376
|
+
background: #f8f9fa;
|
|
377
|
+
border-radius: 12px;
|
|
378
|
+
margin-top: 30px;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.sem-resultados p {
|
|
382
|
+
font-size: 18px;
|
|
383
|
+
color: #666;
|
|
384
|
+
margin-bottom: 20px;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/* CSS para impressão */
|
|
388
|
+
@media print {
|
|
389
|
+
@page {
|
|
390
|
+
margin: 2cm;
|
|
391
|
+
size: A4;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.acoes-resultado,
|
|
395
|
+
nav,
|
|
396
|
+
footer,
|
|
397
|
+
.btn,
|
|
398
|
+
.quiz-progress,
|
|
399
|
+
.btn-recomecar {
|
|
400
|
+
display: none !important;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.capsulas-grid {
|
|
404
|
+
display: block;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.capsula-card {
|
|
408
|
+
page-break-inside: avoid;
|
|
409
|
+
border: 2px solid #333;
|
|
410
|
+
padding: 20px;
|
|
411
|
+
margin-bottom: 30px;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
* {
|
|
415
|
+
-webkit-print-color-adjust: exact !important;
|
|
416
|
+
print-color-adjust: exact !important;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.badge-prioridade {
|
|
420
|
+
border: 2px solid #000;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.resultado-header h1 {
|
|
424
|
+
font-size: 24pt;
|
|
425
|
+
margin-bottom: 20pt;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
a {
|
|
429
|
+
color: #000;
|
|
430
|
+
text-decoration: none;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
a[href]:after {
|
|
434
|
+
content: " (" attr(href) ")";
|
|
435
|
+
font-size: 10pt;
|
|
436
|
+
color: #666;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
</style>
|
|
440
|
+
{% endblock %}
|
|
441
|
+
|
|
442
|
+
{% block title %}
|
|
443
|
+
<title>{{ page.page_title }}</title>
|
|
444
|
+
{% endblock %}
|
|
445
|
+
|
|
446
|
+
{%block govnavbar %}
|
|
447
|
+
<div style="background-color: #071E41;">
|
|
448
|
+
<div class="menu">
|
|
449
|
+
<div class="logo">
|
|
450
|
+
<img style="width: 51px; height: 18px;" src="{% static 'enap_designsystem/icons/logo-white.png' %}" alt="Passar pro lado esquerdo" alt="Logo GovBR" height="40">
|
|
451
|
+
</div>
|
|
452
|
+
<a href="https://www.gov.br/secom/pt-br/acesso-a-informacao/comunicabr">Comunica BR</a>
|
|
453
|
+
<div class="separator"></div>
|
|
454
|
+
<a href="https://www.gov.br/acessoainformacao/pt-br">Acesso à informação</a>
|
|
455
|
+
<div class="separator"></div>
|
|
456
|
+
<a href="https://www.gov.br/pt-br/participacao-social/">Participe</a>
|
|
457
|
+
<div class="separator"></div>
|
|
458
|
+
<a href="https://www4.planalto.gov.br/legislacao/">Legislação</a>
|
|
459
|
+
<div class="separator"></div>
|
|
460
|
+
<a href="https://www.gov.br/pt-br/orgaos-do-governo">Órgãos do Governo</a>
|
|
461
|
+
</div>
|
|
462
|
+
</div>
|
|
463
|
+
{% endblock %}
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
{% block navbar %}
|
|
467
|
+
{% if page.navbar %}
|
|
468
|
+
{% include "enap_designsystem/blocks/navbar/navbar_block.html" with navbar=page.navbar %}
|
|
469
|
+
{% else %}
|
|
470
|
+
<p style="color: red;">DEBUG: Nenhuma Navbar foi definida.</p>
|
|
471
|
+
{% endif %}
|
|
472
|
+
{% endblock %}
|
|
473
|
+
|
|
474
|
+
{% block content %}
|
|
475
|
+
|
|
476
|
+
{% if e_resultado %}
|
|
477
|
+
{# ========================================== #}
|
|
478
|
+
{# PÁGINA DE RESULTADO #}
|
|
479
|
+
{# ========================================== #}
|
|
480
|
+
|
|
481
|
+
<div class="resultado-rotas">
|
|
482
|
+
<div class="container">
|
|
483
|
+
|
|
484
|
+
<header class="resultado-header">
|
|
485
|
+
<h1>✅ Suas Recomendações Personalizadas</h1>
|
|
486
|
+
|
|
487
|
+
<div class="resumo-respostas">
|
|
488
|
+
<h3>Com base no seu perfil:</h3>
|
|
489
|
+
<ul class="badges-respostas">
|
|
490
|
+
{% for chave, resposta in respostas.items %}
|
|
491
|
+
<li class="badge">
|
|
492
|
+
{{ resposta.texto }}
|
|
493
|
+
</li>
|
|
494
|
+
{% endfor %}
|
|
495
|
+
</ul>
|
|
496
|
+
</div>
|
|
497
|
+
|
|
498
|
+
{% if page.texto_resultado %}
|
|
499
|
+
<div class="texto-resultado">
|
|
500
|
+
{{ page.texto_resultado|richtext }}
|
|
501
|
+
</div>
|
|
502
|
+
{% endif %}
|
|
503
|
+
</header>
|
|
504
|
+
|
|
505
|
+
{# Ações #}
|
|
506
|
+
<div class="acoes-resultado">
|
|
507
|
+
<button onclick="window.print()" class="btn btn-primary btn-lg">
|
|
508
|
+
📄 Salvar / Imprimir como PDF
|
|
509
|
+
</button>
|
|
510
|
+
|
|
511
|
+
<a href="{{ page.url }}" class="btn btn-secondary">
|
|
512
|
+
🔄 Fazer novo quiz
|
|
513
|
+
</a>
|
|
514
|
+
</div>
|
|
515
|
+
|
|
516
|
+
{# Grid de cápsulas #}
|
|
517
|
+
<section class="capsulas-recomendadas">
|
|
518
|
+
<h2 style="text-align: center; margin-bottom: 30px;">
|
|
519
|
+
Encontramos {{ total_capsulas }}
|
|
520
|
+
{% if total_capsulas == 1 %}cápsula{% else %}cápsulas{% endif %}
|
|
521
|
+
para você
|
|
522
|
+
</h2>
|
|
523
|
+
|
|
524
|
+
{% if capsulas_recomendadas %}
|
|
525
|
+
<div class="capsulas-grid">
|
|
526
|
+
{% for capsula in capsulas_recomendadas %}
|
|
527
|
+
<article class="capsula-card {% if capsula.prioridade == 'obrigatorio' %}obrigatorio{% else %}recomendado{% endif %}">
|
|
528
|
+
|
|
529
|
+
<span class="badge-prioridade {% if capsula.prioridade == 'obrigatorio' %}badge-obrigatorio{% else %}badge-recomendado{% endif %}">
|
|
530
|
+
{% if capsula.prioridade == 'obrigatorio' %}
|
|
531
|
+
⚠️ Obrigatório
|
|
532
|
+
{% else %}
|
|
533
|
+
✨ Recomendado
|
|
534
|
+
{% endif %}
|
|
535
|
+
</span>
|
|
536
|
+
|
|
537
|
+
<h3>
|
|
538
|
+
<a href="{{ capsula.url }}">{{ capsula.title }}</a>
|
|
539
|
+
</h3>
|
|
540
|
+
|
|
541
|
+
{% if capsula.resumo_card %}
|
|
542
|
+
<p class="capsula-resumo">
|
|
543
|
+
{{ capsula.resumo_card }}
|
|
544
|
+
</p>
|
|
545
|
+
{% endif %}
|
|
546
|
+
|
|
547
|
+
{% if capsula.tipos_deficiencia %}
|
|
548
|
+
<div class="capsula-tags">
|
|
549
|
+
{% for tipo in capsula.tipos_deficiencia %}
|
|
550
|
+
<span class="tag">{{ tipo }}</span>
|
|
551
|
+
{% endfor %}
|
|
552
|
+
</div>
|
|
553
|
+
{% endif %}
|
|
554
|
+
|
|
555
|
+
<a href="{{ capsula.url }}" class="btn-ler-capsula">
|
|
556
|
+
Ler cápsula completa →
|
|
557
|
+
</a>
|
|
558
|
+
</article>
|
|
559
|
+
{% endfor %}
|
|
560
|
+
</div>
|
|
561
|
+
{% else %}
|
|
562
|
+
<div class="sem-resultados">
|
|
563
|
+
<p>Não encontramos cápsulas específicas para este perfil ainda.</p>
|
|
564
|
+
<a href="{{ page.url }}" class="btn btn-primary">Tentar novamente</a>
|
|
565
|
+
</div>
|
|
566
|
+
{% endif %}
|
|
567
|
+
</section>
|
|
568
|
+
|
|
569
|
+
</div>
|
|
570
|
+
</div>
|
|
571
|
+
|
|
572
|
+
{% else %}
|
|
573
|
+
{# ========================================== #}
|
|
574
|
+
{# QUIZ INTERATIVO - PERGUNTAS FIXAS #}
|
|
575
|
+
{# ========================================== #}
|
|
576
|
+
|
|
577
|
+
<div class="quiz-container">
|
|
578
|
+
|
|
579
|
+
<header class="quiz-header">
|
|
580
|
+
<h1>{{ page.title }}</h1>
|
|
581
|
+
{% if page.introducao %}
|
|
582
|
+
{{ page.introducao|richtext }}
|
|
583
|
+
{% endif %}
|
|
584
|
+
</header>
|
|
585
|
+
|
|
586
|
+
{# Barra de progresso #}
|
|
587
|
+
<div class="quiz-progress">
|
|
588
|
+
<div class="progress-bar">
|
|
589
|
+
<div class="progress-fill" id="progressFill" style="width: 33%"></div>
|
|
590
|
+
</div>
|
|
591
|
+
<span class="progress-text" id="progressText">Pergunta 1 de 3</span>
|
|
592
|
+
</div>
|
|
593
|
+
|
|
594
|
+
{# Área das perguntas (dinâmica via JS) #}
|
|
595
|
+
<div id="quizArea">
|
|
596
|
+
|
|
597
|
+
{# ========================================== #}
|
|
598
|
+
{# PERGUNTA 1: PERFIL PROFISSIONAL #}
|
|
599
|
+
{# ========================================== #}
|
|
600
|
+
<div class="pergunta-card" id="pergunta1" style="display: block;">
|
|
601
|
+
<h2 class="pergunta-texto">Qual é o seu perfil profissional?</h2>
|
|
602
|
+
<p class="pergunta-ajuda">Selecione a opção que melhor descreve sua função principal</p>
|
|
603
|
+
|
|
604
|
+
<div class="opcoes-grid">
|
|
605
|
+
<button class="opcao-card" onclick="responderPergunta1('designer_instrucional', 'Designer Instrucional')">
|
|
606
|
+
<i>🎨</i>
|
|
607
|
+
<h3>Designer Instrucional</h3>
|
|
608
|
+
<p>Responsável por criar e estruturar conteúdos educacionais</p>
|
|
609
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
610
|
+
</button>
|
|
611
|
+
|
|
612
|
+
<button class="opcao-card" onclick="responderPergunta1('designer_grafico', 'Designer Gráfico')">
|
|
613
|
+
<i>🖼️</i>
|
|
614
|
+
<h3>Designer Gráfico</h3>
|
|
615
|
+
<p>Responsável pela criação de elementos visuais</p>
|
|
616
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
617
|
+
</button>
|
|
618
|
+
|
|
619
|
+
<button class="opcao-card" onclick="responderPergunta1('docente', 'Docente')">
|
|
620
|
+
<i>👨🏫</i>
|
|
621
|
+
<h3>Docente</h3>
|
|
622
|
+
<p>Professor(a) que ministra aulas e eventos educacionais</p>
|
|
623
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
624
|
+
</button>
|
|
625
|
+
|
|
626
|
+
<button class="opcao-card" onclick="responderPergunta1('implementador_web', 'Implementador Web', true)">
|
|
627
|
+
<i>💻</i>
|
|
628
|
+
<h3>Implementador Web</h3>
|
|
629
|
+
<p>Desenvolvedor responsável por implementar sistemas e plataformas</p>
|
|
630
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
631
|
+
</button>
|
|
632
|
+
|
|
633
|
+
<button class="opcao-card" onclick="responderPergunta1('editor_video', 'Editor de Vídeo', true)">
|
|
634
|
+
<i>🎬</i>
|
|
635
|
+
<h3>Editor de Vídeo</h3>
|
|
636
|
+
<p>Responsável pela edição e produção de conteúdos audiovisuais</p>
|
|
637
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
638
|
+
</button>
|
|
639
|
+
|
|
640
|
+
<button class="opcao-card" onclick="responderPergunta1('curador_conteudo', 'Curador de Conteúdo')">
|
|
641
|
+
<i>📁</i>
|
|
642
|
+
<h3>Curador de Conteúdo</h3>
|
|
643
|
+
<p>Responsável por selecionar e organizar conteúdos</p>
|
|
644
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
645
|
+
</button>
|
|
646
|
+
|
|
647
|
+
<button class="opcao-card" onclick="responderPergunta1('conteudista', 'Conteudista')">
|
|
648
|
+
<i>✍️</i>
|
|
649
|
+
<h3>Conteudista</h3>
|
|
650
|
+
<p>Responsável por criar textos e materiais didáticos</p>
|
|
651
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
652
|
+
</button>
|
|
653
|
+
</div>
|
|
654
|
+
</div>
|
|
655
|
+
|
|
656
|
+
{# ========================================== #}
|
|
657
|
+
{# PERGUNTA 2a: TIPO DE RECURSO #}
|
|
658
|
+
{# ========================================== #}
|
|
659
|
+
<div class="pergunta-card" id="pergunta2a" style="display: none;">
|
|
660
|
+
<h2 class="pergunta-texto">Com qual tipo de recurso você trabalha?</h2>
|
|
661
|
+
<p class="pergunta-ajuda">Escolha o tipo de material que você mais produz ou edita</p>
|
|
662
|
+
|
|
663
|
+
<div class="opcoes-grid">
|
|
664
|
+
<button class="opcao-card" onclick="responderPergunta2a('imagem', 'Imagem')">
|
|
665
|
+
<i>🖼️</i>
|
|
666
|
+
<h3>Imagem</h3>
|
|
667
|
+
<p>Fotos, ilustrações e gráficos</p>
|
|
668
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
669
|
+
</button>
|
|
670
|
+
|
|
671
|
+
<button class="opcao-card" onclick="responderPergunta2a('video', 'Vídeo')">
|
|
672
|
+
<i>▶️</i>
|
|
673
|
+
<h3>Vídeo</h3>
|
|
674
|
+
<p>Conteúdos em vídeo</p>
|
|
675
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
676
|
+
</button>
|
|
677
|
+
|
|
678
|
+
<button class="opcao-card" onclick="responderPergunta2a('tabela', 'Tabela')">
|
|
679
|
+
<i>📊</i>
|
|
680
|
+
<h3>Tabela</h3>
|
|
681
|
+
<p>Dados tabulados e planilhas</p>
|
|
682
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
683
|
+
</button>
|
|
684
|
+
|
|
685
|
+
<button class="opcao-card" onclick="responderPergunta2a('grafico', 'Gráfico')">
|
|
686
|
+
<i>📈</i>
|
|
687
|
+
<h3>Gráfico</h3>
|
|
688
|
+
<p>Visualizações de dados</p>
|
|
689
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
690
|
+
</button>
|
|
691
|
+
|
|
692
|
+
<button class="opcao-card" onclick="responderPergunta2a('texto', 'Texto')">
|
|
693
|
+
<i>📝</i>
|
|
694
|
+
<h3>Texto</h3>
|
|
695
|
+
<p>Documentos e materiais escritos</p>
|
|
696
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
697
|
+
</button>
|
|
698
|
+
|
|
699
|
+
<button class="opcao-card" onclick="responderPergunta2a('audio', 'Áudio')">
|
|
700
|
+
<i>🎧</i>
|
|
701
|
+
<h3>Áudio</h3>
|
|
702
|
+
<p>Podcasts e materiais sonoros</p>
|
|
703
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
704
|
+
</button>
|
|
705
|
+
|
|
706
|
+
<button class="opcao-card" onclick="responderPergunta2a('botao', 'Botão/Interface')">
|
|
707
|
+
<i>🖱️</i>
|
|
708
|
+
<h3>Botão/Interface</h3>
|
|
709
|
+
<p>Elementos de interface</p>
|
|
710
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
711
|
+
</button>
|
|
712
|
+
|
|
713
|
+
<button class="opcao-card" onclick="responderPergunta2a('hiperlink', 'Hiperlink')">
|
|
714
|
+
<i>🔗</i>
|
|
715
|
+
<h3>Hiperlink</h3>
|
|
716
|
+
<p>Links e navegação</p>
|
|
717
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
718
|
+
</button>
|
|
719
|
+
|
|
720
|
+
<button class="opcao-card" onclick="responderPergunta2a('videoconferencia', 'Videoconferência')">
|
|
721
|
+
<i>📹</i>
|
|
722
|
+
<h3>Videoconferência</h3>
|
|
723
|
+
<p>Reuniões e aulas online</p>
|
|
724
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
725
|
+
</button>
|
|
726
|
+
</div>
|
|
727
|
+
</div>
|
|
728
|
+
|
|
729
|
+
{# ========================================== #}
|
|
730
|
+
{# PERGUNTA 2b: FORMATO DE AÇÃO #}
|
|
731
|
+
{# ========================================== #}
|
|
732
|
+
<div class="pergunta-card" id="pergunta2b" style="display: none;">
|
|
733
|
+
<h2 class="pergunta-texto">Qual formato de ação de desenvolvimento você trabalha?</h2>
|
|
734
|
+
<p class="pergunta-ajuda">Selecione a modalidade de ensino com a qual você trabalha</p>
|
|
735
|
+
|
|
736
|
+
<div class="opcoes-grid">
|
|
737
|
+
<button class="opcao-card" onclick="responderPergunta2b('distancia_sincrono', 'A distância síncrono')">
|
|
738
|
+
<i>💻</i>
|
|
739
|
+
<h3>A distância síncrono</h3>
|
|
740
|
+
<p>Aulas e eventos online em tempo real</p>
|
|
741
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
742
|
+
</button>
|
|
743
|
+
|
|
744
|
+
<button class="opcao-card" onclick="responderPergunta2b('distancia_assincrono', 'A distância assíncrono')">
|
|
745
|
+
<i>📚</i>
|
|
746
|
+
<h3>A distância assíncrono</h3>
|
|
747
|
+
<p>Conteúdos que os alunos acessam quando quiserem</p>
|
|
748
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
749
|
+
</button>
|
|
750
|
+
|
|
751
|
+
<button class="opcao-card" onclick="responderPergunta2b('presencial', 'Presencial')">
|
|
752
|
+
<i>🏫</i>
|
|
753
|
+
<h3>Presencial</h3>
|
|
754
|
+
<p>Aulas e eventos presenciais</p>
|
|
755
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
756
|
+
</button>
|
|
757
|
+
|
|
758
|
+
<button class="opcao-card" onclick="responderPergunta2b('semipresencial', 'Semipresencial')">
|
|
759
|
+
<i>🔀</i>
|
|
760
|
+
<h3>Semipresencial</h3>
|
|
761
|
+
<p>Combinação de presencial e online</p>
|
|
762
|
+
<span class="btn-selecionar">Selecionar →</span>
|
|
763
|
+
</button>
|
|
764
|
+
</div>
|
|
765
|
+
</div>
|
|
766
|
+
|
|
767
|
+
</div>
|
|
768
|
+
|
|
769
|
+
{# Resumo das escolhas #}
|
|
770
|
+
<aside class="escolhas-resumo" id="escolhasResumo" style="display: none;">
|
|
771
|
+
<h4>Suas escolhas:</h4>
|
|
772
|
+
<ul id="listaEscolhas"></ul>
|
|
773
|
+
</aside>
|
|
774
|
+
|
|
775
|
+
<a href="{{ page.url }}" class="btn-recomecar" style="display: none;" id="btnRecomecar">
|
|
776
|
+
← Recomeçar
|
|
777
|
+
</a>
|
|
778
|
+
|
|
779
|
+
</div>
|
|
780
|
+
|
|
781
|
+
{% endif %}
|
|
782
|
+
<script>
|
|
783
|
+
// ==========================================
|
|
784
|
+
// JAVASCRIPT SIMPLIFICADO - USA URL PARAMS
|
|
785
|
+
// ==========================================
|
|
786
|
+
|
|
787
|
+
let respostas = {};
|
|
788
|
+
|
|
789
|
+
// Função para construir URL com parâmetros
|
|
790
|
+
function construirUrlResultado() {
|
|
791
|
+
let params = new URLSearchParams();
|
|
792
|
+
|
|
793
|
+
if (respostas.perfil_profissional) {
|
|
794
|
+
params.append('perfil', respostas.perfil_profissional.valor);
|
|
795
|
+
params.append('perfil_texto', respostas.perfil_profissional.texto);
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
if (respostas.tipo_recurso) {
|
|
799
|
+
params.append('recurso', respostas.tipo_recurso.valor);
|
|
800
|
+
params.append('recurso_texto', respostas.tipo_recurso.texto);
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
if (respostas.formato_acao) {
|
|
804
|
+
params.append('formato', respostas.formato_acao.valor);
|
|
805
|
+
params.append('formato_texto', respostas.formato_acao.texto);
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
params.append('resultado', '1');
|
|
809
|
+
|
|
810
|
+
return '{{ page.url }}?' + params.toString();
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
// Função para atualizar progresso
|
|
814
|
+
function atualizarProgresso(atual, total) {
|
|
815
|
+
const percentual = (atual / total) * 100;
|
|
816
|
+
document.getElementById('progressFill').style.width = percentual + '%';
|
|
817
|
+
document.getElementById('progressText').textContent = `Pergunta ${atual} de ${total}`;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
// Função para mostrar resumo
|
|
821
|
+
function atualizarResumo() {
|
|
822
|
+
const resumo = document.getElementById('escolhasResumo');
|
|
823
|
+
const lista = document.getElementById('listaEscolhas');
|
|
824
|
+
const btnRecomecar = document.getElementById('btnRecomecar');
|
|
825
|
+
|
|
826
|
+
lista.innerHTML = '';
|
|
827
|
+
|
|
828
|
+
if (Object.keys(respostas).length > 0) {
|
|
829
|
+
for (let [chave, resposta] of Object.entries(respostas)) {
|
|
830
|
+
const li = document.createElement('li');
|
|
831
|
+
const chaveFormatada = chave.replace(/_/g, ' ').replace(/\b\w/g, l => l.toUpperCase());
|
|
832
|
+
li.innerHTML = `<strong>${chaveFormatada}:</strong> ${resposta.texto}`;
|
|
833
|
+
lista.appendChild(li);
|
|
834
|
+
}
|
|
835
|
+
resumo.style.display = 'block';
|
|
836
|
+
btnRecomecar.style.display = 'inline-block';
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
// ==========================================
|
|
841
|
+
// RESPONDER PERGUNTA 1: PERFIL PROFISSIONAL
|
|
842
|
+
// ==========================================
|
|
843
|
+
function responderPergunta1(valor, texto, irParaResultado = false) {
|
|
844
|
+
// Salvar resposta
|
|
845
|
+
respostas['perfil_profissional'] = {
|
|
846
|
+
valor: valor,
|
|
847
|
+
texto: texto
|
|
848
|
+
};
|
|
849
|
+
|
|
850
|
+
// Animar seleção
|
|
851
|
+
event.target.closest('.opcao-card').classList.add('selecionado');
|
|
852
|
+
|
|
853
|
+
setTimeout(() => {
|
|
854
|
+
// Ocultar pergunta 1
|
|
855
|
+
document.getElementById('pergunta1').style.display = 'none';
|
|
856
|
+
|
|
857
|
+
atualizarResumo();
|
|
858
|
+
|
|
859
|
+
if (irParaResultado) {
|
|
860
|
+
// Implementador Web ou Editor de Vídeo - vai direto
|
|
861
|
+
window.location.href = construirUrlResultado();
|
|
862
|
+
} else if (valor === 'docente') {
|
|
863
|
+
// Docente vai para pergunta 2b (Formato de Ação)
|
|
864
|
+
atualizarProgresso(2, 2);
|
|
865
|
+
document.getElementById('pergunta2b').style.display = 'block';
|
|
866
|
+
} else {
|
|
867
|
+
// Designer Instrucional, Designer Gráfico, Curador, Conteudista
|
|
868
|
+
// vão para pergunta 2a (Tipo de Recurso)
|
|
869
|
+
atualizarProgresso(2, 2);
|
|
870
|
+
document.getElementById('pergunta2a').style.display = 'block';
|
|
871
|
+
}
|
|
872
|
+
}, 300);
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
// ==========================================
|
|
876
|
+
// RESPONDER PERGUNTA 2a: TIPO DE RECURSO
|
|
877
|
+
// ==========================================
|
|
878
|
+
function responderPergunta2a(valor, texto) {
|
|
879
|
+
// Salvar resposta
|
|
880
|
+
respostas['tipo_recurso'] = {
|
|
881
|
+
valor: valor,
|
|
882
|
+
texto: texto
|
|
883
|
+
};
|
|
884
|
+
|
|
885
|
+
// Animar seleção
|
|
886
|
+
event.target.closest('.opcao-card').classList.add('selecionado');
|
|
887
|
+
|
|
888
|
+
setTimeout(() => {
|
|
889
|
+
atualizarResumo();
|
|
890
|
+
|
|
891
|
+
// Ir para resultado
|
|
892
|
+
window.location.href = construirUrlResultado();
|
|
893
|
+
}, 300);
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
// ==========================================
|
|
897
|
+
// RESPONDER PERGUNTA 2b: FORMATO DE AÇÃO
|
|
898
|
+
// ==========================================
|
|
899
|
+
function responderPergunta2b(valor, texto) {
|
|
900
|
+
// Salvar resposta
|
|
901
|
+
respostas['formato_acao'] = {
|
|
902
|
+
valor: valor,
|
|
903
|
+
texto: texto
|
|
904
|
+
};
|
|
905
|
+
|
|
906
|
+
// Animar seleção
|
|
907
|
+
event.target.closest('.opcao-card').classList.add('selecionado');
|
|
908
|
+
|
|
909
|
+
setTimeout(() => {
|
|
910
|
+
atualizarResumo();
|
|
911
|
+
|
|
912
|
+
// Ir para resultado
|
|
913
|
+
window.location.href = construirUrlResultado();
|
|
914
|
+
}, 300);
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
// Inicialização
|
|
918
|
+
document.addEventListener('DOMContentLoaded', function() {
|
|
919
|
+
atualizarProgresso(1, 2);
|
|
920
|
+
});
|
|
921
|
+
</script>
|
|
922
|
+
{% endblock %}
|