Add meetup map

This commit is contained in:
Dennis Reimann
2021-09-20 16:30:59 +02:00
parent acacb2b669
commit 74eb67bbea
7 changed files with 117 additions and 45 deletions

View File

@@ -10,6 +10,7 @@
@import 'sections/home.css';
@import 'sections/podcast.css';
@import 'sections/team.css';
@import 'sections/meetups.css';
@import 'sections/media.css';
@import 'sections/spenden.css';
@import 'sections/soundboard.css';

View File

@@ -0,0 +1,27 @@
#meetups {
@media (--up_to_L) {
& #map {
& img {
display: none;
}
}
}
@media (--L_and_up) {
& #map {
position: relative;
& img {
display: block;
width: 100%;
}
& li {
position: absolute;
& .region {
display: none;
}
}
}
}
}

View File

@@ -16,10 +16,14 @@ block main
Die Vorlage für das Telegram-Gruppenbild findest du im [Media Kit](/media).
h2 Einundzwanzig Meetups
ul.meetups
each m in meetups
li
a(href=m.telegram target="_blank" rel="nofollow noopener")= m.name.replace('Einundzwanzig Meetup ', '')
if !m.name.endsWith(m.region)
= " - "
span.region= m.region
#map
ul.meetups
each m in meetups
li(style=`top:${m.top}%;left:${m.left}%;`)
a(href=m.telegram target="_blank" rel="nofollow noopener")= m.name.replace('Einundzwanzig Meetup ', '')
if !m.name.endsWith(m.region)
span.region
= " - "
= m.region
img(src=assetPath('/img/dach.svg') alt="DE, AT, CH")