🎨 styles: cart drawer responsive

:%s
This commit is contained in:
lytrankieio123 2021-09-13 16:13:07 +07:00
parent a3240ab059
commit 9336462af1
4 changed files with 14 additions and 5 deletions

View File

@ -1,5 +1,7 @@
.cartCheckoutButton {
display: block;
padding: 1.6rem;
width: 100%;
button {
width: 100%;
}

View File

@ -1,12 +1,16 @@
import React, { memo } from 'react';
import { ButtonCommon } from 'src/components/common';
import s from './CartCheckoutButton.module.scss';
import Link from 'next/link'
import { ROUTE } from 'src/utils/constanst.utils';
const CartCheckoutButton = memo(() => {
return (
<div className={s.cartCheckoutButton}>
<ButtonCommon size='large'>Check out - Rp 120.500</ButtonCommon>
</div>
<Link href={ROUTE.CHECKOUT}>
<a className={s.cartCheckoutButton}>
<ButtonCommon size='large'>Check out - Rp 120.500</ButtonCommon>
</a>
</Link>
)
})

View File

@ -2,6 +2,7 @@
.cartRecommendation {
@apply w-full bg-background-gray;
padding-bottom: 1.6rem;
.top {
@apply flex justify-between items-center;
padding: 1.6rem;
@ -12,7 +13,8 @@
.productCardWarpper {
padding-left: 1.6rem;
:global(.customArrow) {
@apply bg-line;
@apply bg-line shadow-md;
opacity: .8;
@screen lg {
&:global(.leftArrow) {
left: calc(-6.4rem - 2rem);

View File

@ -12,11 +12,12 @@ export const ROUTE = {
PRODUCTS: '/products',
PRODUCT_DETAIL: '/product',
ABOUT: '/about',
BLOG_DETAIL: '/blog',
ACCOUNT: '/account',
BLOG_DETAIL: '/blog',
RECIPES: '/recipes',
BUSSINESS: '/bussiness',
CONTACT: '/contact',
CHECKOUT: '/checkout',
FAQ: '/faq',
CUSTOMER_SERVICE: '/customer-service',
TERM_CONDITION: '/term-condition',