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

리뷰 방법 안내 페이지 구현 (issue#52) #56

Merged
merged 4 commits into from
Jul 18, 2024
Merged

Conversation

brgndyy
Copy link
Contributor

@brgndyy brgndyy commented Jul 18, 2024

구현 요약

리뷰 방법 안내 페이지를 구현합니다.

연관 이슈

close #52

@brgndyy brgndyy added 🎨 프론트엔드 프론트엔드 관련 이슈 ⚒️ 기능 작업해야하는 기능 labels Jul 18, 2024
@brgndyy brgndyy added this to the 두번째 스프린트 milestone Jul 18, 2024
@brgndyy brgndyy self-assigned this Jul 18, 2024
const { selectedIndex, tabList } = useTabs();

return (
<S.TabCurrentContentContainer>{tabList[selectedIndex].content}</S.TabCurrentContentContainer>
Copy link
Contributor

Choose a reason for hiding this comment

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

사소하지만, 여기 컴포넌트 명에 따라서 CurrentTabContainer로 바꿔도 좋을 것 같아요~!

Suggested change
<S.TabCurrentContentContainer>{tabList[selectedIndex].content}</S.TabCurrentContentContainer>
<S.CurrentTabContainer>{tabList[selectedIndex].content}</S.CurrentTabContainer>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

짚어주셔서 감사합니다 :)


//TODO 여기서만 쓰일 데이터 같아서 일단 위에 선언해놓습니다. @버건디

const TAB_LIST: TabData[] = [
Copy link
Contributor

@Parkhanyoung Parkhanyoung Jul 18, 2024

Choose a reason for hiding this comment

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

Guide와 관련된 Tab List라는 걸 드러내기 위해 GUIDE라는 단어를 앞에 붙여주는 건 어떻게 생각하시나요~?

추가로, TabList라는 컴포넌트가 있어서 헷갈릴 수도 있을 것 같은데, 혹시 이 상수가 Tab의 정보를 담았다는 사실을 드러내기 위해 data나 Info라는 사용해보면 어떨까요!
(개인적으로는, Data라는 단어는 api 관련 데이터로 오해할 여지가 있을 것 같아서 Info가 더 낫다고 생각합니다 ㅎㅎ)

Suggested change
const TAB_LIST: TabData[] = [
const GUIDE_TAB_INFO: TabInfo[] = [
const GUIDE_TAB_DATA: TabData[] = [

Copy link
Contributor Author

Choose a reason for hiding this comment

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

TabInfo 라고 변경해보았습니다. 짚어주셔서 감사합니다~! 🙇

@Parkhanyoung
Copy link
Contributor

Parkhanyoung commented Jul 18, 2024

잘 만들어주셨네요~!!! 버건디 고생하셨습니다! 👍🏻
(+ 배너 추가로 맡아주셔서 너무 감사드립니다 🙇🏻‍♂️🙇🏻‍♂️)

animation: ${fadeIn} 0.3s ease-out;
`;

export const TabContainer = styled.div<{ selected: boolean }>`
Copy link
Contributor

@Parkhanyoung Parkhanyoung Jul 18, 2024

Choose a reason for hiding this comment

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

Suggested change
export const TabContainer = styled.div<{ selected: boolean }>`
export const TabContainer = styled.div<{ isSelected: boolean }>`

앞에 is 붙여주면 좋을 것 같습니다 🫡

Copy link
Contributor Author

Choose a reason for hiding this comment

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

수정하였어요! 짚어주셔서 감사합니다 🙇

tabList: TabData[];
}

export default function Tabs({ children, tabList }: TabsProps) {
Copy link
Contributor

@Parkhanyoung Parkhanyoung Jul 18, 2024

Choose a reason for hiding this comment

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

TabList와 Tabs가 네이밍만 봤을 때는 헷갈릴 수도 있겠다는 생각이 들었습니다. 그런데 어떻게 개선해볼 수 있을지는 잘 안 떠오르네요 🥲🥲 혹시 버건디에게 좋은 아이디어가 있으실까요?

Copy link
Contributor

Choose a reason for hiding this comment

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

TabList는 TabMenu 어떨까요? 혹은 TabHeader도 제안드려요! (더 좋은 네이밍 있으면 적극 환영입니다🙌)

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

@chosim-dvlpr chosim-dvlpr left a comment

Choose a reason for hiding this comment

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

구현하시느라 고생하셨습니다 👏👏 코멘트 확인 부탁드릴게요~!

export const TabCurrentContentContainer = styled.div`
word-break: break-all;
margin-top: 2rem;
animation: ${fadeIn} 0.3s ease-out;
Copy link
Contributor

Choose a reason for hiding this comment

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

오 애니메이션까지 넣어주셨군요 👍👍

tabList: TabData[];
}

// TODO 컨텍스트 폴더를 따로 뺄지 안뺄지 이야기 나눠보아야 할거 같아요 ! @버건디
Copy link
Contributor

Choose a reason for hiding this comment

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

저는 컨텍스트 폴더 분리하는 것 좋습니다!

tabList: TabData[];
}

export default function Tabs({ children, tabList }: TabsProps) {
Copy link
Contributor

Choose a reason for hiding this comment

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

TabList는 TabMenu 어떨까요? 혹은 TabHeader도 제안드려요! (더 좋은 네이밍 있으면 적극 환영입니다🙌)

@@ -0,0 +1,35 @@
import Tabs from '@/components/tab/Tabs';
import HowToFork from '@/components/guide/HowToFork';
import { TabData } from '@/types';
Copy link
Contributor

Choose a reason for hiding this comment

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

type import 추가하면 좋을 것 같아요~!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

엉엉 맨날 놓치네요..

수정했습니다! 감사해요~!

@Parkhanyoung Parkhanyoung merged commit f4a27c0 into main Jul 18, 2024
1 check failed
@alstn113 alstn113 deleted the feat/#52 branch July 21, 2024 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚒️ 기능 작업해야하는 기능 🎨 프론트엔드 프론트엔드 관련 이슈
Projects
Status: 😎 DONE
Development

Successfully merging this pull request may close these issues.

리뷰 방법 안내 페이지 구현
3 participants