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/asidbar Sidbar Component style #13

Merged
merged 10 commits into from
Mar 13, 2024
Merged

Feat/asidbar Sidbar Component style #13

merged 10 commits into from
Mar 13, 2024

Conversation

entrolEC
Copy link
Contributor

@entrolEC entrolEC commented Mar 10, 2024

개요

  • sidebar의 스타일 및 애니매이션을 추가했습니다.

작업 분류

  • 버그 수정
  • 신규 기능
  • 프로젝트 구조변경

작업 상세 내용

1. sidebar의 스타일 및 애니메이션을 추가했습니다.

어떤 그룹을 선택했는지 알기 쉽도록 Pointer컴포넌트를 추가하였으며, 선택한 그룹으로 이동하도록 구현하였습니다.

2. framer-motion 패키지를 추가하였습니다.

애니메이션을 구현하기 위헤 framer-motion패키지를 추가하였으며, Pointer컴포넌트 및 Group컴포넌트에서 사용하였습니다.

@entrolEC entrolEC added the enhancement New feature or request label Mar 10, 2024
@entrolEC entrolEC self-assigned this Mar 10, 2024
@entrolEC
Copy link
Contributor Author

Pointer 컴포넌트의 좌표 버그가 발견되었습니다. ㅠ 수정중입니다

Copy link
Contributor

@CSKIM999 CSKIM999 left a comment

Choose a reason for hiding this comment

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

머지 전에 src/components/Sidebar/Sidebar.tsx 파일의 매직넘버만 수정하시면 좋을 것 같습니다!!

@@ -11,7 +11,7 @@ function getAbsolutePath(value: string): any {
}
const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
staticDirs: ["../public"],
staticDirs: ["../src/assets"],
Copy link
Contributor

Choose a reason for hiding this comment

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

이 부분은 public 에서 가져 올 staticAssets 경로를 설정해야하니 public이 맞지 않나요?

Copy link
Contributor

Choose a reason for hiding this comment

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

저도 해당 부분 public이라고 생각이 드는데, 다음과 같이 바꾼 이유가 있나요?

Copy link
Contributor

Choose a reason for hiding this comment

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

저희가 public 폴더가 없어서 에러가 발생하는 군요..

Copy link
Contributor

Choose a reason for hiding this comment

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

public 폴더는 존재하지 않나요??

Copy link
Contributor

Choose a reason for hiding this comment

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

오잉 근데 제가 이상한지는 모르겠는데 없기는 합니다
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#12 (comment)
음 제 경우에는 public경로가 없어서 에러가 발생합니다

Comment on lines 12 to 13
const height = groups.length * 80 + 80;
const pointerY = selectedIdx * 64 + 24 - 4;
Copy link
Contributor

Choose a reason for hiding this comment

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

이 부분의 매직넘버들은 해당 파일의 상단에 상수로 빼서 작성해주시면 더 좋을 것 같습니다. 어떤 숫자들인지 저는 잘 모르겠네요.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

넵 그렇게 수정해보도록 하겠습니다 👍

Copy link
Contributor

@yeongjunekoh yeongjunekoh left a comment

Choose a reason for hiding this comment

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

전반적으로 코드 잘 보았습니다

이해가 전반적으로 잘 되어서 Approve 드립니다

import { MouseEventHandler } from "react";
import { motion } from "framer-motion";
import clsx from "clsx";
Copy link
Contributor

Choose a reason for hiding this comment

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

clsx라는 것 하나 배워갑니다 링크

@entrolEC entrolEC merged commit 5617503 into main Mar 13, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants