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 {
|
.cartCheckoutButton {
|
||||||
|
display: block;
|
||||||
padding: 1.6rem;
|
padding: 1.6rem;
|
||||||
|
width: 100%;
|
||||||
button {
|
button {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
@@ -1,12 +1,16 @@
|
|||||||
import React, { memo } from 'react';
|
import React, { memo } from 'react';
|
||||||
import { ButtonCommon } from 'src/components/common';
|
import { ButtonCommon } from 'src/components/common';
|
||||||
import s from './CartCheckoutButton.module.scss';
|
import s from './CartCheckoutButton.module.scss';
|
||||||
|
import Link from 'next/link'
|
||||||
|
import { ROUTE } from 'src/utils/constanst.utils';
|
||||||
|
|
||||||
const CartCheckoutButton = memo(() => {
|
const CartCheckoutButton = memo(() => {
|
||||||
return (
|
return (
|
||||||
<div className={s.cartCheckoutButton}>
|
<Link href={ROUTE.CHECKOUT}>
|
||||||
<ButtonCommon size='large'>Check out - Rp 120.500</ButtonCommon>
|
<a className={s.cartCheckoutButton}>
|
||||||
</div>
|
<ButtonCommon size='large'>Check out - Rp 120.500</ButtonCommon>
|
||||||
|
</a>
|
||||||
|
</Link>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
.cartRecommendation {
|
.cartRecommendation {
|
||||||
@apply w-full bg-background-gray;
|
@apply w-full bg-background-gray;
|
||||||
|
padding-bottom: 1.6rem;
|
||||||
.top {
|
.top {
|
||||||
@apply flex justify-between items-center;
|
@apply flex justify-between items-center;
|
||||||
padding: 1.6rem;
|
padding: 1.6rem;
|
||||||
@@ -12,7 +13,8 @@
|
|||||||
.productCardWarpper {
|
.productCardWarpper {
|
||||||
padding-left: 1.6rem;
|
padding-left: 1.6rem;
|
||||||
:global(.customArrow) {
|
:global(.customArrow) {
|
||||||
@apply bg-line;
|
@apply bg-line shadow-md;
|
||||||
|
opacity: .8;
|
||||||
@screen lg {
|
@screen lg {
|
||||||
&:global(.leftArrow) {
|
&:global(.leftArrow) {
|
||||||
left: calc(-6.4rem - 2rem);
|
left: calc(-6.4rem - 2rem);
|
||||||
|
@@ -12,11 +12,12 @@ export const ROUTE = {
|
|||||||
PRODUCTS: '/products',
|
PRODUCTS: '/products',
|
||||||
PRODUCT_DETAIL: '/product',
|
PRODUCT_DETAIL: '/product',
|
||||||
ABOUT: '/about',
|
ABOUT: '/about',
|
||||||
BLOG_DETAIL: '/blog',
|
|
||||||
ACCOUNT: '/account',
|
ACCOUNT: '/account',
|
||||||
|
BLOG_DETAIL: '/blog',
|
||||||
RECIPES: '/recipes',
|
RECIPES: '/recipes',
|
||||||
BUSSINESS: '/bussiness',
|
BUSSINESS: '/bussiness',
|
||||||
CONTACT: '/contact',
|
CONTACT: '/contact',
|
||||||
|
CHECKOUT: '/checkout',
|
||||||
FAQ: '/faq',
|
FAQ: '/faq',
|
||||||
CUSTOMER_SERVICE: '/customer-service',
|
CUSTOMER_SERVICE: '/customer-service',
|
||||||
TERM_CONDITION: '/term-condition',
|
TERM_CONDITION: '/term-condition',
|
||||||
|
Reference in New Issue
Block a user