diff --git a/src/components/atoms/CartButton.svelte b/src/components/atoms/CartButton.svelte new file mode 100644 index 0000000..8238a8a --- /dev/null +++ b/src/components/atoms/CartButton.svelte @@ -0,0 +1,19 @@ + + +
+ + + + + {#if $cartAmount > 0} + {$cartAmount} + {/if} +
\ No newline at end of file diff --git a/src/components/organisms/Cart.svelte b/src/components/organisms/Cart.svelte index b9fdd42..d52d820 100644 --- a/src/components/organisms/Cart.svelte +++ b/src/components/organisms/Cart.svelte @@ -1,18 +1,24 @@ - + +
\ No newline at end of file diff --git a/src/routes/shop/__layout.svelte b/src/routes/shop/__layout.svelte index 3e3dd82..7255664 100644 --- a/src/routes/shop/__layout.svelte +++ b/src/routes/shop/__layout.svelte @@ -1,9 +1,10 @@