-
Notifications
You must be signed in to change notification settings - Fork 3
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 #305 from Team-Lecue/SP1/Home
데브 머지
- Loading branch information
Showing
13 changed files
with
341 additions
and
15 deletions.
There are no files selected for viewing
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,32 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
export const SwiperWrapper = styled.section` | ||
display: flex; | ||
.swiper { | ||
display: flex; | ||
scroll-behavior: smooth; | ||
transition-timing-function: linear; | ||
} | ||
.swiper-slide:not(.swiper-slide-active) { | ||
opacity: 0.5; | ||
} | ||
.swiper-pagination { | ||
bottom: 0; | ||
} | ||
.swiper-pagination-bullet { | ||
background-color: ${({ theme }) => theme.colors.LG}; | ||
opacity: 1; | ||
} | ||
.swiper-pagination-bullet-active { | ||
background-color: ${({ theme }) => theme.colors.DG}; | ||
} | ||
`; | ||
|
||
export const InnerSlider = styled.div` | ||
padding-bottom: 2rem; | ||
`; |
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 'swiper/css'; | ||
import 'swiper/css/pagination'; | ||
|
||
import { Autoplay, Pagination } from 'swiper/modules'; | ||
import { Swiper, SwiperSlide } from 'swiper/react'; | ||
|
||
import { illustrationArr } from '../../constants/HomeIllustArr'; | ||
import * as S from './HomeSwiper.style'; | ||
|
||
const HomeSwiper = () => { | ||
return ( | ||
<S.SwiperWrapper> | ||
<Swiper | ||
slidesPerView={1} | ||
mousewheel={true} | ||
spaceBetween={10} | ||
autoplay={{ delay: 2500, disableOnInteraction: false }} | ||
loop={true} | ||
modules={[Autoplay, Pagination]} | ||
pagination={{ clickable: true }} | ||
> | ||
{illustrationArr.map((illustration) => { | ||
return ( | ||
<SwiperSlide key={illustration.key}> | ||
<S.InnerSlider>{illustration.img}</S.InnerSlider> | ||
</SwiperSlide> | ||
); | ||
})} | ||
</Swiper> | ||
</S.SwiperWrapper> | ||
); | ||
}; | ||
|
||
export default HomeSwiper; |
Empty file.
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,16 @@ | ||
import { ImgHome01, ImgHome02, ImgHome03 } from '../../assets'; | ||
|
||
export const illustrationArr = [ | ||
{ | ||
img: <ImgHome01 />, | ||
key: 'ImgHome01', | ||
}, | ||
{ | ||
img: <ImgHome02 />, | ||
key: 'ImgHome02', | ||
}, | ||
{ | ||
img: <ImgHome03 />, | ||
key: 'ImgHome03', | ||
}, | ||
]; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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