From 40ac4246ecc4dc8bec115e13c9e76642f4c50de6 Mon Sep 17 00:00:00 2001 From: sedum Date: Fri, 19 May 2023 18:26:57 +0200 Subject: [PATCH] show map and how to arrive in place page --- components/EventMapDialog.vue | 52 ++++++++--------------------------- components/HowToArriveNav.vue | 46 +++++++++++++++++++++++++++++++ pages/event/_slug.vue | 2 +- pages/place/_place.vue | 15 +++++++++- 4 files changed, 72 insertions(+), 43 deletions(-) create mode 100644 components/HowToArriveNav.vue diff --git a/components/EventMapDialog.vue b/components/EventMapDialog.vue index 378f2719..2cece7d6 100644 --- a/components/EventMapDialog.vue +++ b/components/EventMapDialog.vue @@ -2,64 +2,34 @@ v-card v-container div(:style="{'height': mapHeight}") - Map.mt-4(:place='event.place' :height='mapHeight' ) + Map(:place='place' :height='mapHeight' ) v-row.my-4.d-flex.flex-column.align-center.text-center .text-h6 v-icon(v-text='mdiMapMarker' ) - nuxt-link.ml-2.text-decoration-none(v-text="event.place.name" :to='`/place/${event.place.name}`') - .mx-2(v-text="`${event.place.address}`") - v-card-actions - v-row(color='primary') - //- p.my-4(v-text="$t('common.getting_there')") - v-btn.ml-2(icon large :href="routeBy('foot')") - v-icon(v-text='mdiWalk') - v-btn.ml-2(icon large :href="routeBy('bike')") - v-icon(v-text='mdiBike') - v-btn.ml-2(icon large :href="routeBy('car')") - v-icon(v-text='mdiCar') + nuxt-link.ml-2.text-decoration-none(v-text="place.name" :to='`/place/${place.name}`') + .mx-2(v-text="`${place.address}`") + v-card-actions.py-4 + HowToArriveNav v-spacer v-btn(@click='$emit("close")' outlined) Close diff --git a/components/HowToArriveNav.vue b/components/HowToArriveNav.vue new file mode 100644 index 00000000..37107525 --- /dev/null +++ b/components/HowToArriveNav.vue @@ -0,0 +1,46 @@ + + diff --git a/pages/event/_slug.vue b/pages/event/_slug.vue index c5d41b2c..b5f9a5b4 100644 --- a/pages/event/_slug.vue +++ b/pages/event/_slug.vue @@ -177,7 +177,7 @@ v-container#event.h-event.pa-2.pa-sm-2(itemscope itemtype="https://schema.org/Ev EmbedEvent(:event='event' @close='showEmbed=false') v-dialog(v-show='settings.allow_geolocation && event.place.latitude && event.place.longitude' v-model='mapModal' :fullscreen='$vuetify.breakpoint.xsOnly' destroy-on-close) - EventMapDialog(:event='event' @close='mapModal=false') + EventMapDialog(:place='event.place' @close='mapModal=false')