Spaces:
Sleeping
Sleeping
File size: 990 Bytes
7aec436 |
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
<script>
import {createEventDispatcher} from 'svelte';
import {fade} from 'svelte/transition';
import {_} from '../locales/';
const dispatch = createEventDispatcher();
const cancel = () => {
dispatch('cancel');
};
</script>
<style>
.outer {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 20;
background: rgba(255, 255, 255, 0.8);
color: black;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
user-select: none;
}
:global([theme="dark"]) .outer {
background: rgba(0, 0, 0, 0.8);
color: white;
}
.inner {
max-width: 480px;
}
</style>
<div class="outer" out:fade={{duration: 200}}>
<div class="inner">
<h2>{$_('import.header')}</h2>
<p>
{$_('import.description')}
</p>
<button on:click={cancel}>{$_('import.cancel')}</button>
</div>
</div>
|