Advertisement
Eulis

other-services-carousel-card.jsx

Oct 9th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import './OtherServicesCarouselCard.css';
  3. import { Link } from 'react-router-dom';
  4. import apiUrl from '../../api_url';
  5.  
  6. class OtherServicesCarouselCard extends Component {
  7. state = { }
  8. render() {
  9. return (
  10. <div
  11. className="other-services-carousel-card"
  12. id={`other-service-carousel-card-${ this.props.identifier }`}
  13. style={{
  14. background: `url(${ apiUrl + this.props.card.imagem.url})`,
  15. backgroundSize: 'cover',
  16. backgroundRepeat: 'no-repeat',
  17. backgroundPosition: 'center',
  18. marginRight: this.props.style.marginRight ? this.props.style.marginRight : 0,
  19. opacity: 0
  20. }}
  21. >
  22. <Link to={ this.props.url }>
  23. <p className="other-services-carousel-card-text">{ this.props.card[`texto_${this.props.language}`] }</p>
  24. <div className="other-services-carousel-card-line"></div>
  25. </Link>
  26. <div className="card-width"></div>
  27. </div>
  28. );
  29. }
  30. }
  31.  
  32. export default OtherServicesCarouselCard;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement