sforkowany z mirror/social
Add missing EmptyContent.vue component
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>alpha1
rodzic
8638318a96
commit
1929782ba5
|
@ -1,12 +0,0 @@
|
|||
.app-social #emptycontent,
|
||||
.app-social .emptycontent {
|
||||
margin-top: 5vh;
|
||||
}
|
||||
|
||||
.app-social #emptycontent .icon-illustration,
|
||||
.app-social .emptycontent .icon-illustration {
|
||||
height: 256px;
|
||||
width: 256px;
|
||||
margin: 0;
|
||||
opacity: 1;
|
||||
}
|
|
@ -0,0 +1,51 @@
|
|||
<!--
|
||||
- @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 class="icon-illustration" :src="'../' + item.image" alt="" />
|
||||
<h2>{{ item.title }}</h2>
|
||||
<p>{{ item.description }}</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: 'EmptyContent',
|
||||
props: {
|
||||
item: { type: Object, default: () => {} }
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
.emptycontent {
|
||||
margin-top: 5vh;
|
||||
}
|
||||
|
||||
.emptycontent .icon-illustration {
|
||||
height: 256px;
|
||||
width: 256px;
|
||||
margin: 0;
|
||||
opacity: 1;
|
||||
}
|
||||
</style>
|
Ładowanie…
Reference in New Issue