removed background preloader on mobile
This commit is contained in:
parent
233b304f2b
commit
616e487336
3
TODO.md
3
TODO.md
|
@ -14,6 +14,9 @@
|
||||||
## Image viewer
|
## Image viewer
|
||||||
* close icon
|
* close icon
|
||||||
|
|
||||||
|
## Services
|
||||||
|
* background image for mobile
|
||||||
|
|
||||||
## Maybes
|
## Maybes
|
||||||
* gallery page - featured images in same style as on services page with the
|
* gallery page - featured images in same style as on services page with the
|
||||||
diagonal divide
|
diagonal divide
|
||||||
|
|
|
@ -1,13 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<ContentPage heading="My Services">
|
<ContentPage heading="My Services">
|
||||||
<!-- TODO need to disable this if on mobile -->
|
<!-- TODO need to disable this if on mobile -->
|
||||||
<BackgroundImagePreloader slot="background"
|
<BackgroundImagePreloader v-if="showPreloaderBackground" slot="background"
|
||||||
class="background-preloader"
|
class="background-preloader"
|
||||||
:image-urls="backgroundImageUrls"
|
:image-urls="backgroundImageUrls"
|
||||||
:active-index="activeIndex"
|
:active-index="activeIndex"
|
||||||
>
|
>
|
||||||
<div slot="overlay" class="background-tint background preloader-overlay"></div>
|
|
||||||
</BackgroundImagePreloader>
|
</BackgroundImagePreloader>
|
||||||
|
<BackgroundImageLoader v-else slot="background"
|
||||||
|
class="background"
|
||||||
|
image-url="https://via.placeholder.com/1920x1080"
|
||||||
|
>
|
||||||
|
</BackgroundImageLoader>
|
||||||
|
<div slot="overlay" class="background-tint background preloader-overlay"></div>
|
||||||
|
|
||||||
<ul class="services-list">
|
<ul class="services-list">
|
||||||
<li v-for="(service, index) in services"
|
<li v-for="(service, index) in services"
|
||||||
|
@ -35,6 +40,7 @@
|
||||||
<script>
|
<script>
|
||||||
import ContentPage from '@/components/ContentPage'
|
import ContentPage from '@/components/ContentPage'
|
||||||
import BackgroundImagePreloader from '@/components/BackgroundImagePreloader'
|
import BackgroundImagePreloader from '@/components/BackgroundImagePreloader'
|
||||||
|
import BackgroundImageLoader from '@/components/BackgroundImageLoader'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'HomePage',
|
name: 'HomePage',
|
||||||
|
@ -42,10 +48,12 @@ export default {
|
||||||
components: {
|
components: {
|
||||||
ContentPage,
|
ContentPage,
|
||||||
BackgroundImagePreloader,
|
BackgroundImagePreloader,
|
||||||
|
BackgroundImageLoader,
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
showPreloaderBackground: false,
|
||||||
activeIndex: 0,
|
activeIndex: 0,
|
||||||
services: [
|
services: [
|
||||||
{
|
{
|
||||||
|
@ -86,6 +94,11 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
mounted () {
|
||||||
|
const mq = window.matchMedia("(min-width: 40em)")
|
||||||
|
this.showPreloaderBackground = mq.matches
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
handleMouseOver(index) {
|
handleMouseOver(index) {
|
||||||
this.activeIndex = index
|
this.activeIndex = index
|
||||||
|
|
Loading…
Reference in New Issue