2020-12-20 17:27:26 +01:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<header>
|
|
|
|
<BaseContainer width="wide" center>
|
2021-01-03 12:29:41 +01:00
|
|
|
<ul id="header-container">
|
|
|
|
<li>
|
|
|
|
<BaseLogo id="logo" size="normal" />
|
|
|
|
</li>
|
|
|
|
<li class="right">
|
|
|
|
<BaseUserDropdown />
|
|
|
|
</li>
|
|
|
|
</ul>
|
2020-12-20 17:27:26 +01:00
|
|
|
</BaseContainer>
|
|
|
|
</header>
|
|
|
|
<main>
|
2021-01-03 12:29:41 +01:00
|
|
|
<BaseContainer
|
|
|
|
width="medium"
|
|
|
|
center
|
|
|
|
:class="{ 'center-content': center }"
|
|
|
|
>
|
|
|
|
<BaseTitle v-if="title" center size="huge" class="centered">
|
|
|
|
{{ title }}
|
|
|
|
</BaseTitle>
|
2020-12-20 17:27:26 +01:00
|
|
|
<slot />
|
|
|
|
</BaseContainer>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import BaseContainer from "@/components/base/BaseContainer.vue";
|
|
|
|
import BaseLogo from "@/components/base/BaseLogo.vue";
|
2021-01-01 16:35:35 +01:00
|
|
|
import BaseUserDropdown from "@/components/base/BaseUserDropdown.vue";
|
2021-01-03 12:29:41 +01:00
|
|
|
import BaseTitle from "@/components/base/BaseTitle";
|
2020-12-20 17:27:26 +01:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: "LayoutNavbarPrivate",
|
|
|
|
components: {
|
|
|
|
BaseContainer,
|
2021-01-01 16:35:35 +01:00
|
|
|
BaseLogo,
|
2021-01-03 12:29:41 +01:00
|
|
|
BaseUserDropdown,
|
|
|
|
BaseTitle
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
title: {
|
|
|
|
default: "",
|
|
|
|
type: String
|
|
|
|
},
|
|
|
|
center: {
|
|
|
|
default: false,
|
|
|
|
required: false,
|
|
|
|
type: Boolean
|
|
|
|
}
|
2020-12-20 17:27:26 +01:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="sass" scoped>
|
|
|
|
@import '@/style/theme.sass'
|
|
|
|
|
|
|
|
header
|
|
|
|
width: 100%
|
|
|
|
position: fixed
|
|
|
|
top: 0px
|
|
|
|
box-shadow: 0px 0px 2rem 1rem #000D
|
|
|
|
height: $navbar-height
|
|
|
|
background-color: $background-primary
|
2021-01-03 12:29:41 +01:00
|
|
|
z-index: 100
|
2020-12-20 17:27:26 +01:00
|
|
|
|
|
|
|
#header-container
|
|
|
|
padding: 0px 20px
|
|
|
|
margin: auto
|
|
|
|
list-style: none
|
|
|
|
line-height: navbar-height
|
|
|
|
|
2021-01-01 16:35:35 +01:00
|
|
|
.right
|
|
|
|
float: right
|
2020-12-20 17:27:26 +01:00
|
|
|
|
|
|
|
*
|
2021-01-01 16:35:35 +01:00
|
|
|
line-height: $navbar-height
|
2020-12-20 17:27:26 +01:00
|
|
|
vertical-align: baseline
|
|
|
|
display: inline-block
|
|
|
|
|
|
|
|
main
|
|
|
|
padding: 0px 20px
|
|
|
|
margin-top: 6rem
|
2021-01-03 12:29:41 +01:00
|
|
|
margin-bottom: 6rem
|
2020-12-20 17:27:26 +01:00
|
|
|
|
2021-01-03 12:29:41 +01:00
|
|
|
.center-content
|
|
|
|
text-align: center
|
2020-12-20 17:27:26 +01:00
|
|
|
</style>
|