Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
510ea31
refactor: 이름, 연락처 유효성 검증 추가
aken-you Jul 18, 2025
ff35c90
refactor: 연락처 input에 숫자와 -만 입력하도록 제한
aken-you Jul 18, 2025
5ba07a0
refactor: 내 프로필 수정 모달의 Footer 디자인 변경
aken-you Jul 18, 2025
3ba458b
style: eslint 적용
aken-you Jul 18, 2025
7b9f9f8
refactor: ProfileEditModal에서 onSubmit prop 삭제
aken-you Jul 18, 2025
6724fde
feat: 프로필 기본 이미지 경로 상수화
aken-you Jul 18, 2025
6ec6122
style: 주석 제거
aken-you Jul 18, 2025
7e89030
style: --color-background-dimmer opacity 오타 수정
aken-you Jul 18, 2025
4153fd3
refactor: 프로필 편집 모달에서 폼과 관련된 상태 통합
aken-you Jul 18, 2025
71e0dcb
fix: 모달을 다시 열어도 이전에 수정한 폼 상태 유지되는 문제 해결
aken-you Jul 18, 2025
d2e9518
fix: github 링크와 blog/sns 링크가 없을 경우, 입력 부탁 메세지 표시
aken-you Jul 18, 2025
af97fac
refactor: 공백 제거 후 github, 블로그/SNS 링크 상태 업데이트
aken-you Jul 18, 2025
8909fed
refactor: 프로필 수정 폼 컴포넌트로 분리
aken-you Jul 19, 2025
81d58b0
style: 주석 제거
aken-you Jul 19, 2025
b910c38
refactor: 1024px 기준으로 layout 스타일 다르게 적용
aken-you Jul 19, 2025
a738ab4
refactor: 프로필 이미지 input에 파일 확장자와 선택 개수 제한
aken-you Jul 19, 2025
dd6dd49
refactor: 프로필 이미지 업데이트 로직 수정
aken-you Jul 19, 2025
d48ef19
style: 파일 폴더를 여는 핸들러 이름 변경
aken-you Jul 19, 2025
d773b55
feat: 프로필 이미지를 기본 이미지로 선택하면, 서버에게 기본 이미지 전송
aken-you Jul 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/(my)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export default function MyLayout({
return (
<div className="flex">
<Sidebar />
<div className="w-full px-[150px] pt-500 pb-[100px]">{children}</div>
<div className="w-full px-[40px] pt-500 pb-[100px] lg:px-[150px]">
{children}
</div>
</div>
);
}
2 changes: 1 addition & 1 deletion app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ https://velog.io/@oneook/tailwindcss-4.0-%EB%AC%B4%EC%97%87%EC%9D%B4-%EB%8B%AC%E

--color-background-alternative: var(--color-gray-50);
--color-background-default: var(--color-gray-0);
--color-background-dimmer: rgba(24, 29, 39, 80);
--color-background-dimmer: rgba(24, 29, 39, 0.8);
--color-background-disabled: var(--color-gray-100);

--color-background-brand-subtle: var(--color-rose-300);
Expand Down
Binary file added public/profile-default.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions src/features/auth/api/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@ export async function uploadProfileImage(
filename: string,
file: FormData,
) {
console.log('uploadProfileImage 요청직전', file);
// Bug : 여기서 에러발생중
const res = await axiosInstanceForMultipart.put(
`/files/members/${memberId}/profile/image/${filename}`,
file,
);
console.log('auth.ts - uploadProfileImage 응답', res);

return res.data;
}
Expand Down
9 changes: 5 additions & 4 deletions src/features/auth/ui/sign-up-image-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ export default function SignupImageSelector({
handleImageChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
}) {
const setDefaultImage = () => setImage('/profile-default.svg');
const openFileDialog = () => fileInputRef.current?.click();
const openFileFolder = () => fileInputRef.current?.click();

return (
<div className="relative">
<div className="relative h-[112px] w-[112px] overflow-hidden rounded-full">
<Image src={image} alt="프로필" fill className="object-cover" />
<img src={image} alt="next최적화안쓴프로필" className='object-covoer' />
<img src={image} alt="next최적화안쓴프로필" className="object-covoer" />
</div>
<DropdownMenu.Root>
<DropdownMenu.Trigger asChild>
Expand All @@ -44,7 +44,7 @@ export default function SignupImageSelector({
</DropdownMenu.Item>
<DropdownMenu.Item
className="hover:text-text-default hover:font-designer-14b cursor-pointer px-50 py-[2px] hover:bg-gray-100"
onSelect={openFileDialog}
onSelect={openFileFolder}
>
앨범에서 선택
</DropdownMenu.Item>
Expand All @@ -53,8 +53,9 @@ export default function SignupImageSelector({
<input
ref={fileInputRef}
type="file"
accept="image/*"
accept="image/jpg,image/png,image/gif,image/webp"
className="hidden"
multiple={false}
onChange={handleImageChange}
/>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/features/my-page/consts/my-page-const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ export const MBTI_OPTIONS = [
{ label: 'ENFJ', value: 'ENFJ' },
{ label: 'ENTJ', value: 'ENTJ' },
];

export const DEFAULT_PROFILE_IMAGE_URL = '/profile-default.svg';
Loading