-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: squash & merge #81
- Loading branch information
Showing
16 changed files
with
276 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!-- test commit --> |
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.
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
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,4 +1,3 @@ | ||
export * from './step/company' | ||
export * from './step/experience' | ||
export * from './step/companyAndExperience' | ||
export * from './step/jobGroup' | ||
export * from './header' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
92 changes: 92 additions & 0 deletions
92
src/components/domain/profile/step/companyAndExperience/CompanyAndExperience.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,92 @@ | ||
'use client' | ||
import Chip from '../../Chip' | ||
import Button from '@/components/common/Button' | ||
import { companyData, experienceData } from '@/constants/profileData' | ||
|
||
interface CompanyAndExperienceProps { | ||
profileData: { | ||
company: string | null | ||
experience: string | null | ||
} | ||
companySelected: boolean | ||
isAnyCompanySelected: boolean | ||
isAnyExperienceSelected: boolean | ||
handleCompanyClick: (idx: string) => void | ||
handleExperienceClick: (idx: string) => void | ||
setStep: (step: '직군' | '기업 및 경력') => void | ||
setCompanySelected: (select: boolean) => void | ||
handleSubmit: () => void | ||
} | ||
|
||
function CompanyAndExperience({ | ||
profileData, | ||
handleCompanyClick, | ||
handleExperienceClick, | ||
companySelected, | ||
isAnyCompanySelected, | ||
isAnyExperienceSelected, | ||
setCompanySelected, | ||
handleSubmit, | ||
}: CompanyAndExperienceProps) { | ||
return ( | ||
<> | ||
<div className="mt-[90px] flex flex-col gap-10"> | ||
<p className="text-h1 text-onSurface-300"> | ||
어느 기업에서 근무 중이신가요? | ||
</p> | ||
<div className="mt-4 flex flex-wrap gap-4"> | ||
{companyData.map((company, idx) => ( | ||
<Chip | ||
id={idx} | ||
name={company} | ||
selected={profileData.company === company} | ||
onClick={() => handleCompanyClick(company)} | ||
key={idx} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
|
||
{!companySelected && ( | ||
<Button | ||
isFullWidth | ||
type={isAnyCompanySelected ? 'gradient' : 'disabled'} | ||
onClick={() => setCompanySelected(true)} | ||
> | ||
다음 | ||
</Button> | ||
)} | ||
|
||
{companySelected && ( | ||
<> | ||
<div className="mt-[40px] flex flex-col gap-10"> | ||
<p className="text-h1 text-onSurface-300"> | ||
현재 경력이 어떻게 되시나요? | ||
</p> | ||
<div className="mt-4 flex flex-wrap gap-4"> | ||
{experienceData.map((experience, idx) => ( | ||
<Chip | ||
id={idx} | ||
name={experience} | ||
selected={profileData.experience === experience} | ||
onClick={() => handleExperienceClick(experience)} | ||
key={idx} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
|
||
<Button | ||
isFullWidth | ||
type={isAnyExperienceSelected ? 'gradient' : 'disabled'} | ||
onClick={handleSubmit} | ||
> | ||
다음 | ||
</Button> | ||
</> | ||
)} | ||
</> | ||
) | ||
} | ||
|
||
export default CompanyAndExperience |
1 change: 1 addition & 0 deletions
1
src/components/domain/profile/step/companyAndExperience/index.ts
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 @@ | ||
export { default as CompanyAndExperience } from './CompanyAndExperience' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,8 +1,52 @@ | ||
import React from 'react' | ||
'use client' | ||
|
||
function JobGroup() { | ||
|
||
return <div>JobGroup</div> | ||
import { jobGroupData } from '@/constants/profileData' | ||
import JobGroupCard from '../../JobGroupCard' | ||
import Button from '@/components/common/Button' | ||
|
||
interface JobGroupSelectionProps { | ||
profileData: { | ||
jobGroup: string | null | ||
} | ||
isAnyJobGroupSelected: boolean | ||
handleJobGroupClick: (idx: number) => void | ||
setStep: (step: '직군' | '기업 및 경력') => void | ||
} | ||
|
||
function JobGroup({ | ||
profileData, | ||
isAnyJobGroupSelected, | ||
handleJobGroupClick, | ||
setStep, | ||
}: JobGroupSelectionProps) { | ||
return ( | ||
<> | ||
<div className="mt-[90px] flex flex-col gap-[72px]"> | ||
<p className="text-h1 text-onSurface-300"> | ||
반가워요! <br /> | ||
어떤 직군이신가요? | ||
</p> | ||
<div className="mt-4 flex flex-col gap-4"> | ||
{jobGroupData.map((job, idx) => ( | ||
<JobGroupCard | ||
key={idx} | ||
id={idx + 1} | ||
name={job} | ||
selected={profileData.jobGroup === job} | ||
onClick={() => handleJobGroupClick(idx)} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
<Button | ||
isFullWidth | ||
type={isAnyJobGroupSelected ? 'gradient' : 'disabled'} | ||
onClick={() => setStep('기업 및 경력')} | ||
> | ||
다음 | ||
</Button> | ||
</> | ||
) | ||
} | ||
|
||
export default JobGroup |
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,19 @@ | ||
export const jobGroupData = ['개발자', '디자이너', '기타'] | ||
export const companyData = [ | ||
'비공개', | ||
'대기업', | ||
'중견기업', | ||
'중소기업', | ||
'스타트업', | ||
'외국계', | ||
] | ||
export const experienceData = [ | ||
'비공개', | ||
'취준생/인턴', | ||
'1년 차 미만', | ||
'1~2년 차', | ||
'2~3년 차', | ||
'3~4년 차', | ||
'4~5년 차', | ||
'5년 차 이상', | ||
] |
Oops, something went wrong.