wagtail-enap-designsystem 1.2.1.145__py3-none-any.whl → 1.2.1.146__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 +17 -13
  13. enap_designsystem/templates/enap_designsystem/blocks/apresentacao_simple_block.html +3 -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 +10 -2
  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.146.dist-info}/METADATA +1 -1
  29. {wagtail_enap_designsystem-1.2.1.145.dist-info → wagtail_enap_designsystem-1.2.1.146.dist-info}/RECORD +32 -24
  30. {wagtail_enap_designsystem-1.2.1.145.dist-info → wagtail_enap_designsystem-1.2.1.146.dist-info}/WHEEL +0 -0
  31. {wagtail_enap_designsystem-1.2.1.145.dist-info → wagtail_enap_designsystem-1.2.1.146.dist-info}/licenses/LICENSE +0 -0
  32. {wagtail_enap_designsystem-1.2.1.145.dist-info → wagtail_enap_designsystem-1.2.1.146.dist-info}/top_level.txt +0 -0
@@ -146,335 +146,7 @@
146
146
 
147
147
  </div>
148
148
 
149
- <!-- CSS - MANTÉM TODAS AS REGRAS EXISTENTES -->
150
- <style>
151
- /* Carrossel Responsivo - Snippet */
152
- .carousel-responsivo {
153
- position: relative;
154
- width: 100%;
155
- margin-bottom: 2rem;
156
- }
157
149
 
158
- .carousel-responsivo__title {
159
- text-align: center;
160
- margin-bottom: 2rem;
161
- font-size: 2rem;
162
- font-weight: 700;
163
- color: var(--enap-primary-color, #1976d2);
164
- }
165
-
166
- .carousel-responsivo__container {
167
- position: relative;
168
- width: 100%;
169
- height: var(--carousel-height-mobile);
170
- overflow: hidden;
171
- border-radius: 0.5rem;
172
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
173
- }
174
-
175
- @media (min-width: 768px) {
176
- .carousel-responsivo__container {
177
- height: var(--carousel-height-desktop);
178
- }
179
- }
180
-
181
- .carousel-responsivo__slides {
182
- position: relative;
183
- width: 100%;
184
- height: 100%;
185
- }
186
-
187
- .carousel-responsivo__slide {
188
- position: absolute;
189
- top: 0;
190
- left: 0;
191
- width: 100%;
192
- height: 100%;
193
- opacity: 0;
194
- transition: opacity 0.6s ease-in-out;
195
- display: flex;
196
- align-items: center;
197
- }
198
-
199
- .carousel-responsivo__slide[data-active="true"] {
200
- opacity: 1;
201
- }
202
-
203
- .carousel-responsivo__picture {
204
- position: absolute;
205
- top: 0;
206
- left: 0;
207
- width: 100%;
208
- height: 100%;
209
- z-index: 1;
210
- }
211
-
212
- .carousel-responsivo__image {
213
- width: 100%;
214
- height: 100%;
215
- object-fit: cover;
216
- object-position: center;
217
- }
218
-
219
- .carousel-responsivo__overlay {
220
- position: absolute;
221
- top: 0;
222
- left: 0;
223
- width: 100%;
224
- height: 100%;
225
- background: linear-gradient(
226
- 135deg,
227
- rgba(0, 0, 0, 0.6) 0%,
228
- rgba(0, 0, 0, 0.3) 50%,
229
- rgba(0, 0, 0, 0.1) 100%
230
- );
231
- z-index: 2;
232
- }
233
-
234
- .carousel-responsivo__content {
235
- position: relative;
236
- z-index: 3;
237
- width: 100%;
238
- padding: 2rem 0;
239
- }
240
-
241
- .carousel-responsivo__text-wrapper {
242
- max-width: 600px;
243
- color: white;
244
- }
245
-
246
- .carousel-responsivo__slide--left .carousel-responsivo__text-wrapper {
247
- margin-left: 0;
248
- text-align: left;
249
- }
250
-
251
- .carousel-responsivo__slide--center .carousel-responsivo__text-wrapper {
252
- margin: 0 auto;
253
- text-align: center;
254
- }
255
-
256
- .carousel-responsivo__slide--right .carousel-responsivo__text-wrapper {
257
- margin-left: auto;
258
- text-align: right;
259
- }
260
-
261
- .carousel-responsivo__slide-title {
262
- font-size: 1.5rem;
263
- font-weight: 700;
264
- margin-bottom: 1rem;
265
- line-height: 1.2;
266
- }
267
-
268
- @media (min-width: 768px) {
269
- .carousel-responsivo__slide-title {
270
- font-size: 2.5rem;
271
- }
272
- }
273
-
274
- .carousel-responsivo__slide-subtitle {
275
- font-size: 1rem;
276
- margin-bottom: 1rem;
277
- opacity: 0.95;
278
- line-height: 1.4;
279
- }
280
-
281
- @media (min-width: 768px) {
282
- .carousel-responsivo__slide-subtitle {
283
- font-size: 1.25rem;
284
- }
285
- }
286
-
287
- .carousel-responsivo__slide-text {
288
- font-size: 0.875rem;
289
- margin-bottom: 1.5rem;
290
- opacity: 0.9;
291
- }
292
-
293
- @media (min-width: 768px) {
294
- .carousel-responsivo__slide-text {
295
- font-size: 1rem;
296
- }
297
- }
298
-
299
- .carousel-responsivo__slide-button {
300
- display: inline-flex;
301
- align-items: center;
302
- gap: 0.5rem;
303
- padding: 0.75rem 1.5rem;
304
- background: rgba(255, 255, 255, 0.9);
305
- color: var(--enap-primary-color, #1976d2);
306
- text-decoration: none;
307
- border-radius: 0.375rem;
308
- font-weight: 600;
309
- transition: all 0.3s ease;
310
- backdrop-filter: blur(10px);
311
- }
312
-
313
- .carousel-responsivo__slide-button:hover {
314
- background: white;
315
- transform: translateY(-2px);
316
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
317
- }
318
-
319
- .carousel-responsivo__slide-button-icon {
320
- transition: transform 0.3s ease;
321
- }
322
-
323
- .carousel-responsivo__slide-button:hover .carousel-responsivo__slide-button-icon {
324
- transform: translateX(4px);
325
- }
326
-
327
- /* Navegação */
328
- .carousel-responsivo__nav {
329
- position: absolute;
330
- top: 50%;
331
- transform: translateY(-50%);
332
- width: 48px;
333
- height: 48px;
334
- background: rgba(255, 255, 255, 0.9);
335
- border: none;
336
- border-radius: 50%;
337
- color: var(--enap-primary-color, #1976d2);
338
- font-size: 24px;
339
- font-weight: bold;
340
- cursor: pointer;
341
- transition: all 0.3s ease;
342
- z-index: 4;
343
- display: flex;
344
- align-items: center;
345
- justify-content: center;
346
- backdrop-filter: blur(10px);
347
- }
348
-
349
- .carousel-responsivo__nav:hover,
350
- .carousel-responsivo__nav:focus {
351
- background: white;
352
- transform: translateY(-50%) scale(1.1);
353
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
354
- outline: 2px solid var(--enap-primary-color, #1976d2);
355
- outline-offset: 2px;
356
- }
357
-
358
- .carousel-responsivo__nav--prev {
359
- left: 1rem;
360
- }
361
-
362
- .carousel-responsivo__nav--next {
363
- right: 1rem;
364
- }
365
-
366
- /* Indicadores */
367
- .carousel-responsivo__indicators {
368
- position: absolute;
369
- bottom: 1rem;
370
- left: 50%;
371
- transform: translateX(-50%);
372
- display: flex;
373
- gap: 0.5rem;
374
- z-index: 4;
375
- }
376
-
377
- .carousel-responsivo__indicator {
378
- width: 12px;
379
- height: 12px;
380
- border-radius: 50%;
381
- border: 2px solid rgba(255, 255, 255, 0.5);
382
- background: transparent;
383
- cursor: pointer;
384
- transition: all 0.3s ease;
385
- }
386
-
387
- .carousel-responsivo__indicator[aria-selected="true"] {
388
- background: white;
389
- border-color: white;
390
- }
391
-
392
- .carousel-responsivo__indicator:hover,
393
- .carousel-responsivo__indicator:focus {
394
- border-color: white;
395
- transform: scale(1.2);
396
- outline: 2px solid rgba(255, 255, 255, 0.8);
397
- outline-offset: 2px;
398
- }
399
-
400
- /* Wrapper Styles - MANTÉM TODAS */
401
- .carousel-wrapper {
402
- width: 100%;
403
- }
404
-
405
- .carousel-wrapper--margin-top-none {
406
- margin-top: 0;
407
- }
408
-
409
- .carousel-wrapper--margin-top-small {
410
- margin-top: 1rem;
411
- }
412
-
413
- .carousel-wrapper--margin-top-medium {
414
- margin-top: 2rem;
415
- }
416
-
417
- .carousel-wrapper--margin-top-large {
418
- margin-top: 4rem;
419
- }
420
-
421
- .carousel-wrapper--margin-bottom-none {
422
- margin-bottom: 0;
423
- }
424
-
425
- .carousel-wrapper--margin-bottom-small {
426
- margin-bottom: 1rem;
427
- }
428
-
429
- .carousel-wrapper--margin-bottom-medium {
430
- margin-bottom: 2rem;
431
- }
432
-
433
- .carousel-wrapper--margin-bottom-large {
434
- margin-bottom: 4rem;
435
- }
436
-
437
- .carousel-wrapper--max-width {
438
- max-width: 1200px;
439
- margin-left: auto;
440
- margin-right: auto;
441
- padding: 0 1rem;
442
- }
443
-
444
- @media (min-width: 768px) {
445
- .carousel-wrapper--max-width {
446
- padding: 0 2rem;
447
- }
448
- }
449
-
450
- .carousel-wrapper--max-width .carousel-responsivo__container {
451
- border-radius: 0.75rem;
452
- }
453
-
454
- /* Utilitários */
455
- .sr-only {
456
- position: absolute;
457
- width: 1px;
458
- height: 1px;
459
- padding: 0;
460
- margin: -1px;
461
- overflow: hidden;
462
- clip: rect(0, 0, 0, 0);
463
- border: 0;
464
- }
465
-
466
- .container {
467
- max-width: 1200px;
468
- margin: 0 auto;
469
- padding: 0 1rem;
470
- }
471
-
472
- @media (min-width: 768px) {
473
- .container {
474
- padding: 0 2rem;
475
- }
476
- }
477
- </style>
478
150
 
479
151
  <!-- CORREÇÃO #7: JavaScript atualizado para trabalhar com IDs únicos -->
480
152
  <script>
@@ -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