Skip to content

Commit

Permalink
feature-065: Home Empty item style 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gs0428 committed Feb 14, 2024
1 parent c572859 commit 572926c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Home/RecentVideos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const RecentVideos = ({ videos }: IRecentVideosProp) => {
<VideosTitle>최근 읽은 영상</VideosTitle>

{videos.length === 0 && (
<>
<div className="empty-container">
<div className="empty-video">
<img src={CardImage} alt="비어있는 비디오 이미지" />
</div>
Expand All @@ -30,7 +30,7 @@ const RecentVideos = ({ videos }: IRecentVideosProp) => {
<VideoButton>
<h2 className="button-text">영상 정리해보기</h2>
</VideoButton>
</>
</div>
)}
{videos.length > 0 && (
<CardContainer>
Expand Down
7 changes: 7 additions & 0 deletions src/styles/HomepageStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ export const RecentVideosContainer = styled.div`
width: 910px;
}
.empty-container {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.empty-video img {
width: 155.56px;
height: 155.56px;
Expand Down

0 comments on commit 572926c

Please sign in to comment.