Skip to content

Commit

Permalink
Merge pull request #334 from depromeet/feat/#333
Browse files Browse the repository at this point in the history
Feat/#333 2차 QA 반영 (바텀네비게이션, 팔로잉/팔로우 탭)
  • Loading branch information
YelynnOh authored May 7, 2024
2 parents 6daf0a0 + 9afe6fb commit ef825e3
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 42 deletions.
Binary file added public/gif/onboarding_1.webp
Binary file not shown.
Binary file added public/gif/onboarding_2.webp
Binary file not shown.
Binary file added public/gif/onboarding_3.webp
Binary file not shown.
74 changes: 36 additions & 38 deletions src/app/follow/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,43 +17,41 @@ export default function Page() {
const { data: followingList } = useGetFollowingList(userId, 'FOLLOWING');

return (
<div>
<Tab.Group initialTab={type ? type : 'follower'}>
<div className="h-[76px] w-full flex sticky top-[40px] bg-white z-above rounded-t-[24px]">
<Tab.Header>
<Tab.Item value="follower">팔로워</Tab.Item>
<Tab.Item value="following">팔로잉</Tab.Item>
</Tab.Header>
</div>
<div className="mt-[30px]">
<Tab.Content value="follower">
{followerList &&
followerList.data.map((item) => (
<FollowerList
key={item.userId}
userId={item.userId}
profileImgUrl={item.profileImgUrl}
nickName={item.nickname}
isFollowed={item.isFollowed}
value={'FOLLOWER'}
/>
))}
</Tab.Content>
<Tab.Content value="following">
{followingList &&
followingList.data.map((item) => (
<FollowerList
key={item.userId}
userId={item.userId}
profileImgUrl={item.profileImgUrl}
nickName={item.nickname}
isFollowed={item.isFollowed}
value={'FOLLOWING'}
/>
))}
</Tab.Content>
</div>
</Tab.Group>
</div>
<Tab.Group initialTab={type ? type : 'follower'}>
<div className="h-[76px] w-full flex sticky top-[40px] bg-white z-above rounded-t-[24px]">
<Tab.Header>
<Tab.Item value="follower">팔로워</Tab.Item>
<Tab.Item value="following">팔로잉</Tab.Item>
</Tab.Header>
</div>
<div className="mt-[30px]">
<Tab.Content value="follower">
{followerList &&
followerList.data.map((item) => (
<FollowerList
key={item.userId}
userId={item.userId}
profileImgUrl={item.profileImgUrl}
nickName={item.nickname}
isFollowed={item.isFollowed}
value={'FOLLOWER'}
/>
))}
</Tab.Content>
<Tab.Content value="following">
{followingList &&
followingList.data.map((item) => (
<FollowerList
key={item.userId}
userId={item.userId}
profileImgUrl={item.profileImgUrl}
nickName={item.nickname}
isFollowed={item.isFollowed}
value={'FOLLOWING'}
/>
))}
</Tab.Content>
</div>
</Tab.Group>
);
}
2 changes: 2 additions & 0 deletions src/app/profile/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { useUploadImageToNCloud } from '@hooks/api/useUploadImageToNCloud';
import { usePutProfileImage } from '@hooks/api/usePutProfileImage';
import { usePatchFollow } from '@hooks/api/usePatchFollow';
import ProfileFeedContent from '@components/profile/ProfileFeedContent';
import BottomNavigation from '@components/common/BottomNavigation';

export default function Page() {
const pathname = usePathname();
Expand Down Expand Up @@ -210,6 +211,7 @@ export default function Page() {
</Tab.Group>
</div>
</div>
<BottomNavigation />
</div>
);
}
2 changes: 1 addition & 1 deletion src/components/common/BottomNavigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function BottomNavigation({
return (
<nav
className={cn(
'h-[73px] w-full flex justify-evenly items-center gap-[20px] p-[12px] fixed bottom-0 bg-white z-nav',
'h-[73px] w-full max-w-[480px] flex justify-evenly items-center gap-[20px] p-[12px] fixed bottom-0 bg-white z-nav',
className,
{ ...restProps },
)}
Expand Down
6 changes: 3 additions & 3 deletions src/constants/onboarding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const ONBOARDING_CONTENT: OnboardingContentProps[] = [
title: '재방문 맛집을 지도에 표시했어요',
content: '많은 사람이 재방문한 곳일수록 그릇이 많아요!',
videoUrl: '/video/onboarding_1.mp4',
gifUrl: '/gif/onboarding_1.gif',
gifUrl: '/gif/onboarding_1.webp',
icon: '/assets/icon_onboarding/first_step.svg',
},
{
Expand All @@ -22,7 +22,7 @@ export const ONBOARDING_CONTENT: OnboardingContentProps[] = [
content:
'가고 싶은 곳을 북마크하고, 방문 후 기록을 남겨보세요.\n 나의 맛집 지도가 완성될 거예요!',
videoUrl: '/video/onboarding_2.mp4',
gifUrl: '/gif/onboarding_2.gif',
gifUrl: '/gif/onboarding_2.webp',
icon: 'assets/icon_onboarding/second_step.svg',
},
{
Expand All @@ -31,7 +31,7 @@ export const ONBOARDING_CONTENT: OnboardingContentProps[] = [
content:
'다녀온 맛집 기록을 남겨보세요.\n 5개 이상 남기면 레벨이 올라가요!',
videoUrl: '/video/onboarding_3.mp4',
gifUrl: '/gif/onboarding_3.gif',
gifUrl: '/gif/onboarding_3.webp',
icon: '/assets/icon_onboarding/third_step.svg',
},
];

0 comments on commit ef825e3

Please sign in to comment.