-
Notifications
You must be signed in to change notification settings - Fork 0
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
회원가입 UI 변경 #170
Merged
Merged
회원가입 UI 변경 #170
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
31f13a3
[feat] 폼 컴포넌트 업데이트 및 로그인 폼에 적용
Im-younique ca5e449
[feat] 폼 버튼 컴포넌트 업데이트 및 로그인 폼에 적용
Im-younique 755caa3
[chore] 회원가입 페이지 레이아웃 업데이트
Im-younique 74dfe5e
[chore] 회원가입 폼 UI 변경
Im-younique 9d4373e
[chore] Button blue_gray_line diabled style 변경
Im-younique e155cb3
[fix] FormCheckbox 컴포넌트 오류 수정
Im-younique d3cfe4a
[chore] 패스워드 보기 안되는 버그 수정
Im-younique ceac58b
[feat] 회원가입 기본정보 입력 구현
Im-younique 4fe4b29
[feat] SelectForm 컴포넌트 추가
Im-younique 683faa8
[Add] WorkingForm UI 제작
Im-younique 0465d0d
[chore] Field 요소들 padding 수정
Im-younique 9a808e0
[Add] SignUp ProgressBar 제작
Im-younique 81c4f15
[fix] FormSelect내 화살표 클릭시 selectbox 열리지 않는 버그 해결
Im-younique a2080e9
[feat] WorkingForm 동작 추가
Im-younique b4b027d
[feat] InformationForm 컴포넌트 생성
Im-younique fecf0a2
[chore] ProfileButton 스타일 수정
Im-younique 2e7fb5c
[feat] 회원가입 페이지 UI 개선
Im-younique 12504f9
[chore] Form 컴포넌트 변경으로 마이페이지 내 수정 주석처리
Im-younique 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
'use client'; | ||
|
||
import { useState } from 'react'; | ||
|
||
// components | ||
import AddFormProgress from '../components/AddFormProgress'; | ||
import WorkingForm from '../components/WorkingForm'; | ||
import InformationForm from '../components/InfomationForm'; | ||
|
||
export default function AddInfo() { | ||
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. 일반 회원가입 페이지와 addInfo 페이지를 구분해서 회원가입을 두 단계로 나눈 이유
|
||
const [isLast, setIsLast] = useState(false); | ||
return ( | ||
<> | ||
<AddFormProgress widthPercent={isLast ? 'w-[100%]' : 'w-[50%]'} /> | ||
{isLast ? ( | ||
<InformationForm /> | ||
) : ( | ||
<WorkingForm goNext={() => setIsLast(true)} /> | ||
)} | ||
</> | ||
); | ||
} |
14 changes: 14 additions & 0 deletions
14
client/src/app/signup/components/AddFormProgress/index.tsx
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export default function AddFormProgress({ | ||
widthPercent, | ||
}: { | ||
widthPercent: string; | ||
}) { | ||
return ( | ||
<div className="relative w-full h-4 pt-2 pb-8"> | ||
<div className="absolute left-0 w-full h-2 rounded top-2 bg-yellow-scale-50" /> | ||
<div | ||
className={`absolute left-0 rounded top-2 bg-yellow-scale-500 ${widthPercent} h-2 transition-[width]`} | ||
/> | ||
</div> | ||
); | ||
} |
34 changes: 34 additions & 0 deletions
34
client/src/app/signup/components/GithubSignUpButton/index.tsx
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
'use client'; | ||
|
||
import { Icon } from '@iconify/react'; | ||
|
||
//hooks | ||
import useModal from '@/hooks/modal/useModal'; | ||
|
||
//constant | ||
import { errorMessage, ModalType } from '@/constants/constant'; | ||
|
||
export default function GithubSignUpButton() { | ||
const { openModal } = useModal(); | ||
|
||
return ( | ||
<div className="grid py-4"> | ||
<button | ||
onClick={() => | ||
openModal({ | ||
type: ModalType.ERROR, | ||
message: errorMessage.notComplete, | ||
}) | ||
} | ||
className="relative p-3 border border-gray-900 hover:bg-blue-gray-scale-100 active:bg-blue-gary-scale-100 disabled:bg-gray-scale-50 disabled:border-gray-800 disabled:text-blue-gray-600" | ||
> | ||
<Icon | ||
className="absolute top-2 left-2" | ||
icon="mdi:github" | ||
fontSize={34} | ||
/> | ||
<span>깃허브로 회원가입</span> | ||
</button> | ||
</div> | ||
); | ||
} |
34 changes: 34 additions & 0 deletions
34
client/src/app/signup/components/GoogleSignUpButton/index.tsx
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
'use client'; | ||
|
||
import { Icon } from '@iconify/react'; | ||
|
||
//hooks | ||
import useModal from '@/hooks/modal/useModal'; | ||
|
||
//constant | ||
import { errorMessage, ModalType } from '@/constants/constant'; | ||
|
||
export default function GoogleSignUpButton() { | ||
const { openModal } = useModal(); | ||
|
||
return ( | ||
<div className="grid py-4"> | ||
<button | ||
onClick={() => | ||
openModal({ | ||
type: ModalType.ERROR, | ||
message: errorMessage.notComplete, | ||
}) | ||
} | ||
className="relative p-3 border border-gray-900 hover:bg-blue-gray-scale-100 active:bg-blue-gary-scale-100 disabled:bg-gray-scale-50 disabled:border-gray-800 disabled:text-blue-gray-600" | ||
> | ||
<Icon | ||
className="absolute top-2 left-2" | ||
icon="devicon:google" | ||
fontSize={34} | ||
/> | ||
<span>구글로 회원가입</span> | ||
</button> | ||
</div> | ||
); | ||
} |
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.
지난 PR에서 만든 로그인 폼도 Form 공통 컴포넌트로 변경하여 통일성 유지 및 코드 단순화 진행