-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5c7d94
commit 59bb632
Showing
4 changed files
with
193 additions
and
13 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,19 +1,64 @@ | ||
import React from "react"; | ||
import * as S from "src/components/home/profile/profileEdit/style"; | ||
import ReturnImg from "src/assets/imgs/profile/delete.svg"; | ||
import AvatarImg from "src/assets/imgs/header/AvatarImg.svg"; | ||
import Pencil from "src/assets/imgs/profile/write.svg"; | ||
import Lock from "src/assets/imgs/profile/Lock.svg"; | ||
|
||
interface ProfileEditProps { | ||
onCancel: () => void; | ||
} | ||
|
||
const ProfileEdit: React.FC<ProfileEditProps> = ({ onCancel }) => { | ||
return ( | ||
<S.profileWrap> | ||
<S.mainWrap> | ||
<h1>프로필 수정</h1> | ||
<button onClick={onCancel}>취소</button> | ||
</S.mainWrap> | ||
</S.profileWrap> | ||
) | ||
; | ||
<S.ProfileWrap> | ||
<S.MainWrap> | ||
<S.TitleWrap> | ||
<S.AvatarContainer> | ||
<S.Avatar src={AvatarImg} alt="프로필 이미지" /> | ||
<S.PencilIconContainer> | ||
<S.PencilIcon src={Pencil} alt="편집 아이콘" /> | ||
</S.PencilIconContainer> | ||
</S.AvatarContainer> | ||
<S.ProfileInfo> | ||
<S.UserName>hae_jun7388</S.UserName> | ||
</S.ProfileInfo> | ||
<S.ReturnIcon src={ReturnImg} alt="돌아가기 이미지" onClick={onCancel} /> | ||
</S.TitleWrap> | ||
<S.DetailWrap> | ||
<S.SectionTitle>기본정보</S.SectionTitle> | ||
<S.Detail> | ||
<S.DetailLabel>학교</S.DetailLabel> | ||
<S.DetailContainer> | ||
<S.DetailValue>대구소프트웨어마이스터고등학교</S.DetailValue> | ||
<S.EditButton>수정</S.EditButton> | ||
</S.DetailContainer> | ||
</S.Detail> | ||
<S.Detail> | ||
<S.DetailLabel>이름</S.DetailLabel> | ||
<S.DetailContainer> | ||
<S.DetailValue>이해준</S.DetailValue> | ||
<S.EditButton>수정</S.EditButton> | ||
</S.DetailContainer> | ||
</S.Detail> | ||
<S.Detail> | ||
<S.DetailLabel>이메일</S.DetailLabel> | ||
<S.DetailContainer> | ||
<S.DetailValue>[email protected]</S.DetailValue> | ||
<S.EditButton>수정</S.EditButton> | ||
</S.DetailContainer> | ||
</S.Detail> | ||
<S.Detail> | ||
<S.DetailLabel>비밀번호</S.DetailLabel> | ||
<S.DetailContainer> | ||
<S.DetailValue>**********</S.DetailValue> | ||
<S.EditButton>수정</S.EditButton> | ||
</S.DetailContainer> | ||
</S.Detail> | ||
</S.DetailWrap> | ||
</S.MainWrap> | ||
</S.ProfileWrap> | ||
); | ||
}; | ||
|
||
export default ProfileEdit; | ||
export default ProfileEdit; |
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