From 6f3084722951d1e2d890688e0719dcbba19082e5 Mon Sep 17 00:00:00 2001 From: Mike Smith <89040888+smiggiddy@users.noreply.github.com> Date: Wed, 19 Jun 2024 21:04:38 -0400 Subject: [PATCH] feat: updated education info component --- cv-project/src/components/educationInfo.jsx | 116 ++++++++++++++------ cv-project/src/components/generalInfo.jsx | 68 +++++++----- 2 files changed, 124 insertions(+), 60 deletions(-) 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}