feat: Delivery Item

This commit is contained in:
sonnguyenkieio
2021-09-10 14:27:28 +07:00
parent 2ca772c7fe
commit 0037955be8
6 changed files with 105 additions and 10 deletions

View File

@@ -1,15 +1,26 @@
@import '../../../../styles/utilities';
.deliveryItem {
@apply flex bg-white items-center;
border-radius: 5% 5% 5% 5%/ 25% 45% 35% 35%;;
@apply flex bg-white items-center custom-border-radius;
margin-bottom: 1.6rem;
border: 1px solid var(--primary)
}
.separator {
border-left: 2px dashed #EBEBEB;
margin-left: 2.4rem;
margin-right: 2.4rem;
max-height: 9.2rem;
min-height: 8.6rem;
margin-left: .6rem;
margin-right: .6rem;
@screen md {
margin-left: .8rem;
margin-right: .8rem;
}
@screen lg {
margin-left: 2.4rem;
margin-right: 2.4rem;
}
}

View File

@@ -2,7 +2,52 @@
.idAndStatus {
@apply items-center;
padding: 2.4rem 0 2.4rem 1rem;
@screen md {
padding: 2.4rem 0 2.4rem 1.2rem;
}
@screen lg {
padding: 2.4rem 0 2.4rem 2.4rem;
}
.id {
@apply font-bold;
margin-bottom: .8rem;
}
.deliveryStatus {
@apply font-bold text-white;
font-size: 1.2rem;
line-height: 2rem;
padding: 0 .8rem;
border-radius: 0.5rem;
width: fit-content;
&.waiting {
background-color: #D9A645;
}
&.delivering {
background-color: var(--info-dark);
}
&.delivered {
background-color: var(--primary);
}
}
}@import '../../../../../../styles/utilities';
.idAndStatus {
@apply items-center;
padding: 2.4rem 0 2.4rem 1rem;
@screen md {
padding: 2.4rem 0 2.4rem 1.2rem;
}
@screen lg {
padding: 2.4rem 0 2.4rem 2.4rem;
}
.id {
@apply font-bold;

View File

@@ -0,0 +1,12 @@
@import '../../../../../../styles/utilities';
.products {
margin-top: .8rem;
max-width: 32%;
min-width: none;
@screen lg {
margin-top: 0;
margin-bottom: 0;
}
}

View File

@@ -1,4 +1,5 @@
import React from "react"
import s from './Products.module.scss'
interface ProductsProps {
products: string[];
@@ -19,7 +20,7 @@ const Products = ({ products } : ProductsProps) => {
}
return (
<div className="products">
<div className={s.products}>
{toString(products)}
</div>
)

View File

@@ -2,9 +2,19 @@
.reOrder {
@apply text-white custom-border-radius hidden font-bold;
padding: .4rem .6rem;
margin-right: 1rem;
background-color: var(--primary);
@screen md {
padding: .4rem .6rem;
margin-right: 1.2rem;
}
@screen lg {
padding: .8rem 1.2rem;
margin-right: 2.4rem;
background-color: var(--primary);
}
&.show {
@apply block;

View File

@@ -2,9 +2,25 @@
.totalPrice {
margin-left: auto;
margin-right: 1rem;
@screen md {
margin-right: 1.2rem;
}
@screen lg {
margin-right: 2.4rem;
}
.price {
@apply font-bold sub-headline;
@apply font-bold ;
@screen md {
@apply topline
}
@screen lg {
@apply sub-headline;
}
}
}