-
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 #306 from oduck-team/feat/298
feat: 캐러셀 라이브러리 적용
- Loading branch information
Showing
20 changed files
with
609 additions
and
141 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
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
69 changes: 69 additions & 0 deletions
69
src/features/animes/components/AnimeMainCarousel/SliderItem.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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import styled from "@emotion/styled"; | ||
import { Star } from "@phosphor-icons/react"; | ||
|
||
export const SliderItemContainer = styled.section` | ||
position: relative; | ||
padding: 24px 16px; | ||
`; | ||
|
||
export const Image = styled.img` | ||
width: 100%; | ||
height: 497px; | ||
object-fit: cover; | ||
border-radius: 10px; | ||
background: rgb(140, 140, 140); | ||
background: linear-gradient( | ||
180deg, | ||
rgba(140, 140, 140, 1) 0%, | ||
rgba(0, 0, 0, 1) 100% | ||
); | ||
`; | ||
|
||
export const InfoContainer = styled.div` | ||
width: 100%; | ||
position: absolute; | ||
left: 0; | ||
bottom: 46px; | ||
padding: 0 32px 24px; | ||
color: ${({ theme }) => theme.colors.neutral["05"]}; | ||
`; | ||
|
||
export const Title = styled.h5` | ||
width: 100%; | ||
display: -webkit-box; | ||
-webkit-line-clamp: 2; | ||
-webkit-box-orient: vertical; | ||
overflow: hidden; | ||
margin-bottom: 8px; | ||
${({ theme }) => theme.typo["title-2-m"]} | ||
`; | ||
|
||
export const ReviewContainer = styled.div` | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
`; | ||
|
||
export const Review = styled.span` | ||
${({ theme }) => theme.typo["body-3-r"]} | ||
display: block; | ||
width: 70%; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
`; | ||
|
||
export const RatingContainer = styled.div` | ||
display: flex; | ||
align-items: center; | ||
color: ${({ theme }) => theme.colors.secondary[50]}; | ||
`; | ||
|
||
export const StarIcon = styled(Star)` | ||
color: ${({ theme }) => theme.colors.secondary[50]}; | ||
margin-right: 4px; | ||
`; | ||
|
||
export const Score = styled.span` | ||
${({ theme }) => theme.typo["body-2-r"]} | ||
`; |
Oops, something went wrong.