Skip to content
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

[feat] 유니버설 아일랜드 인터랙션 추가 (resolve #21) #42

Merged
merged 21 commits into from
Jul 29, 2024

Conversation

lybell-art
Copy link
Collaborator

@lybell-art lybell-art commented Jul 28, 2024

#️⃣ 연관 이슈

📝 작업 내용

유니버설 아일랜드 인터랙션을 추가했습니다.

  • 반응형 웹을 지원합니다.
  • 모든 로직은 useIslandDrag.js에 들어가 있습니다. 로직이 굉장히 복잡해서 분리했습니다.

드래깅/드래그 아웃 마운트를 관장하는 부분을 별도의 훅으로 분리해서 사용하기 쉽게 했습니다.

참고 이미지 및 자료

image

[perf] 배터리 프로그레스바의 스타일을 transform 기반으로 구성
[refactor] 드래그 이벤트를 마운트하는 로직을 별도의 커스텀 훅으로 분리
@lybell-art lybell-art added the feat 기능 구현 label Jul 28, 2024
@lybell-art lybell-art self-assigned this Jul 28, 2024
@lybell-art lybell-art linked an issue Jul 28, 2024 that may be closed by this pull request
5 tasks
Copy link
Collaborator

@darkdulgi darkdulgi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

@darkdulgi darkdulgi merged commit f88f238 into dev Jul 29, 2024
1 check passed
@lybell-art lybell-art deleted the feature/21-universalIslandInteraction branch July 29, 2024 01:12
@lybell-art
Copy link
Collaborator Author

테스트 방법

App.jsx에 다음과 같이 작성하세요.

import UnivasalIslandInteraction from "./interactions/univasalIsland/UnivasalIslandInteraction.jsx";
function App() {
  return (
    <div className="w-full h-dvh bg-black">
      <UnivasalIslandInteraction />
    </div>

해당 인터랙션 컴포넌트가 상위 컴포넌트의 width, height값을 따르고 있기 때문에 div로 따로 묶어줘야 합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat 기능 구현
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 인터랙션-유니버셜아일랜드
2 participants