diff --git a/cv-project/src/components/educationInfo.jsx b/cv-project/src/components/educationInfo.jsx index 4bce297..78bfd3a 100644 --- a/cv-project/src/components/educationInfo.jsx +++ b/cv-project/src/components/educationInfo.jsx @@ -1,31 +1,45 @@ -import { useState } from "react"; +import { useState, useEffect } from "react"; export default function EducationInfo() { - const [education, setEducation] = useState([]); + const [schools, setSchools] = useState([]); const [educationItemActive, setEducationItemActive] = useState(false); + const [editSchool, setEditSchool] = useState(null); + + const mainDivStyle = { + display: "flex", + justifyContent: "space-between", + flexDirection: "row-reverse", + }; return ( -
- {education.length <= 0 ? ( +
+ {schools.length <= 0 ? ( <>

Add your Education info

) : ( - + )} - +
+ - + +
); } @@ -40,9 +54,7 @@ function EducationDisplay(props) {

Graduation Date: {item.graduationDate + " "} Field of Study: {item.fieldOfStudy} - + +

) : null} diff --git a/cv-project/src/components/generalInfo.jsx b/cv-project/src/components/generalInfo.jsx index 39dc27d..ef93169 100644 --- a/cv-project/src/components/generalInfo.jsx +++ b/cv-project/src/components/generalInfo.jsx @@ -6,34 +6,50 @@ export default function GeneralInfo() { const [phone, setPhone] = useState(""); const [email, setEmail] = useState(""); + const contactFormStyle = { + display: "flex", + flexDirection: "column", + width: "30vw", + }; + + const mainStyle = { + display: "flex", + justifyContent: "space-between", + }; + return ( -
-
- setFirstName(e.target.value)} - /> - setLastName(e.target.value)} - /> - setEmail(e.target.value)} - /> - setPhone(e.target.value)} - /> +
+
+
+
+ setFirstName(e.target.value)} + /> + setLastName(e.target.value)} + /> + setEmail(e.target.value)} + /> + setPhone(e.target.value)} + /> +
+
+

{firstName + " " + lastName}

{email}