43 lines
857 B
Svelte
43 lines
857 B
Svelte
<script lang="ts">
|
|
import FooterComponent from '$lib/components/FooterComponent.svelte';
|
|
import { SvelteToast } from '@zerodevx/svelte-toast';
|
|
|
|
const options = {
|
|
pausable: true,
|
|
classes: ['toast']
|
|
};
|
|
</script>
|
|
|
|
<slot />
|
|
<SvelteToast {options} />
|
|
<div class="footer">
|
|
<FooterComponent />
|
|
</div>
|
|
|
|
<style>
|
|
.footer {
|
|
position: sticky;
|
|
bottom: 0px;
|
|
display: inline-block;
|
|
}
|
|
:global(.toast.error) {
|
|
--toastColor: var(--color-button-text);
|
|
--toastBackground: var(--color-red-dark);
|
|
--toastBarBackground: var(--color-red-lighter);
|
|
}
|
|
:global(._toastMsg > img) {
|
|
position: relative;
|
|
height: 1.5em;
|
|
}
|
|
:global(._toastMsg) {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
@media only screen and (max-device-width: 620px) {
|
|
.footer {
|
|
width: calc(100% + 16px);
|
|
}
|
|
}
|
|
</style>
|