wagtail-enap-designsystem 1.2.1.144__py3-none-any.whl → 1.2.1.145__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 -1
- enap_designsystem/blocks/html_blocks.py +66 -77
- enap_designsystem/blocks/semana_blocks.py +1 -1
- enap_designsystem/migrations/0415_showcasecomponentesdireto_debug_mode_and_more.py +77346 -0
- enap_designsystem/migrations/0416_alter_showcasecomponentesdireto_debug_mode_and_more.py +33 -0
- enap_designsystem/migrations/0417_alter_showcasecomponentesdireto_options_and_more.py +53 -0
- enap_designsystem/models.py +729 -146
- enap_designsystem/static/enap_designsystem/blocks/accordions.css +1 -0
- enap_designsystem/static/enap_designsystem/blocks/semana.css +6 -5
- enap_designsystem/templates/enap_designsystem/blocks/apresentacao_block.html +8 -16
- enap_designsystem/templates/enap_designsystem/blocks/apresentacao_simple_block.html +11 -12
- enap_designsystem/templates/enap_designsystem/blocks/cards_titles.html +21 -28
- enap_designsystem/templates/enap_designsystem/blocks/logos_simple_block.html +1 -22
- enap_designsystem/templates/enap_designsystem/blocks/video_hero_banner.html +3 -8
- enap_designsystem/templates/enap_designsystem/pages/showcase_components.html +867 -464
- enap_designsystem/templates/enap_designsystem/semana_inovacao/blocks_menu_navigation.html +2 -2
- {wagtail_enap_designsystem-1.2.1.144.dist-info → wagtail_enap_designsystem-1.2.1.145.dist-info}/METADATA +1 -1
- {wagtail_enap_designsystem-1.2.1.144.dist-info → wagtail_enap_designsystem-1.2.1.145.dist-info}/RECORD +21 -18
- {wagtail_enap_designsystem-1.2.1.144.dist-info → wagtail_enap_designsystem-1.2.1.145.dist-info}/WHEEL +0 -0
- {wagtail_enap_designsystem-1.2.1.144.dist-info → wagtail_enap_designsystem-1.2.1.145.dist-info}/licenses/LICENSE +0 -0
- {wagtail_enap_designsystem-1.2.1.144.dist-info → wagtail_enap_designsystem-1.2.1.145.dist-info}/top_level.txt +0 -0
|
@@ -345,8 +345,8 @@
|
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
.apresentacao-titulo {
|
|
348
|
-
font-size:
|
|
349
|
-
font-weight:
|
|
348
|
+
font-size: 48px;
|
|
349
|
+
font-weight: 500;
|
|
350
350
|
margin-bottom: 40px;
|
|
351
351
|
line-height: 1.2;
|
|
352
352
|
}
|
|
@@ -1223,7 +1223,7 @@
|
|
|
1223
1223
|
|
|
1224
1224
|
.container-fluid_semana {
|
|
1225
1225
|
display: flex;
|
|
1226
|
-
justify-content:
|
|
1226
|
+
justify-content: space-between;
|
|
1227
1227
|
align-items: center;
|
|
1228
1228
|
max-width: 1200px;
|
|
1229
1229
|
margin: 0 auto;
|
|
@@ -1246,7 +1246,7 @@
|
|
|
1246
1246
|
list-style: none;
|
|
1247
1247
|
margin: 0;
|
|
1248
1248
|
padding: 0;
|
|
1249
|
-
gap:
|
|
1249
|
+
gap: 0px;
|
|
1250
1250
|
text-decoration: none;
|
|
1251
1251
|
flex-direction: row;
|
|
1252
1252
|
}
|
|
@@ -1258,10 +1258,11 @@
|
|
|
1258
1258
|
.nav-linktwo {
|
|
1259
1259
|
color: #ffffff;
|
|
1260
1260
|
text-decoration: none;
|
|
1261
|
-
font-weight:
|
|
1261
|
+
font-weight: 400;
|
|
1262
1262
|
padding: 0.5rem 1rem;
|
|
1263
1263
|
transition: all 0.3s ease;
|
|
1264
1264
|
position: relative;
|
|
1265
|
+
font-size: 16px
|
|
1265
1266
|
}
|
|
1266
1267
|
|
|
1267
1268
|
.nav-linktwo:hover {
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
<div class="apresentacao-wrapper mx-auto text-center">
|
|
9
9
|
|
|
10
10
|
<!-- Título -->
|
|
11
|
-
<h2 class="apresentacao-titulo
|
|
11
|
+
<h2 class="apresentacao-titulo"
|
|
12
12
|
style="color: {{ value.cor_titulo }};">
|
|
13
13
|
{{ value.titulo }}
|
|
14
14
|
</h2>
|
|
15
15
|
|
|
16
16
|
<!-- Quadrado de conteúdo -->
|
|
17
|
-
<div class="apresentacao-conteudo-box rounded-lg
|
|
17
|
+
<div class="apresentacao-conteudo-box rounded-lg text-left"
|
|
18
18
|
style="background-color: {{ value.cor_quadrado }};">
|
|
19
|
-
<div class="apresentacao-texto leading-relaxed">
|
|
19
|
+
<div style="color: {{value.cor_texto}}" class="apresentacao-texto leading-relaxed">
|
|
20
20
|
{{ value.conteudo|richtext }}
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
|
@@ -47,25 +47,17 @@
|
|
|
47
47
|
|
|
48
48
|
<style>
|
|
49
49
|
.apresentacao-botao {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
padding: 12px 16px;
|
|
50
|
+
font-size: 18px;
|
|
51
|
+
padding: 12px 36px;
|
|
53
52
|
border-radius: 32px;
|
|
54
|
-
|
|
55
|
-
gap: 20px;
|
|
53
|
+
font-weight: 500;
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
.apresentacao-titulo {
|
|
59
|
-
font-size:
|
|
57
|
+
font-size: 48px;
|
|
60
58
|
margin-bottom: 0px;
|
|
61
59
|
}
|
|
62
60
|
|
|
63
|
-
@media (min-width: 768px) {
|
|
64
|
-
.apresentacao-titulo {
|
|
65
|
-
font-size: 3rem;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
61
|
.apresentacao-container {
|
|
70
62
|
max-width: 1200px;
|
|
71
63
|
}
|
|
@@ -90,7 +82,7 @@
|
|
|
90
82
|
|
|
91
83
|
.apresentacao-botao:hover {
|
|
92
84
|
transform: translateY(-2px);
|
|
93
|
-
box-shadow: 0 6px 20px rgba(0,0,0,0.
|
|
85
|
+
box-shadow: 0 6px 20px rgba(0,0,0,0.05);
|
|
94
86
|
}
|
|
95
87
|
|
|
96
88
|
/* Forçar cores do richtext */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- templates/blocks/apresentacao_simple_block.html -->
|
|
2
2
|
{% load wagtailcore_tags %}
|
|
3
|
-
|
|
3
|
+
{% load wagtailimages_tags %}
|
|
4
4
|
<section class="secao-display py-16"
|
|
5
5
|
style="background-color: {{ value.cor_fundo }};">
|
|
6
6
|
|
|
@@ -28,8 +28,12 @@
|
|
|
28
28
|
{% if card_block.block_type == 'card_apresentacao' %}
|
|
29
29
|
<div class="secao-cartao">
|
|
30
30
|
<!-- Ícone -->
|
|
31
|
-
{% if card_block.value.
|
|
31
|
+
{% if card_block.value.logo %}
|
|
32
32
|
<div class="cartao-simbolo" style="background: {{ value.cor_texto }};">
|
|
33
|
+
{% image card_block.value.logo original %}
|
|
34
|
+
</div>
|
|
35
|
+
{% elif card_block.value.icone %}
|
|
36
|
+
<div class="cartao-simbolo" style="background: {{ card_block.value.cor_icone }};">
|
|
33
37
|
<i class="{{ card_block.value.icone }}"></i>
|
|
34
38
|
</div>
|
|
35
39
|
{% endif %}
|
|
@@ -60,20 +64,15 @@
|
|
|
60
64
|
}
|
|
61
65
|
|
|
62
66
|
.secao-cabecalho {
|
|
63
|
-
font-size:
|
|
67
|
+
font-size: 48px !important;
|
|
68
|
+
font-weight: 500;
|
|
64
69
|
margin-bottom: 2rem;
|
|
65
70
|
}
|
|
66
|
-
|
|
67
|
-
@media (min-width: 768px) {
|
|
68
|
-
.secao-cabecalho {
|
|
69
|
-
font-size: 3.5rem;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
71
|
+
|
|
73
72
|
.secao-conteudo-cartoes {
|
|
74
73
|
max-width: 1142px;
|
|
75
74
|
margin: 0 auto;
|
|
76
|
-
padding:
|
|
75
|
+
padding: 45px;
|
|
77
76
|
}
|
|
78
77
|
|
|
79
78
|
.secao-texto {
|
|
@@ -177,7 +176,7 @@
|
|
|
177
176
|
/* Estilos do Card */
|
|
178
177
|
.secao-cartao {
|
|
179
178
|
text-align: center;
|
|
180
|
-
padding:
|
|
179
|
+
padding: 0px;
|
|
181
180
|
}
|
|
182
181
|
|
|
183
182
|
.cartao-simbolo {
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
line-height: 1.2;
|
|
44
44
|
text-align: center;
|
|
45
45
|
margin-bottom: 0;
|
|
46
|
-
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
47
46
|
font-weight: 500;
|
|
48
47
|
font-size: 48px;
|
|
49
48
|
letter-spacing: 0px;
|
|
@@ -98,6 +97,7 @@
|
|
|
98
97
|
height: 100%;
|
|
99
98
|
display: flex;
|
|
100
99
|
flex-direction: column;
|
|
100
|
+
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.card-apresentacao:hover {
|
|
@@ -132,8 +132,8 @@
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.card-titulo {
|
|
135
|
-
font-size:
|
|
136
|
-
font-weight:
|
|
135
|
+
font-size: 21px;
|
|
136
|
+
font-weight: 500;
|
|
137
137
|
margin-bottom: 0.5rem;
|
|
138
138
|
line-height: 1.4;
|
|
139
139
|
text-align: left;
|
|
@@ -154,12 +154,9 @@
|
|
|
154
154
|
text-align: left;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
.card-descricao * {
|
|
158
|
-
color: inherit !important;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
157
|
.card-acao {
|
|
162
158
|
margin-top: auto;
|
|
159
|
+
padding-top: 24px;
|
|
163
160
|
}
|
|
164
161
|
|
|
165
162
|
.card-link {
|
|
@@ -172,18 +169,10 @@
|
|
|
172
169
|
transition: all 0.3s ease;
|
|
173
170
|
}
|
|
174
171
|
|
|
175
|
-
.card-link:hover {
|
|
176
|
-
transform: translateX(4px);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
172
|
.link-arrow {
|
|
180
173
|
transition: transform 0.3s ease;
|
|
181
174
|
}
|
|
182
175
|
|
|
183
|
-
.card-link:hover .link-arrow {
|
|
184
|
-
transform: translateX(4px);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
176
|
/* Responsividade */
|
|
188
177
|
@media (max-width: 768px) {
|
|
189
178
|
.titulo-secao {
|
|
@@ -243,14 +232,18 @@
|
|
|
243
232
|
}
|
|
244
233
|
</style>
|
|
245
234
|
|
|
246
|
-
<section class="secao-apresentacao-cards"
|
|
235
|
+
<section class="secao-apresentacao-cards"
|
|
236
|
+
style="
|
|
237
|
+
{% if value.imagem_fundo %}
|
|
238
|
+
{% image value.imagem_fundo original as background_img %}
|
|
239
|
+
background: url('{{ background_img.url }}');
|
|
240
|
+
background-size: cover;
|
|
241
|
+
{% else %}
|
|
242
|
+
background: {{ value.cor_fundo }};
|
|
243
|
+
{% endif %}"
|
|
244
|
+
>
|
|
247
245
|
<!-- Background com imagem se fornecida -->
|
|
248
|
-
<div class="secao-background"
|
|
249
|
-
{% if value.background_image_fundo_bg %}
|
|
250
|
-
style="background-image: url('{{ value.background_image_fundo_bg.url }}'); background-size: cover; background-position: center; background-repeat: no-repeat;"
|
|
251
|
-
{% else %}
|
|
252
|
-
style="background: {{ value.cor_fundo }};"
|
|
253
|
-
{% endif %}>
|
|
246
|
+
<div class="secao-background">
|
|
254
247
|
|
|
255
248
|
<!-- Overlay para garantir legibilidade -->
|
|
256
249
|
<div class="secao-overlay">
|
|
@@ -288,7 +281,7 @@
|
|
|
288
281
|
<div class="card-imagem">
|
|
289
282
|
{% image card.value.image width-400 as card_img %}
|
|
290
283
|
<img src="{{ card_img.url }}"
|
|
291
|
-
alt="{{ card.value.
|
|
284
|
+
alt="{{ card.value.subtitle|default:'Card' }}"
|
|
292
285
|
class="card-img">
|
|
293
286
|
</div>
|
|
294
287
|
{% endif %}
|
|
@@ -298,22 +291,22 @@
|
|
|
298
291
|
|
|
299
292
|
<!-- Subtítulo/Cargo -->
|
|
300
293
|
{% if card.value.subtitle %}
|
|
301
|
-
<p class="card-subtitulo" style="color: {{ value.cor_texto_cards }};">
|
|
294
|
+
<p class="card-subtitulo" style="color: {{ card.value.cor_texto_cards }};">
|
|
302
295
|
{{ card.value.subtitle }}
|
|
303
296
|
</p>
|
|
304
297
|
{% endif %}
|
|
305
298
|
|
|
306
299
|
<!-- Título -->
|
|
307
300
|
{% if card.value.title %}
|
|
308
|
-
<h3 class="card-titulo" style="color: {{ value.cor_titulo_cards }};">
|
|
301
|
+
<h3 class="card-titulo" style="color: {{ card.value.cor_titulo_cards }};">
|
|
309
302
|
{{ card.value.title }}
|
|
310
303
|
</h3>
|
|
311
304
|
{% endif %}
|
|
312
305
|
|
|
313
306
|
<!-- Descrição -->
|
|
314
307
|
{% if card.value.description %}
|
|
315
|
-
<div class="card-descricao"
|
|
316
|
-
{{ card.value.description
|
|
308
|
+
<div class="card-descricao">
|
|
309
|
+
{{ card.value.description }}
|
|
317
310
|
</div>
|
|
318
311
|
{% endif %}
|
|
319
312
|
|
|
@@ -321,7 +314,7 @@
|
|
|
321
314
|
{% if card.value.link_url %}
|
|
322
315
|
<div class="card-acao">
|
|
323
316
|
<a href="{{ card.value.link_url }}"
|
|
324
|
-
class="card-link" style="color: {{ value.
|
|
317
|
+
class="card-link" style="color: {{ card.value.cor_link_text }};"
|
|
325
318
|
{% if card.value.link_target %}target="{{ card.value.link_target }}"{% endif %}>
|
|
326
319
|
{{ card.value.link_text|default:'Saiba mais' }}
|
|
327
320
|
<svg class="link-arrow" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
@@ -55,12 +55,10 @@
|
|
|
55
55
|
|
|
56
56
|
.logos-conteudo {
|
|
57
57
|
padding: 60px 40px;
|
|
58
|
-
border-radius: 16px;
|
|
59
58
|
min-height: 350px;
|
|
60
59
|
display: flex;
|
|
61
60
|
align-items: center;
|
|
62
61
|
justify-content: center;
|
|
63
|
-
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
|
|
64
62
|
position: relative;
|
|
65
63
|
overflow: hidden;
|
|
66
64
|
}
|
|
@@ -145,18 +143,10 @@
|
|
|
145
143
|
display: flex;
|
|
146
144
|
align-items: center;
|
|
147
145
|
justify-content: center;
|
|
148
|
-
background: rgba(255, 255, 255, 0.02);
|
|
149
|
-
cursor: pointer;
|
|
150
146
|
position: relative;
|
|
151
147
|
overflow: hidden;
|
|
152
148
|
}
|
|
153
149
|
|
|
154
|
-
.logo-card:hover {
|
|
155
|
-
transform: translateY(-3px) scale(1.02);
|
|
156
|
-
background: rgba(255, 255, 255, 0.08);
|
|
157
|
-
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
150
|
.logo-image-container {
|
|
161
151
|
display: flex;
|
|
162
152
|
align-items: center;
|
|
@@ -172,12 +162,6 @@
|
|
|
172
162
|
height: auto;
|
|
173
163
|
object-fit: contain;
|
|
174
164
|
transition: all 0.3s ease;
|
|
175
|
-
filter: brightness(0.95) contrast(1.05);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.logo-card:hover .logo-image {
|
|
179
|
-
filter: brightness(1) contrast(1.1);
|
|
180
|
-
transform: scale(1.05);
|
|
181
165
|
}
|
|
182
166
|
|
|
183
167
|
/* Efeito shimmer sutil */
|
|
@@ -188,12 +172,7 @@
|
|
|
188
172
|
left: -100%;
|
|
189
173
|
width: 100%;
|
|
190
174
|
height: 100%;
|
|
191
|
-
|
|
192
|
-
90deg,
|
|
193
|
-
transparent,
|
|
194
|
-
rgba(255, 255, 255, 0.1),
|
|
195
|
-
transparent
|
|
196
|
-
);
|
|
175
|
+
|
|
197
176
|
transition: left 0.8s ease;
|
|
198
177
|
}
|
|
199
178
|
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
<!-- Título principal -->
|
|
34
34
|
{% if value.titulo %}
|
|
35
|
-
<h1 class="video-hero-title">{{ value.titulo }}</h1>
|
|
35
|
+
<h1 class="video-hero-title">{{ value.titulo|richtext }}</h1>
|
|
36
36
|
{% endif %}
|
|
37
37
|
|
|
38
38
|
<!-- Subtítulo -->
|
|
@@ -105,8 +105,6 @@
|
|
|
105
105
|
top: 0;
|
|
106
106
|
left: 0;
|
|
107
107
|
width: 100%;
|
|
108
|
-
height: 100%;
|
|
109
|
-
background: rgba(0, 0, 0, 0.4);
|
|
110
108
|
z-index: 1;
|
|
111
109
|
}
|
|
112
110
|
|
|
@@ -129,13 +127,10 @@
|
|
|
129
127
|
|
|
130
128
|
.video-frame {
|
|
131
129
|
width: 100%;
|
|
132
|
-
max-width:
|
|
133
|
-
border-radius:
|
|
130
|
+
max-width: 95%;
|
|
131
|
+
border-radius: 32px;
|
|
134
132
|
overflow: hidden;
|
|
135
|
-
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
|
|
136
|
-
background: rgba(255, 255, 255, 0.1);
|
|
137
133
|
backdrop-filter: blur(10px);
|
|
138
|
-
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
139
134
|
position: relative;
|
|
140
135
|
}
|
|
141
136
|
|