Created
August 1, 2020 14:53
-
-
Save bymathias/89e970166ead438b80ce350882fd6653 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="view-default"> | |
<header class="header"> | |
<app-navbar v-bind:isFixedTop="true" /> | |
</header> | |
<div id="wrapper"> | |
<slot></slot> | |
</div> | |
<app-footer/> | |
</div> | |
</template> | |
<script> | |
// @ is an alias to /src | |
import AppNavbar from '@/components/AppNavbar' | |
import AppFooter from '@/components/AppFooter' | |
export default { | |
name: 'view-default', | |
components: { | |
AppNavbar, | |
AppFooter | |
}, | |
metaInfo: { | |
bodyAttrs: { | |
// Required for the fixed navbar by Bulma | |
class: 'has-navbar-fixed-top' | |
} | |
}, | |
props: { | |
heroClass: String, | |
heroBody: Boolean | |
} | |
} | |
</script> | |
<style lang="scss" scoped> | |
.view-default { | |
display: flex; | |
// Use this if navbar is fixed | |
min-height: calc(100vh - #{$navbar-height}); | |
// Use this if navbar is NOT fixed | |
// min-height: 100vh; | |
flex-direction: column; | |
} | |
#wrapper { | |
flex: 1 0 auto; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment