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

[feature] 모집정보, 동아리정보, 소개글 컴포넌트 제작 #65

Open
wants to merge 21 commits into
base: develop/fe
Choose a base branch
from

Conversation

seongwon030
Copy link
Contributor

@seongwon030 seongwon030 commented Feb 10, 2025

#️⃣연관된 이슈

ex) #62

📝작업 내용

모집정보, 동아리정보 컴포넌트

스크린샷 2025-02-10 16 29 42

소개글 컴포넌트

스크린샷 2025-02-10 16 30 11 - react-markdown으로 하드코딩 해 놓았습니다. 나중에 동아리 관리자 기능 추가되면 수정해보도록 합시다.

모바일 버전 추가

  • 자동스크롤 훅 추가 33e8e07

그 외

중점적으로 리뷰받고 싶은 부분(선택)

  1. 자동 스크롤 기능이 잘 구현되었는지

논의하고 싶은 부분(선택)

논의하고 싶은 부분이 있다면 작성해주세요.

🫡 참고사항

- InfoBoxWrapper: 모집정보와 동아리정보 카드 가로로 배치
- InfoBox: 모집정보 동아리정보 카드 컴포넌트
- Title: 카드 종류
- DescriptionContainer: 설명 부분 수직으로 배치
- DescriptionWrapper: 설명 key-value로 묶음
- key가 LeftText, value는 RightText
- IntroduceBoxWrapper: 위치 및 배치 조정
- IntroduceTitle: 타이틀 폰트 설정
- IntroduceContentBox: 소개글 내용 스타일
- react-markdown적용
@seongwon030 seongwon030 added ✨ Feature 기능 개발 💻 FE Frontend labels Feb 10, 2025
@seongwon030 seongwon030 requested a review from oesnuj February 10, 2025 07:31
@seongwon030 seongwon030 self-assigned this Feb 10, 2025
@seongwon030 seongwon030 linked an issue Feb 10, 2025 that may be closed by this pull request
2 tasks
Copy link
Member

@oesnuj oesnuj left a comment

Choose a reason for hiding this comment

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

디자인이랑 똑같네여😀
수고하셨슴당

Comment on lines 8 to 21
const ClubDetailPage = () => {
return (
<>
<Header />
<Styled.PageContainer>
<InfoBox />
<IntroduceBox />
</Styled.PageContainer>
<Footer />
</>
);
};

export default ClubDetailPage;
Copy link
Member

Choose a reason for hiding this comment

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

요기 파일명 오타있네요
ClubDetailPagel.tsx → ClubDetailPage.tsx

Comment on lines 3 to 5
import InfoBox from '@/pages/ClubDetailPage/components/InfoBox/InfoBox';
import IntroduceBox from '@/pages/ClubDetailPage/components/IntroduceBox/IntroduceBox';
import * as Styled from '../MainPage/MainPage.styles';
Copy link
Member

Choose a reason for hiding this comment

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

MainPage.styles를 가져온 이유가 궁금해요!
혹시 pageContainer가 필요해서라면, 헤더랑 푸터 들어있고 기본 양쪽 간격을 잡아주는 공통 스타일을 따로 만들어도 좋을 것 같네용 😊

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PageContainer만 필요했어서 가져온건데 공통스타일을 만들어보도록 할게요 !

Comment on lines +29 to +30
{info.descriptions.map((desc, idx) => (
<Styled.DescriptionWrapper key={idx}>
Copy link
Member

Choose a reason for hiding this comment

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

나중에 API에서 데이터를 받아올 때는 index 대신 id 같은 고유한 값을 key로 사용하는 게 더 좋을 것 같아요!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

네네 index보다 고유id 가 리렌더링 측면에서 좋기 때문에 다시 수정해보겠습니다~

Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for moadong ready!

Name Link
🔨 Latest commit 5473bc4
🔍 Latest deploy log https://app.netlify.com/sites/moadong/deploys/67aca2d08b71ad0008c563a4
😎 Deploy Preview https://deploy-preview-65--moadong.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

- 테두리 안 보이게 설정
- RefObject 리턴타입으로 해당 DOM접근 가능하도록 함
- sectionsRef의 2번째 인덱스로 설정
- flex-direction 을 column으로 설정하여 세로 정렬로 변경
- InfoBox 테두리 제거
- sectionRef에 index로 순서 할당
- sectionRefs로 스크롤될 섹션을 배열로 관리
- scrollTo로 인덱스에 따라 해당 섹션으로 스크롤되도록 함
- useState로 탭 상태 관리
- 현재 탭이 activeTab일 시 조건부로 active 실행
- 모바일버전에만 보이도록 설정
- 버튼에 activd클래스 추가하여 border-bottom 설정
- width가 500px 이내라면 헤더 제거되도록 함
- 스크롤되어야 하는 컴포넌트에 sectionRefs 전달하여 스크롤 섹션으로 추가
@seongwon030 seongwon030 linked an issue Feb 12, 2025 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 FE Frontend ✨ Feature 기능 개발
Projects
None yet
2 participants