Some checks failed
continuous-integration/drone/push Build is failing
- Complete GGZ Ecademy Nuxt.js user portal - Learning products browser and management - Member management interface - User authentication and roles - Multi-language support (NL/EN) - Vuex store for state management - Component-based architecture
26 lines
494 B
Vue
26 lines
494 B
Vue
<template>
|
|
|
|
<component :is="logo" />
|
|
|
|
</template>
|
|
<script>
|
|
export default {
|
|
props: {
|
|
theme: {
|
|
type: String,
|
|
},
|
|
},
|
|
computed: {
|
|
computedTheme() {
|
|
if (this.theme) return this.theme
|
|
if (this.$vuetify.theme.dark) return 'dark'
|
|
return 'light'
|
|
},
|
|
logo() {
|
|
const customerLowercase = process.env.CUSTOMER.toLowerCase()
|
|
return require(`@/assets/img/${customerLowercase}/logo-${this.computedTheme}.svg?inline`)
|
|
},
|
|
},
|
|
}
|
|
</script>
|