2020-12-11 00:35:35 +01:00
|
|
|
import React, {Component} from '../../../node_modules/react';
|
|
|
|
import './ExperienceCard.scss'
|
|
|
|
|
|
|
|
// import { connect } from "react-redux";
|
|
|
|
// import { bindActionCreators } from "redux";
|
|
|
|
// import * as MenuComponentActions from "../../store/MenuComponent/actions";
|
|
|
|
|
|
|
|
export default class ExperienceCard extends Component {
|
|
|
|
// constructor(props) {
|
|
|
|
// super(props);
|
|
|
|
// this.state = {};
|
|
|
|
// }
|
|
|
|
render() {
|
2021-01-03 00:48:49 +01:00
|
|
|
var data = this.props.data;
|
|
|
|
var imgSrc = data.logo;
|
2020-12-11 00:35:35 +01:00
|
|
|
return <div class="card-content">
|
|
|
|
<div class="media">
|
|
|
|
<div class="media-left">
|
2021-10-03 23:28:21 +02:00
|
|
|
<a href={data.url} target="_blank" rel="noreferrer">
|
2020-12-11 00:35:35 +01:00
|
|
|
<figure class="image is-48x48">
|
2021-01-03 00:43:05 +01:00
|
|
|
<img src={imgSrc} alt="Logo Entreprise"/>
|
2020-12-11 00:35:35 +01:00
|
|
|
</figure>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="media-content">
|
2021-01-03 00:48:49 +01:00
|
|
|
<p class="title is-4">{data.occupation}</p>
|
|
|
|
<p class="subtitle is-6">{data.entreprise} - {data.location} - {data.duration}</p>
|
2020-12-11 00:35:35 +01:00
|
|
|
<div class="tags">
|
2021-01-03 00:48:49 +01:00
|
|
|
{data.tags.map(function(name, index){
|
2020-12-11 00:35:35 +01:00
|
|
|
return <span key={ index } class="tag">{name}</span>;
|
|
|
|
})}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
2021-01-03 00:48:49 +01:00
|
|
|
{data.description}
|
2020-12-11 00:35:35 +01:00
|
|
|
</div>
|
2021-01-03 00:48:49 +01:00
|
|
|
{data.commentaire ? <div class="comment">
|
|
|
|
{data.commentaire}
|
2021-01-03 00:43:05 +01:00
|
|
|
</div> : ''}
|
|
|
|
|
2020-12-11 00:35:35 +01:00
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// export default connect(
|
|
|
|
// ({ MenuComponent }) => ({ ...MenuComponent }),
|
|
|
|
// dispatch => bindActionCreators({ ...MenuComponentActions }, dispatch)
|
|
|
|
// )( MenuComponent );
|