diff --git a/TODO.md b/TODO.md index 39fca06..0add77d 100644 --- a/TODO.md +++ b/TODO.md @@ -1,12 +1,10 @@ -## General +## TODO * image urls, page links, social nav items, etc -> put in store or whatever -* facebook/twitter social card thingies +* 404 page * favicon * page descriptions etc -* 404 page - -## Services -* background image for mobile +* services - background image for mobile +* facebook/twitter social card thingies ## Maybes * gallery page - featured images in same style as on services page with the diff --git a/components/SiteMenu.vue b/components/SiteMenu.vue index ea58f9a..3a5c0a1 100644 --- a/components/SiteMenu.vue +++ b/components/SiteMenu.vue @@ -83,22 +83,26 @@ export default { return { isMounted: false, //component has loaded loadMenuImages: true, - siteNav: [ - { 'to': '/', 'text': 'Home', bgImgUrl: '/img/devices--bw.jpg'}, - { 'to': '/galleries', 'text': 'Galleries', bgImgUrl: '/img/photo-box--bw.jpg' }, - { 'to': '/services', 'text': 'Services', bgImgUrl: '/img/camera--bw.jpg' }, - { 'to': '/about', 'text': 'About Me', bgImgUrl: '/img/silhouette--dark.jpg' }, - { 'to': '/contact', 'text': 'Contact Me', bgImgUrl: '/img/mail--bw.jpg' }, - ], - socialNav: [ - { 'to': 'https://www.instagram.com', 'text': 'Instagram', icon: 'instagram' }, - { 'to': 'https://www.facebook.com', 'text': 'Facebook', icon: 'facebook' }, - { 'to': 'https://twitter.com', 'text': 'Twitter', icon: 'twitter' }, - { 'to': 'https://uk.linkedin.com', 'text': 'LinkedIn', icon: 'linkedin' }, - ] } }, + computed: { + siteNav () { + return this.$store.getters['navigation/siteNav'] + }, + + socialNav () { + return this.$store.getters['navigation/socialNav'] + }, + }, + + created () { + this.$store.dispatch('navigation/load') + .then(() => { + console.log('navigation/load complete') + }) + }, + mounted () { const mq = window.matchMedia("(min-width: 40em)") this.loadMenuImages = mq.matches @@ -160,6 +164,9 @@ $transition-timing: .5s; width: 100%; height: 100%; + + overflow-y: auto; + background-color: $site-menu__color-bg; background: linear-gradient( to right, diff --git a/layouts/error.vue b/layouts/error.vue new file mode 100644 index 0000000..846deea --- /dev/null +++ b/layouts/error.vue @@ -0,0 +1,34 @@ + + + + + + diff --git a/store/index.js b/store/index.js new file mode 100644 index 0000000..dcdb51f --- /dev/null +++ b/store/index.js @@ -0,0 +1,2 @@ +export const state = () => ({}) +