mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-22 16:55:13 +02:00
feat: new onboarding dialog
This commit is contained in:
@@ -1,28 +1,22 @@
|
||||
<script lang="ts">
|
||||
import Modal from '../Modal/Modal.svelte';
|
||||
import classNames from 'classnames';
|
||||
import { fade } from 'svelte/transition';
|
||||
import { modalStack } from '../Modal/modal.store';
|
||||
import Modal from '../Modal/Modal.svelte';
|
||||
import Panel from '../Panel.svelte';
|
||||
|
||||
export let size: 'sm' | 'full' | 'lg' | 'dynamic' = 'sm';
|
||||
|
||||
function handleClose() {
|
||||
modalStack.closeTopmost();
|
||||
}
|
||||
</script>
|
||||
|
||||
<Modal on:back>
|
||||
<Modal on:close let:close>
|
||||
<div
|
||||
class="h-full flex items-center justify-center bg-primary-900/75 py-20 px-32 overflow-hidden"
|
||||
transition:fade={{ duration: 100 }}
|
||||
on:click|self={() => handleClose()}
|
||||
on:click|self={close}
|
||||
on:keypress={() => {
|
||||
/* For a11y*/
|
||||
}}
|
||||
>
|
||||
<Panel {size} class={$$restProps.class} onClose={handleClose}>
|
||||
<slot close={handleClose} />
|
||||
<Panel {size} class={$$restProps.class} onClose={close}>
|
||||
<slot {close} />
|
||||
</Panel>
|
||||
</div>
|
||||
</Modal>
|
||||
|
||||
Reference in New Issue
Block a user