diff --git a/front/src/App.svelte b/front/src/App.svelte index f5f4997..79f9c18 100644 --- a/front/src/App.svelte +++ b/front/src/App.svelte @@ -15,9 +15,9 @@ cart: {path: '/cart', className: 'active'}, } - let cartLen = 0; + let cartItemCount = 0; Cart.subscribe(() => { - cartLen = Cart.getLength(); + cartItemCount = Cart.getLength(); }); let scrollY = 0; @@ -43,12 +43,22 @@ } + - + + @@ -59,21 +69,17 @@
  • Home
  • Menu
  • - TastyBites + {:else} {/if} diff --git a/front/src/pages/PageIndex.svelte b/front/src/pages/PageIndex.svelte index 9b7a540..ed9a5e0 100644 --- a/front/src/pages/PageIndex.svelte +++ b/front/src/pages/PageIndex.svelte @@ -22,10 +22,6 @@ }); - - - - Learn More
    diff --git a/front/src/styles/_navigation_bar.scss b/front/src/styles/_navigation_bar.scss index b286242..480b48d 100644 --- a/front/src/styles/_navigation_bar.scss +++ b/front/src/styles/_navigation_bar.scss @@ -38,10 +38,31 @@ nav { a { padding: $spacing-xsmall $spacing-normal; - display: block; + + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + text-decoration: none; text-shadow: 0 1px 0.5px rgba(#000, 0.8); + color: inherit; + + .nav-basket { + padding: 0 $spacing-xsmall; + + min-width: 17px; + min-height: 17px; + + display: inline-block; + + font-size: $font-size-small; + + border-radius: $border-radius-circle; + background-color: $color-light; + color: $color-on-light; + } } &:hover { @@ -50,11 +71,16 @@ nav { &.active { color: $color-primary !important; + + .nav-basket { + background-color: $color-primary; + color: $color-on-primary; + } } } } - span { + .nav-logo { padding: 0 $spacing-normal; font-weight: $font-weight-black; font-size: $font-size-h1; @@ -64,7 +90,6 @@ nav { display: block; } - } &.scrolled {