* Add GAM integration & base for GPDR consent * Moved consent to a specific page. * Added functionality to the privacy page, and desactivate tracking if consent is not given. * Added GeoEdge support, and fixed auth issues * Fix actions issue * Fix actions issue, attempt 2 * Added a module for analytics with consent support. * Remove unnecessary function * Add support for runtime config
49 lines
800 B
Vue
49 lines
800 B
Vue
<template>
|
|
<div v-if="showPopup">
|
|
<div class="popup-overlay" />
|
|
<div class="popup-body">
|
|
<slot></slot>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'Popup',
|
|
props: {
|
|
showPopup: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.popup-overlay {
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 10;
|
|
position: fixed;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: var(--color-button-bg);
|
|
border: none;
|
|
opacity: 0.6;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.popup-body {
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
z-index: 11;
|
|
box-shadow: 0 2px 3px 1px var(--color-button-bg);
|
|
border-radius: 10px;
|
|
max-height: 80%;
|
|
overflow-y: auto;
|
|
background-color: var(--color-raised-bg);
|
|
}
|
|
</style>
|