Skip to content

Commit

Permalink
Design: 리스트 비공개 디자인 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkSohyunee committed Feb 1, 2024
1 parent aa420f3 commit d6a5b3f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
4 changes: 2 additions & 2 deletions public/icons/lock_alt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/app/[userNickname]/_components/Card.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ export const list = style({
});

export const lockIcon = style({
padding: '0 1rem',

display: 'flex',
justifyContent: 'flex-end',
alignItems: 'center',
gap: '2px',
});

export const lockText = style({
fontSize: '1.1rem',
fontWeight: '400',
letterSpacing: '-0.33px',
color: '#AFB1B6',
});
11 changes: 6 additions & 5 deletions src/app/[userNickname]/_components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,18 @@ export default function Card({ list, isOwner }: CardProps) {
[styles.listColor]: `${list.backgroundColor}`,
})}
>
{isVisibleLockIcon && (
<div className={styles.lockIcon}>
<span className={styles.lockText}>비공개</span>
<LockIcon alt="비공개 리스트 표시" />
</div>
)}
<h2 className={styles.title}>{list.title}</h2>
<ul className={styles.list}>
{list.items.map((item) => (
<CardItem key={item.id} item={item} />
))}
</ul>
{isVisibleLockIcon && (
<div className={styles.lockIcon}>
<LockIcon alt="비공개 리스트 표시" />
</div>
)}
</ul>
);
}

0 comments on commit d6a5b3f

Please sign in to comment.