-
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.
add EducationForm and ExperienceForm
- Loading branch information
1 parent
5f46049
commit 9094fc0
Showing
8 changed files
with
240 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import InputField from "../common/InputField"; | ||
import Button from "../common/Button"; | ||
import { CardProps } from "../types"; | ||
|
||
const EducationForm: React.FC<Pick<CardProps, "education">> = ({ | ||
education, | ||
}) => { | ||
return ( | ||
<div className="flex flex-col gap-4 rounded-md bg-orange-100 p-4"> | ||
<InputField | ||
label="School/University" | ||
type="text" | ||
id="school" | ||
placeholder="Enter School/University" | ||
value={education[0].school} | ||
// onChange={onEducationChange} | ||
/> | ||
<InputField | ||
label="City" | ||
type="text" | ||
id="city" | ||
placeholder="Enter a city" | ||
/> | ||
<InputField | ||
label="Degree" | ||
type="text" | ||
id="degree" | ||
placeholder="Enter Degree" | ||
/> | ||
|
||
<InputField | ||
label="Start Date" | ||
type="date" | ||
id="startDate" | ||
placeholder="Enter start date" | ||
/> | ||
<InputField | ||
label="End Date" | ||
type="date" | ||
id="endDate" | ||
placeholder="Enter end date" | ||
/> | ||
|
||
<Button text="Remove" className="bg-orange-500" /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default EducationForm; |
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,54 @@ | ||
import InputField from "../common/InputField"; | ||
import Button from "../common/Button"; | ||
import { CardProps } from "../types"; | ||
|
||
const ExperienceForm: React.FC<Pick<CardProps, "experience">> = ({ | ||
experience, | ||
}) => { | ||
return ( | ||
<div className="flex flex-col gap-4 rounded-md bg-orange-100 p-4"> | ||
<InputField | ||
label="Position" | ||
type="text" | ||
id="position" | ||
placeholder="Enter your Role/Job Title" | ||
value={experience[0].position} | ||
// onChange={onExperienceChange} | ||
/> | ||
<InputField | ||
label="Company" | ||
type="text" | ||
id="company" | ||
placeholder="Enter company's name" | ||
/> | ||
<InputField | ||
label="City" | ||
type="text" | ||
id="city" | ||
placeholder="Enter a city" | ||
/> | ||
<InputField | ||
label="Description" | ||
type="text" | ||
id="description" | ||
placeholder="Job responsibility" | ||
/> | ||
<InputField | ||
label="Start Date" | ||
type="date" | ||
id="startDate" | ||
placeholder="Enter start date" | ||
/> | ||
<InputField | ||
label="End Date" | ||
type="date" | ||
id="endDate" | ||
placeholder="Enter end date" | ||
/> | ||
|
||
<Button text="Remove" className="bg-orange-500" /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ExperienceForm; |
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
Oops, something went wrong.