blob: e3dc8d0cb74e7a34d45946d144dda8c4db0d3d38 [file] [log] [blame]
<template>
<div class="page-title">
<h1>{{ title }}</h1>
<p v-if="description">{{ description }}</p>
</div>
</template>
<script>
export default {
name: 'PageTitle',
props: {
description: {
type: String,
default: ''
}
},
data() {
return {
title: this.$route.meta.title
};
}
};
</script>
<style lang="scss" scoped>
.page-title {
margin-bottom: $spacer * 2;
}
p {
max-width: 72ch;
}
</style>