Последняя версия с сервера прошлого разработчика
This commit is contained in:
28
resources/js/Shared/Misc/UserBanner.vue
Executable file
28
resources/js/Shared/Misc/UserBanner.vue
Executable file
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div
|
||||
v-if="user.banner_path"
|
||||
class="bg-cover bg-center"
|
||||
:style="setBackground()"
|
||||
></div>
|
||||
<div
|
||||
v-else
|
||||
class="bg-cover bg-center"
|
||||
></div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
user: Object,
|
||||
size: {
|
||||
type: String,
|
||||
default: 'small',
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
setBackground() {
|
||||
return `background-image: url(/img/${this.user.banner_path}?p=${this.size});`;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user