From 58ed786167df16682aae2eaae2523fd08d491c25 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Tue, 16 Jul 2024 13:24:16 +0200 Subject: [PATCH] change navbar --- src/lib/components/NotificationBell.svelte | 11 +++++------ src/lib/components/Searchbar.svelte | 11 ++++------- src/routes/+layout.svelte | 6 +++--- 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/src/lib/components/NotificationBell.svelte b/src/lib/components/NotificationBell.svelte index d96b438e..c6905cfc 100644 --- a/src/lib/components/NotificationBell.svelte +++ b/src/lib/components/NotificationBell.svelte @@ -3,6 +3,7 @@ import { goto } from '$app/navigation'; import { numberOfUnreadNotification } from '$lib/store'; + import Bell from "lucide-svelte/icons/bell"; export let data; export let hasUnreadElement; @@ -17,15 +18,13 @@ async function toggle() { {#if data?.user} -
- +
+ {#if hasUnreadElement}
-
- {$numberOfUnreadNotification <= 9 ? $numberOfUnreadNotification : '9+' } +
+ {$numberOfUnreadNotification <= 9 ? $numberOfUnreadNotification : '9+' }
diff --git a/src/lib/components/Searchbar.svelte b/src/lib/components/Searchbar.svelte index e4b57ceb..f08bd391 100644 --- a/src/lib/components/Searchbar.svelte +++ b/src/lib/components/Searchbar.svelte @@ -3,6 +3,8 @@ import { userRegion, searchBarData, stockTicker, etfTicker, cryptoTicker, screenWidth} from '$lib/store'; import { goto } from '$app/navigation'; import { onMount } from 'svelte'; + import Search from "lucide-svelte/icons/search"; + const usRegion = ['cle1','iad1','pdx1','sfo1']; let apiURL; @@ -321,13 +323,8 @@ $: { -