mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-28 15:00:42 -05:00
Smig
35bf95891c
* feat: updated component * feat: added components * feat: fixed * refactor(feat): added button, renamed variables * feat: updated education info component * feat: experience component added * refactor: modular * feat: new components, style, etc * refactor: remove unneccessary divs * feat(styling): yep * feat(style): new font added for resume * feat(styling): colors, btns, etc * feat: basically done * feat: updated css/demo data
86 lines
2.9 KiB
JavaScript
86 lines
2.9 KiB
JavaScript
import GeneralInfoForm from "./components/generalInfoForm";
|
|
import GeneralInfoDisplay from "./components/generalInfoDisplay";
|
|
import EducationInfoDisplay from "./components/educationInfoDisplay";
|
|
import EducationInfoForm from "./components/educationInfoForm";
|
|
import ExperienceForm from "./components/experienceForm";
|
|
import ExperienceDisplay from "./components/experienceDisplay";
|
|
|
|
import "./App.css";
|
|
import { useState } from "react";
|
|
import Button from "./components/button";
|
|
|
|
function App() {
|
|
const [basicInfo, setBasicInfo] = useState({
|
|
fullName: "Marvin Gaye",
|
|
phone: "301-240-5555",
|
|
email: "mgaye@motown.com",
|
|
location: "Detriot, MI",
|
|
});
|
|
|
|
const [educationInfo, setEducationInfo] = useState([
|
|
{
|
|
schoolName: "Bowie State University",
|
|
graduationDatehttps://github.com/smiggiddy/odin-codeprojects/pull/18/conflict?name=cv-project%252Fsrc%252FApp.jsx&base_oid=7801fda840d1fa1854f23ddac31c617c382a3d13&head_oid=d00749cafbac7d5524c928f28cbb5b81e06b608e: "2020",
|
|
fieldOfStudy: "Computer Technology: Network Security",
|
|
},
|
|
]);
|
|
const [editEducation, setEditEducation] = useState(null);
|
|
const [employmentHistory, setEmploymentHistory] = useState([
|
|
{
|
|
employer: "Google",
|
|
jobTitle: "Site Reliability Engineer",
|
|
jobDescription: "Keeping servers online and happy",
|
|
employmentStart: "09/2020",
|
|
employmentEnd: "present",
|
|
},
|
|
]);
|
|
|
|
const [showJobForm, setShowJobForm] = useState(false);
|
|
const [educationItemActive, setEducationItemActive] = useState(false);
|
|
|
|
return (
|
|
<div className="container">
|
|
<div className="form">
|
|
<GeneralInfoForm setBasicInfo={setBasicInfo} basicInfo={basicInfo} />
|
|
<div className="btn-group">
|
|
<Button
|
|
onClick={() => {
|
|
setEducationItemActive(!educationItemActive);
|
|
}}
|
|
text="Add Education"
|
|
className="normal-btn"
|
|
/>
|
|
<Button
|
|
onClick={() => setShowJobForm(!showJobForm)}
|
|
text="Add Employment"
|
|
className="normal-btn"
|
|
/>
|
|
</div>
|
|
<EducationInfoForm
|
|
educationInfo={educationInfo}
|
|
setEducationInfo={setEducationInfo}
|
|
setEditEducation={setEditEducation}
|
|
editEducation={editEducation}
|
|
educationItemActive={educationItemActive}
|
|
/>
|
|
<ExperienceForm
|
|
employmentHistory={employmentHistory}
|
|
setEmploymentHistory={setEmploymentHistory}
|
|
showJobForm={showJobForm}
|
|
/>
|
|
</div>
|
|
|
|
<div className="resume">
|
|
<GeneralInfoDisplay basicInfo={basicInfo} />
|
|
<EducationInfoDisplay
|
|
educationInfo={educationInfo}
|
|
setEditEducation={setEditEducation}
|
|
setEducationInfo={setEducationInfo}
|
|
/>
|
|
<ExperienceDisplay employmentHistory={employmentHistory} />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default App;
|