mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
53 lines
1.0 KiB
Vue
53 lines
1.0 KiB
Vue
<template>
|
|
<ds-text class="location-teaser" align="left" color="soft" :size="size">
|
|
<base-icon name="map-marker" data-test="map-marker" />
|
|
<span v-if="venue">{{ venue }}</span>
|
|
<span v-if="venue"> — </span>
|
|
<span v-if="!isOnline">
|
|
{{ locationName }}
|
|
</span>
|
|
<span v-else>
|
|
{{ $t('post.viewEvent.eventIsOnline') }}
|
|
</span>
|
|
</ds-text>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'LocationTeaser',
|
|
props: {
|
|
/**
|
|
* The size used for the text.
|
|
* @options small|base|large|x-large|xx-large|xxx-large
|
|
*/
|
|
size: {
|
|
type: String,
|
|
default: null,
|
|
validator: (value) => {
|
|
return value.match(/(small|base|large|x-large|xx-large|xxx-large)/)
|
|
},
|
|
},
|
|
venue: {
|
|
type: String,
|
|
default: null,
|
|
},
|
|
locationName: {
|
|
type: String,
|
|
default: null,
|
|
},
|
|
isOnline: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.location-teaser {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
</style>
|