-
Notifications
You must be signed in to change notification settings - Fork 1
✨Feat: 크레딧 충전하기 모달 토스트 적용 기능 구현 #264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5f07a1a
✨Feat: 크레딧 충전하기 모달 창의 크레딧 콤마 단위 기능 추가 및 css 속성 추가
yuj2n 2771d0c
💄Style: 충전하기 모달 반응형 삭제 및 이미지 위치 조정
yuj2n 90ba7d3
Merge branch 'develop' into feature/#215-creditChargeModal-toast
yuj2n 0bcd9b9
♻️Refactor: 더 보기 버튼 분리하여 공용화
yuj2n 4fbedbe
💄Style: 차트에 투표 수 반영하는 상태변수 추가
yuj2n e10f1c2
💄Style: 투표 성공 시 성공트리거 상태 변경으로 차트 렌더링 유도
yuj2n de6a67a
💄Style: 충전하기 모달창 로고 이미지 추가에 따른 디자인 수정
yuj2n e408221
💄Style: 모바일에서 border 색상 회색으로 보여 색상 수정 및 리스트 active 효과 추가
yuj2n 504711e
💄Style: 차트에 투표 수 반영을 위한 디펜던시 추가
yuj2n d30a029
✨Feat: 크레딧 충전 성공 실패에 따른 경고창 기능 적용
yuj2n 42dab52
♻️Refactor: screenSize 함수 분리하여 공용화 및 그에 따른 경로 수정
yuj2n c9eb58b
💄Style: 더보기 버튼 경로 오류 수정
yuj2n File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/components/chart/LoadMoreButton.jsx → .../button/loadMoreButton/LoadMoreButton.jsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export { default } from './LoadMoreButton'; |
52 changes: 52 additions & 0 deletions
52
src/components/button/loadMoreButton/loadMoreButton.styles.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| import { css, keyframes } from '@emotion/react'; | ||
| import media from '@/styles/responsive'; | ||
|
|
||
| export const voteButtonFlow = keyframes` | ||
| 0% { | ||
| background-position: 0% 50%; | ||
| } | ||
| 50% { | ||
| background-position: 100% 50%; | ||
| } | ||
| 100% { | ||
| background-position: 0% 50%; | ||
| } | ||
| `; | ||
|
|
||
| export const flexCenter = css` | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| `; | ||
|
|
||
| export const moreButton = css` | ||
| ${flexCenter}; | ||
| margin-inline: auto; | ||
| margin-block: 3rem; | ||
| border-radius: 8px; | ||
| background: linear-gradient(45deg, var(--black) 0%, var(--white-alpha-20) 51%, var(--white-alpha-10) 100%); | ||
| background-position: left center; /* 기본 시작 위치 */ | ||
| background-size: 400%; /* 배경 크기 확장 */ | ||
| transition: all 0.1s ease; | ||
|
|
||
| ${media({ | ||
| fontSize: ['1.1rem', '1.2rem', '1.4rem', '1.6rem'], | ||
| width: ['10rem', '15rem', '20rem', '25rem'], | ||
| height: ['2.3rem', '2.7rem', '3.5rem', '4rem'], | ||
| })} | ||
|
|
||
| &:hover { | ||
| background-position: right center; /* hover 시 배경 이동 */ | ||
| animation: ${voteButtonFlow} 4s ease infinite; /* 애니메이션 흐름 */ | ||
| opacity: 0.9; | ||
| } | ||
|
|
||
| &:active { | ||
| transform: scale(0.97); | ||
| } | ||
|
|
||
| &:disabled { | ||
| cursor: not-allowed; | ||
| opacity: 0.6; | ||
| } | ||
| `; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export { default as useScreenSize } from './useScreenSize'; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.