Skip to content

Commit f482dd1

Browse files
committed
[FE] refactor: 친구 리스트 디자인 수정 및 명수 안내 (#69)
1 parent 01272b1 commit f482dd1

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

src/frontend/src/components/friend/FriendsList/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const friends: Friend[] = [
2929
const FriendsList = () => {
3030
return (
3131
<S.FriendsList>
32+
<S.FriendCount>모든 친구 - {friends.length}</S.FriendCount>
3233
{friends.map((friend, index) => (
3334
<S.FriendItem key={`${friend.name}_${index}`}>
3435
<S.FriendProfileImage $imageUrl={friend.profileImageUrl}>

src/frontend/src/components/friend/FriendsList/styles.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,24 @@ export const FriendsList = styled.ul`
88
99
width: 100%;
1010
margin-top: 0.8rem;
11+
padding: 0 2rem 0 3rem;
1112
1213
color: ${({ theme }) => theme.colors.dark[300]};
1314
`;
1415

16+
export const FriendCount = styled(ChipText)`
17+
margin: 1.6rem 0 1rem;
18+
color: ${({ theme }) => theme.colors.dark[300]};
19+
`;
20+
1521
export const FriendItem = styled.li`
1622
cursor: pointer;
1723
1824
display: flex;
1925
align-items: center;
2026
2127
height: 6.2rem;
22-
margin: 0 2rem 0 3rem;
23-
padding: 1.6rem 1rem;
28+
border-top: 0.1rem solid ${({ theme }) => theme.colors.dark[500]};
2429
border-radius: 0.4rem;
2530
2631
&:hover {

src/frontend/src/components/friend/PendingFriendsList/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const PendingFriendsList = () => {
3131

3232
return (
3333
<S.FriendsList>
34+
<S.FriendCount>대기 중인 친구 - {friends.length}</S.FriendCount>
3435
{friends.map((friend, index) => (
3536
<S.FriendItem key={`${friend.name}_${index}`}>
3637
<S.FriendInfoContainer>

src/frontend/src/components/friend/PendingFriendsList/styles.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ export const FriendsList = styled.ul`
88
99
width: 100%;
1010
margin-top: 0.8rem;
11+
padding: 0 2rem 0 3rem;
1112
1213
color: ${({ theme }) => theme.colors.dark[300]};
1314
`;
1415

16+
export const FriendCount = styled(ChipText)`
17+
margin: 1.6rem 0 1rem;
18+
color: ${({ theme }) => theme.colors.dark[300]};
19+
`;
20+
1521
export const FriendItem = styled.li`
1622
cursor: pointer;
1723
@@ -20,8 +26,7 @@ export const FriendItem = styled.li`
2026
justify-content: space-between;
2127
2228
height: 6.2rem;
23-
margin: 0 2rem 0 3rem;
24-
padding: 1.6rem 1rem;
29+
border-top: 0.1rem solid ${({ theme }) => theme.colors.dark[500]};
2530
border-radius: 0.4rem;
2631
2732
&:hover {

0 commit comments

Comments
 (0)