Skip to content

Commit

Permalink
피드 게시글 상세페이지 스타일 이슈 수정 (#631)
Browse files Browse the repository at this point in the history
* style: edit title style

* style: fade out feed list
  • Loading branch information
eunsukimme authored Dec 9, 2023
1 parent e3a1229 commit 47ed89c
Showing 1 changed file with 27 additions and 22 deletions.
49 changes: 27 additions & 22 deletions pages/post/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,29 +230,31 @@ export default function PostPage() {
}}
/>
<FeedListContainer>
<FeedListWrapper>
<FeedListTitle>이 모임의 다른 피드</FeedListTitle>
<FeedList>
{postsInMeeting?.map(post => {
if (!post) return;
return (
<Link key={post.id} href={`/post?id=${post.id}`}>
<a>
<FeedItem
/* TODO: FeedItem 인터페이스 안 맞는거 맞춰주기. 내부에서 query params 의존하는 부분 수정하기. */
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */
/* @ts-ignore */
post={post}
meetingId={meetingId}
// eslint-disable-next-line prettier/prettier
{postsInMeeting && postsInMeeting.length > 0 && (
<FeedListWrapper>
<FeedListTitle>이 모임의 다른 피드</FeedListTitle>
<FeedList>
{postsInMeeting?.map(post => {
if (!post) return;
return (
<Link key={post.id} href={`/post?id=${post.id}`}>
<a>
<FeedItem
/* TODO: FeedItem 인터페이스 안 맞는거 맞춰주기. 내부에서 query params 의존하는 부분 수정하기. */
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */
/* @ts-ignore */
post={post}
meetingId={meetingId}
// eslint-disable-next-line prettier/prettier
LikeButton={<LikeButton isLiked={post.isLiked} likeCount={post.likeCount} onClickLike={handleClickLike(post.id)(mutateLike)} />}
/>
</a>
</Link>
);
})}
</FeedList>
</FeedListWrapper>
/>
</a>
</Link>
);
})}
</FeedList>
</FeedListWrapper>
)}
<FeedListWrapper>
<FeedListTitle>SOPT 모임들의 최신 피드</FeedListTitle>
<FeedList>
Expand Down Expand Up @@ -311,6 +313,9 @@ const FeedListTitle = styled('h3', {
marginBottom: '24px',
color: '$white',
fontStyle: 'T4',
fontSize: '20px',
fontWeight: 600,
lineHeight: '30px',
});
const FeedList = styled('ul', {
display: 'flex',
Expand Down

0 comments on commit 47ed89c

Please sign in to comment.