mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2025-06-01 16:13:10 +00:00
Start on Menu page
Update style of Loader Tweak SCSS colours to make contrast better
This commit is contained in:
parent
7907972e1c
commit
1d4f6d5b70
7 changed files with 168 additions and 40 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
let oldLocation = undefined;
|
||||
let showNavBar = false;
|
||||
let fullWidth = false;
|
||||
let scrollY = 0;
|
||||
|
||||
function routeLoading(event) {
|
||||
|
@ -14,6 +15,7 @@
|
|||
return; // not an actual change
|
||||
}
|
||||
showNavBar = event.detail.userData.showNavBar;
|
||||
fullWidth = event.detail.userData.fullWidth;
|
||||
oldLocation = event.detail.location;
|
||||
}
|
||||
|
||||
|
@ -28,9 +30,14 @@
|
|||
</svelte:head>
|
||||
|
||||
{#if showNavBar }
|
||||
<NavigationBar scrolled={scrollY > 0} />
|
||||
<NavigationBar
|
||||
scrolled={scrollY > 0}
|
||||
/>
|
||||
{/if}
|
||||
<main class:nav-space={showNavBar}>
|
||||
<main
|
||||
class:nav-space={showNavBar}
|
||||
class:full-width={fullWidth}
|
||||
>
|
||||
<Router
|
||||
routes={routes}
|
||||
restoreScrollState={true}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue