-
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
[토너먼트] 토너먼트 인트로 화면 퍼블리싱 #54
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.
고생하셨습니다!! 코드 구조랑 시맨틱 태그 섬세하게 고민하면서 구현하신 게 느껴졌습니다 최고👍
import styled from 'styled-components'; | ||
import { Svg3Dicons } from '../../../assets/svg'; | ||
|
||
export default function TournamentConatainer() { |
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.
아주 사소하지만 Container 오타인 것 같아요~!
<TournamentStartText /> | ||
<TournamentItemCount /> | ||
<TournamentImg> | ||
<Svg3Dicons /> | ||
</TournamentImg> |
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.
너무 깔끔하고 좋아요👍👍
import * as S from './TournamentStartText.style'; | ||
|
||
export default function TournamentStartText() { | ||
const userName = useRecoilValue(userNameState); |
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.
넘 좋아요 !!! 빠르게 로그인이 되어야 겠군요 : - )
import { userNameState } from '../../../../recoil/atoms'; | ||
import * as S from './TournamentStartText.style'; | ||
|
||
export default function TournamentStartText() { |
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.
rface 써서 화살표 함수로 바꾸면 좋을 것 같아요~!
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 TournamentImg = styled.div` | ||
width: 20rem; | ||
height: 20rem; | ||
margin: 0 auto; |
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.
덕분에 margin 0 auto 알아갑니다 :)
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.
고생 많으셨습니다 : ) 간단한 부분만 수정하고 merge 해도 되지 않을까 생각합니다 !
import * as S from './TournamentStartText.style'; | ||
|
||
export default function TournamentStartText() { | ||
const userName = useRecoilValue(userNameState); |
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.
넘 좋아요 !!! 빠르게 로그인이 되어야 겠군요 : - )
import TournamentStartText from './tournamentStartText/TournamentStartText'; | ||
import TournamentItemCount from './tournamentItemCount/TournamentItemCount'; | ||
import styled from 'styled-components'; | ||
import { Svg3Dicons } from '../../../assets/svg'; | ||
|
||
export default function TournamentConatainer() { | ||
return ( | ||
<> | ||
<TournamentStartText /> | ||
<TournamentItemCount /> | ||
<TournamentImg> | ||
<Svg3Dicons /> | ||
</TournamentImg> | ||
{/* 공통버튼 btn_cta_fill 들어갈 예정*/} | ||
</> | ||
); | ||
} | ||
|
||
const TournamentImg = styled.div` | ||
width: 20rem; | ||
height: 20rem; | ||
margin: 0 auto; |
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.
이 파일에 대한 스타일 코드는 따로 하지 않은 이유가 있는지 궁금합니다 !! 추후 확장성을 위해 컨벤션을 맞추면 좋지 않을까 생각해서요! :)
import styled from 'styled-components'; | ||
import TournamentConatainer from '../components/tournament/intro/TournamentContainer'; | ||
|
||
const TournamentPage = () => { | ||
return ( | ||
<TournamentPageWrapper> | ||
<TournamentConatainer /> | ||
</TournamentPageWrapper> | ||
); | ||
}; | ||
|
||
export default TournamentPage; | ||
|
||
const TournamentPageWrapper = styled.section` | ||
margin: 0 2rem; | ||
`; |
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.
아! 제가 작업할 때 밑에 적고 분리를 추후에 해서 빼먹었던 것 같네요! 빠르게 코드리뷰 반영해놓을게요 감사해요!
export const userNameState = atom({ | ||
key: '', | ||
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.
크크 추후 바꾸겠지만, key 값을 유니크하게 적어주는 것도 잊지 않으면 좋을 거 같아요 !!
|
이슈 넘버
구현 사항
Need Review
📸 스크린샷
Reference