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

[토너먼트] 토너먼트 인트로 화면 퍼블리싱 #54

Merged
merged 15 commits into from
Jan 10, 2024

Conversation

imeureka
Copy link
Member

@imeureka imeureka commented Jan 9, 2024

이슈 넘버

구현 사항

  • 유저이름 recoil로 받아와서 title 설정
  • 아이템 개수는 배열로 아이템들을 받아오면 배열 수 계산 로직해서 카운팅해서 할 예정입니다.
  • 시작하기 버튼은 호은이의 공통하기 버튼을 적용할 예정입니다!

Need Review

  • container에 이제 세부 컴포넌트들을 박아넣었는데 가독성과 코드 분리를 이렇게 하면 잘 되더라고요! 그런데 page에 상단컴포넌트명 wrapper 씌우고 container 불러왔는데 명확해보이진 않는 거 같아서 컨테이너 지우고 페이지에 컨테이너를 분리해서 넣어야 하나 고민하고 있습니다!
  • 임시로 리코일 userName 지정했습니다. 이름을 전역 관리에 대해서 계속 고민해보겠습니다. (로컬스토리지 사용..?)

📸 스크린샷

스크린샷 2024-01-09 오전 6 37 19

Reference

@imeureka imeureka added feat💡 기능 구현 style🎨 작은 사항 수정 및 style 코드 작성 토너먼트 🏆 토너먼트 페이지 labels Jan 9, 2024
@imeureka imeureka self-assigned this Jan 9, 2024
Copy link
Contributor

@urjimyu urjimyu left a 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() {
Copy link
Contributor

Choose a reason for hiding this comment

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

아주 사소하지만 Container 오타인 것 같아요~!

Comment on lines +9 to +13
<TournamentStartText />
<TournamentItemCount />
<TournamentImg>
<Svg3Dicons />
</TournamentImg>
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

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

리코일까지 작성한 거 넘 좋아요🙌

Copy link
Member

Choose a reason for hiding this comment

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

저도 같은 방식으로 추후에 구현하겠습니다. 감사합니다 ㅎㅎ

Copy link
Contributor

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() {
Copy link
Contributor

Choose a reason for hiding this comment

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

rface 써서 화살표 함수로 바꾸면 좋을 것 같아요~!

Copy link
Member Author

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;
Copy link
Member

Choose a reason for hiding this comment

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

덕분에 margin 0 auto 알아갑니다 :)

Copy link
Contributor

@hoeun0723 hoeun0723 left a 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);
Copy link
Contributor

Choose a reason for hiding this comment

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

넘 좋아요 !!! 빠르게 로그인이 되어야 겠군요 : - )

Comment on lines +1 to +22
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;
Copy link
Contributor

Choose a reason for hiding this comment

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

이 파일에 대한 스타일 코드는 따로 하지 않은 이유가 있는지 궁금합니다 !! 추후 확장성을 위해 컨벤션을 맞추면 좋지 않을까 생각해서요! :)

Comment on lines +1 to +16
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;
`;
Copy link
Contributor

Choose a reason for hiding this comment

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

이 파일에서의 스타일 코드 분리도 컨벤션처럼 하면 어떤가 ! 합니다

특별한 이유가 있었다면 답글로 달아주세요 !! : )

Copy link
Member Author

Choose a reason for hiding this comment

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

아! 제가 작업할 때 밑에 적고 분리를 추후에 해서 빼먹었던 것 같네요! 빠르게 코드리뷰 반영해놓을게요 감사해요!

Comment on lines +3 to +6
export const userNameState = atom({
key: '',
default: '시동훈',
});
Copy link
Contributor

Choose a reason for hiding this comment

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

크크 추후 바꾸겠지만, key 값을 유니크하게 적어주는 것도 잊지 않으면 좋을 거 같아요 !!

Copy link

PR Preview Action v1.4.6
🚀 Deployed preview to https://SWEET-DEVELOPERS.github.io/sweet-client/pr-preview/pr-54/
on branch gh-pages at 2024-01-10 06:06 UTC

@imeureka imeureka merged commit a244f87 into develop Jan 10, 2024
1 check passed
@imeureka imeureka deleted the feat/#33-tournament-intro branch February 2, 2024 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat💡 기능 구현 style🎨 작은 사항 수정 및 style 코드 작성 토너먼트 🏆 토너먼트 페이지
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[토너먼트] 인트로 화면 뷰 작업
4 participants