Add initial "logo" component

still just proving some concepts at this point
This commit is contained in:
Lance Edgar 2019-11-06 00:10:26 -06:00
parent 41e65b33c8
commit 7bdaeee691
7 changed files with 78 additions and 9 deletions

View file

@ -0,0 +1,27 @@
<template>
<div class="logo">
<img v-if="appsettings.logo" :alt="alternateText" :src="appsettings.logo" />
<img v-if="!appsettings.logo" :alt="alternateText" src="../../assets/logo.png" />
</div>
</template>
<script>
export default {
name: 'ByjoveLogo',
props: {
appsettings: Object,
},
computed: {
alternateText: function() {
return this.appsettings.systemTitle + " logo"
},
},
}
</script>
<style scoped>
img {
max-height: 200px;
max-width: 300px;
}
</style>

View file

@ -0,0 +1,6 @@
import Vue from 'vue'
import ByjoveLogo from './ByjoveLogo'
Vue.component('byjove-logo', ByjoveLogo)
export default ByjoveLogo