2023-04-02 02:59:20 +02:00
|
|
|
<script lang="ts">
|
2023-04-06 01:33:08 +02:00
|
|
|
import { createEventDispatcher } from "svelte";
|
|
|
|
import { XCircleIcon } from "@rgossiaux/svelte-heroicons/solid";
|
|
|
|
|
2023-04-02 02:59:20 +02:00
|
|
|
/**
|
|
|
|
* The slotted element will be shown on top, with a lower-opacity border
|
|
|
|
*/
|
2023-04-06 01:33:08 +02:00
|
|
|
const dispatch = createEventDispatcher<{ close }>();
|
2023-04-02 02:59:20 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="absolute top-0 right-0 w-screen h-screen overflow-auto" style="background-color: #00000088">
|
2023-04-16 04:13:09 +02:00
|
|
|
<div class="flex flex-col m-4 sm:m-6 p-4 sm:p-6 md:m-8 rounded normal-background">
|
2023-04-06 01:33:08 +02:00
|
|
|
<slot name="close-button">
|
|
|
|
<div class="w-8 h-8 absolute right-10 top-10 cursor-pointer" on:click={() => dispatch("close")}>
|
|
|
|
<XCircleIcon />
|
|
|
|
</div>
|
|
|
|
</slot>
|
2023-04-02 02:59:20 +02:00
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
</div>
|