-
Notifications
You must be signed in to change notification settings - Fork 4
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: 멤버 페이지 구현 #21
Feat: 멤버 페이지 구현 #21
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨어용! 자잘한거 리펙토링 내용은 다음번에 추가하면될듯!
> | ||
<Image | ||
src={BannerPng} | ||
alt="BannerPng" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alt 잘쓰기!
<div className="text-4xl mb-[1.25rem]">Lead</div> | ||
<div className='flex'> | ||
<div className="text-3xl mr-[0.5rem]">서희찬</div> | ||
<div className="text-2xl mb-[1.25rem]">컴퓨터공학과</div> | ||
</div> | ||
<div className="flex items-center text-lg"> | ||
<div className="w-1 h-12 bg-white mr-2.5"></div> | ||
<div> | ||
안녕하세요! GDSC DGU Lead 서희찬입니다. | ||
<br/> | ||
GDSC DGU는 많은 학우분들과 함께 성장하고 싶습니다. | ||
많은 관심 부탁드립니다! 감사합니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const데이터로 뺴기
const [selected, setSelected] = useState(1); | ||
|
||
const handleCircleClick = (index: any) => { | ||
if (index === 0) return; | ||
setSelected(index); | ||
onSelectIndex(index); // Pass the selected index up to the parent component | ||
}; | ||
|
||
const scrollContainer = useRef(null); | ||
|
||
const getCircleColor = (index: any) => { | ||
if (index === selected) return '#FB8C00'; | ||
if (index < selected) return '#FFCC80'; | ||
return '#9FA4A8'; | ||
}; | ||
|
||
const getTextColor = (index: any) => { | ||
if (index === selected) return '#FFFFFF'; | ||
return '#9FA4A8'; | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
약간 이런 로직은 다른 파일로 뺼수없나 한번 봐야할듯!
metadata를 포기하면 됩니다 ㅎㅎ.ㅎ.ㅎ.ㅎ.ㅎ....ㅠㅠ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨어용!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다~!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
맴버 넣느라 고생 많으셨습니다... ... 이거 앞으로도 하나하나 수작업해야하나요?
PR 타입 ( 하나 이상의 PR 타입을 선택해주세요 )
개요
멤버 페이지 생성했습니다.
변경 사항
대략적인 뷰는 만들어놓고 타임라인 누를때마다 다른 세대 gdsc 나올수있게 세팅해놨습니다.
코드 확인받고나면 디자인은 피그마에 완전히 맞게 수정하고, 모바일 반응형 구현하겠습니다!
코드 리뷰시 참고 사항