Add initial "logo" component
still just proving some concepts at this point
This commit is contained in:
parent
41e65b33c8
commit
7bdaeee691
7 changed files with 78 additions and 9 deletions
27
src/components/logo/ByjoveLogo.vue
Normal file
27
src/components/logo/ByjoveLogo.vue
Normal 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>
|
6
src/components/logo/index.js
Normal file
6
src/components/logo/index.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
import Vue from 'vue'
|
||||
import ByjoveLogo from './ByjoveLogo'
|
||||
|
||||
Vue.component('byjove-logo', ByjoveLogo)
|
||||
|
||||
export default ByjoveLogo
|
Loading…
Add table
Add a link
Reference in a new issue