diff --git a/HOW_TO_MAP.md b/HOW_TO_MAP.md index 7d25b7d..8e4d0cb 100644 --- a/HOW_TO_MAP.md +++ b/HOW_TO_MAP.md @@ -60,4 +60,11 @@ Tout espace qui est en mixité choisie sans mec-cis Les endroits oú l'on peut jouer au badmington -* **badmington**=true (booleen) \ No newline at end of file +* **badmington**=true (booleen) + +## Zone interdite ou protégées + +Les endorit oú il ne faut pas aller + +* **zone-interdite**=true +* **description-interdiction** Une longue description qui remplacera le générique "Veuillez ne pas circuler ici" (texte) \ No newline at end of file diff --git a/couches/poubelles.geojson b/couches/poubelles.geojson index ac99b1f..52058e5 100644 --- a/couches/poubelles.geojson +++ b/couches/poubelles.geojson @@ -6,6 +6,6 @@ { "type": "Feature", "properties": { "tout-venant": true, "recyclage": false, "compost caca": false, "compost vegetal": false, "poubelle": true }, "geometry": { "type": "Point", "coordinates": [ -2.091632273753862, 47.541964182561429 ] } }, { "type": "Feature", "properties": { "tout-venant": false, "recyclage": true, "compost caca": false, "compost vegetal": false, "poubelle": true }, "geometry": { "type": "Point", "coordinates": [ -2.091609674840965, 47.541963379645793 ] } }, { "type": "Feature", "properties": { "tout-venant": false, "recyclage": false, "compost caca": true, "compost vegetal": false, "poubelle": true }, "geometry": { "type": "Point", "coordinates": [ -2.091148822106654, 47.542307623733166 ] } }, -{ "type": "Feature", "properties": { "tout-venant": false, "recyclage": false, "compost caca": false, "compost vegetal": true, "poubelle": false }, "geometry": { "type": "Point", "coordinates": [ -2.091149910988561, 47.542277486881417 ] } } +{ "type": "Feature", "properties": { "tout-venant": false, "recyclage": false, "compost caca": false, "compost vegetal": true, "poubelle": true }, "geometry": { "type": "Point", "coordinates": [ -2.091149910988561, 47.542277486881417 ] } } ] } diff --git a/css/style.css b/css/style.css index c7a4b23..ca7547c 100644 --- a/css/style.css +++ b/css/style.css @@ -200,7 +200,7 @@ body > hr { grid-template-rows: 1fr; } -#search-section:has( ~ #result-panel.empty) { +#search-section:has( ~ dialog:not([open])) { position: fixed; bottom: 5px; left: 5px; @@ -240,6 +240,38 @@ body > hr { /* PANEL */ +#result-panel-dialog { + display: block; + position: relative; + padding: 0; + margin: 0; + border: none; + width: 100%; +} + +#result-panel-dialog:not([open]) { + display: none; +} + +#result-panel-dialog #close-result-panel-btn { + position: sticky; + top: 0px; + right: 0px; + padding: 15px; + border: none; + background: none; + cursor: pointer; + z-index: 100; + margin-left: auto; + margin-bottom: calc( ( 1.5em + 30px ) * -1); + display: block; +} + +#close-result-panel-btn img { + height: 1.5em; + display: block; +} + #result-panel { background: black; border-image: url("../assets/neon-border-image.svg") 12; @@ -248,11 +280,6 @@ body > hr { color: white; } -#result-panel.empty, -#result-panel:empty{ - display:none; -} - #result-panel > * { padding: 1em; margin: 0; @@ -327,4 +354,109 @@ camp-feature-short-header .feature-location { camp-feature { min-height: 25vh; + font-family: sans-serif; } + +camp-feature .feature-header { + margin-bottom: 1.5em; +} + +camp-feature .feature-widgets { + display: grid; + grid-template-columns: max-content minmax(50%, 1fr); + grid-auto-rows: max-content; + grid-auto-flow: column; +} + +camp-feature .feature-widgets > * { + grid-column: 1 / 3; + margin-bottom: 2em; +} + +camp-feature .widget > :first-child { + margin-top: 0; +} + +camp-feature .widget > :last-child { + margin-bottom: 0; +} + +camp-feature .widget h2 { + font-size: 1em; + text-transform: uppercase; + margin-bottom: 1ex; +} + +camp-feature .widget p { + margin-top: 1ex; + margin-bottom: 1ex; + line-height: 1.5; +} + +.table-widget { + display: grid; + grid-template-columns: max-content minmax(50%, 1fr); + column-gap: 1ex; + row-gap: 1ex; +} + +camp-feature .table-widget { + grid-template-columns: subgrid; + grid-column: 1 / 3; +} + +.table-widget > * { + margin: 0 !important; +} + +.table-widget > * { + grid-column: 2; +} + +.table-widget > h2 { + grid-column: 1; +} + +camp-feature .table-widget > h2 { + text-transform: none; +} + +.box-widget { + --box-color: white; + border: solid 3px var(--box-color); + padding: 10px; + box-sizing: border-box; +} + +.box-widget h2 { + float: left; + background-color: var(--box-color); + color: white; + padding: 5px 10px; + display: block; + width: fit-content; + position: relative; + font-size: 1em; +} + +.box-widget p:first-of-type { + margin-top: 0; +} + +.box-widget h2::after { + content: ""; + width: 0; height: 0; + border-style: solid; + border-width: calc(1em + 17.667px) calc(1em + 10px) 0px 0px; + border-color: var(--box-color) transparent transparent transparent; + position: absolute; + right: calc((1em + 9px) * -1); + top: 0; +} + +camp-feature .box-widget h2:first-child, +.box-widget h2 { + margin-left: -10px; + margin-top: -10px; + margin-right: 2em; +} \ No newline at end of file diff --git a/css/widgets.css b/css/widgets.css new file mode 100644 index 0000000..e6f0fdf --- /dev/null +++ b/css/widgets.css @@ -0,0 +1,12 @@ +:root { + --verboten-color:#c51a00; + --mixite-choisie-color: #640aa4; +} + +.zone-interdite-widget { + --box-color: var(--verboten-color); +} + +.mixite-choisie-widget { + --box-color: var(--mixite-choisie-color); +} \ No newline at end of file diff --git a/icons/close.svg b/icons/close.svg new file mode 100644 index 0000000..fd47460 --- /dev/null +++ b/icons/close.svg @@ -0,0 +1,53 @@ + + + + diff --git a/icons/poubelle-caca.svg b/icons/poubelle-caca.svg new file mode 100644 index 0000000..783944a --- /dev/null +++ b/icons/poubelle-caca.svg @@ -0,0 +1,88 @@ + + + + diff --git a/icons/poubelle-compost.svg b/icons/poubelle-compost.svg new file mode 100644 index 0000000..4fc1325 --- /dev/null +++ b/icons/poubelle-compost.svg @@ -0,0 +1,89 @@ + + + + diff --git a/icons/poubelle-recyclable.svg b/icons/poubelle-recyclable.svg new file mode 100644 index 0000000..108f878 --- /dev/null +++ b/icons/poubelle-recyclable.svg @@ -0,0 +1,97 @@ + + + + diff --git a/icons/poubelle.svg b/icons/poubelle.svg new file mode 100644 index 0000000..60a2ee2 --- /dev/null +++ b/icons/poubelle.svg @@ -0,0 +1,83 @@ + + + + diff --git a/index.html b/index.html index 6c88e83..bde105d 100644 --- a/index.html +++ b/index.html @@ -6,6 +6,7 @@