diff --git a/data.json b/data.json index d42f167..25d12dd 100644 --- a/data.json +++ b/data.json @@ -1161,11 +1161,11 @@ }, { - "post_type": "events", - "id": 2, + "post_type": "pages", + "id": 23, "attr": { - "show_category": true, - "category": "Eventi", + "show_category": false, + "category": "page", "hide_arrow": true } }, @@ -1455,7 +1455,7 @@ "paragraph": { "key": "paragraph", "classes": "block-paragraph--sm block-paragraph--1col", - "content": "

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus nec felis sed mauris maximus dictum. Quisque rutrum odio at lacinia pellentesque. Integer in sapien purus. Donec finibus, odio nec accumsan porttitor, velit nisl feugiat felis, eget aliquam dui purus et mi. Nulla vel lacinia ligula. Vestibulum a malesuada ante, in luctus sapien. Maecenas maximus ac quam sit amet pulvinar. Nulla quis ornare felis. Pellentesque tempus, urna et fermentum aliquet, tortor ipsum mattis lectus, ac blandit massa libero pellentesque magna. Nunc dignissim eros nunc, non condimentum turpis tristique vel. Aenean efficitur lectus vel enim vulputate tempus. Sed tincidunt arcu at dui facilisis ullamcorper.

Sottotitolo
Aliquam ut ligula rutrum, iaculis lorem vel, blandit magna. Donec tempus ut arcu et porta. Sed sit amet sapien in metus bibendum aliquet. Nam porta facilisis augue. Sed pellentesque diam vitae dolor dapibus, at mollis nisi rhoncus. Sed non ultrices enim. Nulla volutpat lacinia nunc eget viverra. Cras tristique est id lorem blandit malesuada. Interdum et malesuada fames ac ante ipsum primis in faucibus.

" + "content": "

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus nec felis sed mauris maximus dictum. Quisque rutrum odio at lacinia pellentesque. Integer in sapien purus. Donec finibus, odio nec accumsan porttitor, velit nisl feugiat felis, eget aliquam dui purus et mi. Nulla vel lacinia ligula. Vestibulum a malesuada ante, in luctus sapien. Maecenas maximus ac quam sit amet pulvinar. Nulla quis ornare felis. Pellentesque tempus, urna et fermentum aliquet, tortor ipsum mattis lectus, ac blandit massa libero pellentesque magna. Nunc dignissim eros nunc, non condimentum turpis tristique vel. Aenean efficitur lectus vel enim vulputate tempus. Sed tincidunt arcu at dui facilisis ullamcorper.

Sottotitolo
Aliquam ut ligula rutrum, iaculis lorem vel, blandit magna. Donec tempus ut arcu et porta. Sed sit amet sapien in metus bibendum aliquet. Nam porta facilisis augue. Sed pellentesque diam vitae dolor dapibus, at mollis nisi rhoncus. Sed non ultrices enim. Nulla volutpat lacinia nunc eget viverra. Cras tristique est id lorem blandit malesuada. Interdum et malesuada fames ac ante ipsum primis in faucibus.

  1. Pellentesque efficitur, dui bibendum faucibus congue, justo eros feugiat mauris, id blandit mi neque vitae dui. Ut id metus eget mi ultrices pulvinar or click here
  2. Morbi sodales tristique lacinia. Suspendisse potenti. Curabitur pulvinar nibh sed tincidunt congue. Sed fringilla justo vitae nisi dictum, quis auctor ipsum bibendum.
" } } }, @@ -3737,6 +3737,18 @@ } ], "search_results": [0,1,2,3,4,5] + }, + { + "title": "Archivio bandi", + "url": "#", + "description": "Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. In malesuada consectetur dolor, eget ultricies diam hendrerit non. Maecenas consectetur condimentum erat, sit amet ornare nulla ullamcorper id. È possibile consultare i bandi in corso a questo link." + }, + { + "title": "Petit Tour #66. La Colonia marina di Padova", + "featured_image": { + "filename": "petit-tour", + "path": "/post_type/eventi" + } } ], "news": { @@ -3959,7 +3971,7 @@ "events": { "name": "Eventi", "url": "/pages/eventi.html", - "description": "Nullam gravida eros ut velit imperdiet, quis gravida tellus porta. Mauris pharetra lorem ante, eu viverra enim suscipit et. Etiam blandit, massa at imperdiet sagittis, mi purus rutrum neque, sit amet convallis urna lectus ac lectus.", + "description": "L’Università Iuav di Venezia si qualifica come luogo d’incontro, di dibattito e di confronto culturale attraverso l’organizzazione di mostre, presentazioni di libri e altri eventi volti alla diffusione della cultura scientifica di settore. È possibile consultare gli eventi passati a questo link.", "items": [ { "title": "Iuav dà il benvenuto agli studenti internazionali", @@ -3989,20 +4001,6 @@ "place": "Cotonificio, Auditorium" }, { - "title": "Petit Tour #66. La Colonia marina di Padova", - "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nunc libero, fringilla id semper id, ornare pellentesque massa. Nam posuere luctus facilisis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.", - "date": { - "start": "1694383200", - "end": "1694556000" - }, - "featured_image": { - "filename": "petit-tour", - "path": "/post_type/eventi" - }, - "keyword": "Petit tour", - "place": "Badoer, Aula D" - }, - { "title": "Partecipa all’Open Day 2023 per scoprire i corsi di studio", "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nunc libero, fringilla id semper id, ornare pellentesque massa. Nam posuere luctus facilisis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.", "date": { @@ -4076,8 +4074,8 @@ "title": "Activation of collective thinking", "excerpt": "Sei gruppi di esperti lavoreranno con 120 studenti e studentesse per sviluppare soluzioni collettive per un futuro sostenibile, inclusivo e bello, esplorando nuovi modi di vivere, apprendere, progettare e costruire.", "date": { - "start": "1707987600", - "end": null + "start": "1697349600", + "end": "1697385600" }, "allday": true, "featured_image": { @@ -4091,8 +4089,8 @@ "title": "From collective thinking to creative disputes", "excerpt": "Ursula von der Leyen, presidente della Commissione europea e promotrice del New European Bauhaus, darà il via ai dibattiti interdisciplinari coinvolgendo esperti internazionali di diversi settori. La commissaria per la coesione e le riforme Elisa Ferreira chiuderà la conferenza NEB.", "date": { - "start": "1708110000", - "end": null + "start": "1698829200", + "end": "1701363600" }, "allday": true, "featured_image": { @@ -4106,7 +4104,7 @@ "title": "Europan 17 Living Cities II ", "excerpt": "Re-immaginare le architetture curando gli ambienti abitati: si tratta di interrogarsi sulle capacità rigenerative degli ambienti di vita attorno a nuove ecologie architettoniche, urbane e paesaggistiche, cercando di superare l'opposizione natura-cultura e l'antropocentrismo in tempi segnati da devastazioni ed emergenze climatiche.", "date": { - "start": "1708110000", + "start": "1700038800", "end": null }, "allday": false, @@ -4121,8 +4119,9 @@ "title": "Biomateriali circolari ed agroecologia", "subtitle": "Esperienze e prospettive in Veneto", "excerpt": "Incontro promosso da VeGAL e Centro studi CTRL Junk Lab dell'Università Iuav di Venezia su pratiche agroecologiche ed il riutilizzo degli scarti agricoli per la produzione di biomateriali circolari. L’incontro si propone di condividere esperienze e individuare potenziali opportunità di collaborazione, reti e filiere locali, sui temi dell’economia circolare, della bioeconomia, dei biomateriali e dell’agroecologia.
A cura di Eugenia Morpurgo", + "content": "

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus nec felis sed mauris maximus dictum. Quisque rutrum odio at lacinia pellentesque. Integer in sapien purus. Donec finibus, odio nec accumsan porttitor, velit nisl feugiat felis, eget aliquam dui purus et mi. Nulla vel lacinia ligula. Vestibulum a malesuada ante, in luctus sapien. Maecenas maximus ac quam sit amet pulvinar. Nulla quis ornare felis. Pellentesque tempus, urna et fermentum aliquet, tortor ipsum mattis lectus, ac blandit massa libero pellentesque magna. Nunc dignissim eros nunc, non condimentum turpis tristique vel. Aenean efficitur lectus vel enim vulputate tempus. Sed tincidunt arcu at dui facilisis ullamcorper.

Sottotitolo
Aliquam ut ligula rutrum, iaculis lorem vel, blandit magna. Donec tempus ut arcu et porta. Sed sit amet sapien in metus bibendum aliquet. Nam porta facilisis augue. Sed pellentesque diam vitae dolor dapibus, at mollis nisi rhoncus. Sed non ultrices enim. Nulla volutpat lacinia nunc eget viverra. Cras tristique est id lorem blandit malesuada. Interdum et malesuada fames ac ante ipsum primis in faucibus.

", "date": { - "start": "1700668800", + "start": "1700643600", "end": null }, "allday": false, @@ -4130,6 +4129,7 @@ "filename": "eventi-3", "path": "/post_type/eventi" }, + "terms": [[0,[4]], [1,[0]],[2,[1]]], "keyword": null, "place": "VeGAL, Portogruaro (VE)", "is_canceled": true @@ -4269,6 +4269,156 @@ ] } ] + }, + { + "title": "Lorem Ipsum 1", + "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nunc libero, fringilla id semper id, ornare pellentesque massa. Nam posuere luctus facilis.", + "date": { + "start": "1718006400", + "end": null + }, + "allday": false, + "featured_image": { + "filename": "eventi-3", + "path": "/post_type/eventi" + }, + "keyword": null, + "place": "Cotonificio, Laboratorio ArTec" + }, + { + "title": "Lorem Ipsum 2", + "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nunc libero, fringilla id semper id, ornare pellentesque massa. Nam posuere luctus facilis.", + "date": { + "start": "1717228800", + "end": null + }, + "allday": false, + "featured_image": { + "filename": "eventi-3", + "path": "/post_type/eventi" + }, + "keyword": null, + "place": "Cotonificio, Laboratorio ArTec" + }, + { + "title": "Lorem Ipsum 3", + "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nunc libero, fringilla id semper id, ornare pellentesque massa. Nam posuere luctus facilis.", + "date": { + "start": "1716192000", + "end": null + }, + "allday": false, + "featured_image": { + "filename": "eventi-3", + "path": "/post_type/eventi" + }, + "keyword": null, + "place": "Cotonificio, Laboratorio ArTec" + }, + { + "title": "Lorem Ipsum 4", + "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nunc libero, fringilla id semper id, ornare pellentesque massa. Nam posuere luctus facilis.", + "date": { + "start": "1714636800", + "end": null + }, + "allday": false, + "featured_image": { + "filename": "eventi-3", + "path": "/post_type/eventi" + }, + "keyword": null, + "place": "Cotonificio, Laboratorio ArTec" + }, + { + "title": "Lorem Ipsum 5", + "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nunc libero, fringilla id semper id, ornare pellentesque massa. Nam posuere luctus facilis.", + "date": { + "start": "1713427200", + "end": null + }, + "allday": false, + "featured_image": { + "filename": "eventi-3", + "path": "/post_type/eventi" + }, + "keyword": null, + "place": "Cotonificio, Laboratorio ArTec" + }, + { + "title": "Lorem Ipsum 6", + "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nunc libero, fringilla id semper id, ornare pellentesque massa. Nam posuere luctus facilis.", + "date": { + "start": "1713175200", + "end": null + }, + "allday": false, + "featured_image": { + "filename": "eventi-3", + "path": "/post_type/eventi" + }, + "keyword": null, + "place": "Cotonificio, Laboratorio ArTec" + }, + { + "title": "Lorem Ipsum 7", + "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nunc libero, fringilla id semper id, ornare pellentesque massa. Nam posuere luctus facilis.", + "date": { + "start": "1710500400", + "end": null + }, + "allday": false, + "featured_image": { + "filename": "eventi-3", + "path": "/post_type/eventi" + }, + "keyword": null, + "place": "Cotonificio, Laboratorio ArTec" + }, + { + "title": "Lorem Ipsum 8", + "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nunc libero, fringilla id semper id, ornare pellentesque massa. Nam posuere luctus facilis.", + "date": { + "start": "1707994800", + "end": null + }, + "allday": false, + "featured_image": { + "filename": "eventi-3", + "path": "/post_type/eventi" + }, + "keyword": null, + "place": "Cotonificio, Laboratorio ArTec" + }, + { + "title": "Lorem Ipsum 9", + "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nunc libero, fringilla id semper id, ornare pellentesque massa. Nam posuere luctus facilis.", + "date": { + "start": "1705316400", + "end": null + }, + "allday": false, + "featured_image": { + "filename": "eventi-3", + "path": "/post_type/eventi" + }, + "keyword": null, + "place": "Cotonificio, Laboratorio ArTec" + }, + { + "title": "Lorem Ipsum 10", + "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nunc libero, fringilla id semper id, ornare pellentesque massa. Nam posuere luctus facilis.", + "date": { + "start": "1704117600", + "end": null + }, + "allday": false, + "featured_image": { + "filename": "eventi-3", + "path": "/post_type/eventi" + }, + "keyword": null, + "place": "Cotonificio, Laboratorio ArTec" } ] }, @@ -5118,7 +5268,43 @@ }, { "name": "Product e visual design", - "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nunc libero, fringilla id semper id, ornare pellentesque massa. Nam posuere luctus facilisis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus." + "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nunc libero, fringilla id semper id, ornare pellentesque massa. Nam posuere luctus facilisis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.", + "study_plan": [ + [ + { + "name": "Teorie e pratiche dei media", + "url": "/pages/corsi/botanica-innovazione.html" + }, + { + "name": "Cultura della città e progetto sostenibile", + "url": "/pages/corsi/laboratorio-design-prodotto.html" + }, + { + "name": "Storia degli allestimenti", + "url": "/pages/corsi/laboratorio-visual-design.html" + }, + { + "name": "Laboratorio di interior design", + "url": "#" + }, + { + "name": "Lingua e cultura inglese per il design", + "url": "#" + }, + { + "name": "Laboratorio di exhibit ed environmental graphic design", + "url": "#" + }, + { + "name": "Economia e innovazione d’impresa", + "url": "#" + }, + { + "name": "Elementi di impiantistica", + "url": "#" + } + ] + ] } ], "degree_tabs": { @@ -7249,6 +7435,15 @@ "terms": [0,1] }, { + "title": "Antonio Esposito", + "subtitle": "Ricercatore ", + "text": null, + "email": "antonio.esposito@iuav.it", + "phone": null, + "links": null, + "terms": [0,1] + }, + { "title": "Daniela Ruggeri", "subtitle": "Ricercatrice", "text": null, @@ -7491,7 +7686,7 @@ "url": "#" }, "url": "/pages/ateneo/lavora-con-noi.html", - "description": "Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. In malesuada consectetur dolor, eget ultricies diam hendrerit non. Maecenas consectetur condimentum erat, sit amet ornare nulla ullamcorper id. È possibile consultare l'archivio dei bandi a questo link", + "description": "Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. In malesuada consectetur dolor, eget ultricies diam hendrerit non. Maecenas consectetur condimentum erat, sit amet ornare nulla ullamcorper id. È possibile consultare l'archivio dei bandi a questo link.", "items": [ { "title": "Attività di supporto al progetto “Museo avanzato del territorio e del paesaggio della sinistra Piave”", @@ -7537,6 +7732,7 @@ }, { "title": "Assegni di ricerca “Interaction, visual and digital storytelling for design, service and sharing” e “Data collection”", + "url": "/pages/bandi/assegni-di-ricerca.html", "date": "1706270400", "status": { "class": "open", @@ -7553,6 +7749,54 @@ "label": "Protocollo", "text": "rep. n. 524-2023 prot. n. 99954 del 21/12/2023" } + ], + "logos": [ + { + "filename": "logo-iuav", + "path": "/post_type/bandi" + }, + { + "filename": "logo-unibo", + "path": "/post_type/bandi" + }, + { + "filename": "logo-regione-er", + "path": "/post_type/bandi" + }, + { + "filename": "logo-comune-bo", + "path": "/post_type/bandi" + }, + { + "filename": "logo-soffitta", + "path": "/post_type/bandi" + }, + { + "filename": "logo-patto-lettura", + "path": "/post_type/bandi" + }, + { + "filename": "logo-coop", + "path": "/post_type/bandi" + }, + { + "filename": "logo-dams", + "path": "/post_type/bandi" + } + ], + "files_list": [ + { + "name": "Bando", + "url": "#" + }, + { + "name": "Domanda di ammissione alla selezione", + "url": "#" + }, + { + "name": "Curriculum", + "url": "#" + } ] }, { @@ -7723,6 +7967,7 @@ }, { "key": "alert", + "classes": "block-alert--1col", "content": "Il mancato rispetto di una sola delle procedure indicate determina l’esclusione dal concorso per la borsa di studio." }, { diff --git a/src/assets/css/blocks/alert.css b/src/assets/css/blocks/alert.css index b11f66d..4eaa5a0 100644 --- a/src/assets/css/blocks/alert.css +++ b/src/assets/css/blocks/alert.css @@ -1,15 +1,19 @@ .block-alert{ @apply mb-sm lg:mb-base; &__inner{ - @apply bg-black pl-1.5 pt-1.5 pr-5 pb-4 text-white inline-flex lg:w-1/2; + @apply relative bg-black pl-12 pr-5 pt-2.5 pb-2 text-white inline-flex w-full; &::before{ content: ''; background-image: url("data:image/svg+xml,%3Csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 37 37'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18.5 28a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19Zm0 1C24.299 29 29 24.299 29 18.5S24.299 8 18.5 8 8 12.701 8 18.5 12.701 29 18.5 29Z' fill='%23fff'/%3E%3Cpath d='m18.109 21.408-.5-7.574h1.54l-.473 7.574h-.567ZM17.649 24v-1.458h1.459V24H17.65Z' fill='%23fff'/%3E%3C/svg%3E"); background-size: 36px; - @apply inline-block bg-no-repeat w-9 h-9 mr-1.5 shrink-0; + @apply absolute top-0.5 left-1.5 inline-block bg-no-repeat w-9 h-9 mr-1.5 shrink-0; } span{ - @apply pt-1.5; + } + } + &--1col{ + .block-alert__inner{ + @apply lg:w-1/2; } } } \ No newline at end of file diff --git a/src/assets/css/blocks/featured-content.css b/src/assets/css/blocks/featured-content.css index 9219314..de15f14 100644 --- a/src/assets/css/blocks/featured-content.css +++ b/src/assets/css/blocks/featured-content.css @@ -120,8 +120,8 @@ @apply lg:absolute lg:top-0 flex flex-wrap lg:w-1/2 pb-sm md:pb-base text-size-lg; button{ @apply block text-grey-300; - &:not(:first-child){ - @apply ml-2; + &:not(:last-child){ + @apply mr-2; } &.is-selected{ @apply text-white; diff --git a/src/assets/css/components/card.css b/src/assets/css/components/card.css index 4a2e6bc..e24544e 100644 --- a/src/assets/css/components/card.css +++ b/src/assets/css/components/card.css @@ -1,21 +1,24 @@ .cards-container{ @apply mb-base overflow-x-clip; - margin-left: var(--grid-offset); - @screen md{ - width: calc(100vw - var(--grid-offset) - var(--grid-gutter)*2); - } - @screen 2xl{ - max-width: theme(screens.2xl); - margin-left: max(var(--grid-offset), calc((100vw - theme(screens.2xl))/2)) - } - @at-root :where(.block-container, .grid-container) .cards-container{ - @apply mx-0 px-0; - } &__inner{ + width: calc(100% - (var(--grid-gutter)*4)); + margin-left: auto; + margin-right: auto; + @screen md{ + width: calc(100vw - var(--grid-offset) - var(--grid-gutter)*2); + margin-left: var(--grid-offset); + } + @screen 2xl{ + max-width: theme(screens.2xl); + margin-left: max(var(--grid-offset), calc((100vw - theme(screens.2xl))/2)) + } @apply grid gap-[calc(var(--grid-gutter)*2)] grid-cols-12; /* &-squares{ @apply max-xl:lg:grid-cols-3; } */ + @at-root :where(.block-container, .grid-container) .cards-container .cards-container__inner{ + @apply mx-0 px-0; + } } > p{ @apply font-bold mb-4; @@ -366,4 +369,15 @@ @apply text-white !important; } } + &--page{ + @apply bg-black text-white; + p{ + @apply text-white !important; + } + .card__title{ + p{ + @apply text-size-lg font-normal; + } + } + } } \ No newline at end of file diff --git a/src/assets/css/components/cookiebanner.css b/src/assets/css/components/cookiebanner.css index 5e5a5a4..2a3638f 100644 --- a/src/assets/css/components/cookiebanner.css +++ b/src/assets/css/components/cookiebanner.css @@ -1,11 +1,11 @@ -#cookiebanner-overlay{ +#cb-overlay{ transition: all .5s ease; @apply fixed top-0 left-0 w-full h-screen bg-black bg-opacity-50 z-50 opacity-0 invisible pointer-events-none; &.is-active{ @apply opacity-100 visible pointer-events-auto; } } -.cookiebanner{ +.cb{ --accordion-border-color: theme(colors.grey.200); --accordion-bg: theme(colors.white); --accordion-text-color: theme(colors.black); @@ -25,14 +25,17 @@ @apply text-white mb-0; } &__btns{ - @apply flex justify-between mt-8; + @apply flex flex-wrap justify-between mt-8; + > div{ + @apply w-full md:w-auto; + } button{ - @apply bg-grey-300 text-white px-4 py-1.5; + @apply w-full md:w-auto mb-1 md:mb-0 bg-grey-300 text-white px-4 py-1.5; &:hover{ @apply bg-white text-black; } - + button{ - @apply ml-2.5; + &:has(+ button){ + @apply md:mr-2.5; } } } @@ -68,7 +71,7 @@ background-image: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 50 50' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M37.5 26H12.5V24H37.5V26Z' fill='black'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M24 37.5L24 12.5L26 12.5L26 37.5L24 37.5Z' fill='black'/%3E%3C/svg%3E%0A"); } } - .cookiebanner-necessary-icon{ + .cb-necessary-icon{ background-image: url("data:image/svg+xml,%3Csvg width='21' height='21' viewBox='0 0 21 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 10.5C21 16.299 16.299 21 10.5 21C4.70101 21 0 16.299 0 10.5C0 4.70101 4.70101 0 10.5 0C16.299 0 21 4.70101 21 10.5Z' fill='black'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.02172 13.3129L6.35134 10.6425L5.64866 11.3541L9.02393 14.7293L16.3525 7.35466L15.6476 6.64534L9.02172 13.3129Z' fill='white'/%3E%3C/svg%3E%0A"); @apply w-5 h-5 bg-contain absolute right-2.5 top-2; } diff --git a/src/assets/css/components/footer.css b/src/assets/css/components/footer.css index cc391ec..f511984 100644 --- a/src/assets/css/components/footer.css +++ b/src/assets/css/components/footer.css @@ -34,13 +34,12 @@ @apply text-size-sm md:text-size-base text-white mb-0; } > span{ - @apply font-bold; + @apply block font-bold mb-3.75; } } } &__nav, &__social-links{ ul{ - @apply mt-3.75; li{ @apply border-t border-grey-500 md:border-t-0 flex items-center; &:last-child{ diff --git a/src/assets/css/components/posts-archive-header.css b/src/assets/css/components/posts-archive-header.css index c4bd959..a06a3bf 100644 --- a/src/assets/css/components/posts-archive-header.css +++ b/src/assets/css/components/posts-archive-header.css @@ -10,7 +10,7 @@ .posts-archive-description{ p{ - @apply text-size-md; + @apply text-size-md mb-0; } a{ @apply underline; @@ -18,7 +18,7 @@ } .posts-archive-navigation{ - @apply mb-base; + @apply mb-base lg:mb-0; ul{ @apply flex; li{ diff --git a/src/assets/css/components/tease.css b/src/assets/css/components/tease.css index cdc6b0e..101d2b2 100644 --- a/src/assets/css/components/tease.css +++ b/src/assets/css/components/tease.css @@ -20,6 +20,13 @@ img{ @apply w-full h-full object-cover; } + &:not(:has(*)){ + &::after{ + content: ''; + /* background-image: url("data:image/svg+xml,%3Csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45 160'%3E%3Cpath d='M16.313 18.92v-2.29h4.622V2.29h-4.622V0h12.376v2.29h-4.622v14.34h4.622v2.29H16.312ZM8.977 31.57H0v2.816h8.977v-2.817ZM26.97 31.57h-8.978v2.816h8.977v-2.817ZM45 31.57h-9.016v2.816H45v-2.817ZM22.507 66.221c-4.431 0-5.921-1.614-5.921-5.781V47.038h3.132v13.815c0 2.252 1.032 2.928 2.789 2.928 1.604 0 2.788-.6 2.788-2.928V47.038h3.133V60.44c0 4.017-1.834 5.781-5.883 5.781h-.038ZM8.977 78.61H0v2.816h8.977v-2.817ZM26.97 78.61h-8.978v2.816h8.977v-2.817ZM45 78.61h-9.016v2.816H45v-2.817ZM26.695 112.96l-.955-3.942h-6.494l-.955 3.942H14.93l5.5-18.883h4.126l5.5 18.883h-3.36Zm-4.202-17.156-2.635 10.699h5.271l-2.636-10.7ZM8.977 125.612H0v2.817h8.977v-2.817ZM26.97 125.612h-8.978v2.817h8.977v-2.817ZM45 125.612h-9.016v2.817H45v-2.817ZM24.44 160h-3.858l-6.035-18.921h3.552l4.432 16.931 4.43-16.931h3.515L24.441 160Z' fill='%23000'/%3E%3C/svg%3E"); */ + @apply block absolute position-center-vertical w-full h-[60%] bg-contain bg-no-repeat bg-center; + } + } } .tease__main{ .tease-main-header{ diff --git a/src/assets/css/page/tender.css b/src/assets/css/page/tender.css index 71c587a..d863ad2 100644 --- a/src/assets/css/page/tender.css +++ b/src/assets/css/page/tender.css @@ -8,4 +8,45 @@ } } } +} + +.tender-logos{ + @apply grid grid-cols-2 md:grid-cols-3 xl:grid-cols-6 gap-[calc(var(--grid-gutter)*2)] mb-base; + > div{ + @apply h-32 relative; + img{ + /* height: max(72px, 60%); */ + /* max-height: clamp(64px, 60%, 96px); */ + width: min(200px, 90%); + height: 80%; + @apply absolute position-center object-contain saturate-0; + } + &:not(:last-child):after{ + content: ''; + @apply w-px h-[6.25rem] bg-grey-200 -right-[var(--grid-gutter)] position-center-vertical absolute; + } + &:nth-of-type(2n){ + &::after{ + content: none; + @screen md{ + content: ''; + } + } + } + &:nth-of-type(3n){ + &::after{ + @screen md{ + content: none; + } + @screen xl{ + content: ''; + } + } + } + &:nth-of-type(6n){ + &::after{ + content: none; + } + } + } } \ No newline at end of file diff --git a/src/assets/img/post_type/bandi/logo-comune-bo.jpg b/src/assets/img/post_type/bandi/logo-comune-bo.jpg new file mode 100644 index 0000000..46156bc --- /dev/null +++ b/src/assets/img/post_type/bandi/logo-comune-bo.jpg Binary files differ diff --git a/src/assets/img/post_type/bandi/logo-coop.jpg b/src/assets/img/post_type/bandi/logo-coop.jpg new file mode 100644 index 0000000..e4dbd8f --- /dev/null +++ b/src/assets/img/post_type/bandi/logo-coop.jpg Binary files differ diff --git a/src/assets/img/post_type/bandi/logo-dams.jpg b/src/assets/img/post_type/bandi/logo-dams.jpg new file mode 100644 index 0000000..e46f8b6 --- /dev/null +++ b/src/assets/img/post_type/bandi/logo-dams.jpg Binary files differ diff --git a/src/assets/img/post_type/bandi/logo-iuav.jpg b/src/assets/img/post_type/bandi/logo-iuav.jpg new file mode 100644 index 0000000..a32deef --- /dev/null +++ b/src/assets/img/post_type/bandi/logo-iuav.jpg Binary files differ diff --git a/src/assets/img/post_type/bandi/logo-patto-lettura.jpg b/src/assets/img/post_type/bandi/logo-patto-lettura.jpg new file mode 100644 index 0000000..ad91399 --- /dev/null +++ b/src/assets/img/post_type/bandi/logo-patto-lettura.jpg Binary files differ diff --git a/src/assets/img/post_type/bandi/logo-regione-er.jpg b/src/assets/img/post_type/bandi/logo-regione-er.jpg new file mode 100644 index 0000000..e4a42f7 --- /dev/null +++ b/src/assets/img/post_type/bandi/logo-regione-er.jpg Binary files differ diff --git a/src/assets/img/post_type/bandi/logo-soffitta.jpg b/src/assets/img/post_type/bandi/logo-soffitta.jpg new file mode 100644 index 0000000..0234932 --- /dev/null +++ b/src/assets/img/post_type/bandi/logo-soffitta.jpg Binary files differ diff --git a/src/assets/img/post_type/bandi/logo-unibo.jpg b/src/assets/img/post_type/bandi/logo-unibo.jpg new file mode 100644 index 0000000..b69ca33 --- /dev/null +++ b/src/assets/img/post_type/bandi/logo-unibo.jpg Binary files differ diff --git a/src/assets/js/blocks/cb.js b/src/assets/js/blocks/cb.js new file mode 100644 index 0000000..786850a --- /dev/null +++ b/src/assets/js/blocks/cb.js @@ -0,0 +1,30 @@ +window.addEventListener('load', (event) => { + + // main elements + const cb = document.getElementById('cb') + const initPanel = document.getElementById('cb-init-panel') + const customPanel = document.getElementById('cb-custom-panel') + + // buttons + const toggleCustomBtn = document.getElementById('cb-custom') + const customBtn = document.getElementById('cb-custom-consent') + const consentBtns = document.querySelectorAll('[data-cb-consent]') + + // toggle custom cookie panel + toggleCustomBtn.addEventListener('click', () => { + initPanel.classList.add('hidden') + customPanel.classList.remove('hidden') + toggleCustomBtn.classList.add('hidden') + customBtn.classList.remove('hidden') + document.getElementById('cb-overlay').classList.add('is-active') + }) + + consentBtns.forEach(button => { + button.addEventListener('click', () => { + cb.classList.add('hidden') + document.getElementById('cb-overlay').classList.remove('is-active') + }) + + }) + +}) diff --git a/src/assets/js/blocks/cookiebanner.js b/src/assets/js/blocks/cookiebanner.js deleted file mode 100644 index 89fb1bd..0000000 --- a/src/assets/js/blocks/cookiebanner.js +++ /dev/null @@ -1,30 +0,0 @@ -window.addEventListener('load', (event) => { - - // main elements - const cookiebanner = document.getElementById('cookiebanner') - const initPanel = document.getElementById('cookiebanner-init-panel') - const customPanel = document.getElementById('cookiebanner-custom-panel') - - // buttons - const toggleCustomBtn = document.getElementById('cookiebanner-custom') - const customBtn = document.getElementById('cookiebanner-custom-consent') - const consentBtns = document.querySelectorAll('[data-cookiebanner-consent]') - - // toggle custom cookie panel - toggleCustomBtn.addEventListener('click', () => { - initPanel.classList.add('hidden') - customPanel.classList.remove('hidden') - toggleCustomBtn.classList.add('hidden') - customBtn.classList.remove('hidden') - document.getElementById('cookiebanner-overlay').classList.add('is-active') - }) - - consentBtns.forEach(button => { - button.addEventListener('click', () => { - cookiebanner.classList.add('hidden') - document.getElementById('cookiebanner-overlay').classList.remove('is-active') - }) - - }) - -}) diff --git a/src/assets/js/blocks/paragraph.js b/src/assets/js/blocks/paragraph.js new file mode 100644 index 0000000..410dfbf --- /dev/null +++ b/src/assets/js/blocks/paragraph.js @@ -0,0 +1,13 @@ +window.addEventListener('load', (event) => { + + const lists = document.querySelectorAll('.block-paragraph ul, .block-paragraph ol') + + lists.forEach(list => { + const items = list.querySelectorAll('li') + items.forEach(item => { + const content = item.innerHTML + item.innerHTML = `${content}` + }) + }) + +}) diff --git a/src/assets/js/site.js b/src/assets/js/site.js index d034a16..8d3ac26 100644 --- a/src/assets/js/site.js +++ b/src/assets/js/site.js @@ -1,4 +1,4 @@ -import './blocks/cookiebanner.js'; +import './blocks/cb.js'; import './blocks/accordion.js'; import './blocks/carousel.js'; import './blocks/cards-grid.js'; @@ -7,6 +7,7 @@ import './blocks/marquee.js'; import './blocks/home-scroll-banner.js'; import './blocks/page-title-banner.js'; +import './blocks/paragraph.js'; import './blocks/secondary-nav.js'; import './blocks/tabs.js'; import './blocks/tease.js'; diff --git a/src/blocks/alert.twig b/src/blocks/alert.twig index 42a98db..bb455e8 100644 --- a/src/blocks/alert.twig +++ b/src/blocks/alert.twig @@ -1,4 +1,4 @@ -
+
{{block.content}}
diff --git a/src/blocks/cards-grid.twig b/src/blocks/cards-grid.twig index 9ddc53c..0159108 100644 --- a/src/blocks/cards-grid.twig +++ b/src/blocks/cards-grid.twig @@ -1,7 +1,12 @@
{% for item in block.content.items %} - {% set card = post_type[~item.post_type~].items[~item.id~] %} + {% if item.post_type == "pages" %} + {% set card = post_type.pages[item.id] %} + {% else %} + {% set card = post_type[~item.post_type~].items[~item.id~] %} + {% endif %} + {% set card = card|merge(item.attr) %}
{% if card.featured_image != null %} @@ -9,7 +14,9 @@ {% endif %}
-

{{card.category}}

+ {% if card.show_category %} +

{{card.category}}

+ {% endif %}
{% if card.category == "Eventi" %}

{{card.date.start|date('d')}} - {{card.date.end|date('d.m.Y')}}

diff --git a/src/blocks/pagination.twig b/src/blocks/pagination.twig index e45a0ac..fddc0ab 100644 --- a/src/blocks/pagination.twig +++ b/src/blocks/pagination.twig @@ -1,12 +1,28 @@ - \ No newline at end of file +{% if not_first_page %} + +{% else %} + +{% endif %} diff --git a/src/layout/archive-contacts.twig b/src/layout/archive-contacts.twig index 66da8f2..6aba061 100644 --- a/src/layout/archive-contacts.twig +++ b/src/layout/archive-contacts.twig @@ -11,4 +11,7 @@ {% include '../blocks/'~block.key~'.twig' with {'block': block } %} {% endfor %} {% block posts %}{% endblock %} + {% block pagination %} + {% include "../blocks/pagination.twig" %} + {% endblock %} {% endblock %} diff --git a/src/layout/partials/cookie-banner.twig b/src/layout/partials/cookie-banner.twig index 7e9b2a4..5f0c119 100644 --- a/src/layout/partials/cookie-banner.twig +++ b/src/layout/partials/cookie-banner.twig @@ -1,18 +1,18 @@ -
-
-
+
+
+

Cookies

Questo sito utilizza i cookies per le statistiche e per agevolare la navigazione: maggiori informazioni sono disponibili nella pagina informativa sulla privacy.

-