aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/components/modal.vue
blob: 2eb5bf3441802fa45e0872cb80f533618d222bb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<script>
export default {
  name: 'Modal',
  props: []
}
</script>

<template>
  <teleport to="body">
    <div class="wrapper">
      <slot />
    </div>
  </teleport>
</template>

<style scoped>
.wrapper {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>