-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Feature] - 프로필 이미지 수정 기능 및 여행기 등록 시 여행 장소마다 국가 코드 주도록 구현 #535
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
004644c
refactor(Drawer): 기존 헤드와 높이 달라 선 위치가 다른 문제 개선
simorimi cef7429
feat: 장소 필터링을 위하여 장소 등록시 countryCode를 보내도록 기능 구현
simorimi 7912136
refactor(AvatarCircle): props $네이밍 수정
simorimi 0aa2cfc
Merge branch 'develop/fe' of https://github.com/woowacourse-teams/202…
simorimi dde854e
refactor(MyTravelogue):$ 제거에 따른 수정
simorimi 932e318
refactor(usePostUploadImages): resize 와 convert 처리 내부에서 하도록 수정
simorimi aa16247
refactor(MainPage): div semantic 태그인 button으로 수정
simorimi 2eb4464
feat(ProfileImageEditModalBottomSheet): 기능 구현
simorimi 537c3e8
feat(usePutProfile): api 명세 변경에 따라 patch를 put으로, imageUrl body 값에 부여
simorimi 98076f6
refactor(AvatarCircle): props 유연하게 수정
simorimi fbc78f4
feat(useMyPage): 훅 구현
simorimi 9321263
feat(MyPage): 프로필 이미지 수정 기능 구현
simorimi 3f702c4
refactor(MyPage): 기능 단위로 pr 분리하기 위한 수정
simorimi ae9be47
refactor(SearchPage): 기능 단위로 pr 분리하기 위한 수정
simorimi 01b6786
refactor(useMyPage): useToggle 사용하도록 수정
simorimi c7561fd
refactor(common): 반복되는 타입PlaceInfo 타입으로 선언 및 수정
simorimi b889315
refactor(constants): 상수들 파일로 분리
simorimi cac5077
refactor(useMyPage): 책임에 따라 각각 커스텀 훅으로 분리
simorimi 7e6ca5e
refactor(constants): 상수 파일로 분리
simorimi f318d32
refactor(usePostUploadImages): max width, height 값 받을 수 있도록 수정
simorimi c810327
refactor(usePostUploadImages): max width, height 값 받을 수 있도록 수정
simorimi 0ec73d3
Merge branch 'feature/fe/#519' of https://github.com/woowacourse-team…
simorimi 3f18f98
refactor(useProfileInitialization): 의존성 배열 추가
simorimi 211c7d6
refactor: useCallback으로 update 함수 감싸주도록 수정
simorimi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,79 +2,111 @@ import { css } from "@emotion/react"; | |
import styled from "@emotion/styled"; | ||
|
||
import theme from "@styles/theme"; | ||
import { PRIMITIVE_COLORS } from "@styles/tokens"; | ||
|
||
export const Layout = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
width: 100%; | ||
gap: ${(props) => props.theme.spacing.xl}; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 고생한게 느껴지는 CSS.. 👍👍👍 |
||
width: 100%; | ||
padding: ${(props) => props.theme.spacing.l}; | ||
`; | ||
|
||
export const TabContentContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
gap: ${(props) => props.theme.spacing.m}; | ||
`; | ||
|
||
export const ColorButtonStyle = css` | ||
display: flex; | ||
justify-content: flex-start; | ||
align-items: center; | ||
width: 100%; | ||
height: 6.8rem; | ||
padding: ${theme.spacing.m}; | ||
border-radius: 10px; | ||
|
||
background-color: ${PRIMITIVE_COLORS.blue[50]}; | ||
gap: ${theme.spacing.m}; | ||
`; | ||
|
||
export const ListStyle = css` | ||
export const listStyle = css` | ||
li { | ||
${theme.typography.mobile.body}; | ||
font-weight: 700; | ||
${theme.typography.mobile.bodyBold}; | ||
} | ||
`; | ||
|
||
export const FormWrapper = styled.form` | ||
export const ProfileContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
width: 100%; | ||
gap: ${({ theme }) => theme.spacing.m}; | ||
|
||
width: 100%; | ||
`; | ||
|
||
export const ButtonWrapper = styled.div` | ||
export const ProfileEditButtonContainer = styled.div` | ||
display: flex; | ||
gap: ${({ theme }) => theme.spacing.xs}; | ||
`; | ||
|
||
export const EditButtonContainer = styled.div` | ||
display: flex; | ||
justify-content: flex-end; | ||
|
||
width: 100%; | ||
`; | ||
|
||
export const Button = styled.button` | ||
export const EditButton = styled.button` | ||
padding: ${({ theme }) => theme.spacing.s} ${({ theme }) => theme.spacing.m}; | ||
border: solid 1px ${({ theme }) => theme.colors.border}; | ||
${({ theme }) => theme.typography.mobile.detail}; | ||
border-radius: 10px; | ||
`; | ||
|
||
export const NicknameWrapper = styled.div` | ||
export const ProfileImageContainer = styled.div` | ||
display: flex; | ||
position: relative; | ||
`; | ||
|
||
export const ProfileImageWrapper = styled.div<{ $isProfileImageLoading: boolean }>` | ||
display: ${({ $isProfileImageLoading }) => ($isProfileImageLoading ? "none" : "block")}; | ||
`; | ||
|
||
export const ProfileImageLoadingWrapper = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
width: 12.9rem; | ||
height: 12.9rem; | ||
`; | ||
|
||
export const ProfileImageHiddenInput = styled.input` | ||
display: none; | ||
`; | ||
|
||
export const NicknameWrapper = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
align-items: flex-start; | ||
|
||
width: 100%; | ||
height: 3rem; | ||
height: 6.5rem; | ||
`; | ||
|
||
export const InputContainer = styled.div` | ||
export const NickNameEditContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: ${({ theme }) => theme.spacing.s}; | ||
|
||
width: 100%; | ||
height: 6.5rem; | ||
`; | ||
|
||
export const Button = styled.button` | ||
width: 100%; | ||
`; | ||
|
||
export const profileImageEditButtonStyle = css` | ||
justify-content: flex-end; | ||
align-items: flex-end; | ||
position: absolute; | ||
|
||
width: 100%; | ||
height: 100%; | ||
border-radius: 50%; | ||
`; | ||
|
||
export const inputStyle = css` | ||
|
@@ -103,8 +135,10 @@ export const inputStyle = css` | |
} | ||
`; | ||
|
||
export const NicknameStyle = css` | ||
margin-bottom: calc(1.2rem + 2px); | ||
export const nicknameStyle = css` | ||
padding: 1.2rem 1.6rem; | ||
`; | ||
|
||
font-weight: 700; | ||
export const deleteTextColor = css` | ||
color: ${theme.colors.text.required}; | ||
`; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
[단순 궁금증]
button
태그로 변경한 이유가 그냥 궁금하긴 합니다~! (접근성 때문인건가 싶긴 했어용)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.
드래그가 가능하다는 것을 표현하기 위해 cursor css가 들어간거라서
이 경우 수정 전 코드가 더 시맨틱적으로 맞는거 같습니다!
(메인 페이지 웹 접근성 개선하면서 대공사를 하게되서 따로 다시 수정 커밋은 안해주셔도 될거같아용)
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.
click 메서드이기에 이 부분은 button 이 맞다고 생각했어요! 이름이 Container라 전체 option들에 대한 컨테이너라고 착각할 수 있을 거 같은데 이 부분은 한 옵션을 감싸는 wrapper라고 받아들이는 것이 좋습니다! 그래서 클릭하는 옵션이기에 당연히 button이 맞다고 생각하였습니다
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.
오호 감사합니다 ㅎㅎ