diff --git a/cv-project/src/App.css b/cv-project/src/App.css index acff0e3..86698e1 100644 --- a/cv-project/src/App.css +++ b/cv-project/src/App.css @@ -74,8 +74,37 @@ body { gap: 1rem; } -.education-info-form { +.education-info-form, +.job-info-form { padding: 20px; margin-bottom: 1rem; background: hsl(var(--white-color)); + border-radius: var(--default-border-radius); +} + +.education-info { + display: flex; + flex-direction: column; + justify-content: center; +} + +.education-info h2 { + align-self: center; +} + +.education-item { + padding: 10px 25px 10px 25px; +} + +.education-item h2, +p { + padding: 0; + margin: 0; +} + +.btn-group { + display: flex; + justify-content: center; + margin: 30px 0 20px 0; + gap: 10px; } diff --git a/cv-project/src/App.jsx b/cv-project/src/App.jsx index afcc9ff..1a96c3f 100644 --- a/cv-project/src/App.jsx +++ b/cv-project/src/App.jsx @@ -18,22 +18,39 @@ function App() { const [educationInfo, setEducationInfo] = useState([]); const [editEducation, setEditEducation] = useState(null); const [employmentHistory, setEmploymentHistory] = useState([]); + const [showJobForm, setShowJobForm] = useState(false); + const [educationItemActive, setEducationItemActive] = useState(false); return (
+
+ + +
+
+
+

Education

- +
); } @@ -15,24 +16,24 @@ function EducationDisplay(props) { <> {props.educationInfo.map((item) => { return ( -
-

School: {item.schoolName}

+
+

{item.schoolName}

Graduation: {item.graduationDate + " "} - Degree: {item.fieldOfStudy} - - + {item.fieldOfStudy}

+ +
); })} diff --git a/cv-project/src/components/educationInfoForm.jsx b/cv-project/src/components/educationInfoForm.jsx index 8140039..b1749d4 100644 --- a/cv-project/src/components/educationInfoForm.jsx +++ b/cv-project/src/components/educationInfoForm.jsx @@ -2,20 +2,10 @@ import { useState, useEffect } from "react"; import Input from "./input"; export default function EducationInfoForm(props) { - const [educationItemActive, setEducationItemActive] = useState(false); - return ( <> - - {isActive ? (
+

Education History

setSchoolName(e.target.value)} /> setGraduationDate(e.target.value)} /> setFieldOfStudy(e.target.value)} /> diff --git a/cv-project/src/components/experienceForm.jsx b/cv-project/src/components/experienceForm.jsx index 6c2323d..0efb964 100644 --- a/cv-project/src/components/experienceForm.jsx +++ b/cv-project/src/components/experienceForm.jsx @@ -1,20 +1,15 @@ import { useState } from "react"; +import Input from "./input"; export default function ExperienceForm(props) { - // const [jobs, setJobs] = useState([]); - const [showJobForm, setShowJobForm] = useState(false); - return ( -
- + <> -
+ ); } @@ -52,57 +47,76 @@ function JobForm({ isActive, jobs, setJobs }) { return ( <> {isActive ? ( - - setEmployer(e.target.value)} - /> - setJobTitle(e.target.value)} - /> - setEmploymentStart(e.target.value)} - /> - setEmploymentEnd(e.target.value)} - /> -