wagtail-enap-designsystem 1.2.1.145__py3-none-any.whl → 1.2.1.147__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.

Files changed (32) hide show
  1. enap_designsystem/blocks/__init__.py +2 -0
  2. enap_designsystem/blocks/html_blocks.py +88 -0
  3. enap_designsystem/models.py +81 -13
  4. enap_designsystem/static/enap_designsystem/blocks/apresentacao_block.css +174 -0
  5. enap_designsystem/static/enap_designsystem/blocks/cards_section.css +112 -0
  6. enap_designsystem/static/enap_designsystem/blocks/cards_titles.css +229 -0
  7. enap_designsystem/static/enap_designsystem/blocks/carousel_images.css +323 -0
  8. enap_designsystem/static/enap_designsystem/blocks/carousel_responsive.css +522 -0
  9. enap_designsystem/static/enap_designsystem/blocks/carousel_responsivo_snippet.css +294 -0
  10. enap_designsystem/static/enap_designsystem/blocks/clientes_block.css +146 -0
  11. enap_designsystem/templates/enap_designsystem/base.html +8 -1
  12. enap_designsystem/templates/enap_designsystem/blocks/apresentacao_block.html +10 -8
  13. enap_designsystem/templates/enap_designsystem/blocks/apresentacao_simple_block.html +4 -3
  14. enap_designsystem/templates/enap_designsystem/blocks/banner.html +14 -1
  15. enap_designsystem/templates/enap_designsystem/blocks/banner_logo.html +15 -1
  16. enap_designsystem/templates/enap_designsystem/blocks/card_block.html +2 -2
  17. enap_designsystem/templates/enap_designsystem/blocks/cards_section.html +2 -109
  18. enap_designsystem/templates/enap_designsystem/blocks/cards_titles.html +11 -3
  19. enap_designsystem/templates/enap_designsystem/blocks/carousel.html +1 -187
  20. enap_designsystem/templates/enap_designsystem/blocks/carousel_images.html +17 -314
  21. enap_designsystem/templates/enap_designsystem/blocks/carousel_responsive.html +0 -328
  22. enap_designsystem/templates/enap_designsystem/blocks/carousel_responsivo_snippet.html +3 -197
  23. enap_designsystem/templates/enap_designsystem/blocks/clientes_block.html +9 -152
  24. enap_designsystem/templates/enap_designsystem/blocks/footer_block.html +122 -0
  25. enap_designsystem/templates/enap_designsystem/blocks/section_block.html +1 -1
  26. enap_designsystem/templates/enap_designsystem/blocks/video_hero_banner.html +1 -2
  27. enap_designsystem/templates/enap_designsystem/pages/showcase_components.html +501 -180
  28. {wagtail_enap_designsystem-1.2.1.145.dist-info → wagtail_enap_designsystem-1.2.1.147.dist-info}/METADATA +1 -1
  29. {wagtail_enap_designsystem-1.2.1.145.dist-info → wagtail_enap_designsystem-1.2.1.147.dist-info}/RECORD +32 -24
  30. {wagtail_enap_designsystem-1.2.1.145.dist-info → wagtail_enap_designsystem-1.2.1.147.dist-info}/WHEEL +0 -0
  31. {wagtail_enap_designsystem-1.2.1.145.dist-info → wagtail_enap_designsystem-1.2.1.147.dist-info}/licenses/LICENSE +0 -0
  32. {wagtail_enap_designsystem-1.2.1.145.dist-info → wagtail_enap_designsystem-1.2.1.147.dist-info}/top_level.txt +0 -0
@@ -151,14 +151,6 @@
151
151
  </div>
152
152
  </section>
153
153
 
154
- <!-- CSS - Mantém todas as regras existentes + melhorias de acessibilidade -->
155
- <style>
156
- .carousel-responsivo {
157
- position: relative;
158
- width: 100%;
159
- margin-bottom: 2rem;
160
- }
161
-
162
154
  .carousel-responsivo__title {
163
155
  text-align: center;
164
156
  margin-bottom: 2rem;
@@ -182,23 +174,6 @@
182
174
  }
183
175
  }
184
176
 
185
- .carousel-responsivo__slides {
186
- position: relative;
187
- width: 100%;
188
- height: 100%;
189
- }
190
-
191
- .carousel-responsivo__slide {
192
- position: absolute;
193
- top: 0;
194
- left: 0;
195
- width: 100%;
196
- height: 100%;
197
- opacity: 0;
198
- transition: opacity 0.6s ease-in-out;
199
- display: flex;
200
- align-items: center;
201
- }
202
177
 
203
178
  .carousel-responsivo__slide[data-active="true"] {
204
179
  opacity: 1;
@@ -219,102 +194,6 @@
219
194
  transform: translateX(0);
220
195
  }
221
196
 
222
- .carousel-responsivo__picture {
223
- position: absolute;
224
- top: 0;
225
- left: 0;
226
- width: 100%;
227
- height: 100%;
228
- z-index: 1;
229
- }
230
-
231
- .carousel-responsivo__image {
232
- width: 100%;
233
- height: 100%;
234
- object-fit: cover;
235
- object-position: center;
236
- }
237
-
238
- .carousel-responsivo__overlay {
239
- position: absolute;
240
- top: 0;
241
- left: 0;
242
- width: 100%;
243
- height: 100%;
244
- background: linear-gradient(
245
- 135deg,
246
- rgba(0, 0, 0, 0.6) 0%,
247
- rgba(0, 0, 0, 0.3) 50%,
248
- rgba(0, 0, 0, 0.1) 100%
249
- );
250
- z-index: 2;
251
- }
252
-
253
- .carousel-responsivo__content {
254
- position: relative;
255
- z-index: 3;
256
- width: 100%;
257
- padding: 2rem 0;
258
- }
259
-
260
- .carousel-responsivo__text-wrapper {
261
- max-width: 600px;
262
- color: white;
263
- }
264
-
265
- .carousel-responsivo__slide--left .carousel-responsivo__text-wrapper {
266
- margin-left: 0;
267
- text-align: left;
268
- }
269
-
270
- .carousel-responsivo__slide--center .carousel-responsivo__text-wrapper {
271
- margin: 0 auto;
272
- text-align: center;
273
- }
274
-
275
- .carousel-responsivo__slide--right .carousel-responsivo__text-wrapper {
276
- margin-left: auto;
277
- text-align: right;
278
- }
279
-
280
- .carousel-responsivo__slide-title {
281
- font-size: 1.5rem;
282
- font-weight: 700;
283
- margin-bottom: 1rem;
284
- line-height: 1.2;
285
- }
286
-
287
- @media (min-width: 768px) {
288
- .carousel-responsivo__slide-title {
289
- font-size: 2.5rem;
290
- }
291
- }
292
-
293
- .carousel-responsivo__slide-subtitle {
294
- font-size: 1rem;
295
- margin-bottom: 1rem;
296
- opacity: 0.95;
297
- line-height: 1.4;
298
- }
299
-
300
- @media (min-width: 768px) {
301
- .carousel-responsivo__slide-subtitle {
302
- font-size: 1.25rem;
303
- }
304
- }
305
-
306
- .carousel-responsivo__slide-text {
307
- font-size: 0.875rem;
308
- margin-bottom: 1.5rem;
309
- opacity: 0.9;
310
- }
311
-
312
- @media (min-width: 768px) {
313
- .carousel-responsivo__slide-text {
314
- font-size: 1rem;
315
- }
316
- }
317
-
318
197
  .carousel-responsivo__slide-button {
319
198
  display: inline-flex;
320
199
  align-items: center;
@@ -338,15 +217,6 @@
338
217
  outline-offset: 2px;
339
218
  }
340
219
 
341
- .carousel-responsivo__slide-button-icon {
342
- transition: transform 0.3s ease;
343
- }
344
-
345
- .carousel-responsivo__slide-button:hover .carousel-responsivo__slide-button-icon {
346
- transform: translateX(4px);
347
- }
348
-
349
- /* Navegação */
350
220
  .carousel-responsivo__nav {
351
221
  position: absolute;
352
222
  top: 50%;
@@ -377,72 +247,6 @@
377
247
  outline-offset: 2px;
378
248
  }
379
249
 
380
- .carousel-responsivo__nav--prev {
381
- left: 1rem;
382
- }
383
-
384
- .carousel-responsivo__nav--next {
385
- right: 1rem;
386
- }
387
-
388
- /* Indicadores */
389
- .carousel-responsivo__indicators {
390
- position: absolute;
391
- bottom: 1rem;
392
- left: 50%;
393
- transform: translateX(-50%);
394
- display: flex;
395
- gap: 0.5rem;
396
- z-index: 4;
397
- }
398
-
399
- .carousel-responsivo__indicator {
400
- width: 12px;
401
- height: 12px;
402
- border-radius: 50%;
403
- border: 2px solid rgba(255, 255, 255, 0.5);
404
- background: transparent;
405
- cursor: pointer;
406
- transition: all 0.3s ease;
407
- }
408
-
409
- .carousel-responsivo__indicator[aria-selected="true"] {
410
- background: white;
411
- border-color: white;
412
- }
413
-
414
- .carousel-responsivo__indicator:hover,
415
- .carousel-responsivo__indicator:focus {
416
- border-color: white;
417
- transform: scale(1.2);
418
- outline: 2px solid rgba(255, 255, 255, 0.8);
419
- outline-offset: 2px;
420
- }
421
-
422
- /* Utilitários */
423
- .sr-only {
424
- position: absolute;
425
- width: 1px;
426
- height: 1px;
427
- padding: 0;
428
- margin: -1px;
429
- overflow: hidden;
430
- clip: rect(0, 0, 0, 0);
431
- border: 0;
432
- }
433
-
434
- .container {
435
- max-width: 1200px;
436
- margin: 0 auto;
437
- padding: 0 1rem;
438
- }
439
-
440
- @media (min-width: 768px) {
441
- .container {
442
- padding: 0 2rem;
443
- }
444
- }
445
-
446
250
  /* Temas de cores */
447
251
  .carousel-responsivo__slide--primary {
448
252
  --theme-color: var(--enap-primary-color, #1976d2);
@@ -459,9 +263,11 @@
459
263
  .carousel-responsivo__slide--dark {
460
264
  --theme-color: #1a1a1a;
461
265
  }
266
+ <style>
267
+
462
268
  </style>
463
269
 
464
- <!-- CORREÇÃO #6: JavaScript atualizado para trabalhar com data-attributes -->
270
+
465
271
  <script>
466
272
  document.addEventListener('DOMContentLoaded', function() {
467
273
  // CORREÇÃO: Buscar especificamente carousels do tipo snippet
@@ -1,4 +1,5 @@
1
- {% load wagtailcore_tags %}
1
+ {% load wagtailcore_tags wagtailimages_tags %}
2
+ {% load static %}
2
3
  <section class="clientes-section">
3
4
  <div class="container">
4
5
  {# Cabeçalho da seção #}
@@ -18,13 +19,18 @@
18
19
  {% if cliente.block_type == 'logo_cliente' %}
19
20
  <div class="cliente-logo">
20
21
  {% if cliente.value.logo %}
21
- {% load wagtailimages_tags %}
22
22
  {% image cliente.value.logo original as logo_img %}
23
23
  <img
24
24
  src="{{ logo_img.url }}"
25
25
  alt="Logo do cliente"
26
26
  class="cliente-logo__imagem"
27
27
  />
28
+ {% else %}
29
+ <img
30
+ src="{% static 'enap_designsystem/blocks/suap/default_1.png' %}"
31
+ alt="Imagem padrão com logo da Enap e fundo verde"
32
+ class="cliente-logo__imagem"
33
+ />
28
34
  {% endif %}
29
35
  </div>
30
36
  {% endif %}
@@ -38,153 +44,4 @@
38
44
  </div>
39
45
  {% endif %}
40
46
  </div>
41
- </section>
42
-
43
- <style>
44
- .clientes-section {
45
- padding: 80px 0;
46
- background: linear-gradient(0deg, #FFFFFF 88%, #F5F7FA 96%);
47
- position: relative;
48
- }
49
-
50
- .clientes-button{
51
- margin: 40px auto;
52
- display: flex;
53
- justify-content: center;
54
- }
55
-
56
- .clientes-section::before {
57
- content: '';
58
- position: absolute;
59
- top: 0;
60
- left: 0;
61
- right: 0;
62
- bottom: 0;
63
- background-image: radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
64
- background-size: 30px 30px;
65
- pointer-events: none;
66
- }
67
-
68
- .container {
69
- max-width: 1142px;
70
- margin: 0 auto;
71
- padding: 0 20px;
72
- }
73
-
74
- .clientes-header {
75
- margin-bottom: 60px;
76
- }
77
-
78
- .clientes-header__titulo {
79
- font-size: 2.5rem;
80
- font-weight: 600;
81
- color: #024248;
82
- margin-bottom: 16px;
83
- line-height: 1.2;
84
- }
85
-
86
- .clientes-section p{
87
- font-size: 1.125rem;
88
- color: #333840;
89
- max-width: 600px;
90
- margin: 0 auto;
91
- line-height: 1.6;
92
- }
93
-
94
- .text-center {
95
- text-align: center;
96
- }
97
-
98
- .text-left {
99
- text-align: left;
100
- }
101
-
102
- .text-left .clientes-header__subtitulo {
103
- margin-left: 0;
104
- }
105
-
106
- .clientes-grid {
107
- display: grid;
108
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
109
- gap: 40px;
110
- align-items: center;
111
- justify-items: center;
112
- }
113
-
114
- .cliente-logo {
115
- padding: 12px;
116
- height: 120px;
117
- width: 100%;
118
- max-width: 200px;
119
- display: flex;
120
- align-items: center;
121
- justify-content: center;
122
- }
123
-
124
- .cliente-logo__imagem {
125
- max-width: 100%;
126
- max-height: 60px;
127
- width: 100%;
128
- height: auto;
129
- object-fit: contain;
130
- transition: all 0.3s ease;
131
- }
132
-
133
- .cliente-logo:hover .cliente-logo__imagem {
134
- filter: grayscale(0);
135
- opacity: 1;
136
- }
137
-
138
- /* Responsividade */
139
- @media (max-width: 768px) {
140
- .clientes-section {
141
- padding: 60px 0;
142
- }
143
-
144
- .clientes-header {
145
- margin-bottom: 40px;
146
- }
147
-
148
- .clientes-header__titulo {
149
- font-size: 2rem;
150
- }
151
-
152
- .clientes-grid {
153
- grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
154
- gap: 24px;
155
- }
156
-
157
- .cliente-logo {
158
- padding: 24px;
159
- max-width: 150px;
160
- height: 100px;
161
- }
162
-
163
- .cliente-logo__imagem {
164
- max-height: 50px;
165
- }
166
- }
167
-
168
- @media (max-width: 480px) {
169
- .clientes-grid {
170
- grid-template-columns: repeat(2, 1fr);
171
- gap: 16px;
172
- }
173
-
174
- .cliente-logo {
175
- padding: 20px;
176
- height: 90px;
177
- }
178
-
179
- .cliente-logo__imagem {
180
- max-height: 40px;
181
- }
182
- }
183
-
184
- /* Variação para muitos logos */
185
- @media (min-width: 1200px) {
186
- .clientes-grid {
187
- grid-template-columns: repeat(5, 1fr);
188
- }
189
- }
190
- </style>
47
+ </section>
@@ -0,0 +1,122 @@
1
+ {% load static wagtailimages_tags wagtailcore_tags %}
2
+ <!-- Footer -->
3
+ <footer class="footer_generico">
4
+ <div class="footer-content_semana">
5
+ <div class="footer-logo_semana">
6
+ <!-- Logo do Footer -->
7
+ <div class="wrapper-logo-hero_semana">
8
+ {% if value.logo %}
9
+ {% image value.logo width-400 as logo_img %}
10
+ <img src="{{ logo_img.url }}"
11
+ alt="Logos"
12
+ class="logo-image">
13
+ {% endif %}
14
+ </div>
15
+ <div style="height:60px;"></div>
16
+
17
+ <!-- Dados do Evento -->
18
+ <div class="evento-texto">
19
+ {% if value.texto_logo %}
20
+ {{ value.texto_logo }}
21
+ {% endif %}
22
+ </div>
23
+ </div>
24
+
25
+ <!-- Links de Navegação -->
26
+ {% if value.links_1 %}
27
+ <div class="footer-links_generico">
28
+ <p>{{ value.titulo_1 }}</p>
29
+ <ul>
30
+ {% for link in value.links_1 %}
31
+ <li>
32
+ {% if link.value.link_url %}
33
+ <a href="{{ link.value.link_url }}">{{ link.value.title }}</a>
34
+ {% else %}
35
+ <p>{{ link.value.title }}</p>
36
+ {% endif %}
37
+ </li>
38
+ {% endfor %}
39
+ </ul>
40
+ </div>
41
+ {% endif %}
42
+
43
+ {% if value.links_2 %}
44
+ <div class="footer-links_generico">
45
+ <p>{{ value.titulo_2 }}</p>
46
+ <ul>
47
+ {% for link in value.links_2 %}
48
+ <li>
49
+ {% if link.value.link_url %}
50
+ <a href="{{ link.value.link_url }}">{{ link.value.title }}</a>
51
+ {% else %}
52
+ <p>{{ link.value.title }}</p>
53
+ {% endif %}
54
+ </li>
55
+ {% endfor %}
56
+ </ul>
57
+ </div>
58
+ {% endif %}
59
+
60
+ {% if value.links_3 %}
61
+ <div class="footer-links_generico">
62
+ <p>{{ value.titulo_3 }}</p>
63
+ <ul>
64
+ {% for link in value.links_3 %}
65
+ <li>
66
+ {% if link.value.link_url %}
67
+ <a href="{{ link.value.link_url }}">{{ link.value.title }}</a>
68
+ {% else %}
69
+ <p>{{ link.value.title }}</p>
70
+ {% endif %}
71
+ </li>
72
+ {% endfor %}
73
+ </ul>
74
+ </div>
75
+ {% endif %}
76
+ </div>
77
+ </footer>
78
+
79
+ <style>
80
+ .footer_generico{
81
+ background: {{value.cor_fundo}};
82
+ color: {{value.cor_texto}};
83
+ padding: 60px 20px;
84
+ background-size: 40px 40px;
85
+ }
86
+
87
+ .footer-links_generico p{
88
+ font-size: 20px;
89
+ font-weight: 500;
90
+ color: {{value.cor_texto}};
91
+ margin: 0px;
92
+ }
93
+
94
+ .footer-links_generico ul{
95
+ margin: 0px;
96
+ padding: 0px;
97
+ }
98
+
99
+ .footer-links_generico ul li{
100
+ margin: 0px;
101
+ padding: 0px;
102
+ list-style: none;
103
+ }
104
+
105
+ .footer-links_generico ul li a{
106
+ color: {{value.cor_texto}};
107
+ font-size: 16px;
108
+ font-weight: 400;
109
+ }
110
+
111
+ .footer-links_generico ul li p{
112
+ color: {{value.cor_texto}};
113
+ font-size: 16px;
114
+ font-weight: 400;
115
+ display: flex;
116
+ align-items: center;
117
+ }
118
+
119
+ .material-symbols-outlined{
120
+ color: {{value.cor_texto}};
121
+ }
122
+ </style>
@@ -12,7 +12,7 @@
12
12
  <!-- Título e subtítulo - só renderiza se houver conteúdo -->
13
13
  {% if self.title or self.subtitle %}
14
14
  <div class="container-medium">
15
- <div class="padding-global">
15
+ <div>
16
16
  <div class="wrapper-text-blue" style="max-width: {{value.max_width}};">
17
17
  {% if self.title %}
18
18
  <h2 style="color: {{ value.cor_titulo }}" class="h2-blue-large {% if self.custom_class == 'bg-darkgreen' or self.custom_class == 'bg-enap-100' or self.custom_class == 'bg-enap-90' or self.custom_class == 'bg-enap-80' or self.custom_class == 'bg-enap-70' or self.custom_class == 'bg-enap-50' or self.custom_class == 'bg-enap-40' %}white{% endif %}">{{self.title}}</h2>
@@ -168,8 +168,7 @@
168
168
  flex-direction: column;
169
169
  justify-content: flex-start;
170
170
  align-items: flex-start;
171
- width: 60%;
172
- max-width: 500px;
171
+ max-width: 100%;
173
172
  color: white;
174
173
  pointer-events: auto;
175
174
  }