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
|
@@ -1,5 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
{% load static
|
|
1
|
+
|
|
2
|
+
{% load static %}
|
|
3
|
+
{% load wagtailcore_tags wagtailimages_tags %}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
{% block metadata %}
|
|
7
|
+
{% comment %} <meta name="viewport" content="width=device-width, initial-scale=1.0"> {% endcomment %}
|
|
8
|
+
{% endblock %}
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
{% block title %}
|
|
12
|
+
<title>{{ page.title }}</title>
|
|
13
|
+
{% endblock %}
|
|
14
|
+
|
|
15
|
+
{%block govnavbar %}
|
|
16
|
+
<div style="background-color: #071E41;">
|
|
17
|
+
<div class="menu">
|
|
18
|
+
<div class="logo">
|
|
19
|
+
<img style="width: 51px; height: 18px;" src="{% static 'enap_designsystem/icons/logo-white.png' %}" alt="Passar pro lado esquerdo" alt="Logo GovBR" height="40">
|
|
20
|
+
</div>
|
|
21
|
+
<a href="https://www.gov.br/secom/pt-br/acesso-a-informacao/comunicabr">Comunica BR</a>
|
|
22
|
+
<div class="separator"></div>
|
|
23
|
+
<a href="https://www.gov.br/acessoainformacao/pt-br">Acesso à informação</a>
|
|
24
|
+
<div class="separator"></div>
|
|
25
|
+
<a href="https://www.gov.br/pt-br/participacao-social/">Participe</a>
|
|
26
|
+
<div class="separator"></div>
|
|
27
|
+
<a href="https://www4.planalto.gov.br/legislacao/">Legislação</a>
|
|
28
|
+
<div class="separator"></div>
|
|
29
|
+
<a href="https://www.gov.br/pt-br/orgaos-do-governo">Órgãos do Governo</a>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
{% endblock %}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
{% block navbar %}
|
|
36
|
+
{% if page.navbar %}
|
|
37
|
+
{% include "enap_designsystem/blocks/navbar/navbar_block.html" with navbar=page.navbar %}
|
|
38
|
+
{% else %}
|
|
39
|
+
<p style="color: red;">DEBUG: Nenhuma Navbar foi definida.</p>
|
|
40
|
+
{% endif %}
|
|
41
|
+
{% endblock %}
|
|
3
42
|
|
|
4
43
|
{% block extra_css %}
|
|
5
44
|
<style>
|
|
@@ -124,11 +163,7 @@
|
|
|
124
163
|
|
|
125
164
|
/* Container de filtros */
|
|
126
165
|
.filtros-avancados {
|
|
127
|
-
background: white;
|
|
128
|
-
border: 2px solid var(--gray-200);
|
|
129
|
-
border-radius: var(--radius-lg);
|
|
130
166
|
overflow: hidden;
|
|
131
|
-
box-shadow: var(--shadow-md);
|
|
132
167
|
}
|
|
133
168
|
|
|
134
169
|
.filtros-avancados-header {
|
|
@@ -175,7 +210,6 @@
|
|
|
175
210
|
}
|
|
176
211
|
|
|
177
212
|
.filtros-content {
|
|
178
|
-
padding: 1.75rem 1.5rem;
|
|
179
213
|
max-height: 600px;
|
|
180
214
|
overflow-y: auto;
|
|
181
215
|
scrollbar-width: thin;
|
|
@@ -219,11 +253,12 @@
|
|
|
219
253
|
}
|
|
220
254
|
|
|
221
255
|
.filtro-dropdown {
|
|
222
|
-
border: 1px solid
|
|
223
|
-
border-radius:
|
|
256
|
+
border: 1px solid #C8D1E0;
|
|
257
|
+
border-radius: 1px solid #C8D1E0;
|
|
224
258
|
overflow: hidden;
|
|
225
259
|
transition: all 0.2s;
|
|
226
260
|
background: var(--gray-50);
|
|
261
|
+
|
|
227
262
|
}
|
|
228
263
|
|
|
229
264
|
.filtro-dropdown:hover {
|
|
@@ -231,8 +266,7 @@
|
|
|
231
266
|
}
|
|
232
267
|
|
|
233
268
|
.filtro-dropdown.active {
|
|
234
|
-
|
|
235
|
-
box-shadow: 0 0 0 3px rgba(12, 90, 90, 0.08);
|
|
269
|
+
|
|
236
270
|
}
|
|
237
271
|
|
|
238
272
|
.filtro-grupo-header {
|
|
@@ -442,32 +476,19 @@
|
|
|
442
476
|
|
|
443
477
|
.capsula-card {
|
|
444
478
|
background: white;
|
|
445
|
-
border:
|
|
446
|
-
border-radius:
|
|
479
|
+
border: 1px solid #C8D1E0;
|
|
480
|
+
border-radius: 20px;
|
|
447
481
|
padding: 2rem;
|
|
448
|
-
transition: all 0.3s ease;
|
|
449
482
|
display: flex;
|
|
450
483
|
flex-direction: column;
|
|
451
484
|
position: relative;
|
|
452
485
|
overflow: hidden;
|
|
453
486
|
}
|
|
454
487
|
|
|
455
|
-
.capsula-card::before {
|
|
456
|
-
content: '';
|
|
457
|
-
position: absolute;
|
|
458
|
-
top: 0;
|
|
459
|
-
left: 0;
|
|
460
|
-
right: 0;
|
|
461
|
-
height: 4px;
|
|
462
|
-
background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
|
|
463
|
-
transform: scaleX(0);
|
|
464
|
-
transition: transform 0.3s ease;
|
|
465
|
-
}
|
|
466
488
|
|
|
467
489
|
.capsula-card:hover {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
border-color: var(--primary);
|
|
490
|
+
color: #006969;
|
|
491
|
+
background-color: #EBEFF5;
|
|
471
492
|
}
|
|
472
493
|
|
|
473
494
|
.capsula-card:hover::before {
|
|
@@ -494,12 +515,12 @@
|
|
|
494
515
|
}
|
|
495
516
|
|
|
496
517
|
.capsula-card-titulo {
|
|
497
|
-
font-size:
|
|
518
|
+
font-size: 18px;
|
|
498
519
|
font-weight: 700;
|
|
499
|
-
color:
|
|
520
|
+
color: #434A54;
|
|
500
521
|
margin-bottom: 0.875rem;
|
|
501
522
|
line-height: 1.4;
|
|
502
|
-
|
|
523
|
+
margin: 0;
|
|
503
524
|
}
|
|
504
525
|
|
|
505
526
|
.capsula-card-titulo a {
|
|
@@ -513,8 +534,8 @@
|
|
|
513
534
|
}
|
|
514
535
|
|
|
515
536
|
.capsula-card-descricao {
|
|
516
|
-
font-size:
|
|
517
|
-
color:
|
|
537
|
+
font-size: 16px;
|
|
538
|
+
color: #434A54;
|
|
518
539
|
line-height: 1.7;
|
|
519
540
|
margin-bottom: 1.5rem;
|
|
520
541
|
flex-grow: 1;
|
|
@@ -558,20 +579,19 @@
|
|
|
558
579
|
font-weight: 700;
|
|
559
580
|
margin-bottom: 1rem;
|
|
560
581
|
width: fit-content;
|
|
561
|
-
text-transform: uppercase;
|
|
562
582
|
letter-spacing: 0.5px;
|
|
563
583
|
}
|
|
564
584
|
|
|
565
585
|
.capsula-badge-obrigatorio {
|
|
566
|
-
background:
|
|
567
|
-
color:
|
|
568
|
-
border:
|
|
586
|
+
background: #FCF0F1;
|
|
587
|
+
color: #DF3E63;
|
|
588
|
+
border: 1px solid #DF3E63;
|
|
569
589
|
}
|
|
570
590
|
|
|
571
591
|
.capsula-badge-recomendado {
|
|
572
|
-
background:
|
|
573
|
-
color:
|
|
574
|
-
border:
|
|
592
|
+
background: #E6EFFA;
|
|
593
|
+
color: #155BCB;
|
|
594
|
+
border: 1px solid #155BCB;
|
|
575
595
|
}
|
|
576
596
|
|
|
577
597
|
.badge-icon {
|
|
@@ -613,12 +633,11 @@
|
|
|
613
633
|
|
|
614
634
|
/* Botão de ação modernizado */
|
|
615
635
|
.capsula-card-btn {
|
|
616
|
-
width: 100%;
|
|
617
636
|
padding: 0.875rem 1.5rem;
|
|
618
|
-
background:
|
|
637
|
+
background: #007D7A;
|
|
619
638
|
color: white;
|
|
620
639
|
border: none;
|
|
621
|
-
border-radius:
|
|
640
|
+
border-radius: 32px;
|
|
622
641
|
font-weight: 700;
|
|
623
642
|
font-size: 0.9375rem;
|
|
624
643
|
cursor: pointer;
|
|
@@ -643,17 +662,15 @@
|
|
|
643
662
|
}
|
|
644
663
|
|
|
645
664
|
.capsula-card-btn:hover {
|
|
646
|
-
|
|
665
|
+
background: #006969;
|
|
666
|
+
color: white;
|
|
647
667
|
box-shadow: 0 6px 16px rgba(12, 90, 90, 0.3);
|
|
648
668
|
}
|
|
649
669
|
|
|
650
670
|
.capsula-card-btn:hover::before {
|
|
651
671
|
left: 100%;
|
|
652
672
|
}
|
|
653
|
-
|
|
654
|
-
.capsula-card-btn:active {
|
|
655
|
-
transform: translateY(0);
|
|
656
|
-
}
|
|
673
|
+
|
|
657
674
|
|
|
658
675
|
.capsula-card-btn:focus {
|
|
659
676
|
outline: none;
|
|
@@ -725,21 +742,7 @@
|
|
|
725
742
|
|
|
726
743
|
{# Filtros avançados #}
|
|
727
744
|
<div class="filtros-avancados">
|
|
728
|
-
|
|
729
|
-
aria-expanded="true"
|
|
730
|
-
aria-controls="filtros-content"
|
|
731
|
-
onclick="toggleFiltros()">
|
|
732
|
-
<div class="filtros-avancados-titulo">
|
|
733
|
-
<svg class="filtros-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
734
|
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"></path>
|
|
735
|
-
</svg>
|
|
736
|
-
Filtros Avançados
|
|
737
|
-
</div>
|
|
738
|
-
<svg class="toggle-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
739
|
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
|
|
740
|
-
</svg>
|
|
741
|
-
</button>
|
|
742
|
-
|
|
745
|
+
|
|
743
746
|
<div id="filtros-content" class="filtros-content">
|
|
744
747
|
<form method="get" id="filtros-form">
|
|
745
748
|
|
|
@@ -936,77 +939,83 @@
|
|
|
936
939
|
|
|
937
940
|
</div>
|
|
938
941
|
</div>
|
|
942
|
+
{% endblock %}
|
|
943
|
+
|
|
944
|
+
{% block footer %}
|
|
945
|
+
{% include "enap_designsystem/includes/footer.html" %}
|
|
946
|
+
{% endblock %}
|
|
939
947
|
|
|
948
|
+
{% block scriptinline %}
|
|
940
949
|
<script>
|
|
941
|
-
// Toggle do painel principal de filtros
|
|
942
|
-
function toggleFiltros() {
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
}
|
|
950
|
+
// Toggle do painel principal de filtros
|
|
951
|
+
function toggleFiltros() {
|
|
952
|
+
const header = document.querySelector('.filtros-avancados-header');
|
|
953
|
+
const content = document.getElementById('filtros-content');
|
|
954
|
+
const expanded = header.getAttribute('aria-expanded') === 'true';
|
|
955
|
+
|
|
956
|
+
header.setAttribute('aria-expanded', !expanded);
|
|
957
|
+
content.hidden = expanded;
|
|
958
|
+
}
|
|
950
959
|
|
|
951
|
-
// Toggle dos dropdowns individuais
|
|
952
|
-
function toggleDropdown(tipo) {
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
}
|
|
960
|
+
// Toggle dos dropdowns individuais
|
|
961
|
+
function toggleDropdown(tipo) {
|
|
962
|
+
const header = document.querySelector(`#dropdown-${tipo} .filtro-grupo-header`);
|
|
963
|
+
const opcoes = document.getElementById(`opcoes-${tipo}`);
|
|
964
|
+
const dropdown = document.getElementById(`dropdown-${tipo}`);
|
|
965
|
+
const expanded = header.getAttribute('aria-expanded') === 'true';
|
|
966
|
+
|
|
967
|
+
// Fecha outros dropdowns
|
|
968
|
+
document.querySelectorAll('.filtro-dropdown').forEach(dd => {
|
|
969
|
+
if (dd.id !== `dropdown-${tipo}`) {
|
|
970
|
+
dd.classList.remove('active');
|
|
971
|
+
const h = dd.querySelector('.filtro-grupo-header');
|
|
972
|
+
const o = dd.querySelector('.filtro-opcoes');
|
|
973
|
+
h.setAttribute('aria-expanded', 'false');
|
|
974
|
+
o.classList.remove('open');
|
|
975
|
+
}
|
|
976
|
+
});
|
|
977
|
+
|
|
978
|
+
// Toggle do dropdown atual
|
|
979
|
+
header.setAttribute('aria-expanded', !expanded);
|
|
980
|
+
opcoes.classList.toggle('open');
|
|
981
|
+
dropdown.classList.toggle('active');
|
|
982
|
+
}
|
|
974
983
|
|
|
975
|
-
// Atualiza o contador de filtros selecionados
|
|
976
|
-
function updateCount(tipo) {
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
}
|
|
984
|
+
// Atualiza o contador de filtros selecionados
|
|
985
|
+
function updateCount(tipo) {
|
|
986
|
+
const checkboxes = document.querySelectorAll(`#opcoes-${tipo} input[type="checkbox"]:checked`);
|
|
987
|
+
const badge = document.getElementById(`count-${tipo}`);
|
|
988
|
+
const count = checkboxes.length;
|
|
989
|
+
|
|
990
|
+
badge.textContent = count;
|
|
991
|
+
badge.style.display = count > 0 ? 'inline-flex' : 'none';
|
|
992
|
+
}
|
|
984
993
|
|
|
985
|
-
// Inicializa os contadores ao carregar a página
|
|
986
|
-
document.addEventListener('DOMContentLoaded', function() {
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
994
|
+
// Inicializa os contadores ao carregar a página
|
|
995
|
+
document.addEventListener('DOMContentLoaded', function() {
|
|
996
|
+
updateCount('deficiencia');
|
|
997
|
+
updateCount('formato');
|
|
998
|
+
updateCount('recurso');
|
|
999
|
+
|
|
1000
|
+
// Esconde badges com contador 0
|
|
1001
|
+
document.querySelectorAll('.count-badge').forEach(badge => {
|
|
1002
|
+
if (badge.textContent === '0') {
|
|
1003
|
+
badge.style.display = 'none';
|
|
1004
|
+
}
|
|
1005
|
+
});
|
|
996
1006
|
});
|
|
997
|
-
});
|
|
998
1007
|
|
|
999
|
-
// Fecha dropdowns ao clicar fora
|
|
1000
|
-
document.addEventListener('click', function(event) {
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
});
|
|
1008
|
+
// Fecha dropdowns ao clicar fora
|
|
1009
|
+
document.addEventListener('click', function(event) {
|
|
1010
|
+
if (!event.target.closest('.filtro-dropdown')) {
|
|
1011
|
+
document.querySelectorAll('.filtro-dropdown').forEach(dropdown => {
|
|
1012
|
+
dropdown.classList.remove('active');
|
|
1013
|
+
const header = dropdown.querySelector('.filtro-grupo-header');
|
|
1014
|
+
const opcoes = dropdown.querySelector('.filtro-opcoes');
|
|
1015
|
+
header.setAttribute('aria-expanded', 'false');
|
|
1016
|
+
opcoes.classList.remove('open');
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
1019
|
+
});
|
|
1011
1020
|
</script>
|
|
1012
1021
|
{% endblock %}
|