mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-27 14:40:43 -05:00
feat(styling): colors, btns, etc
This commit is contained in:
parent
10e4fb79d8
commit
eb98bc2905
4 changed files with 83 additions and 68 deletions
|
@ -7,6 +7,7 @@ import ExperienceDisplay from "./components/experienceDisplay";
|
||||||
|
|
||||||
import "./App.css";
|
import "./App.css";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
import Button from "./components/button";
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const [basicInfo, setBasicInfo] = useState({
|
const [basicInfo, setBasicInfo] = useState({
|
||||||
|
@ -26,16 +27,18 @@ function App() {
|
||||||
<div className="form">
|
<div className="form">
|
||||||
<GeneralInfoForm setBasicInfo={setBasicInfo} basicInfo={basicInfo} />
|
<GeneralInfoForm setBasicInfo={setBasicInfo} basicInfo={basicInfo} />
|
||||||
<div className="btn-group">
|
<div className="btn-group">
|
||||||
<button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setEducationItemActive(!educationItemActive);
|
setEducationItemActive(!educationItemActive);
|
||||||
}}
|
}}
|
||||||
>
|
text="Add Education"
|
||||||
Add Education Info
|
className="normal-btn"
|
||||||
</button>
|
/>
|
||||||
<button onClick={() => setShowJobForm(!showJobForm)}>
|
<Button
|
||||||
Add Employer Info
|
onClick={() => setShowJobForm(!showJobForm)}
|
||||||
</button>
|
text="Add Employment"
|
||||||
|
className="normal-btn"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<EducationInfoForm
|
<EducationInfoForm
|
||||||
educationInfo={educationInfo}
|
educationInfo={educationInfo}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { useState, useEffect } from "react";
|
import { useState, useEffect } from "react";
|
||||||
import Input from "./input";
|
import Input from "./input";
|
||||||
|
import Button from "./button";
|
||||||
|
|
||||||
export default function EducationInfoForm(props) {
|
export default function EducationInfoForm(props) {
|
||||||
return (
|
return (
|
||||||
|
@ -78,8 +79,20 @@ function EducationForm({
|
||||||
value={fieldOfStudy}
|
value={fieldOfStudy}
|
||||||
onChange={(e) => setFieldOfStudy(e.target.value)}
|
onChange={(e) => setFieldOfStudy(e.target.value)}
|
||||||
/>
|
/>
|
||||||
<button
|
<div className="btn-group">
|
||||||
|
<Button
|
||||||
|
onClick={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
setGraduationDate("");
|
||||||
|
setSchoolName("");
|
||||||
|
setFieldOfStudy("");
|
||||||
|
schoolId = null;
|
||||||
|
}}
|
||||||
|
text="Clear"
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
type="submit"
|
type="submit"
|
||||||
|
className="submit-btn"
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const updatedSchools = [...educationInfo];
|
const updatedSchools = [...educationInfo];
|
||||||
|
@ -106,20 +119,9 @@ function EducationForm({
|
||||||
setSchoolName("");
|
setSchoolName("");
|
||||||
setFieldOfStudy("");
|
setFieldOfStudy("");
|
||||||
}}
|
}}
|
||||||
>
|
text="Submit"
|
||||||
Submit
|
/>
|
||||||
</button>
|
</div>
|
||||||
<button
|
|
||||||
onClick={(e) => {
|
|
||||||
e.preventDefault();
|
|
||||||
setGraduationDate("");
|
|
||||||
setSchoolName("");
|
|
||||||
setFieldOfStudy("");
|
|
||||||
schoolId = null;
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Clear
|
|
||||||
</button>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import Input from "./input";
|
import Input from "./input";
|
||||||
|
import Button from "./button";
|
||||||
|
|
||||||
export default function ExperienceForm(props) {
|
export default function ExperienceForm(props) {
|
||||||
return (
|
return (
|
||||||
|
@ -94,15 +95,15 @@ function JobForm({ isActive, jobs, setJobs }) {
|
||||||
onChange={(e) => setJobDescription(e.target.value)}
|
onChange={(e) => setJobDescription(e.target.value)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<div className="btn-group">
|
||||||
|
<Button
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
clear();
|
clear();
|
||||||
}}
|
}}
|
||||||
>
|
text="Clear"
|
||||||
Clear
|
/>
|
||||||
</button>
|
<Button
|
||||||
<button
|
|
||||||
onClick={(e) =>
|
onClick={(e) =>
|
||||||
handleSubmit(e, {
|
handleSubmit(e, {
|
||||||
employer,
|
employer,
|
||||||
|
@ -112,9 +113,10 @@ function JobForm({ isActive, jobs, setJobs }) {
|
||||||
employmentEnd,
|
employmentEnd,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
>
|
className="submit-btn"
|
||||||
Submit
|
text="Submit"
|
||||||
</button>
|
/>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
|
@ -15,5 +15,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.input input {
|
.input input {
|
||||||
font-size: 1.3rem;
|
font-size: 1.1rem;
|
||||||
|
padding: 0.5rem;
|
||||||
|
border-radius: 0.4rem;
|
||||||
|
outline: 1px solid hsl(var(--light-gray));
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input input:focus {
|
||||||
|
outline: 2px solid hsl(var(--dark-gray));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue