Add instruments to mobile subnavigation
This commit is contained in:
parent
9e3a7d1607
commit
88bbd505f0
|
|
@ -13,7 +13,7 @@
|
|||
import FullScreenLayout from '@/layouts/FullScreenLayout';
|
||||
import PublicLayout from '@/layouts/PublicLayout';
|
||||
import Modal from '@/components/Modal';
|
||||
import MobileNavigation from '@/components/MobileNavigation';
|
||||
import MobileNavigation from '@/components/book-navigation/MobileNavigation';
|
||||
import NewContentBlockWizard from '@/components/content-block-form/NewContentBlockWizard';
|
||||
import EditContentBlockWizard from '@/components/content-block-form/EditContentBlockWizard';
|
||||
import NewRoomEntryWizard from '@/components/rooms/room-entries/NewRoomEntryWizard';
|
||||
|
|
|
|||
|
|
@ -1,30 +0,0 @@
|
|||
<template>
|
||||
<div class="mobile-subnavigation">
|
||||
<h3 class="mobile-subnavigation__title">Themen</h3>
|
||||
<book-topic-navigation :mobile="true"></book-topic-navigation>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import BookTopicNavigation from '@/components/book-navigation/BookTopicNavigation';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
BookTopicNavigation
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import "@/styles/_variables.scss";
|
||||
@import "@/styles/_mixins.scss";
|
||||
|
||||
.mobile-subnavigation {
|
||||
&__title {
|
||||
@include small-text;
|
||||
color: rgba($color-white, 0.6);
|
||||
|
||||
margin-bottom: $small-spacing;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import MobileSubnavigation from '@/components/MobileSubnavigation';
|
||||
import MobileSubnavigation from '@/components/book-navigation/MobileSubnavigation';
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@
|
|||
<book-topic-navigation></book-topic-navigation>
|
||||
</sub-navigation-item>
|
||||
<sub-navigation-item title="Instrument">
|
||||
<router-link tag="div" class="book-subnavigation__item" to="/instruments/sprache-kommunikation">Sprache und Kommunikation</router-link>
|
||||
<router-link tag="div" class="book-subnavigation__item" to="/instruments/gesellschaft">Gesellschaft</router-link>
|
||||
<instrument-navigation></instrument-navigation>
|
||||
</sub-navigation-item>
|
||||
<!--<sub-navigation-item title="News">-->
|
||||
<!--<template slot="title">-->
|
||||
|
|
@ -18,11 +17,13 @@
|
|||
<script>
|
||||
import SubNavigationItem from '@/components/book-navigation/SubNavigationItem';
|
||||
import BookTopicNavigation from '@/components/book-navigation/BookTopicNavigation';
|
||||
import InstrumentNavigation from '@/components/book-navigation/InstrumentNavigation';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
SubNavigationItem,
|
||||
BookTopicNavigation
|
||||
BookTopicNavigation,
|
||||
InstrumentNavigation
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,18 @@
|
|||
<template>
|
||||
<div>
|
||||
<router-link tag="div" class="book-subnavigation__item" :class="{'book-subnavigation__item--mobile': mobile}" to="/instruments/sprache-kommunikation">Sprache und
|
||||
Kommunikation
|
||||
</router-link>
|
||||
<router-link tag="div" class="book-subnavigation__item" :class="{'book-subnavigation__item--mobile': mobile}" to="/instruments/gesellschaft">Gesellschaft</router-link>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
mobile: {
|
||||
default: false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
@ -64,7 +64,7 @@
|
|||
display: grid;
|
||||
|
||||
grid-template-columns: 1fr 50px;
|
||||
grid-template-rows: 50px 200px auto 100px;
|
||||
grid-template-rows: 50px 280px auto 100px;
|
||||
|
||||
grid-template-areas: "m m" "m m" "s s";
|
||||
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
<template>
|
||||
<div class="mobile-subnavigation">
|
||||
<div class="mobile-subnavigation__section">
|
||||
<h3 class="mobile-subnavigation__title">Themen</h3>
|
||||
<book-topic-navigation :mobile="true"></book-topic-navigation>
|
||||
</div>
|
||||
|
||||
<div class="mobile-subnavigation__section">
|
||||
<h3 class="mobile-subnavigation__title">Instrumente</h3>
|
||||
<instrument-navigation :mobile="true"></instrument-navigation>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import BookTopicNavigation from '@/components/book-navigation/BookTopicNavigation';
|
||||
import InstrumentNavigation from '@/components/book-navigation/InstrumentNavigation';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
BookTopicNavigation,
|
||||
InstrumentNavigation
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import "@/styles/_variables.scss";
|
||||
@import "@/styles/_mixins.scss";
|
||||
|
||||
.mobile-subnavigation {
|
||||
&__title {
|
||||
@include small-text;
|
||||
color: rgba($color-white, 0.6);
|
||||
|
||||
margin-bottom: $small-spacing;
|
||||
}
|
||||
|
||||
&__section {
|
||||
margin-bottom: $medium-spacing;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue