Repository navigation
feat : 노래 검색 및 곡 선택 플로우 구현 #58
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 12 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
249b7cd
feat : 노래 검색 및 곡 선택 플로우 구현
kim3360 3e382c1
feat : pencil 아이콘 추가
kim3360 ca36e0d
fix : 노래 재생 UI 수정
kim3360 fe37222
fix : 노래 바텀시트 수정
kim3360 50b2d33
fix : 핀 카드 props 오타 수정
kim3360 5f0ccb0
fix : 태그옵션 데이터 값 수정
kim3360 c935bf0
Merge branch 'develop' into feat/29-song-search-flow
kim3360 4d9666f
fix : 타입 경로 수정
kim3360 5a7c06a
Merge branch 'develop' into feat/29-song-search-flow
kim3360 98732c7
rename : 더미 데이터 파일이동
kim3360 0de84d0
feat : 노래 리스트 페이지 구현
kim3360 12e1561
Merge branch 'develop' into feat/29-song-search-flow
kim3360 70f6671
style : 노래 수정 버튼 스타일 변경
kim3360 47ee46e
fix : 코드레빗 수정사항 반영
kim3360 74f199c
style : 노래 재생 막대 gap 수정
kim3360 780fe55
fix : 빌드 에러 수정
kim3360 2d89592
style : tag 컴포넌트 스타일 수정
kim3360 dce04ff
style : 핀 상세 정보 이미지 블러셔 수정
kim3360 de20c66
style : 핀 상세 정보 이미지 그라데이션 높이 수정
kim3360 c653baa
Merge branch 'develop' into feat/29-song-search-flow
kim3360 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,56 @@ | ||
| import type { Song } from '@/features/pin/types'; | ||
| import newJeansArtistImage from '@/assets/Rectangle.png'; | ||
|
|
||
| { | ||
| /* 노래 카드 목록 데이터 */ | ||
| } | ||
| export const MOCK_SONG_CARD_LIST: Song[] = [ | ||
| { id: '1', title: 'Hype Boy', artist: 'NewJeans', artistImage: newJeansArtistImage }, | ||
| { id: '2', title: 'Hype Boy (250 Remix)', artist: 'NewJeans', artistImage: newJeansArtistImage }, | ||
| ]; | ||
|
|
||
| { | ||
| /* 노래 프리뷰 데이터 */ | ||
| } | ||
| export const MOCK_WAVEFORM_PEAKS = [ | ||
| 0.35, 0.55, 0.75, 0.9, 1, 0.85, 0.7, 0.95, 0.8, 0.65, 0.5, 0.4, 0.55, 0.7, 0.85, 0.95, 0.75, 0.6, | ||
| 0.45, 0.35, 0.5, 0.65, 0.8, 0.7, 0.55, 0.4, 0.35, 0.45, 0.6, 0.75, 0.85, 0.7, 0.55, 0.4, 0.35, | ||
| 0.45, 0.6, 0.75, 0.65, 0.5, 0.35, 0.55, 0.75, 0.9, 1, 0.85, 0.7, 0.95, 0.8, 0.65, 0.5, 0.4, 0.55, | ||
| 0.7, 0.85, 0.95, 0.75, 0.6, 0.45, 0.35, 0.5, 0.65, 0.8, 0.7, 0.55, 0.4, 0.35, 0.45, 0.6, 0.75, | ||
| 0.85, 0.7, 0.55, 0.4, 0.35, 0.45, 0.6, 0.75, 0.65, 0.5, | ||
| ] as const; | ||
|
|
||
| export const MOCK_PREVIEW_DURATION = 30; | ||
| export const MIN_TRIM_DURATION = 5; | ||
| export const DEFAULT_TRIM_START_INDEX = 8; | ||
| export const DEFAULT_TRIM_END_INDEX = 24; | ||
|
|
||
| export const TAG_OPTIONS = [ | ||
| '감성', | ||
| '고독', | ||
| '낭만', | ||
| '몽환', | ||
| '설렘', | ||
| '신남', | ||
| '위로', | ||
| '잔잔', | ||
| '청량', | ||
| '힙함', | ||
| ] as const; | ||
|
|
||
| export function peaksToTrimRange( | ||
| startIndex: number, | ||
| endIndex: number, | ||
| peaks: readonly number[], | ||
| duration: number, | ||
| ) { | ||
| return { | ||
| start: (startIndex / peaks.length) * duration, | ||
| end: ((endIndex + 1) / peaks.length) * duration, | ||
| }; | ||
| } | ||
|
|
||
| export function timeToPercent(time: number, duration: number) { | ||
| if (duration <= 0) return 0; | ||
| return (time / duration) * 100; | ||
| } | ||
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
Oops, something went wrong.
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.