2020-02-18 08:57:00 +01:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<h2>{{ title }}</h2>
|
|
|
|
<div class="eventMetadataBlock">
|
|
|
|
<b-icon v-if="icon" :icon="icon" size="is-medium" />
|
|
|
|
<p :class="{ 'padding-left': icon }">
|
|
|
|
<slot></slot>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
|
|
import { Component, Prop, Vue } from "vue-property-decorator";
|
|
|
|
|
|
|
|
@Component
|
|
|
|
export default class EventMetadataBlock extends Vue {
|
|
|
|
@Prop({ required: false, type: String }) icon!: string;
|
|
|
|
|
|
|
|
@Prop({ required: true, type: String }) title!: string;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
h2 {
|
|
|
|
font-size: 1.8rem;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #f7ba30;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.eventMetadataBlock {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-bottom: 1.75rem;
|
|
|
|
|
|
|
|
p {
|
2021-04-26 17:27:27 +02:00
|
|
|
overflow: hidden;
|
2020-02-18 08:57:00 +01:00
|
|
|
|
|
|
|
&.padding-left {
|
|
|
|
padding-left: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|