From 51f0cd0439beb35b2b9337e74afecdf2d2a99415 Mon Sep 17 00:00:00 2001 From: Harald Mack Date: Mon, 19 Aug 2024 16:36:47 +0200 Subject: [PATCH] add conditional to show navbar --- src/lib/components/AbstractContent.svelte | 39 +++++++++++++---------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/src/lib/components/AbstractContent.svelte b/src/lib/components/AbstractContent.svelte index acc9333f..1b74cdcd 100644 --- a/src/lib/components/AbstractContent.svelte +++ b/src/lib/components/AbstractContent.svelte @@ -22,6 +22,9 @@ import logo_dark from '../assets/mondey_dark.svg'; import logo_light from '../assets/mondey_light.svg'; + // variables + export let showBottomNavbar = true; + // button stylings export const basicBtnForm = 'rounded-lg text-xl p-2'; @@ -35,9 +38,9 @@ // styling for the nav const navULclass = - 'flex flex-col p-4 mt-4 md:flex-row md:space-x-8 rtl:space-x-reverse md:mt-0 md:text-lg md:font-medium'; + 'flex flex-col pl-4 mt-4 md:flex-row md:space-x-8 rtl:space-x-reverse md:mt-0 md:text-lg md:font-medium'; - // variables for communication upon hitting the page + // variables for communication upon hitting the page // FIXME: these are placehorlders and must later be changed using contexts or other better mechanisms for inter component comunication $: lastpage = '/'; $: nextpage = '/'; @@ -64,18 +67,20 @@ - - - - - Zur letzten Seite - - - - Hilfe - - - - Zur naechsten Seite - - +{#if showBottomNavbar} + + + + + Zur letzten Seite + + + + Hilfe + + + + Zur naechsten Seite + + +{/if}