diff --git a/data.json b/data.json index f7eae18..5b08f41 100644 --- a/data.json +++ b/data.json @@ -191,7 +191,7 @@ }, { "name": "Sedi", - "url": "#", + "url": "/pages/ateneo/sedi.html", "children": [ { "name": "Percorsi accessibili", @@ -3749,6 +3749,31 @@ "filename": "petit-tour", "path": "/post_type/eventi" } + }, + { + "title": "Sedi", + "url": "/pages/ateneo/sedi.html", + "blocks": [ + { + "key": "breadcrumbs", + "post_type": "pages", + "parents": [8] + }, + { + "key": "map" + }, + { + "key": "query-loop", + "classes": "", + "type": "tease", + "inner_classes": "tease-wrapper--tease-lg", + "query": { + "post_type": "buildings", + "size": "lg", + "items": [9,10] + } + } + ] } ], "news": { @@ -7411,7 +7436,40 @@ "phone": "041 531 2988", "links": null, "terms": [0,1] + }, + { + "title": "Tolentini", + "excerpt": "Santa Croce 191, campazzo dei Tolentini, adiacente alla Chiesa di San Nicola di Tolentino, è la sede centrale dell'ateneo, dove si trovano l'aula magna, la biblioteca e i principali uffici amministrativi: il rettorato, la direzione generale, il dipartimento di culture del progetto e molti altri servizi. L’area d’ingresso, con il suo iconico portale, è stata progettata da Carlo Scarpa nel 1985.", + "featured_image": { + "filename": "tolentini", + "path": "/post_type/buildings/", + "alt": "foto sede Tolentini" + }, + "url": "#", + "subtitle": "Fax", + "text": null, + "email": null, + "phone": "041 531 2988", + "links": null, + "terms": [0,1] + }, + { + "title": "Palazzo Badoer", + "excerpt": "Si trova a San Polo 2468 ed è sede storica della Scuola di dottorato Iuav. Ospita inoltre l'attività didattica dei master, il centro studi ClassicA, l'aula Tafuri, il laboratorio Media Lab Mela. Offre molti spazi utilizzabili per eventi.", + "featured_image": { + "filename": "badoer", + "path": "/post_type/buildings/", + "alt": "foto sede Badoer" + }, + "url": "#", + "subtitle": "Fax", + "text": null, + "email": null, + "phone": "041 531 2988", + "links": null, + "terms": [0,1] } + ] }, "people": { diff --git a/package-lock.json b/package-lock.json index 2bc08d6..a4e98ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "frontend-boilerplate", "version": "1.0.0", "dependencies": { + "leaflet": "^1.9.4", "swiper": "^11.0.5" }, "devDependencies": { @@ -7439,6 +7440,11 @@ "node": ">= 0.10" } }, + "node_modules/leaflet": { + "version": "1.9.4", + "resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.9.4.tgz", + "integrity": "sha512-nxS1ynzJOmOlHp+iL3FyWqK89GtNL8U8rvlMOsQdTTssxZwCXh8N2NB3GDQOL+YR3XnWyZAxwQixURb+FA74PA==" + }, "node_modules/liftoff": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-3.1.0.tgz", @@ -21262,6 +21268,11 @@ "flush-write-stream": "^1.0.2" } }, + "leaflet": { + "version": "1.9.4", + "resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.9.4.tgz", + "integrity": "sha512-nxS1ynzJOmOlHp+iL3FyWqK89GtNL8U8rvlMOsQdTTssxZwCXh8N2NB3GDQOL+YR3XnWyZAxwQixURb+FA74PA==" + }, "liftoff": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-3.1.0.tgz", diff --git a/package.json b/package.json index 5e31f48..6feef6e 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "export-tailwind-config": "tailwindcss-export-config --config=tailwind.config.js --destination=static/src/assets/scss/config/_vars --format=scss --flat=true" }, "dependencies": { + "leaflet": "^1.9.4", "swiper": "^11.0.5" } } diff --git a/src/assets/css/components/index.css b/src/assets/css/components/index.css index 3b07143..aced15d 100644 --- a/src/assets/css/components/index.css +++ b/src/assets/css/components/index.css @@ -13,6 +13,7 @@ @import "header.css"; @import "inputs.css"; @import "logo.css"; +@import "map.css"; @import "marquee-images.css"; @import "marquee-posts-row.css"; @import "mobilemenu.css"; diff --git a/src/assets/css/components/map.css b/src/assets/css/components/map.css new file mode 100644 index 0000000..9ea347c --- /dev/null +++ b/src/assets/css/components/map.css @@ -0,0 +1,20 @@ +.map-container{ + @apply aspect-square md:aspect-[4/3] lg:md:aspect-[16/9] mb-lg; + .map{ + @apply h-full z-10; + .leaflet-popup{ + .leaflet-popup-content-wrapper{ + @apply shadow-none rounded-none; + .leaflet-popup-content{ + @apply m-2.5 font-sans; + a{ + @apply text-black underline; + } + } + } + .leaflet-popup-tip-container, .leaflet-popup-close-button{ + @apply hidden; + } + } + } +} \ No newline at end of file diff --git a/src/assets/css/components/tease.css b/src/assets/css/components/tease.css index cbabab4..73bc7a1 100644 --- a/src/assets/css/components/tease.css +++ b/src/assets/css/components/tease.css @@ -30,7 +30,7 @@ .tease-main-header{ @apply py-3 flex justify-between text-size-sm text-grey-300; span{ - &:last-child{ + &:last-child:not(:first-child){ @apply ml-2; } } diff --git a/src/assets/img/post_type/buildings/badoer.jpg b/src/assets/img/post_type/buildings/badoer.jpg new file mode 100644 index 0000000..9f1434a --- /dev/null +++ b/src/assets/img/post_type/buildings/badoer.jpg Binary files differ diff --git a/src/assets/img/post_type/buildings/tolentini.jpg b/src/assets/img/post_type/buildings/tolentini.jpg new file mode 100644 index 0000000..c884635 --- /dev/null +++ b/src/assets/img/post_type/buildings/tolentini.jpg Binary files differ diff --git a/src/assets/js/vendor/leaflet/CHANGELOG.md b/src/assets/js/vendor/leaflet/CHANGELOG.md new file mode 100644 index 0000000..477da2b --- /dev/null +++ b/src/assets/js/vendor/leaflet/CHANGELOG.md @@ -0,0 +1,2191 @@ +Leaflet Changelog +================= + +(all changes without author notice are by [@mourner](https://github.com/mourner)) + +## 1.9.4 (2023-05-18) + +### 🐞 Bug fixes + +- Fix tile gaps in Chromium-based browsers ([#8891](https://github.com/Leaflet/Leaflet/pull/8891) by [@IvanSanchez](https://github.com/IvanSanchez)) +- Fix vector drifts when `zoomAnimation` is `false` and zooming via `flyTo` or pinch ([#8794](https://github.com/Leaflet/Leaflet/pull/8794) by [@plainheart](https://github.com/plainheart)) +- Ensure `toGeoJSON()` still works with an empty array ([#8737](https://github.com/Leaflet/Leaflet/pull/8737) by [@Falke-Design](https://github.com/Falke-Design)) +- Ensure `LineUtil` and `PolyUtil` only iterate over array values and not properties ([#8840](https://github.com/Leaflet/Leaflet/pull/8840) by [@Falke-Design](https://github.com/Falke-Design)) +- Fix rounding errors in center calculation of `LineUtil` and `PolyUtil` for small layers ([#8784](https://github.com/Leaflet/Leaflet/pull/8784) by [@Falke-Design](https://github.com/Falke-Design)) +- Prevent unwanted layer toggle while expanding the Layers control on mobile ([#8910](https://github.com/Leaflet/Leaflet/pull/8910) by [@Falke-Design](https://github.com/Falke-Design)) +- Fix an error when a focusing on a `Tooltip`-bound `FeatureGroup` that contains a layer without a `getElement` method ([#8890](https://github.com/Leaflet/Leaflet/pull/8890) by [@Falke-Design](https://github.com/Falke-Design)) +- Fix `Tooltip` is not showing when loaded dynamically while moving the map ([#8672](https://github.com/Leaflet/Leaflet/pull/8672) by [@theGOTOguy](https://github.com/theGOTOguy)) +- Fix `noMoveStart` option not applying to `fitBounds` ([#8911](https://github.com/Leaflet/Leaflet/pull/8911) by [@AbdullahSohail-SE](https://github.com/AbdullahSohail-SE)) +- Fix outlines showing up when interacting with the map on Safari 16.4+ ([#8917](https://github.com/Leaflet/Leaflet/pull/8917) by [@jonkoops](https://github.com/jonkoops)) + +## 1.9.3 (2022-11-18) + +### 🙌 Accessibility +- Expand the layers control on Enter keydown ([#8556](https://github.com/Leaflet/Leaflet/pull/8556) by [@larsgw](https://github.com/larsgw)) +- Align the scale control's alpha transparency with the attribution control ([#8547](https://github.com/Leaflet/Leaflet/pull/8547) by [@Malvoz](https://github.com/Malvoz)) +- Allow the scale control's text to overflow the container ([#8548](https://github.com/Leaflet/Leaflet/pull/8548) by [@Malvoz](https://github.com/Malvoz)) + +### 🐞 Bug fixes +- Remove internal usage of `L` global ([#8536](https://github.com/Leaflet/Leaflet/pull/8536) by [@mourner](https://github.com/mourner)) +- Fix intermittent wobble when using `setMaxBounds(map.getBounds())` ([#8534](https://github.com/Leaflet/Leaflet/pull/8534) by [@rjackson](https://github.com/rjackson)) +- Ensure that `latLngsToCoords()` does not return references passed to it ([#7344](https://github.com/Leaflet/Leaflet/pull/7344) by [@marlo22](https://github.com/marlo22])) +- Ensure `worldCopyJump()` behavior is consistent when using a keyboard ([#8562](https://github.com/Leaflet/Leaflet/pull/8562) by [@Falke-Design](https://github.com/Falke-Design)) +- Ensure correct target is used for the `popupopen` event ([#8571](https://github.com/Leaflet/Leaflet/pull/8571) by [@Belair34](https://github.com/Belair34)) +- Prevent recursion when panning a `Popup` ([#8520](https://github.com/Leaflet/Leaflet/pull/8520) by [@rjackson](https://github.com/rjackson)) +- Support CSS [`position: sticky`](https://developer.mozilla.org/en-US/docs/Web/CSS/position#sticky) for map container ([#8550](https://github.com/Leaflet/Leaflet/pull/8550) by [@tmiaa](https://github.com/tmiaa)) + +## 1.9.2 (2022-10-04) + +### 🐞 Bug fixes +* ⚠️ Drop ESM entrypoint from package because of numerous compatibility issues with plugins (import `leaflet/dist/leaflet-src.esm.js` explicitly instead to take advantage; ESM by default will come in v2) ([#8493](https://github.com/Leaflet/Leaflet/pull/8493) by [@jonkoops](https://github.com/jonkoops)) +* Fix a bug where tooltips could throw an error with canvas renderer ([#8498](https://github.com/Leaflet/Leaflet/pull/8498) by [@Falke-Design](https://github.com/Falke-Design)) +* Fix a bug with incorrect marker popup location when there are multiple markers registered to the same popup ([#8523](https://github.com/Leaflet/Leaflet/pull/8523) by [@raychanks](https://github.com/raychanks)). + +### 🧪 Tests +* Fix unit tests suite stopping abruptly on Mac ([#8478](https://github.com/Leaflet/Leaflet/pull/8478)) + +### 📝 Docs +* Fix `Bounds` `equals` parameters in docs ([#8500](https://github.com/Leaflet/Leaflet/pull/8500) by [@Falke-Design](https://github.com/Falke-Design)) + +## 1.9.2 (2022-10-04) + +### 🐞 Bug fixes +* ⚠️ Drop ESM entrypoint from package because of numerous compatibility issues with plugins (import `leaflet/dist/leaflet-src.esm.js` explicitly instead to take advantage; ESM by default will come in v2) ([#8493](https://github.com/Leaflet/Leaflet/pull/8493) by [@jonkoops](https://github.com/jonkoops)) +* Fix a bug where tooltips could throw an error with canvas renderer ([#8498](https://github.com/Leaflet/Leaflet/pull/8498) by [@Falke-Design](https://github.com/Falke-Design)) +* Fix a bug with incorrect marker popup location when there are multiple markers registered to the same popup ([#8523](https://github.com/Leaflet/Leaflet/pull/8523) by [@raychanks](https://github.com/raychanks)). + +### 🧪 Tests +* Fix unit tests suite stopping abruptly on Mac ([#8478](https://github.com/Leaflet/Leaflet/pull/8478)) + +### 📝 Docs +* Fix `Bounds` `equals` parameters in docs ([#8500](https://github.com/Leaflet/Leaflet/pull/8500) by [@Falke-Design](https://github.com/Falke-Design)) + +## 1.9.1 (2022-09-23) +* Fix `Events` `listens` not propagating to parent objects, in particular fixing compatibility with **Leaflet.markercluster** plugin ([#8211](https://github.com/Leaflet/Leaflet/pull/8457) by [@Falke-Design](https://github.com/Falke-Design)) + +## 1.9.0 (2022-09-21) + +### ⚠️ Breaking Changes +* Update `color-adjust` to `print-color-adjust` ([#8211](https://github.com/Leaflet/Leaflet/pull/8211) by [@Malvoz](https://github.com/Malvoz)) + +### ❇️ API changes +* Add `content` and `latLng` options to `Popup` / `Tooltip` constructors ([#7783](https://github.com/Leaflet/Leaflet/pull/7783) by [@Falke-Design](https://github.com/Falke-Design)) +* Extend `Bounds` to have the same functions as `LatLngBounds` ([#7882](https://github.com/Leaflet/Leaflet/pull/7882) by [@Falke-Design](https://github.com/Falke-Design)) + +### ✨ Improvements +* Expose ESM entrypoint with Leaflet global ([#8329](https://github.com/Leaflet/Leaflet/pull/8329) by [@jonkoops](https://github.com/Falke-Design)) +* Update `getCenter()` calculation and move it to `PolyUtil` / `LineUtil` ([#7603](https://github.com/Leaflet/Leaflet/pull/7603) by [@Falke-Design](https://github.com/Falke-Design)) +* Remove border styles in overflowing popups ([#8260](https://github.com/Leaflet/Leaflet/pull/8260) by [@Malvoz](https://github.com/Malvoz)) +* Fix "listener not found" warning when setting `maxBounds` ([#8168](https://github.com/Leaflet/Leaflet/pull/8168)) +* Remove "listener not found" warning ([#8234](https://github.com/Leaflet/Leaflet/pull/8234) by [@Falke-Design](https://github.com/Falke-Design)) +* Extend `Events.listens` to search for specific function ([#8161](https://github.com/Leaflet/Leaflet/pull/8161) by [@Falke-Design](https://github.com/Falke-Design)) +* Add `noMoveStart` option to `panTo` ([#6685](https://github.com/Leaflet/Leaflet/pull/6685) by [@Chivano](https://github.com/Chivano)) +* Add `FeatureCollection` handling to `geometryToLayer` ([#8163](https://github.com/Leaflet/Leaflet/pull/8163) by [@Falke-Design](https://github.com/Falke-Design)) + +### 🙌 Accessibility +* Improve `Tooltip` accessibility (focus and voice over) ([#8247](https://github.com/Leaflet/Leaflet/pull/8247) by [@alekzvik](https://github.com/alekzvik)) +* Fix links in accessibility guide ([#8198](https://github.com/Leaflet/Leaflet/pull/8198) by [@Malvoz](https://github.com/Malvoz)) +* Remove redundant `role="presentation"` from image tiles ([#8172](https://github.com/Leaflet/Leaflet/pull/8172) by [@Malvoz](https://github.com/Malvoz)) + +### 🐞 Bug fixes +* Fix invalid GeoJSON on unbalanced arrays ([#7637](https://github.com/Leaflet/Leaflet/pull/7637) by [@steff1986](https://github.com/steff1986)) +* Fix 2 step zooming while using mouse wheel scrolling ([#8298](https://github.com/Leaflet/Leaflet/pull/8298) by [@Falke-Design](https://github.com/Falke-Design)) +* Fix wrong assigned parameter while calling `map._move` over `requestAnimFrame` ([#8328](https://github.com/Leaflet/Leaflet/pull/8328) by [@AMDvsTMD](https://github.com/AMDvsTMD)) +* Fix `_isClickDisabled` to not throw no error if parent is removed from DOM ([#8288](https://github.com/Leaflet/Leaflet/pull/8288) by [@Falke-Design](https://github.com/Falke-Design)) +* Fix `DomEvent.DoubleTap` to ignore clicks on `