-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 93-feature/mapmodal-component
- Loading branch information
Showing
14 changed files
with
228 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
import * as S from './styles'; | ||
import theme from '@/styles/theme'; | ||
import { FidgetSpinnerProps, ThreeDots } from 'react-loader-spinner'; | ||
|
||
export const Loader = ({ ...rest }: FidgetSpinnerProps) => { | ||
return <ThreeDots color={theme.colors.primary} {...rest} />; | ||
return ( | ||
<S.LoaderWrapper> | ||
<ThreeDots color={theme.colors.primary} {...rest} /> | ||
</S.LoaderWrapper> | ||
); | ||
}; |
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,9 @@ | ||
import { styled } from 'styled-components'; | ||
|
||
export const LoaderWrapper = styled.div` | ||
height: calc(100vh - 63px); | ||
position: relative; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
`; |
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,33 @@ | ||
import Slider from 'react-slick'; | ||
import 'slick-carousel/slick/slick.css'; | ||
import 'slick-carousel/slick/slick-theme.css'; | ||
import * as S from './styles'; | ||
// import { CommonResponseType } from '@/types/apis'; | ||
import { PCard } from '@/components/PCard'; | ||
import { PItemType } from '@/types/pItem'; | ||
|
||
interface PCardSliderProps { | ||
pList: PItemType[]; | ||
width?: string; | ||
} | ||
|
||
export const PCardSlider = ({ pList, width = '100%' }: PCardSliderProps) => { | ||
const settings = { | ||
infinite: true, | ||
speed: 500, | ||
slidesToShow: 5, | ||
slidesToScroll: 1, | ||
swipeToSlide: true, | ||
}; | ||
const widthType = width.match(/[^0-9]/g)?.join(''); | ||
const PCardWidth = widthType === '%' ? '98%' : `calc(${width} / 5.2)`; | ||
return ( | ||
<S.PCardSlider width={width}> | ||
<Slider {...settings}> | ||
{pList.map((perform, index) => { | ||
return <PCard key={index} {...perform} width={PCardWidth} />; | ||
})} | ||
</Slider> | ||
</S.PCardSlider> | ||
); | ||
}; |
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,9 @@ | ||
import { styled } from 'styled-components'; | ||
|
||
export const PCardSlider = styled.div<{ width: string }>` | ||
width: ${({ width }) => width}; | ||
.slick-prev::before, | ||
.slick-next::before { | ||
color: ${({ theme }) => theme.colors.gray}; | ||
} | ||
`; |
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,15 @@ | ||
import * as S from './styles'; | ||
import { P16 } from '@/components/Text'; | ||
|
||
interface PosterOverlayProps { | ||
text: string; | ||
width?: string; | ||
} | ||
|
||
export const PosterOverlay = ({ text, width = '100%' }: PosterOverlayProps) => { | ||
return ( | ||
<S.PosterOverlay width={width}> | ||
<P16>{text}</P16> | ||
</S.PosterOverlay> | ||
); | ||
}; |
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,8 @@ | ||
import { styled } from 'styled-components'; | ||
|
||
export const PosterOverlay = styled.div<{ width: string }>` | ||
padding: 2rem 0; | ||
width: ${({ width }) => width}; | ||
text-align: center; | ||
background-color: rgba(0, 0, 0, 0.3); | ||
`; |
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
Oops, something went wrong.