|
|
|
@ -0,0 +1,43 @@ |
|
|
|
<template> |
|
|
|
<!-- Button trigger modal --> |
|
|
|
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#overlayPopup"> |
|
|
|
Launch DEMO modal |
|
|
|
</button> |
|
|
|
|
|
|
|
<!-- Modal --> |
|
|
|
<div class="modal" id="overlayPopup" tabindex="-1" aria-hidden="true"> |
|
|
|
<div class="modal-dialog modal-lg modal-dialog-centered"> |
|
|
|
<div class="modal-content rounded-0"> |
|
|
|
<div class="modal-header justify-content-center text-center w-100 border-0"> |
|
|
|
<h1 class="modal-title fs-4 fw-bold w-100">{{ overlayInfo.title }}</h1> |
|
|
|
<button type="button" class="btn-close position-absolute end-0 me-3" data-bs-dismiss="modal" |
|
|
|
aria-label="Close"></button> |
|
|
|
</div> |
|
|
|
<div class="modal-body text-center"> |
|
|
|
{{ overlayInfo.description }} |
|
|
|
</div> |
|
|
|
<ul class="list-unstyled text-center pt-4"> |
|
|
|
<li v-for="(item, index) in overlayInfo.info" :key="index"> |
|
|
|
{{ item }} |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
<div class="d-flex justify-content-center modal-footer border-0 pt-0"> |
|
|
|
<button type="button" class="btn btn-dark btn-lg w-25 rounded-0" data-bs-dismiss="modal">LUKK</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup> |
|
|
|
import {ref, onMounted} from 'vue'; |
|
|
|
import {initializeApi} from '@/utils/api'; |
|
|
|
|
|
|
|
const api = initializeApi(); |
|
|
|
const overlayInfo = ref({}); |
|
|
|
|
|
|
|
onMounted(async () => { |
|
|
|
overlayInfo.value = await api.getOverlayPopup(); |
|
|
|
}); |
|
|
|
|
|
|
|
</script> |