2020-01-20 02:52:05 +01:00
|
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
|
|
import { faLightbulb, faCloudUploadAlt } from '@fortawesome/free-solid-svg-icons';
|
|
|
|
|
|
|
|
|
2020-01-20 03:42:46 +01:00
|
|
|
const NewTaskAdd = props => {
|
|
|
|
const isNewSolution = props.addType === "solution";
|
|
|
|
|
2020-01-20 02:52:05 +01:00
|
|
|
return (
|
|
|
|
<section className="task-description">
|
|
|
|
<div className="task-description">
|
|
|
|
<div className="task-border">
|
|
|
|
<div className="task-description-heading">
|
|
|
|
<FontAwesomeIcon icon={faLightbulb} />
|
2020-01-20 03:42:46 +01:00
|
|
|
<span>Dodawanie {isNewSolution ? "rozwiązania" : "zadania"}</span>
|
2020-01-20 02:52:05 +01:00
|
|
|
</div>
|
|
|
|
<form className="solution-add-area">
|
2020-01-20 03:42:46 +01:00
|
|
|
{isNewSolution ?
|
|
|
|
<div className="input-area">
|
2020-01-20 11:07:15 +01:00
|
|
|
<input type="file"/>
|
2020-01-20 03:42:46 +01:00
|
|
|
</div>
|
|
|
|
:
|
2020-01-20 02:52:05 +01:00
|
|
|
<div className="input-area">
|
2020-01-20 11:07:15 +01:00
|
|
|
<textarea type="text" rows="4" cols="90" placeholder="Podaj streszczenie zadania"/>
|
2020-01-20 02:52:05 +01:00
|
|
|
<input type="text" placeholder="Wybierz język programowania"/>
|
2020-01-20 11:07:15 +01:00
|
|
|
<textarea type="text" rows="8" cols="90" placeholder="Podaj szczegóły zadania"/>
|
2020-01-20 02:52:05 +01:00
|
|
|
</div>
|
2020-01-20 03:42:46 +01:00
|
|
|
}
|
2020-01-20 02:52:05 +01:00
|
|
|
<div>
|
|
|
|
<button type="submit"><FontAwesomeIcon icon={faCloudUploadAlt} /> Publikuj</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
)
|
|
|
|
};
|
|
|
|
|
|
|
|
export default NewTaskAdd;
|