2021-01-22 22:43:55 -07:00
|
|
|
<template>
|
|
|
|
|
<div class="ad-wrapper">
|
2021-04-09 04:44:25 +02:00
|
|
|
<div class="ad">
|
|
|
|
|
<GptAd :ad-unit="adUnit" :size="size" />
|
|
|
|
|
</div>
|
2021-01-22 22:43:55 -07:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2021-04-09 04:44:25 +02:00
|
|
|
/* eslint-disable no-undef */
|
2021-01-22 22:43:55 -07:00
|
|
|
export default {
|
|
|
|
|
name: 'Advertisement',
|
|
|
|
|
props: {
|
2021-04-09 04:44:25 +02:00
|
|
|
size: {
|
2021-01-22 22:43:55 -07:00
|
|
|
type: String,
|
2021-04-09 04:44:25 +02:00
|
|
|
required: true,
|
2021-01-22 22:43:55 -07:00
|
|
|
},
|
2021-04-09 04:44:25 +02:00
|
|
|
adUnit: {
|
2021-01-22 22:43:55 -07:00
|
|
|
type: String,
|
2021-04-09 04:44:25 +02:00
|
|
|
required: true,
|
2021-01-22 22:43:55 -07:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.ad-wrapper {
|
|
|
|
|
width: 100%;
|
|
|
|
|
@extend %card;
|
2021-04-09 04:44:25 +02:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: row;
|
2021-01-22 22:43:55 -07:00
|
|
|
margin-bottom: var(--spacing-card-md);
|
2021-04-09 04:44:25 +02:00
|
|
|
justify-content: center;
|
2021-01-22 22:43:55 -07:00
|
|
|
}
|
|
|
|
|
</style>
|