diff --git a/client/index.html b/client/index.html index 7b0024b6..b94913b0 100644 --- a/client/index.html +++ b/client/index.html @@ -2,7 +2,7 @@ - + skillbox diff --git a/client/src/App.vue b/client/src/App.vue index 87c0b32c..1c73926d 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -1,7 +1,8 @@ @@ -10,6 +11,7 @@ import SimpleLayout from '@/layouts/SimpleLayout'; import BlankLayout from '@/layouts/BlankLayout'; import Modal from '@/components/Modal'; + import MobileNavigation from '@/components/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'; @@ -21,6 +23,8 @@ import FullscreenInfographic from '@/components/FullscreenInfographic'; import FullscreenVideo from '@/components/FullscreenVideo'; + import {mapGetters} from 'vuex'; + export default { name: 'App', @@ -29,6 +33,7 @@ SimpleLayout, BlankLayout, Modal, + MobileNavigation, NewContentBlockWizard, EditContentBlockWizard, NewRoomEntryWizard, @@ -45,9 +50,7 @@ layout() { return (this.$route.meta.layout || 'default') + '-layout'; }, - showModal() { - return this.$store.state.showModal - } + ...mapGetters(['showModal', 'showMobileNavigation']) }, mounted() { @@ -58,9 +61,16 @@ diff --git a/client/src/components/MobileNavigation.vue b/client/src/components/MobileNavigation.vue new file mode 100644 index 00000000..5219504d --- /dev/null +++ b/client/src/components/MobileNavigation.vue @@ -0,0 +1,118 @@ + + + + + diff --git a/client/src/components/NewsTeaser.vue b/client/src/components/NewsTeaser.vue index c2235dcd..d55a2cd3 100644 --- a/client/src/components/NewsTeaser.vue +++ b/client/src/components/NewsTeaser.vue @@ -4,8 +4,8 @@ {{title}} - {{date}} - + {{date}} + @@ -18,10 +18,21 @@ diff --git a/client/src/components/WidgetFooter.vue b/client/src/components/WidgetFooter.vue index 9ec6e1a5..9e1f1099 100644 --- a/client/src/components/WidgetFooter.vue +++ b/client/src/components/WidgetFooter.vue @@ -34,6 +34,7 @@ diff --git a/client/src/layouts/DefaultLayout.vue b/client/src/layouts/DefaultLayout.vue index d5a9b46f..238c1685 100644 --- a/client/src/layouts/DefaultLayout.vue +++ b/client/src/layouts/DefaultLayout.vue @@ -3,6 +3,8 @@ + + @@ -11,13 +13,15 @@