2019-07-19 16:07:26 +02:00
|
|
|
<template>
|
2021-04-05 17:29:37 +02:00
|
|
|
<div id="dashy">
|
2021-04-05 15:06:39 +02:00
|
|
|
<Header :pageInfo="getPageInfo(pageInfo)" />
|
|
|
|
<router-view />
|
2019-07-20 22:50:29 +02:00
|
|
|
<Footer />
|
2019-07-19 16:07:26 +02:00
|
|
|
</div>
|
|
|
|
</template>
|
2019-07-20 22:50:29 +02:00
|
|
|
<script>
|
|
|
|
|
2021-04-05 15:06:39 +02:00
|
|
|
import Header from '@/components/Header.vue';
|
2019-09-01 14:38:13 +02:00
|
|
|
import Footer from '@/components/Footer.vue';
|
2021-04-05 15:06:39 +02:00
|
|
|
import conf from '@/data/conf.yml';
|
2019-07-20 22:50:29 +02:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'app',
|
|
|
|
components: {
|
2021-04-05 15:06:39 +02:00
|
|
|
Header,
|
2019-09-01 14:38:13 +02:00
|
|
|
Footer,
|
|
|
|
},
|
2021-04-05 15:06:39 +02:00
|
|
|
data: () => ({
|
|
|
|
pageInfo: conf.pageInfo,
|
|
|
|
}),
|
|
|
|
methods: {
|
|
|
|
/* Returns either page info from the config, or default values */
|
|
|
|
getPageInfo(pageInfo) {
|
|
|
|
const defaults = { title: 'Demo', description: '' };
|
|
|
|
if (pageInfo) {
|
|
|
|
return {
|
|
|
|
title: pageInfo.title || defaults.title,
|
|
|
|
description: pageInfo.description || defaults.description,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
return defaults;
|
|
|
|
},
|
|
|
|
},
|
2019-09-01 14:38:13 +02:00
|
|
|
};
|
2019-07-20 22:50:29 +02:00
|
|
|
</script>
|
2019-07-19 16:07:26 +02:00
|
|
|
|
|
|
|
<style lang="scss">
|
2021-02-28 22:55:18 +01:00
|
|
|
@import '../src/styles/global-styles.scss';
|
|
|
|
@import '../src/styles/color-pallet.scss';
|
2019-07-20 22:50:29 +02:00
|
|
|
|
2021-03-01 19:44:57 +01:00
|
|
|
body {
|
|
|
|
background: $background;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2019-07-19 16:07:26 +02:00
|
|
|
#app {
|
2019-07-20 22:50:29 +02:00
|
|
|
.footer {
|
|
|
|
text-align: center;
|
2019-07-19 16:07:26 +02:00
|
|
|
}
|
|
|
|
}
|
2019-07-20 22:50:29 +02:00
|
|
|
|
2019-07-19 16:07:26 +02:00
|
|
|
</style>
|