Create Aside for Cart

With Poster Cart component
This commit is contained in:
2021-11-04 16:04:18 +01:00
parent 439cdaee98
commit 50835fa6f6
6 changed files with 351 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
<script lang="ts">
import { getContext } from 'svelte'
// Components
import Button from '$components/atoms/Button.svelte'
import Image from '$components/atoms/Image.svelte'
import PosterCart from '$components/molecules/PosterCart.svelte'
const { locations, shop } = getContext('global')
</script>
<aside class="cart">
<header class="cart__heading">
<h2>Cart</h2>
<a class="text-label" href="#">Close</a>
</header>
<div class="cart__content">
<PosterCart />
<PosterCart />
</div>
<footer class="cart__total">
<div class="cart__total--sum">
<h3>Total</h3>
<span>3 articles</span>
<p>90€</p>
</div>
<div class="cart__total--checkout">
<p>Shipping will be calculated from the delivery address during the checkout process</p>
<Button
text="Checkout"
color="pink"
size="small"
/>
</div>
</footer>
</aside>