mirror of
https://github.com/vercel/commerce.git
synced 2025-07-05 04:31:22 +00:00
🔀 merge: Merge branch 'm1-tan' of https://github.com/KieIO/grocery-vercel-commerce into m1-tan
:%s
This commit is contained in:
commit
a534e4b4f6
@ -1,12 +1,8 @@
|
|||||||
@import '../../../styles/utilities';
|
|
||||||
|
|
||||||
.heartToggle{
|
.heartToggle{
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 2.4rem;
|
width: 2.4rem;
|
||||||
height: 2.4rem;
|
height: 2.4rem;
|
||||||
path{
|
|
||||||
stroke: var(--primary);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.isToggleOn{
|
.isToggleOn{
|
||||||
svg path{
|
svg path{
|
||||||
|
@ -8,7 +8,7 @@ interface Props {
|
|||||||
onChange?: () => void
|
onChange?: () => void
|
||||||
}
|
}
|
||||||
|
|
||||||
const ItemWishList = memo(({isActive, onChange}:Props) => {
|
const ItemWishList = memo(({isActive=false, onChange}:Props) => {
|
||||||
return(
|
return(
|
||||||
<div className={classNames({
|
<div className={classNames({
|
||||||
[s.heartToggle]: true,
|
[s.heartToggle]: true,
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
margin-right: 1.2rem;
|
margin-right: 1.2rem;
|
||||||
}
|
}
|
||||||
.content{
|
.content{
|
||||||
@apply font-logo sub-headline;
|
@apply font-logo;
|
||||||
font-size: var(--font-size);
|
font-size: var(--font-size);
|
||||||
}
|
}
|
||||||
}
|
}
|
32
src/components/common/SelectCommon/SelectCommon.module.scss
Normal file
32
src/components/common/SelectCommon/SelectCommon.module.scss
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
@import "../../../styles/utilities";
|
||||||
|
|
||||||
|
.select{
|
||||||
|
@apply rounded-lg border-solid;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
padding: 1.2rem 1.6rem;
|
||||||
|
&.base{
|
||||||
|
width: 18.6rem;
|
||||||
|
height: 4.8rem;
|
||||||
|
}
|
||||||
|
&.large{
|
||||||
|
width: 34.25rem;
|
||||||
|
height: 5.6rem;
|
||||||
|
}
|
||||||
|
&.default{
|
||||||
|
@apply border;
|
||||||
|
}
|
||||||
|
&.custom{
|
||||||
|
@apply border-2;
|
||||||
|
border-color: var(--border-line);
|
||||||
|
color: var(--text-label);
|
||||||
|
}
|
||||||
|
.option{
|
||||||
|
&:hover{
|
||||||
|
background-color: black;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
27
src/components/common/SelectCommon/SelectCommon.tsx
Normal file
27
src/components/common/SelectCommon/SelectCommon.tsx
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import s from './SelectCommon.module.scss'
|
||||||
|
import classNames from 'classnames'
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
placeHolder? : string,
|
||||||
|
size?: 'base' | 'large',
|
||||||
|
type?: 'default' | 'custom',
|
||||||
|
option: {name: string}[],
|
||||||
|
}
|
||||||
|
|
||||||
|
const SelectCommon = ({ type = 'default', size = 'base', option, placeHolder }: Props) => {
|
||||||
|
return(
|
||||||
|
<select className={classNames({
|
||||||
|
[s.select] : true,
|
||||||
|
[s[type]]: !!type,
|
||||||
|
[s[size]]: !!size,
|
||||||
|
})}
|
||||||
|
>
|
||||||
|
<option disabled selected hidden>{placeHolder}</option>
|
||||||
|
{
|
||||||
|
option.map(item => <option className={s.option} value={item.name}> {item.name} </option>)
|
||||||
|
}
|
||||||
|
</select>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default SelectCommon
|
@ -1,18 +1,16 @@
|
|||||||
@import '../../../styles/utilities';
|
@import "../../../styles/utilities";
|
||||||
|
|
||||||
.viewAll{
|
.viewAll {
|
||||||
display: flex;
|
display: flex;
|
||||||
color: var(--primary);
|
.content {
|
||||||
.conTent{
|
color: var(--primary);
|
||||||
margin: 0.8rem 0.8rem 0.8rem 1.6rem;
|
margin: 0.8rem 0.8rem 0.8rem 1.6rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.vector{
|
.vector {
|
||||||
margin: 0.8rem 0rem 0.8rem 0rem;
|
margin: 0.8rem 0rem 0.8rem 0rem;
|
||||||
svg path{
|
svg path {
|
||||||
fill: var(--primary);
|
fill: var(--primary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ const ViewAllItem = ({ link }: Props) => {
|
|||||||
return(
|
return(
|
||||||
<div className={s.viewAll}>
|
<div className={s.viewAll}>
|
||||||
<Link href={link}>
|
<Link href={link}>
|
||||||
<a className={s.conTent}>
|
<a className={s.content}>
|
||||||
View All
|
View All
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -19,3 +19,4 @@ export { default as Footer} from './Footer/Footer'
|
|||||||
export { default as MenuDropdown} from './MenuDropdown/MenuDropdown'
|
export { default as MenuDropdown} from './MenuDropdown/MenuDropdown'
|
||||||
export { default as NotiMessage} from './NotiMessage/NotiMessage'
|
export { default as NotiMessage} from './NotiMessage/NotiMessage'
|
||||||
export { default as VideoPlayer} from './VideoPlayer/VideoPlayer'
|
export { default as VideoPlayer} from './VideoPlayer/VideoPlayer'
|
||||||
|
export { default as SelectCommon} from './SelectCommon/SelectCommon'
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
export { default as IconBuy } from './IconBuy'
|
export { default as IconBuy } from './IconBuy'
|
||||||
|
<<<<<<< HEAD
|
||||||
export { default as ArrowUp } from './IconArrowUp'
|
export { default as ArrowUp } from './IconArrowUp'
|
||||||
export { default as IconSearch } from './IconSearch'
|
export { default as IconSearch } from './IconSearch'
|
||||||
export { default as IconArrowRight } from './IconArrowRight'
|
export { default as IconArrowRight } from './IconArrowRight'
|
||||||
@ -8,3 +9,7 @@ export { default as IconInfo } from './IconInfo'
|
|||||||
export { default as IconHome } from './IconHome'
|
export { default as IconHome } from './IconHome'
|
||||||
export { default as IconShopping } from './IconShopping'
|
export { default as IconShopping } from './IconShopping'
|
||||||
export { default as IconHeart } from './IconHeart'
|
export { default as IconHeart } from './IconHeart'
|
||||||
|
=======
|
||||||
|
export { default as IconHeart } from './IconHeart'
|
||||||
|
export { default as IconVector } from './IconVector'
|
||||||
|
>>>>>>> 7d55bbf46e49a375575303f16ec393462c6c573d
|
||||||
|
Loading…
x
Reference in New Issue
Block a user