From 85c32969cfb1e086972ba02172bacfc572653cc4 Mon Sep 17 00:00:00 2001 From: Harald Mack Date: Wed, 21 Aug 2024 14:37:09 +0200 Subject: [PATCH] add icon component, work on styling --- src/lib/components/AbstractContent.svelte | 71 +++++++++---------- .../Navigation/FunctionalIcon.svelte | 39 ++++++++++ .../components/Navigation/NaviBottom.svelte | 2 - src/lib/components/Navigation/NaviTop.svelte | 2 - 4 files changed, 74 insertions(+), 40 deletions(-) create mode 100644 src/lib/components/Navigation/FunctionalIcon.svelte delete mode 100644 src/lib/components/Navigation/NaviBottom.svelte delete mode 100644 src/lib/components/Navigation/NaviTop.svelte diff --git a/src/lib/components/AbstractContent.svelte b/src/lib/components/AbstractContent.svelte index 2eefaf2f..08f0ef14 100644 --- a/src/lib/components/AbstractContent.svelte +++ b/src/lib/components/AbstractContent.svelte @@ -7,14 +7,21 @@ NavBrand, NavHamburger, NavLi, - NavUl, - Tooltip + NavUl } from 'flowbite-svelte'; - import { CaretLeftSolid, MoonSolid, SunSolid } from 'flowbite-svelte-icons'; + + import { + CaretLeftSolid, + CaretRightSolid, + LightbulbSolid, + MoonSolid, + SunSolid + } from 'flowbite-svelte-icons'; // logo import logo_dark from '../assets/mondey_dark.svg'; import logo_light from '../assets/mondey_light.svg'; import BottomNavElement from './Navigation/BottomNavElement.svelte'; + import FunctionalIcon from './Navigation/FunctionalIcon.svelte'; // variables for showing or hiding elements export let showBottomNavbar = true; @@ -24,8 +31,6 @@ export let lastpage = '/'; export let nextpage = '/'; export let infopage = '/'; - - export let userName = 'Registrieren'; @@ -36,28 +41,23 @@ - + Home Aktuelles Downloads Kontakt - - - - - Darkmode ein- oder ausschalten + + + + + + + + + + + -
- -
{userName}
- Registrieren oder einloggen -
@@ -67,30 +67,29 @@ {#if showBottomNavbar} - + /> - + /> {/if} diff --git a/src/lib/components/Navigation/FunctionalIcon.svelte b/src/lib/components/Navigation/FunctionalIcon.svelte new file mode 100644 index 00000000..dce67485 --- /dev/null +++ b/src/lib/components/Navigation/FunctionalIcon.svelte @@ -0,0 +1,39 @@ + + +
+ + {tooltip} +
+ + diff --git a/src/lib/components/Navigation/NaviBottom.svelte b/src/lib/components/Navigation/NaviBottom.svelte deleted file mode 100644 index 49f5fcd1..00000000 --- a/src/lib/components/Navigation/NaviBottom.svelte +++ /dev/null @@ -1,2 +0,0 @@ - diff --git a/src/lib/components/Navigation/NaviTop.svelte b/src/lib/components/Navigation/NaviTop.svelte deleted file mode 100644 index 49f5fcd1..00000000 --- a/src/lib/components/Navigation/NaviTop.svelte +++ /dev/null @@ -1,2 +0,0 @@ -