Skip to content

Commit 992eaa1

Browse files
committed
optional footer, background removed from logo
1 parent d4f6d71 commit 992eaa1

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

src/routes/main/components/Footnote.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
2-
<div>
2+
<div v-if="$store.state.footer">
33
<v-footer class="primary pa-3 white--text" app>
44
<v-spacer></v-spacer>
5-
<div>© {{ new Date().getFullYear() }}</div>
5+
<div>{{ $store.state.footerText }}</div>
66
</v-footer>
77
</div>
88
</template>

src/routes/main/components/Toolbar.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
<router-link to="/home">{{$store.state.title}}</router-link>
55
</v-toolbar-title>
66
<v-spacer></v-spacer>
7-
<span class="logo-background">
8-
<img class="logo" :src="require(`@/assets/images/${$store.state.logoSm}`)">
9-
</span>
7+
<img class="logo" :src="require(`@/assets/images/${$store.state.logoSm}`)">
108
<v-spacer></v-spacer>
119
<v-menu menu-props="bottom" left v-if="$store.state.localeSelectable">
1210
<v-btn icon slot="activator" dark>
@@ -75,9 +73,6 @@
7573
.logo {
7674
height:50px;
7775
width:auto;
78-
background-color: rgba(255,255,255,0.2);
79-
border-radius: 35px;
80-
padding: 5px 25px 5px 25px;
8176
}
8277
@media (max-width: 699px) {
8378
.logo {

src/store/state.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ let state = {
2525
uploadPath: configApi.url + configApi.path.default + '/' + configApi.path.upload,
2626
logoLg: configParams.logoLg,
2727
logoSm: configParams.logoSm,
28-
sidebarItems: configParams.sidebarItems
28+
sidebarItems: configParams.sidebarItems,
29+
footer: configParams.footer,
30+
footerText: configParams.footerText
2931
}
3032

3133
export default state

templates/config/params.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export const configParams = {
2525
success: '#4CAF50',
2626
warning: '#FFC107'
2727
},
28+
footer: false,
29+
footerText: '© 2019',
2830
sidebarItems: [
2931
{
3032
icon: "people",

0 commit comments

Comments
 (0)