-
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.
Browse files
Browse the repository at this point in the history
Feat/#187 upgrade main
- Loading branch information
Showing
18 changed files
with
295 additions
and
285 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
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
123 changes: 64 additions & 59 deletions
123
src/@components/MainPage/BestPiickle/BestPiickleCard/style.ts
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,62 +1,67 @@ | ||
import styled from "styled-components"; | ||
|
||
export const St = { | ||
BestPiickleCard: styled.article` | ||
width: 20.2rem; | ||
height: 14.5rem; | ||
margin-right: 0.8rem; | ||
padding: 2rem 1.6rem 1.4rem; | ||
box-shadow: 0 0.4rem 0.4rem rgba(0, 0, 0, 0.25), 0rem 0rem 0.2rem rgba(0, 0, 0, 0.25); | ||
border-radius: 1.6rem; | ||
color: ${({ theme }) => theme.colors.white}; | ||
position: relative; | ||
`, | ||
|
||
TagsWrapper: styled.ul` | ||
display: flex; | ||
gap: 0.8rem; | ||
`, | ||
|
||
Tag: styled.li` | ||
${({ theme }) => theme.fonts.caption1}; | ||
color: ${({ theme }) => theme.colors.gray600}; | ||
`, | ||
|
||
Content: styled.p` | ||
${({ theme }) => theme.fonts.body1}; | ||
color: ${({ theme }) => theme.colors.black}; | ||
width: 17rem; | ||
height: 4.4rem; | ||
margin-top: 0.6rem; | ||
// 말줄임표 설정 | ||
white-space: normal; | ||
display: -webkit-box; | ||
-webkit-line-clamp: 2; | ||
-webkit-box-orient: vertical; | ||
overflow: hidden; | ||
`, | ||
|
||
PickButtonWrapper: styled.div` | ||
width: 8.1rem; | ||
height: 2.5rem; | ||
background-color: ${({ theme }) => theme.colors.green}; | ||
border-radius: 4.2rem; | ||
position: absolute; | ||
right: 1.6rem; | ||
bottom: 1.4rem; | ||
`, | ||
|
||
PickButton: styled.button` | ||
${({ theme }) => theme.fonts.btn2} | ||
color: ${({ theme }) => theme.colors.white}; | ||
width: 8.1rem; | ||
height: 2.5rem; | ||
`, | ||
const BestPiickleCard = styled.article` | ||
position: relative; | ||
width: 20rem; | ||
height: 13.6rem; | ||
margin-right: 0.8rem; | ||
padding: 1.2rem; | ||
border: 0.1rem solid ${({ theme }) => theme.newColors.gray300}; | ||
`; | ||
|
||
const TagsWrapper = styled.ul` | ||
display: flex; | ||
gap: 0.8rem; | ||
`; | ||
|
||
const Tag = styled.li` | ||
${({ theme }) => theme.newFonts.caption1}; | ||
color: ${({ theme }) => theme.newColors.gray800}; | ||
`; | ||
|
||
const Content = styled.p` | ||
width: 17rem; | ||
height: 4.4rem; | ||
margin-top: 0.4rem; | ||
// 말줄임표 설정 | ||
white-space: normal; | ||
display: -webkit-box; | ||
-webkit-line-clamp: 2; | ||
-webkit-box-orient: vertical; | ||
overflow: hidden; | ||
${({ theme }) => theme.newFonts.body3}; | ||
color: ${({ theme }) => theme.newColors.gray900}; | ||
`; | ||
|
||
const PickButtonWrapper = styled.button` | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
height: 3.2rem; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
${({ theme }) => theme.newFonts.btn2}; | ||
color: ${({ theme }) => theme.colors.white}; | ||
background-color: ${({ theme }) => theme.newColors.gray900}; | ||
backdrop-filter: blur(0.6rem); | ||
`; | ||
|
||
const St = { | ||
BestPiickleCard, | ||
TagsWrapper, | ||
Tag, | ||
Content, | ||
PickButtonWrapper, | ||
}; | ||
export default St; |
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,27 +1,29 @@ | ||
import styled from "styled-components"; | ||
|
||
export const St = { | ||
Root: styled.section` | ||
margin-top: 1.2rem; | ||
`, | ||
const Root = styled.section` | ||
margin-top: 1.2rem; | ||
`; | ||
|
||
SliderWrapper: styled.article` | ||
touch-action: pan-x; | ||
const SliderWrapper = styled.article` | ||
touch-action: pan-x; | ||
width: 100%; | ||
& .slick-list { | ||
height: 13.6rem; | ||
margin-left: -17rem; // MEMO :: 눈대중 임의의 값 | ||
padding: 1.6rem; | ||
} | ||
& .slick-list { | ||
height: 15.3rem; | ||
margin-left: -13.5rem; | ||
padding: 0.4rem 1.6rem; | ||
} | ||
& .slick-initialized { | ||
overflow: hidden; | ||
} | ||
& .slick-initialized { | ||
overflow: hidden; | ||
} | ||
& .slick-track { | ||
scroll-snap-type: x mandatory; | ||
} | ||
`; | ||
|
||
& .slick-track { | ||
scroll-snap-type: x mandatory; | ||
} | ||
`, | ||
const St = { | ||
Root, | ||
SliderWrapper, | ||
}; | ||
export default St; |
Oops, something went wrong.