Skip to content

Commit e76423b

Browse files
feat(home): add logo img config option ✨
1 parent 28acac1 commit e76423b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/assets/images/logo.png

13.4 KB
Loading

src/config/defaults/development.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
app: {
33
title: 'WAOS Dev',
4+
logo: 'logo.png', // null to use title by default
45
subtitle: 'welcome to demo.',
56
description: 'Vue - Boilerplate Front : Vuetify, Axios, Jest, Cypress (Alpha) ',
67
keywords: 'vue, vuetify, axios, jest, cypress',

src/modules/home/components/home.banner.component.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
<v-theme-provider dark>
1414
<v-container fill-height>
1515
<v-row align="center" class="white--text mx-auto" justify="center">
16-
<v-col class="white--text text-center" cols="12" tag="h1">
16+
<v-col class="white--text text-center" cols="6" tag="h1">
1717
<span
18-
v-if="app.title"
18+
v-if="app.title && !app.logo"
1919
:class="[$vuetify.breakpoint.smAndDown ? 'display-3' : 'display-4']"
2020
class="font-weight-black"
2121
>{{ app.title }}</span
2222
>
23+
<center><v-img v-if="app.logo" :src="require('@/assets/images/' + this.config.app.logo)" aspect-ratio="5" max-width="450"></v-img></center>
2324
<br />
2425
<span
2526
v-if="app.subtitle"

0 commit comments

Comments
 (0)