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

[Feat/#488] 모임초대페이지 반응형 #491

Merged
merged 9 commits into from
Dec 18, 2024

Conversation

se0jinYoon
Copy link
Contributor

@se0jinYoon se0jinYoon commented Dec 8, 2024

✨ 해당 이슈 번호 ✨

closes #488

todo

  • 모임초대페이지 반응형

📌 내가 알게 된 부분

  • 반응형이라 별거 없습니당
  • 헤더랑 모달은 아직 머지 전이라 해당 부분 제외 구현되어있습니다

📌 질문할 부분

  • 흠 반응형일 경우 placeholder가 다음과 같이 변경되어야 하는데요

데스크탑 : "띄어쓰기 포함 8자 이내로 입력해주세요."
모웹 : "띄어쓰기 포함 8자 이내"

이걸 코드로 구현하려면 Responsive 컴포넌트를 사용해서 렌더링 하는 방법밖에 없을까요 ?
흠 . . 현재가 모웹인지 아닌지를 변수로 잡아올 순 없나?

현재는 이렇게 되어있답니당

  <Responsive only="desktop">
      <WriterNameInput
        placeholder="띄어쓰기 포함 8자 이내로 입력해주세요."
        onChange={onChangeWriterName}
        $isConflict={isWriterNameConflict || false}
        $isValidLength={isWriterNameLimit}
      />
  </Responsive>
  <Responsive only="mobile">
      <WriterNameInput
        placeholder="띄어쓰기 포함 8자 이내"
        onChange={onChangeWriterName}
        $isConflict={isWriterNameConflict || false}
        $isValidLength={isWriterNameLimit}
      />
</Responsive>

📌스크린샷(선택)

(placeholder 변경하기 전에 녹화해서 반영 안되어있슴니다)

[반응형]

2024-12-08.4.28.22.mov

[모바일뷰]

2024-12-08.4.28.50.mov

Copy link

vercel bot commented Dec 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mile-client ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 18, 2024 0:37am

@github-actions github-actions bot added the size/m size/m label Dec 8, 2024
@se0jinYoon se0jinYoon self-assigned this Dec 8, 2024
@se0jinYoon se0jinYoon added ✨ Feature 새로운 기능 추가 (새로운 구현) 서진 labels Dec 8, 2024
Copy link
Member

@namdaeun namdaeun left a comment

Choose a reason for hiding this comment

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

고생하셨습니다 !!🚀


@media ${MOBILE_MEDIA_QUERY} {
padding: 1.8rem;
}
`;

const UserInfoTitle = styled.p`
Copy link
Member

Choose a reason for hiding this comment

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

P2) label태그 사용하고 htmlfor 로 아이디 부여해주면 라벨을 클릭해도 인풋에 접근할 수 있으니 사용하는 측면에서 더 좋을 것 같아용

@@ -339,7 +339,7 @@ export const theme = {
`,
mBody3: css`
font-weight: 400;
font-size: 1.4px;
font-size: 1.4rem;
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.

p5) 글씨 안보일뻔햇네요

Copy link
Member

@ljh0608 ljh0608 left a comment

Choose a reason for hiding this comment

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

고생 많으셨습니다!

데스크탑 : "띄어쓰기 포함 8자 이내로 입력해주세요."
모웹 : "띄어쓰기 포함 8자 이내"

이걸 코드로 구현하려면 Responsive 컴포넌트를 사용해서 렌더링 하는 방법밖에 없을까요 ?
흠 . . 현재가 모웹인지 아닌지를 변수로 잡아올 순 없나?

현재는 이렇게 되어있답니당

이부분에 대한건 저도 고려해보았는데 변수로 가져오더라도 해당 변수로 조건부렌더링 해야될 것 같은데 조금의 가독성을 위해서 고려중이신건지 아니면 조건부 렌더링 말고 다른 방법이 있는지 궁금합니다!

변수화에 대한건 react-responsive 라이브러리에 useDevice 부분 참고해보면 좋을 듯합니다~
https://github.com/yocontra/react-responsive/blob/master/src/useMediaQuery.ts#L40

@se0jinYoon
Copy link
Contributor Author

고생 많으셨습니다!


데스크탑 : "띄어쓰기 포함 8자 이내로 입력해주세요."

모웹 : "띄어쓰기 포함 8자 이내"



이걸 코드로 구현하려면 Responsive 컴포넌트를 사용해서 렌더링 하는 방법밖에 없을까요 ?

흠 . . 현재가 모웹인지 아닌지를 변수로 잡아올 순 없나?



현재는 이렇게 되어있답니당

이부분에 대한건 저도 고려해보았는데 변수로 가져오더라도 해당 변수로 조건부렌더링 해야될 것 같은데 조금의 가독성을 위해서 고려중이신건지 아니면 조건부 렌더링 말고 다른 방법이 있는지 궁금합니다!

변수화에 대한건 react-responsive 라이브러리에 useDevice 부분 참고해보면 좋을 듯합니다~

https://github.com/yocontra/react-responsive/blob/master/src/useMediaQuery.ts#L40

가독성을 고려했다기보다는 해당 부분은 변수로 작성해서 placeholder만 조건부 렌더링한다면 조금 더 중복 코드를 줄일 수 있지 않을까? 해서였습니다!
하지만 여기서먼 변수로 잡아와서 하게되면 responsive 컴포넌트를 구현해둔 의미가 떨어질것 같아서 의견 여쭤봤습니다!

첨부해주신 아티클들 참고해보겠습니다 감사합니당

Copy link
Contributor

@moondda moondda left a comment

Choose a reason for hiding this comment

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

lgtm

@se0jinYoon se0jinYoon merged commit e36bc2d into develop Dec 18, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 새로운 기능 추가 (새로운 구현) size/m size/m 서진
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[ Feat ] 글모임 초대페이지 반응형 구현
4 participants