reveil/ui/src/routes/+layout.svelte

44 lines
837 B
Svelte
Raw Normal View History

2022-10-01 17:37:12 +00:00
<script>
import '../reveil.scss'
import "bootstrap-icons/font/bootstrap-icons.css";
import {
//Styles,
2024-01-05 10:02:38 +00:00
} from '@sveltestrap/sveltestrap';
2022-10-01 17:37:12 +00:00
2022-10-15 09:12:51 +00:00
import Header from '$lib/components/Header.svelte';
import Toaster from '$lib/components/Toaster.svelte';
2022-12-08 09:02:29 +00:00
import { ToastsStore } from '$lib/stores/toasts';
window.onunhandledrejection = (e) => {
ToastsStore.addErrorToast({
message: e.reason,
timeout: 7500,
})
}
2022-10-01 17:37:12 +00:00
</script>
<svelte:head>
<title>Réveil</title>
</svelte:head>
<!--Styles /-->
<Header
class="d-none d-lg-flex py-2"
/>
2022-10-02 21:24:33 +00:00
<div class="flex-fill d-flex flex-column bg-light">
2022-10-01 17:37:12 +00:00
<slot></slot>
2022-12-08 21:09:19 +00:00
<div class="d-flex d-lg-none mt-3 mb-5"></div>
2022-10-01 17:37:12 +00:00
</div>
<Toaster />
<Header
2022-10-02 21:24:33 +00:00
class="d-flex d-lg-none fixed-bottom"
2022-10-01 17:37:12 +00:00
/>
<style>
:global(a.badge) {
text-decoration: none;
}
</style>