Implement notification box for web (#533)

* Added test button

* styling notification box

* Added auto dismission and animation to each notificaiont list

* Remove test button
This commit is contained in:
Alex
2022-08-25 23:04:23 -07:00
committed by GitHub
parent 68b1655e7f
commit f9b1b12b10
6 changed files with 132 additions and 4 deletions

View File

@@ -10,6 +10,7 @@
import { page } from '$app/stores';
import { afterNavigate, beforeNavigate } from '$app/navigation';
import NavigationLoadingBar from '$lib/components/shared-components/navigation-loading-bar.svelte';
import NotificationList from '$lib/components/shared-components/notification/notification-list.svelte';
let shouldShowAnnouncement: boolean;
let localVersion: string;
@@ -44,7 +45,7 @@
<DownloadPanel />
<UploadPanel />
<NotificationList />
{#if shouldShowAnnouncement}
<AnnouncementBox
{localVersion}