wagtail-enap-designsystem 1.2.1.157__py3-none-any.whl → 1.2.1.159__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/__init__.py +2 -0
- enap_designsystem/blocks/content_blocks.py +47 -1
- enap_designsystem/blocks/html_blocks.py +49 -13
- enap_designsystem/blocks/semana_blocks.py +157 -94
- enap_designsystem/migrations/0429_rename_content_mbaespecializacao_banner_and_more.py +43 -0
- enap_designsystem/migrations/0430_alter_templateespecializacao_status_inscricao.py +29 -0
- enap_designsystem/migrations/0431_alter_templateespecializacao_status_inscricao.py +29 -0
- enap_designsystem/migrations/0432_alter_areaaluno_body_alter_cursoeadpage_curso_and_more.py +72634 -0
- enap_designsystem/migrations/0433_alter_areaaluno_body_and_more.py +57331 -0
- enap_designsystem/migrations/0434_templateespecializacao_cards_one.py +599 -0
- enap_designsystem/migrations/0435_alter_templateespecializacao_team_carousel.py +220 -0
- enap_designsystem/migrations/0436_alter_areaaluno_body_alter_articlepage_body_and_more.py +80628 -0
- enap_designsystem/migrations/0437_alter_enapformacao_body_and_more.py +3728 -0
- enap_designsystem/models.py +100 -76
- enap_designsystem/static/enap_designsystem/blocks/btn.css +31 -0
- enap_designsystem/static/enap_designsystem/blocks/cards.css +13 -6
- enap_designsystem/static/enap_designsystem/blocks/carousel_images.css +2 -2
- enap_designsystem/static/enap_designsystem/blocks/feature_course.css +4 -0
- enap_designsystem/static/enap_designsystem/blocks/navbar/navbar.css +2 -2
- enap_designsystem/static/enap_designsystem/blocks/team_carousel.css +2 -1
- enap_designsystem/static/enap_designsystem/blocks/team_modern.css +2 -1
- enap_designsystem/templates/enap_designsystem/base.html +2 -11
- enap_designsystem/templates/enap_designsystem/blocks/card_block.html +40 -3
- enap_designsystem/templates/enap_designsystem/blocks/carousel_images.html +1 -1
- enap_designsystem/templates/enap_designsystem/blocks/feature_estrutura.html +6 -0
- enap_designsystem/templates/enap_designsystem/blocks/footer_block.html +1 -0
- enap_designsystem/templates/enap_designsystem/blocks/preview_courses.html +9 -3
- enap_designsystem/templates/enap_designsystem/blocks/richtext_block.html +61 -62
- enap_designsystem/templates/enap_designsystem/blocks/suap/apisuap_courses_block.html +38 -14
- enap_designsystem/templates/enap_designsystem/pages/mba_especializacao.html +7 -7
- enap_designsystem/templates/enap_designsystem/pages/template_mba.html +16 -5
- {wagtail_enap_designsystem-1.2.1.157.dist-info → wagtail_enap_designsystem-1.2.1.159.dist-info}/METADATA +1 -1
- {wagtail_enap_designsystem-1.2.1.157.dist-info → wagtail_enap_designsystem-1.2.1.159.dist-info}/RECORD +36 -27
- {wagtail_enap_designsystem-1.2.1.157.dist-info → wagtail_enap_designsystem-1.2.1.159.dist-info}/WHEEL +0 -0
- {wagtail_enap_designsystem-1.2.1.157.dist-info → wagtail_enap_designsystem-1.2.1.159.dist-info}/licenses/LICENSE +0 -0
- {wagtail_enap_designsystem-1.2.1.157.dist-info → wagtail_enap_designsystem-1.2.1.159.dist-info}/top_level.txt +0 -0
enap_designsystem/models.py
CHANGED
|
@@ -1396,29 +1396,34 @@ class MbaEspecializacao(Page):
|
|
|
1396
1396
|
related_name="+",
|
|
1397
1397
|
)
|
|
1398
1398
|
|
|
1399
|
-
|
|
1399
|
+
|
|
1400
|
+
introducao = StreamField([
|
|
1400
1401
|
('course_intro_topics', CourseIntroTopicsBlock()),
|
|
1401
1402
|
# Outros blocos podem ser adicionados aqui se necessário
|
|
1402
1403
|
], use_json_field=True, blank=True)
|
|
1403
1404
|
|
|
1404
|
-
|
|
1405
|
+
|
|
1406
|
+
beneficios = StreamField([
|
|
1405
1407
|
# Outros blocos existentes
|
|
1406
1408
|
('why_choose', WhyChooseEnaptBlock()),
|
|
1407
1409
|
], blank=True, null=True)
|
|
1408
1410
|
|
|
1409
|
-
|
|
1411
|
+
|
|
1412
|
+
depoimentos = StreamField([
|
|
1410
1413
|
# Outros blocos existentes
|
|
1411
1414
|
('testimonials_carousel', TestimonialsCarouselBlock()),
|
|
1412
1415
|
], blank=True, null=True)
|
|
1413
1416
|
|
|
1414
|
-
|
|
1417
|
+
|
|
1418
|
+
preview_dos_cursos = StreamField(
|
|
1415
1419
|
[("preview_courses", PreviewCoursesBlock())],
|
|
1416
1420
|
null=True,
|
|
1417
1421
|
blank=True,
|
|
1418
1422
|
use_json_field=True,
|
|
1419
1423
|
)
|
|
1420
1424
|
|
|
1421
|
-
|
|
1425
|
+
|
|
1426
|
+
banner = StreamField(
|
|
1422
1427
|
[
|
|
1423
1428
|
("banner", EnapBannerBlock()),
|
|
1424
1429
|
("BannerConcurso", BannerConcurso()),
|
|
@@ -1428,7 +1433,8 @@ class MbaEspecializacao(Page):
|
|
|
1428
1433
|
use_json_field=True,
|
|
1429
1434
|
)
|
|
1430
1435
|
|
|
1431
|
-
|
|
1436
|
+
|
|
1437
|
+
noticia = StreamField(
|
|
1432
1438
|
[("noticias_carousel", NewsCarouselBlock())],
|
|
1433
1439
|
null=True,
|
|
1434
1440
|
blank=True,
|
|
@@ -1442,7 +1448,6 @@ class MbaEspecializacao(Page):
|
|
|
1442
1448
|
use_json_field=True,
|
|
1443
1449
|
)
|
|
1444
1450
|
|
|
1445
|
-
|
|
1446
1451
|
footer = models.ForeignKey(
|
|
1447
1452
|
"EnapFooterSnippet",
|
|
1448
1453
|
null=True,
|
|
@@ -1472,55 +1477,54 @@ class MbaEspecializacao(Page):
|
|
|
1472
1477
|
return super().can_create_at(parent)
|
|
1473
1478
|
|
|
1474
1479
|
def save(self, *args, **kwargs):
|
|
1475
|
-
|
|
1480
|
+
# Só adiciona os blocos padrão se for uma nova página
|
|
1476
1481
|
if not self.pk:
|
|
1477
|
-
|
|
1478
|
-
if not self.
|
|
1479
|
-
self.
|
|
1482
|
+
# Adiciona introducao se estiver vazio (antes course_intro_topics)
|
|
1483
|
+
if not self.introducao:
|
|
1484
|
+
self.introducao = [
|
|
1480
1485
|
{'type': 'course_intro_topics', 'value': {}}
|
|
1481
1486
|
]
|
|
1482
1487
|
|
|
1483
|
-
# Adiciona
|
|
1484
|
-
if not self.
|
|
1485
|
-
self.
|
|
1488
|
+
# Adiciona beneficios se estiver vazio (antes why_choose)
|
|
1489
|
+
if not self.beneficios:
|
|
1490
|
+
self.beneficios = [
|
|
1486
1491
|
{'type': 'why_choose', 'value': {}}
|
|
1487
1492
|
]
|
|
1488
1493
|
|
|
1489
|
-
# Adiciona
|
|
1490
|
-
if not self.
|
|
1491
|
-
self.
|
|
1494
|
+
# Adiciona depoimentos se estiver vazio (antes testimonials_carousel)
|
|
1495
|
+
if not self.depoimentos:
|
|
1496
|
+
self.depoimentos = [
|
|
1492
1497
|
{'type': 'testimonials_carousel', 'value': {}}
|
|
1493
1498
|
]
|
|
1494
1499
|
|
|
1495
|
-
# Adiciona
|
|
1496
|
-
if not self.
|
|
1497
|
-
self.
|
|
1500
|
+
# Adiciona preview_dos_cursos se estiver vazio (antes preview_courses)
|
|
1501
|
+
if not self.preview_dos_cursos:
|
|
1502
|
+
self.preview_dos_cursos = [
|
|
1498
1503
|
{'type': 'preview_courses', 'value': {}}
|
|
1499
1504
|
]
|
|
1500
1505
|
|
|
1501
|
-
# Adiciona banner no content se estiver vazio
|
|
1502
|
-
if not self.
|
|
1503
|
-
self.
|
|
1506
|
+
# Adiciona banner no content se estiver vazio (antes content)
|
|
1507
|
+
if not self.banner:
|
|
1508
|
+
self.banner = [
|
|
1504
1509
|
{'type': 'banner', 'value': {}}
|
|
1505
1510
|
]
|
|
1506
1511
|
|
|
1507
|
-
# Adiciona
|
|
1508
|
-
if not self.
|
|
1509
|
-
self.
|
|
1512
|
+
# Adiciona noticia se estiver vazio (antes teste_noticia)
|
|
1513
|
+
if not self.noticia:
|
|
1514
|
+
self.noticia = [
|
|
1510
1515
|
{'type': 'noticias_carousel', 'value': {}}
|
|
1511
1516
|
]
|
|
1512
|
-
|
|
1517
|
+
|
|
1513
1518
|
super().save(*args, **kwargs)
|
|
1514
1519
|
|
|
1515
|
-
|
|
1516
1520
|
content_panels = Page.content_panels + [
|
|
1517
1521
|
FieldPanel('navbar'),
|
|
1518
|
-
FieldPanel('
|
|
1519
|
-
FieldPanel('
|
|
1520
|
-
FieldPanel('
|
|
1521
|
-
FieldPanel('
|
|
1522
|
-
FieldPanel('
|
|
1523
|
-
FieldPanel('
|
|
1522
|
+
FieldPanel('banner'),
|
|
1523
|
+
FieldPanel('introducao'),
|
|
1524
|
+
FieldPanel('beneficios'),
|
|
1525
|
+
FieldPanel('preview_dos_cursos'),
|
|
1526
|
+
FieldPanel('depoimentos'),
|
|
1527
|
+
FieldPanel('noticia'),
|
|
1524
1528
|
FieldPanel('cards'),
|
|
1525
1529
|
FieldPanel("footer"),
|
|
1526
1530
|
]
|
|
@@ -1640,7 +1644,7 @@ class TemplateEspecializacao(Page):
|
|
|
1640
1644
|
('abertas', 'Inscrições Abertas'),
|
|
1641
1645
|
('encerradas', 'Inscrições Encerradas'),
|
|
1642
1646
|
('em_andamento', 'Curso em Andamento'),
|
|
1643
|
-
('
|
|
1647
|
+
('em_breve', 'Inscrições em breve'),
|
|
1644
1648
|
]
|
|
1645
1649
|
|
|
1646
1650
|
status_inscricao = models.CharField(
|
|
@@ -1660,16 +1664,22 @@ class TemplateEspecializacao(Page):
|
|
|
1660
1664
|
)
|
|
1661
1665
|
|
|
1662
1666
|
feature_course = StreamField([
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
'
|
|
1671
|
-
|
|
1672
|
-
|
|
1667
|
+
('feature_course', CourseFeatureBlock()),
|
|
1668
|
+
('card_cards', blocks.StreamBlock(CARD_CARDS_STREAMBLOCKS, required=False)),
|
|
1669
|
+
],
|
|
1670
|
+
use_json_field=True,
|
|
1671
|
+
blank=True,
|
|
1672
|
+
null=True,
|
|
1673
|
+
default=[
|
|
1674
|
+
('feature_course', {
|
|
1675
|
+
'title_1': 'Características do Curso',
|
|
1676
|
+
'description_1': 'Conheça os principais diferenciais e características que tornam nosso programa único no mercado.',
|
|
1677
|
+
'title_2': 'Metodologia Inovadora',
|
|
1678
|
+
'description_2': 'Utilizamos as mais modernas práticas pedagógicas para garantir o melhor aprendizado.',
|
|
1679
|
+
'image': None
|
|
1680
|
+
})
|
|
1681
|
+
]
|
|
1682
|
+
)
|
|
1673
1683
|
|
|
1674
1684
|
content = StreamField(
|
|
1675
1685
|
[
|
|
@@ -1687,6 +1697,13 @@ class TemplateEspecializacao(Page):
|
|
|
1687
1697
|
]
|
|
1688
1698
|
)
|
|
1689
1699
|
|
|
1700
|
+
cards_one = StreamField(
|
|
1701
|
+
CARD_CARDS_STREAMBLOCKS,
|
|
1702
|
+
null=True,
|
|
1703
|
+
blank=True,
|
|
1704
|
+
use_json_field=True,
|
|
1705
|
+
)
|
|
1706
|
+
|
|
1690
1707
|
feature_estrutura = StreamField([
|
|
1691
1708
|
('feature_estrutura', CourseModulesBlock()),
|
|
1692
1709
|
], use_json_field=True, blank=True, null=True, default=[
|
|
@@ -1743,36 +1760,42 @@ class TemplateEspecializacao(Page):
|
|
|
1743
1760
|
])
|
|
1744
1761
|
|
|
1745
1762
|
team_carousel = StreamField([
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1763
|
+
('team_carousel', TeamCarouselBlock()),
|
|
1764
|
+
('team_modern', TeamModern()),
|
|
1765
|
+
],
|
|
1766
|
+
use_json_field=True,
|
|
1767
|
+
blank=True,
|
|
1768
|
+
null=True,
|
|
1769
|
+
default=[
|
|
1770
|
+
('team_carousel', {
|
|
1771
|
+
'title': 'Nossa Equipe',
|
|
1772
|
+
'description': 'Conheça os profissionais especializados que compõem nosso corpo docente',
|
|
1773
|
+
'view_all_text': 'Ver todos os professores',
|
|
1774
|
+
'members': [
|
|
1775
|
+
{
|
|
1776
|
+
'name': 'Prof. Dr. Nome Sobrenome',
|
|
1777
|
+
'role': '<p>Coordenador Acadêmico</p>',
|
|
1778
|
+
'image': None
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
'name': 'Prof. Mestre Nome Sobrenome',
|
|
1782
|
+
'role': '<p>Docente Especialista</p>',
|
|
1783
|
+
'image': None
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
'name': 'Prof. Dr. Nome Sobrenome',
|
|
1787
|
+
'role': '<p>Professor Convidado</p>',
|
|
1788
|
+
'image': None
|
|
1789
|
+
},
|
|
1790
|
+
{
|
|
1791
|
+
'name': 'Prof. Mestre Nome Sobrenome',
|
|
1792
|
+
'role': '<p>Consultor Especializado</p>',
|
|
1793
|
+
'image': None
|
|
1794
|
+
}
|
|
1795
|
+
]
|
|
1796
|
+
})
|
|
1797
|
+
]
|
|
1798
|
+
)
|
|
1776
1799
|
|
|
1777
1800
|
cards = StreamField(
|
|
1778
1801
|
CARD_CARDS_STREAMBLOCKS,
|
|
@@ -1794,9 +1817,10 @@ class TemplateEspecializacao(Page):
|
|
|
1794
1817
|
FieldPanel('status_inscricao'),
|
|
1795
1818
|
FieldPanel('content'),
|
|
1796
1819
|
FieldPanel('feature_course'),
|
|
1820
|
+
FieldPanel('cards_one'),
|
|
1797
1821
|
FieldPanel('feature_estrutura'),
|
|
1798
|
-
FieldPanel('feature_processo_seletivo'),
|
|
1799
1822
|
FieldPanel('team_carousel'),
|
|
1823
|
+
FieldPanel('feature_processo_seletivo'),
|
|
1800
1824
|
FieldPanel('cards'),
|
|
1801
1825
|
FieldPanel("footer"),
|
|
1802
1826
|
]
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
a{
|
|
2
2
|
text-decoration: none;
|
|
3
|
+
color: inherit;
|
|
3
4
|
}
|
|
4
5
|
|
|
5
6
|
.btn{
|
|
@@ -13,6 +14,36 @@ a{
|
|
|
13
14
|
text-decoration: none;
|
|
14
15
|
}
|
|
15
16
|
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
.content-richtext a {
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
padding: 8px 14px;
|
|
23
|
+
background-color: #007D7A;
|
|
24
|
+
border: none;
|
|
25
|
+
color: white;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
width: auto;
|
|
28
|
+
text-decoration: none;
|
|
29
|
+
border-radius: 32px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.content-richtext a::after {
|
|
33
|
+
content: "\f138";
|
|
34
|
+
font-family: "Font Awesome 6 Free";
|
|
35
|
+
font-weight: 900;
|
|
36
|
+
font-size: 0.9em;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.content-richtext a:hover {
|
|
40
|
+
background-color: #006562;
|
|
41
|
+
color: white;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
16
47
|
.small{
|
|
17
48
|
height: 32px;
|
|
18
49
|
border-radius: 32px;
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
p {
|
|
52
52
|
font-weight: 400;
|
|
53
53
|
line-height: 150%;
|
|
54
|
-
font-size:
|
|
54
|
+
font-size: 20px;
|
|
55
55
|
word-wrap: break-word;
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -149,9 +149,16 @@
|
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
.card-primary p{
|
|
152
|
-
|
|
153
|
-
color: #434A54;
|
|
152
|
+
color: #434A54 !important;
|
|
154
153
|
}
|
|
154
|
+
|
|
155
|
+
.card-primary .card-icone{
|
|
156
|
+
color: #024248 !important;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.card-primary h2{
|
|
160
|
+
color: #434A54 !important;
|
|
161
|
+
}
|
|
155
162
|
|
|
156
163
|
|
|
157
164
|
.card-secondary{
|
|
@@ -463,7 +470,7 @@
|
|
|
463
470
|
.bg-enap-40 h4,
|
|
464
471
|
.bg-enap-40 h5,
|
|
465
472
|
.bg-enap-40 h6 {
|
|
466
|
-
color: white
|
|
473
|
+
color: white;
|
|
467
474
|
}
|
|
468
475
|
|
|
469
476
|
/* Versão alternativa mais compacta usando seletor de atributo */
|
|
@@ -516,7 +523,7 @@
|
|
|
516
523
|
.section-card[class*="bg-enap-40"] h4,
|
|
517
524
|
.section-card[class*="bg-enap-40"] h5,
|
|
518
525
|
.section-card[class*="bg-enap-40"] h6 {
|
|
519
|
-
color: white
|
|
526
|
+
color: white;
|
|
520
527
|
}
|
|
521
528
|
|
|
522
529
|
/* Aplica também para outros elementos de texto comuns */
|
|
@@ -548,7 +555,7 @@
|
|
|
548
555
|
.bg-enap-40 div,
|
|
549
556
|
.bg-enap-40 li,
|
|
550
557
|
.bg-enap-40 a {
|
|
551
|
-
color: white
|
|
558
|
+
color: white;
|
|
552
559
|
}
|
|
553
560
|
|
|
554
561
|
/* Para links, mantém a funcionalidade de hover */
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.header-teammodern p {
|
|
39
|
-
font-size:
|
|
39
|
+
font-size: 18px;
|
|
40
40
|
color: #333840;
|
|
41
41
|
max-width: 800px;
|
|
42
42
|
}
|
|
@@ -133,6 +133,7 @@
|
|
|
133
133
|
|
|
134
134
|
.member-role p{
|
|
135
135
|
margin-bottom: 0;
|
|
136
|
+
font-size: 14px;
|
|
136
137
|
}
|
|
137
138
|
|
|
138
139
|
/* Estilos responsivos para mobile */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
<html lang="pt-BR">
|
|
7
7
|
<head>
|
|
8
|
-
|
|
8
|
+
{# Meta descrição tradicional ANTES das tags Open Graph #}
|
|
9
9
|
{% if page.legenda_home %}
|
|
10
10
|
<meta name="description" content="{{ page.legenda_home|striptags|truncatewords:25 }}">
|
|
11
11
|
{% elif page.subtitulo %}
|
|
@@ -302,18 +302,8 @@
|
|
|
302
302
|
|
|
303
303
|
// Estilização
|
|
304
304
|
link.style.textDecoration = 'none';
|
|
305
|
-
link.style.color = '#007D7A';
|
|
306
305
|
|
|
307
|
-
// Adicionar efeito hover
|
|
308
|
-
link.addEventListener('mouseenter', function() {
|
|
309
|
-
this.style.textDecoration = 'underline';
|
|
310
|
-
this.style.color = '#005a58';
|
|
311
|
-
});
|
|
312
306
|
|
|
313
|
-
link.addEventListener('mouseleave', function() {
|
|
314
|
-
this.style.textDecoration = 'none';
|
|
315
|
-
this.style.color = '#007D7A';
|
|
316
|
-
});
|
|
317
307
|
});
|
|
318
308
|
|
|
319
309
|
// Estilizar parágrafos
|
|
@@ -340,6 +330,7 @@
|
|
|
340
330
|
list.style.marginBottom = '1em';
|
|
341
331
|
});
|
|
342
332
|
});
|
|
333
|
+
|
|
343
334
|
</script>
|
|
344
335
|
{% endblock %}
|
|
345
336
|
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
{% if value.image %}
|
|
10
10
|
{% image value.image original format-webp as card_bg_img %}
|
|
11
11
|
<div class="card-bgimage" style="background-image: url('{{ card_bg_img.url }}');">
|
|
12
|
+
{% elif value.icone %}
|
|
13
|
+
<i class="card-icone {{ value.icone }}"></i>
|
|
12
14
|
<!-- Link overlay para o primeiro botão -->
|
|
13
15
|
{% if value.links %}
|
|
14
16
|
{% for link_block in value.links %}
|
|
@@ -79,6 +81,8 @@
|
|
|
79
81
|
{% if value.image %}
|
|
80
82
|
{% image value.image fill-800x450 format-webp preserve-svg as card_img %}
|
|
81
83
|
<div class="img-card" style="background-image: url('{{ card_img.url }}');"></div>
|
|
84
|
+
{% elif value.icone %}
|
|
85
|
+
<i class="card-icone {{ value.icone }}"></i>
|
|
82
86
|
{% endif %}
|
|
83
87
|
</div>
|
|
84
88
|
|
|
@@ -151,6 +155,8 @@
|
|
|
151
155
|
{% if value.image %}
|
|
152
156
|
{% image value.image fill-800x450 format-webp preserve-svg as card_img %}
|
|
153
157
|
<div class="img-card" style="background-image: url('{{ card_img.url }}');"></div>
|
|
158
|
+
{% elif value.icone %}
|
|
159
|
+
<i class="card-icone {{ value.icone }}"></i>
|
|
154
160
|
{% endif %}
|
|
155
161
|
</div>
|
|
156
162
|
</div>
|
|
@@ -158,6 +164,8 @@
|
|
|
158
164
|
{% if value.image %}
|
|
159
165
|
{% image value.image fill-800x450 format-webp preserve-svg as card_img %}
|
|
160
166
|
<div class="img-card" style="background-image: url('{{ card_img.url }}');"></div>
|
|
167
|
+
{% elif value.icone %}
|
|
168
|
+
<i class="card-icone {{ value.icone }}"></i>
|
|
161
169
|
{% endif %}
|
|
162
170
|
|
|
163
171
|
<div class="wrapper-text-button_card-terciary">
|
|
@@ -179,11 +187,11 @@
|
|
|
179
187
|
|
|
180
188
|
<div class="wrapper-text-card">
|
|
181
189
|
{% if value.title %}
|
|
182
|
-
<h2 class="h2-card
|
|
190
|
+
<h2 class="h2-card{% if value.type == 'card-secondary' %}text-center{% endif %}{% if value.type == 'card-secondary' or value.type == 'card-terciary' %}white{% endif %}">{{ value.title }}</h2>
|
|
183
191
|
{% endif %}
|
|
184
192
|
|
|
185
193
|
{% if value.description %}
|
|
186
|
-
<div class="p-card
|
|
194
|
+
<div class="p-card{% if value.type == 'card-secondary' %}text-center{% endif %}{% if value.type == 'card-secondary' or value.type == 'card-terciary' %}white{% endif %}">{{ value.description|richtext }}</div>
|
|
187
195
|
{% endif %}
|
|
188
196
|
</div>
|
|
189
197
|
|
|
@@ -222,4 +230,33 @@
|
|
|
222
230
|
{% endif %}
|
|
223
231
|
</div>
|
|
224
232
|
{% endif %}
|
|
225
|
-
</div>
|
|
233
|
+
</div>
|
|
234
|
+
<style>
|
|
235
|
+
.card-icone{
|
|
236
|
+
text-align: center;
|
|
237
|
+
font-size: 72px;
|
|
238
|
+
padding: 15px 0;
|
|
239
|
+
{% if value.cor_texto_hex %}
|
|
240
|
+
color: {{value.cor_texto_hex}};
|
|
241
|
+
{% elif value.cor_texto %}
|
|
242
|
+
color: {{value.cor_texto}};
|
|
243
|
+
{% endif %}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.h2-card, ul {
|
|
247
|
+
font-size: 20px;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.h2-card{
|
|
251
|
+
font-weight: 600;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.h2-card, .p-card p{
|
|
255
|
+
{% if value.cor_texto_hex %}
|
|
256
|
+
color: {{value.cor_texto_hex}};
|
|
257
|
+
{% elif value.cor_texto %}
|
|
258
|
+
color: {{value.cor_texto}};
|
|
259
|
+
{% endif %}
|
|
260
|
+
text-align: {{ value.text_align }};
|
|
261
|
+
}
|
|
262
|
+
</style>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{% load wagtailimages_tags %}
|
|
2
|
+
{% load wagtailcore_tags %}
|
|
2
3
|
{% load static %}
|
|
3
4
|
{% block content %}
|
|
4
5
|
<section class="course-structure">
|
|
@@ -7,6 +8,11 @@
|
|
|
7
8
|
<div class="icon-title-container">
|
|
8
9
|
<h2>{{ value.title }}</h2>
|
|
9
10
|
</div>
|
|
11
|
+
{% if value.description %}
|
|
12
|
+
<div class="section-description_template">
|
|
13
|
+
{{ value.description|richtext }}
|
|
14
|
+
</div>
|
|
15
|
+
{% endif %}
|
|
10
16
|
|
|
11
17
|
<div class="modules-grid">
|
|
12
18
|
{% for module in value.modules %}
|
|
@@ -7,7 +7,13 @@
|
|
|
7
7
|
<section class="section-courses">
|
|
8
8
|
<div class="content-section">
|
|
9
9
|
<div class="section-header">
|
|
10
|
-
<h2 class="section-heading">
|
|
10
|
+
<h2 class="section-heading">
|
|
11
|
+
{% if value.title %}
|
|
12
|
+
{{ value.title }}
|
|
13
|
+
{% else %}
|
|
14
|
+
{{ value.page.title }}
|
|
15
|
+
{% endif %}
|
|
16
|
+
</h2>
|
|
11
17
|
</div>
|
|
12
18
|
|
|
13
19
|
<div class="slider-container">
|
|
@@ -38,9 +44,9 @@
|
|
|
38
44
|
<div class="status-badge status-andamento">
|
|
39
45
|
Curso em Andamento
|
|
40
46
|
</div>
|
|
41
|
-
{% elif course_specific.status_inscricao == '
|
|
47
|
+
{% elif course_specific.status_inscricao == 'em_breve' %}
|
|
42
48
|
<div class="status-badge status-finalizado">
|
|
43
|
-
|
|
49
|
+
Em breve
|
|
44
50
|
</div>
|
|
45
51
|
{% endif %}
|
|
46
52
|
{% endif %}
|