Skip to content

Commit

Permalink
feat(home): add logo img config option ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed Jul 19, 2020
1 parent 28acac1 commit e76423b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file added src/assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/config/defaults/development.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
app: {
title: 'WAOS Dev',
logo: 'logo.png', // null to use title by default
subtitle: 'welcome to demo.',
description: 'Vue - Boilerplate Front : Vuetify, Axios, Jest, Cypress (Alpha) ',
keywords: 'vue, vuetify, axios, jest, cypress',
Expand Down
5 changes: 3 additions & 2 deletions src/modules/home/components/home.banner.component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
<v-theme-provider dark>
<v-container fill-height>
<v-row align="center" class="white--text mx-auto" justify="center">
<v-col class="white--text text-center" cols="12" tag="h1">
<v-col class="white--text text-center" cols="6" tag="h1">
<span
v-if="app.title"
v-if="app.title && !app.logo"
:class="[$vuetify.breakpoint.smAndDown ? 'display-3' : 'display-4']"
class="font-weight-black"
>{{ app.title }}</span
>
<center><v-img v-if="app.logo" :src="require('@/assets/images/' + this.config.app.logo)" aspect-ratio="5" max-width="450"></v-img></center>
<br />
<span
v-if="app.subtitle"
Expand Down

0 comments on commit e76423b

Please sign in to comment.