diff --git a/src/components/Onboarding.svelte b/src/components/Onboarding.svelte new file mode 100644 index 0000000..2d63855 --- /dev/null +++ b/src/components/Onboarding.svelte @@ -0,0 +1,66 @@ + + +{#if onboarding == true} +
+ + {#each stepsObj as item} + + +

{item.title}

+
+

{item.content}

+   +
+ {/each} +
+
+{/if} \ No newline at end of file diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 3b5d6c7..2950a61 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -2,20 +2,66 @@ import "../app.pcss"; import Map from "../components/Map.svelte"; import Navigation from "../components/Navigation.svelte"; + import Onboarding from "../components/Onboarding.svelte"; import { page } from '$app/stores'; + import { Modal, getModalStore } from '@skeletonlabs/skeleton'; + // import type { ModalSettings, ModalComponent, ModalStore } from '@skeletonlabs/skeleton'; + import { Drawer, getDrawerStore } from '@skeletonlabs/skeleton'; + import { initializeStores } from '@skeletonlabs/skeleton'; + initializeStores(); + + const drawerStore = getDrawerStore(); + var mapVisible = false; $: $page.url.pathname == '/' || $page.url.pathname == '/control' ? mapVisible = true : mapVisible = false; -
- - -
- +
+ + +
+
-
- + + + + + {#if $drawerStore.id === 'edit-device'} +
+
+ Device preview +

AGV device

+ List of stats + + +
+
+ {:else if $drawerStore.id === 'example-2'} + + {:else} + + {/if} + +
+