-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from delicious-algorithme/dev
refactor: 메인 top카드 캐러셀 추가
- Loading branch information
Showing
29 changed files
with
485 additions
and
352 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import Bookmarks from './Bookmarks'; | ||
import BookmarkedStores from './BookmarkedStores'; | ||
|
||
export { Bookmarks }; | ||
export { BookmarkedStores }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import ArrowBackIosNewRoundedIcon from '@mui/icons-material/ArrowBackIosNewRounded'; | ||
import ArrowForwardIosRoundedIcon from '@mui/icons-material/ArrowForwardIosRounded'; | ||
import styled from 'styled-components'; | ||
import { White } from '../../../color'; | ||
|
||
export const CustomNextArrow = ({ onClick }) => { | ||
return ( | ||
<StyledNextArrowButton> | ||
<ArrowForwardIosRoundedIcon onClick={onClick} /> | ||
</StyledNextArrowButton> | ||
); | ||
}; | ||
|
||
export const CustomPrevArrow = ({ onClick }) => { | ||
return ( | ||
<StyledPrevArrowButton> | ||
<ArrowBackIosNewRoundedIcon onClick={onClick} /> | ||
</StyledPrevArrowButton> | ||
); | ||
}; | ||
|
||
const StyledNextArrowButton = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
position: absolute; | ||
right: -40px; | ||
top: 50%; | ||
transform: translate(0, -50%); | ||
z-index: 10; | ||
width: 20px; | ||
height: 20px; | ||
background-color: ${White}; | ||
border-radius: 50%; | ||
cursor: pointer; | ||
`; | ||
|
||
const StyledPrevArrowButton = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
position: absolute; | ||
left: -40px; | ||
top: 50%; | ||
transform: translate(0, -50%); | ||
z-index: 10; | ||
width: 20px; | ||
height: 20px; | ||
background-color: ${White}; | ||
border-radius: 50%; | ||
cursor: pointer; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { CustomNextArrow, CustomPrevArrow } from './CustomArrow'; | ||
|
||
const sliderSettings = { | ||
centerMode: true, | ||
dots: true, | ||
infinite: true, | ||
speed: 1000, | ||
slidesToShow: 3, | ||
slidesToScroll: 1, | ||
arrow: false, | ||
nextArrow: <CustomNextArrow />, | ||
prevArrow: <CustomPrevArrow />, | ||
initialSlide: 1, | ||
responsive: [ | ||
{ | ||
breakpoint: 1500, | ||
settings: { | ||
slidesToShow: 2, | ||
slidesToScroll: 1, | ||
infinite: true, | ||
dots: true, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 768, | ||
settings: { | ||
slidesToShow: 1, | ||
slidesToScroll: 1, | ||
}, | ||
}, | ||
], | ||
}; | ||
|
||
export default sliderSettings; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.