Skip to content

Commit

Permalink
Update map for campaign
Browse files Browse the repository at this point in the history
  • Loading branch information
thomlamb committed Feb 21, 2025
1 parent 9d06dac commit f76a308
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,14 @@ function Map(props) {
},
}}
>
<span className="r-map-popup-title">{mark.title}</span>
<p className="r-map-popup-category">{mark.category && mark.category.title}</p>
<span className="r-map-popup-title">{mark.text}</span>
</Link>
<a
href={`https://www.google.com/maps/dir/?api=1&destination=${mark.fields.rue ? mark.fields.rue + " " + mark.fields.numero : ""}`}
className="r-map-popup-adress"
>
{mark.fields.rue && mark.fields.rue + " " + mark.fields.numero}
</a>
</Popup>
</Marker>
));
Expand Down
1 change: 0 additions & 1 deletion src/imio/smartweb/core/webcomponents/src/utils/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ function Map(props) {
</Popup>
</Marker>
));
console.log(markers);

return (
<div>
Expand Down
16 changes: 15 additions & 1 deletion src/imio/smartweb/core/webcomponents/src/utils/Map.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,18 @@

.leaflet-popup {
padding: 0;
}
}
.r-map-popup-title {
font-weight: bold;
text-decoration: none !important;
}

.r-map-popup-adress {
font-size: 1em;
text-decoration: underline;
display: block;
margin-top: 0.5rem;
color: #202228;
position: relative;
z-index: 1;
}
24 changes: 24 additions & 0 deletions src/imio/smartweb/core/webcomponents/src/utils/translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,30 @@ export default {
de: "Kontakt vorschlagen",
nl: "Contact voorstellen",
},
"projets trouvés": {
en: " Projects found",
fr: " Projets trouvés",
de: " Projekte gefunden",
nl: " Projecten gevonden",
},
"projet trouvé": {
en: " Project found",
fr: " Projet trouvé",
de: " Projekt gefunden",
nl: " Project gevonden",
},
"Aucun projet n'a été trouvé": {
en: "No project was found",
fr: "Aucun projet n'a été trouvé",
de: "Kein Projekt gefunden",
nl: "Geen project gevonden",
},
"Proposer un projet": {
en: "Suggest a project",
fr: "Proposer un projet",
de: "Projekt vorschlagen",
nl: "Project voorstellen",
},
Quand: {
en: "When",
fr: "Quand",
Expand Down

0 comments on commit f76a308

Please sign in to comment.