Feat: Checkout page redesign (#6)

* Increased padding on input elements

* Increased max layout width from 1500 to 1800

* Address input should take 2 column of space

* Updated order section with new design

* Checkout gets a new layout with sidebar

* Express checkout section

* Increase font size at larger screen width

* Environment example file

* Resolved linting issues
This commit is contained in:
2023-03-26 01:59:23 +01:00
committed by GitHub
parent 9d60cb7b85
commit 8bb65dfc2e
15 changed files with 609 additions and 147 deletions

View File

@@ -0,0 +1,58 @@
<script lang="ts">
import Vipps from '$lib/icons/Vipps.svelte';
import ShopPay from '$lib/icons/ShopPay.svelte';
import ApplePay from '$lib/icons/ApplePay.svelte';
import PayPal from '$lib/icons/PayPal.svelte';
import GooglePay from '$lib/icons/GooglePay.svelte';
</script>
<ul>
<li class="button" tabindex="0"><Vipps /></li>
<li class="button" tabindex="0"><ApplePay /></li>
<li class="button" tabindex="0"><PayPal /></li>
<li class="button" tabindex="0"><GooglePay /></li>
</ul>
<style lang="scss">
ul {
width: 100%;
display: flex;
padding-left: 0;
list-style: none;
@media (max-width: 750px) {
flex-wrap: wrap;
justify-content: space-around;
}
}
.button {
display: flex;
align-items: center;
justify-content: center;
margin: 0.5rem;
width: 8em;
height: 42px;
border-radius: 4px;
background-color: black;
cursor: pointer;
transition: all 0.3s ease;
&:hover {
scale: 1.05;
}
&:nth-of-type(1) {
background-color: #ff5b24;
}
&:nth-of-type(3) {
background-color: #ffc439;
}
@media (max-width: 999px) {
width: 10em;
margin: 0.5rem 0.2rem;
}
}
</style>