2019-01-14 10:24:29 +00:00
|
|
|
<template>
|
2019-01-24 09:44:26 +00:00
|
|
|
<ContentPage heading="My Services">
|
2019-01-30 17:21:10 +00:00
|
|
|
<BackgroundImagePreloader v-if="showPreloaderBackground" slot="background"
|
2019-01-23 23:03:38 +00:00
|
|
|
class="background-preloader"
|
|
|
|
:image-urls="backgroundImageUrls"
|
|
|
|
:active-index="activeIndex"
|
|
|
|
>
|
2019-01-30 17:34:40 +00:00
|
|
|
<div slot="overlay" class="background-tint background preloader-overlay"></div>
|
2019-01-23 23:03:38 +00:00
|
|
|
</BackgroundImagePreloader>
|
2019-01-30 17:21:10 +00:00
|
|
|
<BackgroundImageLoader v-else slot="background"
|
|
|
|
class="background"
|
2019-02-04 11:53:23 +00:00
|
|
|
:image-url="imageUrl"
|
2019-01-30 17:21:10 +00:00
|
|
|
>
|
2019-01-30 17:35:53 +00:00
|
|
|
<div slot="overlay" class="background-tint background preloader-overlay"></div>
|
2019-01-30 17:21:10 +00:00
|
|
|
</BackgroundImageLoader>
|
2019-01-23 23:03:38 +00:00
|
|
|
|
2019-01-14 11:02:17 +00:00
|
|
|
<ul class="services-list">
|
2019-01-23 16:34:23 +00:00
|
|
|
<li v-for="(service, index) in services"
|
|
|
|
:key="index"
|
|
|
|
class="services-list__item"
|
|
|
|
:style="{ 'z-index': services.length - index + 1}"
|
2019-01-23 23:03:38 +00:00
|
|
|
@mouseover="handleMouseOver(index)"
|
2019-01-23 16:34:23 +00:00
|
|
|
>
|
|
|
|
<div class="background background-image"
|
|
|
|
:style="{ 'background-image': `url(${service.imageUrl})` }"
|
|
|
|
>
|
2019-01-14 11:02:17 +00:00
|
|
|
</div>
|
2019-01-23 16:34:23 +00:00
|
|
|
<div class="background background-overlay"></div>
|
|
|
|
<div class="services-list__content">
|
|
|
|
<h2 class="services-list__heading service-heading">{{ service.heading }}</h2>
|
|
|
|
<div class="services-list__body" v-html="service.html">
|
|
|
|
</div>
|
2019-01-23 17:27:42 +00:00
|
|
|
<a class="btn-link services-list__gallery-link" :href="service.linkUrl">My {{ service.heading }}</a>
|
2019-01-14 11:02:17 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2019-01-14 10:24:29 +00:00
|
|
|
</ContentPage>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import ContentPage from '@/components/ContentPage'
|
2019-01-23 23:03:38 +00:00
|
|
|
import BackgroundImagePreloader from '@/components/BackgroundImagePreloader'
|
2019-01-30 17:21:10 +00:00
|
|
|
import BackgroundImageLoader from '@/components/BackgroundImageLoader'
|
2019-01-14 10:24:29 +00:00
|
|
|
|
|
|
|
export default {
|
2019-01-31 10:20:14 +00:00
|
|
|
name: 'ServicesPage',
|
2019-01-14 10:24:29 +00:00
|
|
|
|
|
|
|
components: {
|
2019-01-23 23:03:38 +00:00
|
|
|
ContentPage,
|
|
|
|
BackgroundImagePreloader,
|
2019-01-30 17:21:10 +00:00
|
|
|
BackgroundImageLoader,
|
2019-01-14 10:24:29 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
2019-01-30 17:21:10 +00:00
|
|
|
showPreloaderBackground: false,
|
2019-01-23 23:03:38 +00:00
|
|
|
activeIndex: 0,
|
2019-01-14 10:24:29 +00:00
|
|
|
}
|
2019-01-23 23:03:38 +00:00
|
|
|
},
|
|
|
|
|
2019-01-31 10:20:14 +00:00
|
|
|
head () {
|
|
|
|
return {
|
|
|
|
title: 'My Services',
|
2019-02-04 12:53:18 +00:00
|
|
|
meta: [{
|
|
|
|
hid: 'description',
|
|
|
|
name: 'description',
|
|
|
|
content: 'An overview of the services provided by the photographer marc Leopold.'
|
|
|
|
}],
|
2019-01-31 10:20:14 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2019-01-23 23:03:38 +00:00
|
|
|
computed: {
|
|
|
|
backgroundImageUrls () {
|
|
|
|
return this.services.map(el => el.backgroundImageUrl)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2019-01-30 17:21:10 +00:00
|
|
|
mounted () {
|
|
|
|
const mq = window.matchMedia("(min-width: 40em)")
|
|
|
|
this.showPreloaderBackground = mq.matches
|
|
|
|
},
|
|
|
|
|
2019-01-23 23:03:38 +00:00
|
|
|
methods: {
|
|
|
|
handleMouseOver(index) {
|
|
|
|
this.activeIndex = index
|
|
|
|
},
|
|
|
|
},
|
2019-02-04 11:53:23 +00:00
|
|
|
|
|
|
|
asyncData () {
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
resolve({
|
|
|
|
imageUrl: "https://via.placeholder.com/1920x1080",
|
|
|
|
services: [
|
|
|
|
{
|
|
|
|
'heading': 'Portraits',
|
|
|
|
'imageUrl': 'https://marcleopold.isnet.uk/wp-content/uploads/2017/07/services-portraits.jpg',
|
|
|
|
'backgroundImageUrl': 'https://marcleopold.isnet.uk/wp-content/uploads/2017/07/services-portraits.jpg',
|
|
|
|
'html': '<p>Corporate portraits and publicity photos for printed materials, including annual reports and newsletters.</p>',
|
2019-02-09 12:29:50 +00:00
|
|
|
'linkUrl': '/galleries?gallery=0',
|
2019-02-04 11:53:23 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'heading': 'Dance',
|
|
|
|
'imageUrl': 'https://marcleopold.isnet.uk/wp-content/uploads/2017/07/services-dance.jpg',
|
|
|
|
'backgroundImageUrl': 'https://marcleopold.isnet.uk/wp-content/uploads/2017/07/services-dance.jpg',
|
|
|
|
'html': '<p>Photography and video production of dancers and performances for print, web, and promotion.</p>',
|
2019-02-09 12:29:50 +00:00
|
|
|
'linkUrl': '/galleries?gallery=1',
|
2019-02-04 11:53:23 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'heading': 'Music',
|
|
|
|
'imageUrl': 'https://marcleopold.isnet.uk/wp-content/uploads/2017/07/services-music.jpg',
|
|
|
|
'backgroundImageUrl': 'https://marcleopold.isnet.uk/wp-content/uploads/2017/07/services-music.jpg',
|
|
|
|
'html': '<p>Photography and video of musical performances and portraits for print and the web, CD covers, and publicity photos.</p>',
|
2019-02-09 12:29:50 +00:00
|
|
|
'linkUrl': '/galleries?gallery=2',
|
2019-02-04 11:53:23 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'heading': 'Events',
|
|
|
|
'imageUrl': 'https://marcleopold.isnet.uk/wp-content/uploads/2017/07/services-events.jpg',
|
|
|
|
'backgroundImageUrl': 'https://marcleopold.isnet.uk/wp-content/uploads/2017/07/services-events.jpg',
|
|
|
|
'html': '<p>Photography and video production for your corporate, organisational and personal events and celebrations.</p>',
|
2019-02-09 12:29:50 +00:00
|
|
|
'linkUrl': '/galleries?gallery=3',
|
2019-02-04 11:53:23 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
2019-01-14 10:24:29 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
2019-01-23 16:34:23 +00:00
|
|
|
.services-list {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.services-list__item {
|
|
|
|
$min-height: 32rem;
|
|
|
|
$overlap: 4rem;
|
|
|
|
$padding-vertical: 2rem;
|
|
|
|
$color-overlay: $color__neutral-200;
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
min-height: $min-height;
|
|
|
|
padding: $overlap + $padding-vertical 2rem $overlap;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: -1 * $overlap;
|
|
|
|
|
|
|
|
background-color: $color__neutral-200;
|
|
|
|
font-size: 1rem;
|
|
|
|
|
2019-01-30 17:07:20 +00:00
|
|
|
.background-overlay {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2019-01-23 16:34:23 +00:00
|
|
|
&:nth-child(odd) {
|
|
|
|
clip-path: polygon(0 0, 100% 0, 100% calc(100% - #{$overlap}), 0 100%);
|
|
|
|
|
|
|
|
.background-overlay {
|
|
|
|
background: linear-gradient(
|
|
|
|
to right,
|
|
|
|
rgba($color-overlay, .1),
|
|
|
|
rgba($color-overlay, 1) 75%
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
.services-list__heading {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.services-list__body {
|
|
|
|
align-self: flex-end;
|
2019-01-23 17:27:42 +00:00
|
|
|
|
|
|
|
@media (min-width: $bp__layout) {
|
|
|
|
text-align: right;
|
|
|
|
}
|
2019-01-23 16:34:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:nth-child(even) {
|
|
|
|
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - #{$overlap}));
|
|
|
|
.background-overlay {
|
|
|
|
background: linear-gradient(
|
|
|
|
to left,
|
|
|
|
rgba($color-overlay, .1),
|
|
|
|
rgba($color-overlay, 1) 75%
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
.background-image {
|
|
|
|
left: auto;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.services-list__gallery-link {
|
|
|
|
left: auto;
|
|
|
|
right: 2rem;
|
|
|
|
}
|
2019-01-23 17:27:42 +00:00
|
|
|
|
|
|
|
.services-list__body {
|
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
@media (min-width: $bp__layout) {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 16:34:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
min-height: $min-height - $overlap;
|
|
|
|
padding-top: $padding-vertical;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
padding-bottom: $padding-vertical;
|
|
|
|
clip-path: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.services-list__img {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
height: 20em;
|
|
|
|
width: auto;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
opacity: .4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.services-list__content {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: space-between;
|
|
|
|
min-height: 20em;
|
2019-01-23 17:27:42 +00:00
|
|
|
|
|
|
|
padding-bottom: 1rem;
|
2019-01-23 16:34:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.services-list__body {
|
|
|
|
width: 100%;
|
2019-01-23 17:27:42 +00:00
|
|
|
color: $color__neutral-800;
|
2019-01-23 16:34:23 +00:00
|
|
|
|
|
|
|
@media (min-width: $bp__layout) {
|
|
|
|
width: 80%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 70em) {
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.services-list__gallery-link {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 3rem;
|
|
|
|
left: 2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.background {
|
|
|
|
z-index: -1;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.background-image {
|
|
|
|
// opacity: .3;
|
|
|
|
background-size: cover;
|
2019-01-27 15:58:32 +00:00
|
|
|
filter: grayscale(.2);
|
2019-01-23 16:34:23 +00:00
|
|
|
width: 75%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.service-heading {
|
|
|
|
@include font-title();
|
|
|
|
color: $color__neutral-900;
|
|
|
|
font-size: 2.0em;
|
2019-01-23 23:03:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.preloader-overlay {
|
|
|
|
z-index: 10;
|
2019-01-23 16:34:23 +00:00
|
|
|
}
|
2019-01-14 10:24:29 +00:00
|
|
|
</style>
|
|
|
|
|