You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 rivejä
1.0 KiB

  1. import React from 'react';
  2. import { makeStyles } from "@material-ui/core/styles";
  3. import ReactHtmlParser from "react-html-parser";
  4. import Card from "components/Card/Card.js";
  5. import CardBody from "components/Card/CardBody.js";
  6. import CardHeader from "components/Card/CardHeader.js";
  7. const DataCarrer = function ({ backend, detailcarrer, ...props }) {
  8. const carrer = detailcarrer.map((data) => {
  9. return (
  10. <Card>
  11. <CardHeader color="info"><h3><div align="center">{data.name}</div></h3></CardHeader>
  12. <CardBody>
  13. <div align="center">
  14. <img src={`${backend}${data.img[0]["url"]}`} alt="First slide" className="slick-image" />
  15. </div>
  16. <h5 align="center">Masa Pendaftaran : {data.start_regis} s/d {data.until_regis}</h5>
  17. <h5 align="justify">{ReactHtmlParser(data.description)}</h5>
  18. </CardBody>
  19. </Card>
  20. );
  21. })
  22. return (
  23. <div>
  24. {carrer}
  25. </div>
  26. );
  27. }
  28. export default DataCarrer;