-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rename: JoinProgressBar -> RegisterProgress * feat: ProfileForm button 제거 및 submitAction prop 추가 * feat: Button type prop 추가 * feat: form hook에서 onsubmit 삭제, form prop으로 받게 변경 * feat: formConfig form hook에서 분리 * feat: PortfolioInput 구현 * feat: profile, portfolio step component 구현 * feat: 유저 등록 페이지 구현 * chore: app router user register page 추가 * refactor: auth 관련 파일들 index 처리 * refactor: register page index 처리
- Loading branch information
Showing
21 changed files
with
319 additions
and
42 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
export { GoogleLogin } from './ui/GoogleLogin'; | ||
export * from './ui'; | ||
export * from './form.hook'; | ||
export * from './form.types'; | ||
export * from './form.utils'; | ||
export * from './progress.type'; |
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 @@ | ||
.portfolioInput { | ||
width: 100%; | ||
max-width: 446px; | ||
|
||
& > .errorMessage { | ||
display: inline-block; | ||
width: 100%; | ||
padding-top: 0.25rem; | ||
font-size: 0.875rem; | ||
font-weight: 600; | ||
color: $red; | ||
text-align: center; | ||
} | ||
} |
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,18 @@ | ||
import styles from './PortfolioInput.module.scss'; | ||
|
||
import { Input } from '@/shared/ui'; | ||
|
||
interface PortfolioInputProps { | ||
handleInputChange: (e: React.ChangeEvent<HTMLInputElement>) => void; | ||
error: string; | ||
value: string; | ||
} | ||
|
||
export const PortfolioInput = ({ handleInputChange, error, value }: PortfolioInputProps) => { | ||
return ( | ||
<div className={styles.portfolioInput}> | ||
<Input onChange={handleInputChange} placeholder='https://' value={value} /> | ||
{error && <span className={styles.errorMessage}>{error}</span>} | ||
</div> | ||
); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export * from './FormField'; | ||
export * from './FormInputs'; | ||
export * from './GoogleLogin'; | ||
export * from './PortfolioInput'; | ||
export * from './ProfileForm'; | ||
export * from './RegisterProgress'; |
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,32 @@ | ||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
width: 100%; | ||
height: 100%; | ||
padding: 2rem 7.5rem; | ||
} | ||
|
||
.sectionHeader { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
width: 100%; | ||
max-width: 1024px; | ||
|
||
& > h2 { | ||
font-size: 1.5rem; | ||
font-weight: 600; | ||
} | ||
|
||
& > div { | ||
min-width: 90%; | ||
padding: 2rem 0; | ||
} | ||
} | ||
|
||
.sectionContent { | ||
flex: 1; | ||
width: 100%; | ||
max-width: 1024px; | ||
} |
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,25 @@ | ||
import { useState } from 'react'; | ||
|
||
import styles from './RegisterPage.module.scss'; | ||
|
||
import { RegisterProgress, JOIN_STAGES } from '@/features/auth'; | ||
import { ProfileStep, PortfolioStep } from '@/widgets/RegisterUser'; | ||
|
||
const StepComponentList = [ProfileStep, PortfolioStep]; | ||
|
||
export const RegisterPage = () => { | ||
const [stage, setStage] = useState<number>(1); | ||
|
||
const StepComponent = StepComponentList[stage - 1]; | ||
|
||
return ( | ||
<section className={styles.container}> | ||
<header className={styles.sectionHeader}> | ||
<h2>회원가입</h2> | ||
<RegisterProgress currentStage={stage} joinStages={JOIN_STAGES} /> | ||
</header> | ||
|
||
<div className={styles.sectionContent}>{<StepComponent setStage={setStage} />}</div> | ||
</section> | ||
); | ||
}; |
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,5 +1,6 @@ | ||
export * from './GatheringListPage'; | ||
export { WriteArchivePage } from './WriteArchivePage/WriteArchivePage'; | ||
export { DetailArchivePage } from './DetailArchivePage/DetailArchivePage'; | ||
export { RegisterPage } from './RegisterPage/RegisterPage'; | ||
export { WriteGatheringPage } from './WriteGatheringPage/WriteGatheringPage'; | ||
export { ArchiveListPage } from './ArchiveListPage/ArchiveListPage'; | ||
export { ArchiveListPage } from './ArchiveListPage/ArchiveListPage'; |
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
Oops, something went wrong.
9986b52
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.
⚡ Lighthouse report for http://localhost:3000/
Detailed Metrics