Skip to content

Commit

Permalink
#87 refactor: 마감 임박 스타일 재수정
Browse files Browse the repository at this point in the history
  • Loading branch information
MyungJiwoo committed Sep 25, 2024
1 parent a34547d commit 07d1376
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/styles/DashboardStyled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,15 @@ export const BlockContainer = styled.div<{
color: ${theme.color.gray};
font-weight: ${theme.font.weight.light};
color: ${({ dayCount, isDone }) => (dayCount < 8 && !isDone ? 'red' : theme.color.gray)};
// * d-day 7일 남았을 때부터 다른 스타일
color: ${({ dayCount, isDone }) => (dayCount > -8 && !isDone ? 'red' : theme.color.gray)};
/* font-weight: ${({ dayCount }) =>
dayCount < 4 ? theme.font.weight.bold : theme.font.weight.light}; */
animation-name: ${({ dayCount, isDone }) => (dayCount < 8 && !isDone ? shake : 'none')};
animation-name: ${({ dayCount, isDone }) => (dayCount > -8 && !isDone ? shake : 'none')};
animation-duration: 0.5s; /* 애니메이션 지속 시간 설정 */
animation-iteration-count: infinite; /* 애니메이션 반복 설정 */
animation-duration: 0.2s; /* 애니메이션 지속 시간 설정 */
animation-iteration-count: 5;
}
&:hover {
Expand Down

0 comments on commit 07d1376

Please sign in to comment.