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.
 
 

64 line
2.5 KiB

  1. import React from 'react';
  2. import Link from 'next/link';
  3. import * as Icon from 'react-feather';
  4. const OurServices = ({companies}) => {
  5. const partners = companies.map((data, index) => {
  6. return (
  7. <div className="col-lg-4 col-md-6" key={index}>
  8. <div className='single-repair-services'
  9. style={{
  10. 'objectFit':'fill',
  11. width:'390px',
  12. height:'340px',
  13. 'backgroundImage' : (data.attributes.Background.data)?`url('/api/util?img=${encodeURIComponent(data.attributes.Background.data.attributes.url)}')`:''}}
  14. >
  15. <img style={{
  16. 'maxWidth': '290px',
  17. 'maxHeight': '100px',
  18. }} src={`/api/util?img=${encodeURIComponent(data.attributes.Icon.data.attributes.url)}`} alt="image" />
  19. <br/>
  20. <h3 style={{ position: 'absolute',
  21. left: '0%',
  22. top: '60%',
  23. width:'100%'
  24. }}
  25. >{data.attributes.Business_name}<br /> {data.attributes.Name}</h3>
  26. <br/><br/><br/>
  27. <Link href={
  28. (data.attributes.Website)
  29. ?data.attributes.Website
  30. :((data.attributes.Ready == 1))
  31. ?`${data.attributes.Name.toLowerCase()}`
  32. :"coming-soon"
  33. } target="_blank">
  34. <a style={{
  35. position:'absolute',
  36. top: '84%',
  37. left: '45%'
  38. }}target="_blank"><Icon.ArrowRight /></a>
  39. </Link>
  40. </div>
  41. </div>
  42. );
  43. });
  44. return (
  45. <div id="business_partner" className="iot-services-area pt-80 pb-50">
  46. <div className="container justify-content-center">
  47. <div className="section-title">
  48. <h2>Thamrin Group Businees Partner</h2>
  49. <div className="bar"></div>
  50. <p>Thamrin Group mempunyai beberapa Businees Partner sebagai Unit Bisnis nya, antar lain</p>
  51. </div>
  52. <div className="row">
  53. {partners}
  54. </div>
  55. </div>
  56. </div>
  57. );
  58. }
  59. export default OurServices;