diff --git a/src/App.jsx b/src/App.jsx index 63db3c4c..11c7622b 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -8,7 +8,7 @@ import { MovieDetail } from "./components/MovieDetail"; import { MovieSearch } from "./components/MovieSearch"; import MyFavorite from "./components/MyFavorite"; import { MyPage } from "./components/MyPage"; -import { MyPageHome } from "./components/myPageHome"; +import { MyPageHome } from "./components/MyPageHome"; import { MyProfile } from "./components/MyProfile"; import { MyReview } from "./components/MyReview"; import OAuthCallback from "./components/OAuthCallback"; @@ -37,7 +37,7 @@ function App() { `${API_URL}/movie/popular?language=ko&page=1` ); const { data: topData } = useFetch( - `${API_URL}/movie/top_rated?language=en-US&page=1` + `${API_URL}/trending/movie/day?language=en-US&page=1` ); const { data: playingList } = useFetch( `${API_URL}/movie/now_playing?language=ko&page=1` diff --git a/src/App.scss b/src/App.scss index a07b8967..358f61c8 100644 --- a/src/App.scss +++ b/src/App.scss @@ -16,7 +16,7 @@ body.dark { background-color: #1b1b1b; - color: #a5a5a5; + color: #fff; .divider { background-color: rgba(255, 255, 255, 0.2); } @@ -56,9 +56,16 @@ body.light { } } } + .movie-tab__info { + .inner { + .movie-tabs-content { + background: #dfdfdf; + } + } + } .movie-tabs-content { & > div { - background-color: #cfcfcf; + // background-color: #dfdfdf; } } .dashboard, @@ -204,18 +211,24 @@ input[type="file"] { .movie-detail, .movie-tab__info { .inner { - padding: 0 5vw; - // width: 50vw; height: auto; - // padding-left: 0; @media screen and (max-width: 768px) { width: 100%; } } } +.movie-detail { + .inner { + padding: 0 5vw; + } +} .movie-tab__info { .inner { - padding-right: 0; + padding: 0 3vw; + .movie-tabs-content { + padding: 1.25rem 2vw; + border-radius: 1.25rem; + } } } @@ -494,13 +507,13 @@ input[type="file"] { .movie-poster { position: relative; min-width: 1240px; - padding-bottom: calc((655 / 1600) * 100%) !important; + padding-bottom: 32% !important; @media screen and (max-width: 1700px) { - padding-bottom: 53% !important; + padding-bottom: 42% !important; } @media screen and (max-width: 768px) { min-width: auto; - padding-bottom: 130% !important; + padding-bottom: 100% !important; } .movie-poster { position: absolute !important; @@ -545,10 +558,10 @@ input[type="file"] { position: absolute; bottom: 20px; left: auto; - right: calc(50% - 620px); + right: calc(50% - 730px); transform: translate(-50%); background-color: rgba(0, 0, 0, 0.6); - padding: 4px 10px; + padding: 3px 10px; color: #fff; border-radius: 20px; width: auto; @@ -560,19 +573,20 @@ input[type="file"] { justify-content: center; } .swiper-pagination-current { - font-size: 0.9rem; + font-size: 0.8rem; } .swiper-pagination-total { display: flex; align-items: center; justify-content: center; color: hsla(0, 0%, 100%, 0.7); + font-size: 0.8rem; &::before { display: block; - margin: 0 10px; + margin: 0 8px; width: 1px; - height: 10px; + height: 12px; background-color: hsla(0, 0%, 100%, 0.2); content: ""; } @@ -583,22 +597,22 @@ input[type="file"] { } } .favorite-btn { - width: 3rem; - height: 3rem; + width: 2.5rem; + height: 2.5rem; top: 10px; right: 10px; @media screen and (max-width: 768px) { - width: 2.3rem; - height: 2.3rem; + width: 2rem; + height: 2rem; top: 5px; right: 5px; } .bookmark { - width: 2rem; - height: 2rem; + width: 1.3rem; + height: 1.3rem; @media screen and (max-width: 768px) { - width: 1.3rem; - height: 1.3rem; + width: 0.9rem; + height: 0.9rem; } } } @@ -820,7 +834,7 @@ input[type="file"] { bottom: 3px; width: 25px; height: 25px; - background: url("../public/images/Ico_search.png") no-repeat center / cover; + background: url("../images/Ico_search.png") no-repeat center / cover; } } @@ -972,9 +986,8 @@ input[type="file"] { } } .average-rating-count { - width: 100%; @media screen and (max-width: 768px) { - // flex-direction: column; + width: 100%; padding-top: 30px; } } diff --git a/src/components/CommentContent.jsx b/src/components/CommentContent.jsx index 77ac3011..e01d21af 100644 --- a/src/components/CommentContent.jsx +++ b/src/components/CommentContent.jsx @@ -18,7 +18,7 @@ export const CommentContent = ({ detailInfo, commentCount }) => { }; return ( -
리뷰 {commentCount}개
@@ -31,14 +31,20 @@ export const CommentContent = ({ detailInfo, commentCount }) => { /> {detailInfo.length ? ( - detailInfo.map((el) => { + detailInfo.map((el, i) => { const isExpanded = Array.isArray(selectIds) && selectIds.includes(el.id); + const isLast = i === detailInfo.length - 1; return (🖼️ 이미지 로딩 중...
} */}🖼️ 이미지 로딩 중...
} */}