80 lines
2.6 KiB
Vue
80 lines
2.6 KiB
Vue
<!----------------------------------------------------
|
|
File: ResearchComponent.vue
|
|
Author: Maxime Bartha
|
|
Scope: Extension Publicatons scientifiquess
|
|
Description: Pop Up summarizing
|
|
----------------------------------------------------->
|
|
|
|
<script setup>
|
|
import {ref } from "vue";
|
|
import {onClickOutside} from '@vueuse/core'
|
|
let checked = ref([])
|
|
|
|
const props = defineProps({
|
|
isOpen: Boolean,
|
|
});
|
|
const example = ["Title","Author",["Co-author1", "co-Authors2"],
|
|
" Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas condimentum ex tempor leo pulvinar, vitae imperdiet leo pellentesque. Aenean aliquam, ante at tempus sagittis, lorem leo feugiat felis, eget vestibulum tortor est nec libero. Cras sit amet venenatis velit, at rhoncus est. Cras id sem placerat, cursus sem et, aliquam felis. Nullam mi nunc, laoreet eget rutrum ac, blandit nec lorem. Duis fermentum aliquet tortor ac tristique. Aenean ac sagittis nulla, at auctor dolor. Vivamus et neque sodales, vestibulum dolor et, posuere urna. Pellentesque ut elit metus. Cras velit lectus, luctus auctor interdum eu, aliquam nec est. Donec elementum nisl sit amet nibh aliquam ultricies. Nullam felis orci, suscipit eu tincidunt pretium, euismod vel sem. Duis eget vehicula neque, nec gravida leo. Cras pellentesque arcu quis justo lobortis, ut semper massa rhoncus. Quisque sagittis dignissim congue. Nullam tortor ligula, mattis vel cursus id, pretium non lacus.",
|
|
"language",
|
|
"access",
|
|
]
|
|
const emit = defineEmits(["modal-close"]);
|
|
|
|
const target = ref(null)
|
|
onClickOutside(target, ()=>emit('modal-close'))
|
|
|
|
</script>
|
|
|
|
<template>
|
|
<div v-if="isOpen" class="modal-mask">
|
|
<div class="modal-wrapper">
|
|
<div class="modal-container" ref="target">
|
|
<ul v-for="n in example"><li>{{n}}</li></ul>
|
|
<div id="downloads">
|
|
<button @click.stop="emit('modal-close')">Download BibTex</button>
|
|
<button @click.stop="emit('modal-close')">Download Research</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.modal-mask {
|
|
position: fixed;
|
|
z-index: 9998;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.modal-container {
|
|
width: 70%;
|
|
margin: 150px auto;
|
|
padding: 20px 30px;
|
|
background: rgba(157, 99, 205);
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.33);
|
|
}
|
|
|
|
|
|
#downloads {
|
|
text-align: end;
|
|
}
|
|
#downloads button {
|
|
align-self: center;
|
|
margin-left: 2px;
|
|
font-size: large;
|
|
color: white;
|
|
background: rgba(191, 64, 191,0.5);
|
|
border:2px solid black;
|
|
border-radius: 5px;
|
|
}
|
|
#downloads button:hover{
|
|
background: rgba(191, 64, 191);
|
|
}
|
|
|
|
</style>
|