Add title block component

This commit is contained in:
Oliver Davies 2018-12-25 23:19:55 +00:00
parent 56e658ec2f
commit fb739b336a
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,9 @@
<template>
<div class="bg-grey-lighter px-4 py-5 border-b-2 border-grey flex justify-between items-center">
<div class="w-full md:w-auto flex flex-col">
<slot name="left"></slot>
</div>
<slot name="right"></slot>
</div>
</template>

View file

@ -7,10 +7,12 @@ Vue.config.productionTip = false
import HeaderButtons from '@/components/HeaderButtons'
import Sidebar from '@/components/Sidebar'
import Navbar from '@/components/Navbar'
import TitleBlock from '@/components/TitleBlock'
Vue.component('header-buttons', HeaderButtons);
Vue.component('navbar', Navbar);
Vue.component('sidebar', Sidebar);
Vue.component('title-block', TitleBlock);
new Vue({
render: h => h(App),