summaryrefslogtreecommitdiff
path: root/src/components/Global/PageTitle.vue
blob: 12dde5514a1f2ab91a9e0675f866d1d18c2e5eaf (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
37
38
39
40
41
42
43
44
45
46
47
48
<template>
  <div class="page-title">
    <h1 class="bold-24px text-title">{{ title }}</h1>
    <p v-if="description" class="page-description">{{ description }}</p>
  </div>
</template>

<script>
export default {
  name: 'PageTitle',
  data() {
    return {
      title: this.$route.meta.title,
      description: this.$route.meta.description,
    };
  },
};
</script>

<style lang="scss" scoped>
.page-title {
  width: 100%;
  height: 72px;
  border-bottom: 1px solid $faint-secondary-primary-10;
  background-color: $white;
  z-index: 1001;

  display: flex;
  flex-flow: column nowrap;
  align-items: flex-start;
  justify-content: center;
}

.text-title {
  margin-left: 2rem;
}

.page-description {
  color: $text-secondary;
  font-family: Inter;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;

  margin: 4px 0 0 2rem;
  padding: 0;
}
</style>