blob: 59bb6a1e7cc3204e1eb12393ddf2200c441741e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<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: ''
}
},
computed: {
title() {
return this.$t(this.$route.meta.title);
}
}
};
</script>
<style lang="scss" scoped>
.page-title {
margin-bottom: $spacer * 2;
}
h1 {
font-weight: $display4-weight;
line-height: $display-line-height;
}
p {
max-width: 72ch;
}
</style>
|