Skip to content

Commit 089e8d4

Browse files
feat: enhance map popup data (#390)
1 parent 861fa01 commit 089e8d4

File tree

3 files changed

+47
-5
lines changed

3 files changed

+47
-5
lines changed

css/main.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,26 @@ span.reason {
8484
#map {
8585
height: 350px;
8686
}
87+
#map .location-popup p {
88+
margin: 0;
89+
}
8790
#map .location-marker {
8891
font-size: 16px;
8992
}
93+
#map .location-sponsors {
94+
font-size: 13px;
95+
color: gray;
96+
}
97+
#map p.location-meetup {
98+
font-size: 13px;
99+
margin-top: 4px;
100+
}
101+
#map .location-meetup a {
102+
display: flex;
103+
align-items: center;
104+
gap: 4px;
105+
color: #F64060;
106+
}
107+
#map .location-meetup img {
108+
height: 26px;
109+
}

pictures/meetup.svg

Lines changed: 10 additions & 0 deletions
Loading

scripts/locations.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ $(document).ready(function () {
88

99
var markers = locations.map((location) =>
1010
L.marker([location.lat, location.lon]).bindPopup(
11-
'<span class="location-marker">' + location.venue + "</span>"
11+
'<div class="location-popup">' +
12+
'<p class="location-marker">' + location.title + '</p>' +
13+
'<p class="location-sponsors">sponsored by ' + location.sponsors.join(', ') + '</p>' +
14+
'<p class="location-meetup"><a href="' + location.link + '"><img src="../pictures/meetup.svg" alt=""> Meetup group</p>' +
15+
'</div>'
1216
)
1317
);
1418
markers.forEach((marker) => {
@@ -21,22 +25,30 @@ $(document).ready(function () {
2125

2226
var locations = [
2327
{
24-
venue: "Quatico Solutions AG",
28+
title: "Hackergarten Zürich",
29+
sponsors: ["Quatico Solutions AG"],
30+
link: "https://www.meetup.com/hackergarten-zurich/",
2531
lat: 47.3925495,
2632
lon: 8.507826793619888,
2733
},
2834
{
29-
venue: "codecentric AG",
35+
title: "Hackergarten Stuttgart",
36+
sponsors: ["codecentric AG"],
37+
link: "https://www.meetup.com/de-DE/hackergarten-stuttgart/",
3038
lat: 48.72592,
3139
lon: 9.1144,
3240
},
3341
{
34-
venue: "CSS Versicherung",
42+
title: "Hackergarten Luzern",
43+
sponsors: ["CSS Versicherung"],
44+
link: "https://www.meetup.com/hackergarten-luzern/",
3545
lat: 47.0435895,
3646
lon: 8.315118,
3747
},
3848
{
39-
venue: "Karakun AG",
49+
title: "Hackergarten Basel",
50+
sponsors: ["Karakun AG"],
51+
link: "https://www.meetup.com/hackergarten-basel/",
4052
lat: 47.5487602,
4153
lon: 7.5879349,
4254
},

0 commit comments

Comments
 (0)