-
Notifications
You must be signed in to change notification settings - Fork 4
[기능 추가] 스터디 세션 리스트 페이지 구현 #55
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
[기능 추가] 스터디 세션 리스트 페이지 구현 #55
Conversation
- 메인 색상으로 그린 컬러 - 기본 색상으로 grayscale 컬러 - 타이포그래피 설정 - 기존 CSS 제거
- UI만 구현한 상태
yiseungyun
left a comment
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.
디자인 시스템 구축한거 너무 좋아요. 👍
컴포넌트 폴더 이름은 components로 하셨군요! 나중에 만들다가 많은 컴포넌트가 생기게 되면 그 때 최적의 구조를 찾아보면 좋을거 같아요. 보통 정해놓고 많이하시는데, 저희는 일단 기능 개발 먼저 해보고 저희한테 최적인 구조를 함께 찾아보면 좋을거 같습니다. ☃️
| extend: { | ||
| colors: { | ||
| grayscale: { | ||
| 'white-alt': 'rgba(255, 255, 255, 0.7)', | ||
| white: '#FFFFFF', | ||
| 50: '#F5F7F9', | ||
| 100: '#D2DAE0', | ||
| 200: '#879298', | ||
| 300: '#6E8091', | ||
| 400: '#5F6E76', | ||
| 500: '#4B5966', | ||
| black: '#14212B', | ||
| }, | ||
| primary: { | ||
| light: { | ||
| DEFAULT: '#e6f9f1', // rgb(230, 249, 241) | ||
| hover: '#d9f5e9', // rgb(217, 245, 233) | ||
| active: '#b0ebd2', // rgb(176, 235, 210) | ||
| }, | ||
| DEFAULT: '#01bf6f', // rgb(1, 191, 111) | ||
| hover: '#01ac64', // rgb(1, 172, 100) | ||
| active: '#019959', // rgb(1, 153, 89) | ||
| dark: { | ||
| DEFAULT: '#018f53', // rgb(1, 143, 83) | ||
| hover: '#017343', // rgb(1, 115, 67) | ||
| active: '#005632', // rgb(0, 86, 50) | ||
| }, | ||
| darker: '#004327', // rgb(0, 67, 39) | ||
| }, | ||
| accent: { | ||
| gray: { | ||
| DEFAULT: '#dfddd5' | ||
| } | ||
| } | ||
| }, | ||
| borderColor: { | ||
| skin: { | ||
| bold: 'var(--color-border-bold)', | ||
| default: 'var(--color-border-default)', | ||
| }, | ||
| }, |
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.
아 넴넴 저걸로 수정해볼게요
twalla26
left a comment
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.
css foundation이랑 카드 컴포넌트 작업 하셨꾼요!! 고생하셨습니다!! 👍 👍
blu3fishez
left a comment
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.
수고하셨습니다!
퍼블리싱 하는 속도가 저보다 훨씬 빠르시네요.. 저도 HTML CSS 코드를 빨리 작성해보고 싶습니다 ㅋㅋ ㅠㅠㅠ
제가 언급 드린 부분 확인해주시고 머지하시면 좋을 것 같습니다!
개인적으로 state가 로드 되지 않았을 때 생기는 공통작업이 없는가?를 생각해보시면 좋을 것 같습니다.
세션 목록에 관한 부분도 중복이 있으니 아예 함수로 빼보시는 것도 좋을 것 같네요!
현재 진행중/공개중 인 세션들의 상태가 자주 바뀔 텐데 이런 부분에 관한 렌더링 고민도 정말 중요할 것 같네요. 이렇게 매번 map 을 돌려야할까.. 최적화 할 수 있는 방법은 없을까 말이죠.
일단 돌아가게 만들어라 라는 룰에 따라 이번에는 그냥 머지하셔도 괜찮을 것 같습니다! 다만 한번 읽어주시고 머지해주시면 감사할 것 같습니다~
| {sessionList.length <= 0 ? ( | ||
| <li>아직 아무도 세션을 열지 않았어요..!</li> | ||
| ) : ( | ||
| sessionList.map((session) => { | ||
| return ( | ||
| session.sessionStatus === "open" && ( | ||
| <SessionCard | ||
| key={session.id} | ||
| sessionStatus={session.sessionStatus} | ||
| category={session.category} | ||
| title={session.title} | ||
| host={session.host.nickname} | ||
| questionListId={1} | ||
| participant={session.participant} | ||
| maxParticipant={session.maxParticipant} | ||
| /> | ||
| ) | ||
| ); | ||
| }) |
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.
감사합니다! ㅎㅎ 저도 몰랐는데 UI 구현 속도가 좀 빠르긴한거 같더라구요 tailwind에 익숙해져서 그런 것 같습니다 ㅋㅋ
이부분 반영해서 함수로 분리했습니다! 감사합니다
| {listLoading ? ( | ||
| <>loading</> | ||
| ) : ( | ||
| <> | ||
| {sessionList.length <= 0 ? ( | ||
| <li>아직 아무도 세션을 열지 않았어요..!</li> | ||
| ) : ( | ||
| sessionList.map((session) => { | ||
| return ( | ||
| session.sessionStatus === "close" && ( | ||
| <SessionCard | ||
| key={session.id} | ||
| sessionStatus={session.sessionStatus} | ||
| category={session.category} | ||
| title={session.title} | ||
| host={session.host.nickname} | ||
| questionListId={1} | ||
| participant={session.participant} | ||
| maxParticipant={session.maxParticipant} | ||
| /> | ||
| ) | ||
| ); | ||
| }) | ||
| )} | ||
| </> |
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.
이 부분은 해당 파일 윗부분과 코드 중복이 살짝 있는 것 같습니다
들여쓰기가 많이 깊어지니 이 부분과 위에 제가 언급한 부분은 분리가 되면 괜찮을 것 같네요~
| iceServers: [ | ||
| { | ||
| urls: "stun:stun.l.google.com:19302", | ||
| urls: process.env.REACT_STUN_SERVER ?? "stun:stun.l.google.com:19302", |
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.
.env 로 가리신거 좋습니다!! 따봉 3개
| font-size: 3.2em; | ||
| line-height: 1.1; | ||
| } | ||
|
|
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.
지우신 것 좋습니다~
다만 한가지 예측이 힘들 것 같은데, 해당 파일 윗 부분에 anchor 태그에 관한 style이 남아있는데 이건 의도하신 걸까요?
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.
스타일링에 방해되는 스타일만 지우느라 남아있는 것 같습니다

✅ 체크리스트
🧩 작업 내용
📝 작업 상세 내역
세션 리스트 페이지 구현
세션 카드 컴포넌트 구현
💬 다음 작업 또는 논의 사항
🐥 리뷰 받고 싶은 포인트