restyle of event details
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
|
v-container
|
||||||
//- EVENT PAGE
|
//- EVENT PAGE
|
||||||
//- gancio supports microformats (http://microformats.org/wiki/h-event)
|
//- gancio supports microformats (http://microformats.org/wiki/h-event)
|
||||||
v-card.h-event
|
v-card.h-event
|
||||||
@@ -9,11 +9,11 @@
|
|||||||
EventAdmin(v-if='is_mine' :event='event')
|
EventAdmin(v-if='is_mine' :event='event')
|
||||||
|
|
||||||
//- Title
|
//- Title
|
||||||
.text-h5.text-sm-h4
|
//- .text-h5.text-sm-h4
|
||||||
b.p-name {{event.title}}
|
//- b.p-name {{event.title}}
|
||||||
|
|
||||||
v-row
|
v-row
|
||||||
v-col.col-12.col-lg-9
|
v-col.col-12.col-lg-8
|
||||||
v-img.main_image.mb-3(
|
v-img.main_image.mb-3(
|
||||||
contain
|
contain
|
||||||
:src='imgPath'
|
:src='imgPath'
|
||||||
@@ -27,9 +27,12 @@
|
|||||||
//- v-progress-circular(indeterminate
|
//- v-progress-circular(indeterminate
|
||||||
//- color="grey lighten-5")
|
//- color="grey lighten-5")
|
||||||
|
|
||||||
v-col.col-12.col-lg-3
|
v-col.col-12.col-lg-4
|
||||||
v-card(color='secondary')
|
v-card(color='secondary')
|
||||||
v-card-text.white--text
|
v-card-text.white--text
|
||||||
|
.title.text-h5
|
||||||
|
b.p-name {{event.title}}
|
||||||
|
|
||||||
time.dt-start.text-h5(:datetime='event.start_datetime|unixFormat("YYYY-MM-DD HH:mm")')
|
time.dt-start.text-h5(:datetime='event.start_datetime|unixFormat("YYYY-MM-DD HH:mm")')
|
||||||
v-icon mdi-calendar
|
v-icon mdi-calendar
|
||||||
b.ml-2 {{event|when}}
|
b.ml-2 {{event|when}}
|
||||||
@@ -41,7 +44,23 @@
|
|||||||
p.adr {{event.place.address}}
|
p.adr {{event.place.address}}
|
||||||
|
|
||||||
//- info & actions
|
//- info & actions
|
||||||
v-list
|
v-toolbar
|
||||||
|
v-tooltip(bottom) {{$t('common.copy_link')}}
|
||||||
|
template(v-slot:activator="{on, attrs} ")
|
||||||
|
v-btn.ml-2(large icon v-on='on' color='primary'
|
||||||
|
v-clipboard:success='copyLink'
|
||||||
|
v-clipboard:copy='`${settings.baseurl}/event/${event.id}`')
|
||||||
|
v-icon mdi-content-copy
|
||||||
|
v-tooltip(bottom) {{$t('common.embed')}}
|
||||||
|
template(v-slot:activator="{on, attrs} ")
|
||||||
|
v-btn.ml-2(large icon v-on='on' @click='showEmbed=true' color='primary')
|
||||||
|
v-icon mdi-code-tags
|
||||||
|
v-tooltip(bottom) {{$t('common.add_to_calendar')}}
|
||||||
|
template(v-slot:activator="{on, attrs} ")
|
||||||
|
v-btn.ml-2(large icon v-on='on' color='primary'
|
||||||
|
:href='`/api/event/${event.id}.ics`')
|
||||||
|
v-icon mdi-calendar-export
|
||||||
|
//- v-list
|
||||||
v-list-item(link)
|
v-list-item(link)
|
||||||
v-list-item-content.primary--text.text-uppercase(
|
v-list-item-content.primary--text.text-uppercase(
|
||||||
v-clipboard:success='copyLink'
|
v-clipboard:success='copyLink'
|
||||||
@@ -115,7 +134,7 @@
|
|||||||
:to='`/event/${event.next}`' :disabled='!event.next')
|
:to='`/event/${event.next}`' :disabled='!event.next')
|
||||||
v-icon mdi-arrow-right
|
v-icon mdi-arrow-right
|
||||||
|
|
||||||
v-dialog(v-model='showEmbed')
|
v-dialog(v-model='showEmbed' width='1000px')
|
||||||
EmbedEvent(:event='event' @close='showEmbed=false')
|
EmbedEvent(:event='event' @close='showEmbed=false')
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
@@ -295,12 +314,15 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang='less'>
|
<style lang='less'>
|
||||||
.eventDetail {
|
.title {
|
||||||
.main_image {
|
margin-bottom: 25px;
|
||||||
width: 100%;
|
}
|
||||||
margin: 0 auto;
|
.main_image {
|
||||||
max-height: 83vh;
|
width: 100%;
|
||||||
}
|
margin: 0 auto;
|
||||||
|
max-height: 80vh;
|
||||||
|
border-radius: 5px;
|
||||||
|
transition: max-height .2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user