Skip to content

Commit

Permalink
[#46] feat - 찜페이지 찜해제/찜등록 되도록 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
nohgijin committed Jan 16, 2021
1 parent 913a4ed commit 21743fa
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/global/Project/Project.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function Project({ data, type, jjimType }) {
<div className={cx('project-info-name')}>{data.title}</div>
<div className={cx('project-info-price')}>
<span className={cx('project-info-price-current')}>
{data.percent + '% 달성'}
{data.left_days + '일 남음'}
</span>
</div>
</div>
Expand Down
14 changes: 14 additions & 0 deletions src/components/global/Project/Project.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@
top: 0.1rem;
font-size: 1.2rem;
color: $pink;
animation: heart;
animation-duration: 0.3s;
}

@keyframes heart {
0% {
transform: scale(1);
}
50% {
transform: scale(1.15);
}
100% {
transform: scale(1);
}
}

&-info {
Expand Down
16 changes: 15 additions & 1 deletion src/pages/DetailPage/DetailPage.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
display: flex;
flex-direction: column;
justify-content: center;

.product-details-image {
max-width: 600px;
border-radius: 10px;
Expand Down Expand Up @@ -107,6 +107,8 @@
width: 40px;
height: auto;
cursor: pointer;
animation: heart;
animation-duration: 0.3s;
}

.product-details-info-options-funding {
Expand All @@ -115,6 +117,18 @@
height: auto;
cursor: pointer;
}

@keyframes heart {
0% {
transform: scale(1);
}
50% {
transform: scale(1.15);
}
100% {
transform: scale(1);
}
}
}
}

Expand Down

0 comments on commit 21743fa

Please sign in to comment.