mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
✨ feat: Delivery Item
This commit is contained in:
@@ -1,15 +1,26 @@
|
|||||||
@import '../../../../styles/utilities';
|
@import '../../../../styles/utilities';
|
||||||
|
|
||||||
.deliveryItem {
|
.deliveryItem {
|
||||||
@apply flex bg-white items-center;
|
@apply flex bg-white items-center custom-border-radius;
|
||||||
border-radius: 5% 5% 5% 5%/ 25% 45% 35% 35%;;
|
|
||||||
margin-bottom: 1.6rem;
|
margin-bottom: 1.6rem;
|
||||||
|
border: 1px solid var(--primary)
|
||||||
}
|
}
|
||||||
|
|
||||||
.separator {
|
.separator {
|
||||||
border-left: 2px dashed #EBEBEB;
|
border-left: 2px dashed #EBEBEB;
|
||||||
margin-left: 2.4rem;
|
|
||||||
margin-right: 2.4rem;
|
|
||||||
max-height: 9.2rem;
|
max-height: 9.2rem;
|
||||||
min-height: 8.6rem;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
@@ -2,7 +2,52 @@
|
|||||||
|
|
||||||
.idAndStatus {
|
.idAndStatus {
|
||||||
@apply items-center;
|
@apply items-center;
|
||||||
padding: 2.4rem 0 2.4rem 2.4rem;
|
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 {
|
.id {
|
||||||
@apply font-bold;
|
@apply font-bold;
|
||||||
|
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
@@ -1,4 +1,5 @@
|
|||||||
import React from "react"
|
import React from "react"
|
||||||
|
import s from './Products.module.scss'
|
||||||
|
|
||||||
interface ProductsProps {
|
interface ProductsProps {
|
||||||
products: string[];
|
products: string[];
|
||||||
@@ -19,7 +20,7 @@ const Products = ({ products } : ProductsProps) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="products">
|
<div className={s.products}>
|
||||||
{toString(products)}
|
{toString(products)}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
@@ -2,10 +2,20 @@
|
|||||||
|
|
||||||
.reOrder {
|
.reOrder {
|
||||||
@apply text-white custom-border-radius hidden font-bold;
|
@apply text-white custom-border-radius hidden font-bold;
|
||||||
padding: .8rem 1.2rem;
|
padding: .4rem .6rem;
|
||||||
margin-right: 2.4rem;
|
margin-right: 1rem;
|
||||||
background-color: var(--primary);
|
background-color: var(--primary);
|
||||||
|
|
||||||
|
@screen md {
|
||||||
|
padding: .4rem .6rem;
|
||||||
|
margin-right: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@screen lg {
|
||||||
|
padding: .8rem 1.2rem;
|
||||||
|
margin-right: 2.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
&.show {
|
&.show {
|
||||||
@apply block;
|
@apply block;
|
||||||
}
|
}
|
||||||
|
@@ -2,9 +2,25 @@
|
|||||||
|
|
||||||
.totalPrice {
|
.totalPrice {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: 2.4rem;
|
margin-right: 1rem;
|
||||||
|
|
||||||
|
@screen md {
|
||||||
|
margin-right: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@screen lg {
|
||||||
|
margin-right: 2.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
.price {
|
.price {
|
||||||
@apply font-bold sub-headline;
|
@apply font-bold ;
|
||||||
|
|
||||||
|
@screen md {
|
||||||
|
@apply topline
|
||||||
|
}
|
||||||
|
|
||||||
|
@screen lg {
|
||||||
|
@apply sub-headline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user