🐛 (Home) Add FAB in homepage
This commit is contained in:
@@ -15,7 +15,7 @@ export default class OnlineView extends Vue {
|
|||||||
public mounted(): void {
|
public mounted(): void {
|
||||||
window.addEventListener('online', this.onchange)
|
window.addEventListener('online', this.onchange)
|
||||||
window.addEventListener('offline', this.onchange)
|
window.addEventListener('offline', this.onchange)
|
||||||
this.$emit(this.online ? 'online' : 'offline')
|
this.onchange()
|
||||||
}
|
}
|
||||||
|
|
||||||
public beforeDestroy(): void {
|
public beforeDestroy(): void {
|
||||||
|
|||||||
@@ -13,6 +13,11 @@
|
|||||||
|
|
||||||
html {
|
html {
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
background-color: var(--primary-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app {
|
.app {
|
||||||
|
|||||||
@@ -21,6 +21,10 @@
|
|||||||
<div class="account-list-container box" v-if="showAccounts">
|
<div class="account-list-container box" v-if="showAccounts">
|
||||||
<account-list />
|
<account-list />
|
||||||
</div>
|
</div>
|
||||||
|
<fab-button v-else :to="{ name: 'account-new' }" :margin="true">
|
||||||
|
<span slot="fulltext">créer un compte</span>
|
||||||
|
</fab-button>
|
||||||
|
|
||||||
<section class="hero">
|
<section class="hero">
|
||||||
<div class="hero-body">
|
<div class="hero-body">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@@ -43,7 +47,8 @@ import accountService from '@/services/AccountService'
|
|||||||
@Component({
|
@Component({
|
||||||
components: {
|
components: {
|
||||||
'account-list': AccountList,
|
'account-list': AccountList,
|
||||||
'app-resume': () => import('@/components/AppResume.vue')
|
'app-resume': () => import('@/components/AppResume.vue'),
|
||||||
|
'fab-button': () => import('@/components/FabButton.vue')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
export default class Home extends Vue {
|
export default class Home extends Vue {
|
||||||
|
|||||||
Reference in New Issue
Block a user