Advertisement
ptownhero

inputCV.js

Mar 17th, 2023
638
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import InputCSS from '../css/inputCV.module.css';
  2.  
  3. export default function InputCV(props) {
  4.     return (
  5.         <section className="input-cv">
  6.             <Introduction
  7.                 setIntroduction={props.setIntroduction}
  8.                 onIntroductionChange={props.onIntroductionChange}
  9.             />
  10.             <Summary
  11.             setSummary={props.setSummary}
  12.             />
  13.             <WorkHistory
  14.                 onWorkHistoryChange={props.onWorkHistoryChange}
  15.             />
  16.             <EducationHistory
  17.                 onEducationHistoryChange={props.onEducationHistoryChange}
  18.                 />
  19.         </section>
  20.     )
  21. }
  22.  
  23. function Introduction({
  24.     setIntroduction,
  25.     onIntroductionChange,
  26.     onEducationChange,
  27.     onWorkHistoryChange
  28. }) {
  29.     return (
  30.         <section className={InputCSS.introduction}>
  31.             <label htmlFor="firstName">First Name :</label>
  32.             <input type="text" name="firstName" placeholder="Terry" onChange={(event) => setIntroduction(onIntroductionChange(event, 'firstName'))}/>
  33.  
  34.             <label htmlFor="lastName">Last Name :</label>
  35.             <input type="text" name="lastName" placeholder='Bogard' onChange={(event) => onIntroductionChange(event, 'lastName')}/>
  36.  
  37.             <label htmlFor="phoneNumber">Phone Number :</label>
  38.             <input type="text" name="phoneNumber" placeholder='123-456-7890' onChange={(event) => onIntroductionChange(event, 'phoneNumber')}/>
  39.  
  40.             <label htmlFor="email">Email :</label>
  41.             <input type="email" name='email' placeholder='terrybogardKOF@gmail.com' onChange={(event) => onIntroductionChange(event, 'email')}/>
  42.  
  43.             <label htmlFor="linkedIn">Linked-In :</label>
  44.             <input type="text" name="linkedIn" placeholder='https://www.linkedin.com/in/terry-bogard/' onChange={(event) => onIntroductionChange(event, 'linkedIn')}/>
  45.  
  46.             <label htmlFor="website">Website :</label>
  47.             <input type="text" name="website" placeholder='https://www.terrybogard.com/' onChange={(event) => onIntroductionChange(event, 'website')}/>
  48.         </section>
  49.     )
  50. }
  51.  
  52. function Summary(props) {
  53.     return (
  54.         <section className={InputCSS.summary}>
  55.             <label htmlFor="summaryTextArea">Summary :</label>
  56.             <input type="textarea" name="summaryTextArea" placeholder='Write a brief description about yourself here!'></input>
  57.         </section>
  58.     )
  59. }
  60.  
  61. function WorkHistory(props) {
  62.     return (
  63.         <section className={InputCSS.workHistory}>
  64.             <label htmlFor="jobName1">Company 1 :</label>
  65.             <input type="text" name="jobName1" />
  66.  
  67.             <label htmlFor="jobPosition1">Position :</label>
  68.             <input type="text" name="jobPosition1" />
  69.  
  70.             <label htmlFor="startingDate1">Starting Date :</label>
  71.             <input type="month" name="startingDate1" />
  72.  
  73.             <label htmlFor="endingDate1">Ending Date :</label>
  74.             <input type="month" name="endingDate1" />
  75.  
  76.             <label htmlFor="jobDescription1">Description :</label>
  77.             <input type="textarea" name="jobDescription1"></input>
  78.         </section>
  79.     )
  80. }
  81.  
  82. function EducationHistory(props) {
  83.     return (
  84.         <section className={InputCSS.educationHistory}>
  85.             <label htmlFor="educationName1">Education 1 :</label>
  86.             <input type="text" name="educationName1" />
  87.  
  88.             <label htmlFor="certificate1">Position :</label>
  89.             <input type="text" name="certificate1" />
  90.  
  91.             <label htmlFor="dateAchieved1">Starting Date :</label>
  92.             <input type="month" name="dateAchieved1" />
  93.  
  94.             <label htmlFor="educationDescription1">Summary :</label>
  95.             <input type="textarea" name="educationDescription1"></input>
  96.         </section>
  97.     )
  98. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement