mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
🎨 styles: cart drawer responsive
:%s
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
.cartCheckoutButton {
|
||||
display: block;
|
||||
padding: 1.6rem;
|
||||
width: 100%;
|
||||
button {
|
||||
width: 100%;
|
||||
}
|
||||
|
@@ -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>
|
||||
)
|
||||
})
|
||||
|
||||
|
@@ -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);
|
||||
|
@@ -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',
|
||||
|
Reference in New Issue
Block a user