skillbox/client/src/pages/instrument.vue

79 lines
1.6 KiB
Vue

<template>
<div class="instrument">
<h1 class="instrument__title">{{instrument.title}}</h1>
<content-component v-for="component in instrument.contents"
:key="component.id"
:component="component"
:root="instrument.slug"
:parent="instrument"
:bookmarks="instrument.bookmarks"
:notes="instrument.notes"
>
</content-component>
</div>
</template>
<script>
import INSTRUMENT_QUERY from '@/graphql/gql/instrumentQuery.gql';
import ContentComponent from '@/components/content-blocks/ContentComponent';
export default {
apollo: {
instrument() {
return {
query: INSTRUMENT_QUERY,
variables: {
slug: this.$route.params.slug
}
}
}
},
components: {
ContentComponent
},
data() {
return {
instrument: {}
}
}
}
</script>
<style scoped lang="scss">
@import "@/styles/_variables.scss";
@import "@/styles/_functions.scss";
.instrument {
&__title {
font-size: toRem(35px);
margin-bottom: 40px;
line-height: $default-heading-line-height;
}
& /deep/ {
& p {
margin-bottom: 40px;
}
& ul {
padding-left: 25px;
}
& p + ul {
margin-top: -30px;
}
& li {
list-style: disc;
line-height: 1.5;
}
& b {
font-weight: 600;
color: $color-brand;
}
}
}
</style>