add scrumpy ad

This commit is contained in:
Philipp Kühn
2018-08-22 19:13:14 +02:00
parent db6aa4a3f9
commit d57825adb5
3 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
<template>
<a class="ad" href="https://scrumpy.io/" target="_blank">
<img class="ad__image" src="https://drop.philipp-kuehn.com/api98lPyuw.png" alt="Scrumpy. Agile Planning, Made Simple. Get Started." />
</a>
</template>
<style lang="scss" src="./style.scss" scoped></style>

View File

@@ -0,0 +1,42 @@
@import "~variables";
.ad {
display: block;
padding: 1rem;
transition: 0.2s transform;
margin: 3rem auto 0 auto;
width: 15rem;
@media (min-width: 1020px) {
position: fixed;
left: 0;
bottom: 0;
margin-top: 0;
}
&__image {
display: block;
width: 100%;
height: auto;
border-radius: 5px;
overflow: hidden;
transition: 0.2s box-shadow;
box-shadow:
0 2px 4px 0 rgba(black, 0.05),
0 2px 10px 0 rgba(black, 0.07)
;
}
&:hover {
transform: translateY(-5px);
}
&:hover &__image {
box-shadow:
0 2px 1px 0 rgba(black, 0.07),
0 5px 20px 0 rgba(black, 0.06),
0 8px 40px 0 rgba(black, 0.04)
;
}
}

View File

@@ -1,9 +1,12 @@
<template>
<div class="page" spellcheck="false">
<navigation />
<div class="page__content">
<router-view />
</div>
<div class="page__footer">
<a class="page__source-link" :href="$route.meta.githubUrl" target="_blank">
<icon name="code" />
@@ -12,17 +15,22 @@
</span>
</a>
</div>
<ad />
</div>
</template>
<script>
import Navigation from 'Components/Navigation'
import Icon from 'Components/Icon'
import Ad from 'Components/Ad'
export default {
components: {
Navigation,
Icon,
Ad,
},
}
</script>