social/src/components/EmptyContent.vue

60 wiersze
1.4 KiB
Vue

<!--
- @copyright Copyright (c) 2018 Jan-Christoph Borchardt (https://jancborchardt.net)
-
- @author Jan-Christoph Borchardt (https://jancborchardt.net)
-
- @license GNU AGPL version 3 or any later version
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as
- published by the Free Software Foundation, either version 3 of the
- License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU Affero General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-->
<template>
<div class="emptycontent">
<img v-if="item.image"
:src="imageUrl"
class="icon-illustration"
alt="">
<h2>{{ item.title }}</h2>
<p>{{ item.description }}</p>
</div>
</template>
<script>
export default {
name: 'EmptyContent',
props: {
item: { type: Object, default: () => {} },
},
computed: {
imageUrl() {
return OC.linkTo('social', this.item.image)
},
},
}
</script>
<style scoped>
.emptycontent {
margin-top: 5vh;
}
.emptycontent .icon-illustration {
height: 256px;
width: 256px;
margin: 0;
opacity: 1;
}
</style>