-
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.
Browse files
Browse the repository at this point in the history
funnel 대체제 세팅
- Loading branch information
Showing
29 changed files
with
315 additions
and
189 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
File renamed without changes.
File renamed without changes.
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,9 +1,30 @@ | ||
'use client'; | ||
|
||
import { FormLayout } from '@/layouts'; | ||
import { useForm } from '@/hooks'; | ||
import { 지원자정보, 보호자정보, 출신학교및학력 } from '@/components/form'; | ||
|
||
const FormPage = () => { | ||
return <FormLayout title="지원자 정보">a</FormLayout>; | ||
const { formStep, onMoveForm } = useForm(); | ||
return ( | ||
<div> | ||
{formStep === '지원자 정보' && <지원자정보 onNext={() => onMoveForm('보호자 정보')} />} | ||
{formStep === '보호자 정보' && ( | ||
<보호자정보 | ||
onPrevious={() => onMoveForm('지원자 정보')} | ||
onNext={() => onMoveForm('출신학교 및 학력')} | ||
/> | ||
)} | ||
{formStep === '출신학교 및 학력' && ( | ||
<출신학교및학력 | ||
onPrevious={() => onMoveForm('보호자 정보')} | ||
onNext={() => onMoveForm('전형 선택')} | ||
/> | ||
)} | ||
{formStep === '전형 선택' && <div />} | ||
{formStep === '성적 입력' && <div />} | ||
{formStep === '자기소개서' && <div />} | ||
</div> | ||
); | ||
}; | ||
|
||
export default FormPage; |
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,20 @@ | ||
'use client'; | ||
|
||
import { RecoilRoot } from 'recoil'; | ||
import { GlobalStyle } from '@maru/theme'; | ||
import { ReactNode } from 'react'; | ||
|
||
interface PropsType { | ||
children: ReactNode; | ||
} | ||
|
||
const Provider = ({ children }: PropsType) => { | ||
return ( | ||
<RecoilRoot> | ||
{children} | ||
<GlobalStyle /> | ||
</RecoilRoot> | ||
); | ||
}; | ||
|
||
export default Provider; |
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
37 changes: 37 additions & 0 deletions
37
apps/user/src/components/form/FormController/FormController.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,37 @@ | ||
import { Button } from '@maru/ui'; | ||
import { flex } from '@maru/utils'; | ||
import styled from 'styled-components'; | ||
|
||
interface PropsType { | ||
onPrevious: () => void; | ||
onNext: () => void; | ||
} | ||
|
||
const FormController = ({ onPrevious, onNext }: PropsType) => { | ||
return ( | ||
<FormControllerBar> | ||
<StyledFormController> | ||
<Button width="50%" option="SECONDARY" onClick={onPrevious}> | ||
이전 | ||
</Button> | ||
<Button width="50%" onClick={onNext}> | ||
다음 | ||
</Button> | ||
</StyledFormController> | ||
</FormControllerBar> | ||
); | ||
}; | ||
|
||
export default FormController; | ||
|
||
const FormControllerBar = styled.div` | ||
${flex({ justifyContent: 'flex-end' })} | ||
width: 100%; | ||
margin-top: 60px; | ||
`; | ||
|
||
const StyledFormController = styled.div` | ||
${flex({ alignItems: 'center' })} | ||
gap: 24px; | ||
width: 331px; | ||
`; |
44 changes: 13 additions & 31 deletions
44
apps/user/src/components/form/ProgressBar/ProgressBar.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
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,2 +1,6 @@ | ||
export { default as ProgressBar } from './ProgressBar/ProgressBar'; | ||
export { default as 보호자정보 } from './보호자정보/보호자정보'; | ||
export { default as 지원자정보 } from './지원자정보/지원자정보'; | ||
export { default as 출신학교및학력 } from './출신학교및학력/출신학교및학력'; | ||
|
||
export { default as ProgressBar } from './ProgressBar/ProgressBar'; | ||
export { default as FormController } from './FormController/FormController'; |
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.