25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

98 satır
5.3 KiB

  1. import React from 'react';
  2. import Link from 'next/link';
  3. import * as Icon from 'react-feather';
  4. import { FaWhatsapp } from "react-icons/fa";
  5. import { FaRegEnvelope } from "react-icons/fa";
  6. import { FaPhoneAlt } from "react-icons/fa";
  7. const Sales = function ({ backend, sales, ...props }) {
  8. const DataSales = sales.map((data) => {
  9. return (
  10. <div>
  11. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" />
  12. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  13. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
  14. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
  15. <div class="jumbotron" style={{ backgroundColor: "#000" }}>
  16. <div className="single-team" style={{ backgroundColor: "#000" }}>
  17. <img src="/images/Sales/Logo Star.png" width="180px" alt="image" style={{ marginTop: "-50px" }} />
  18. <div className="team-content">
  19. <h1 style={{ color: "#fff" }}>{data.name}</h1>
  20. <p style={{ color: "#fff" }}><strong>{data.job_title}</strong></p>
  21. </div>
  22. </div>
  23. <div align="center" style={{ marginTop: "-30px" }}>
  24. <Link href={`tel:${data.telp}`}>
  25. <button style={{ marginRight: "10px", borderRadius: "5px", backgroundColor: "#80808080", color: "#fff", padding: "12px 16px", border: "none", fontSize: "15px" }}><i class="fa fa-phone"></i> CALL US</button>
  26. </Link>
  27. <Link href={`mailto:${data.email}`}>
  28. <button style={{ borderRadius: "5px", backgroundColor: "#80808080", color: "#fff", padding: "12px 16px", border: "none", fontSize: "15px" }}><i class="fa fa-envelope"></i> EMAIL US</button>
  29. </Link>
  30. <Link href={`https://wa.me/62${data.wa}`}>
  31. <button style={{ marginLeft: "10px", borderRadius: "5px", backgroundColor: "#80808080", color: "#fff", padding: "12px 16px", border: "none", fontSize: "15px" }}><i class="fa fa-whatsapp"></i> WA US</button>
  32. </Link>
  33. </div>
  34. </div>
  35. <div class="table-responsive" style={{marginTop:"-30px"}}>
  36. <table class="table">
  37. <thead>
  38. <tr>
  39. <th style={{textAlign:"right"}} width="50%">
  40. <Link href={`tel:${data.telp}`}>
  41. <a target="_blank"><Icon.Phone style={{ color: "#000", marginTop: "-20px" }} /></a>
  42. </Link>
  43. </th>
  44. <th align="right" width="50%">{data.telp} <br /> Mobile </th>
  45. <th></th>
  46. <th/><th/>
  47. </tr>
  48. <tr >
  49. <th style={{textAlign:"right"}}>
  50. <Link href={`mailto:${data.email}`}>
  51. <a target="_blank"><Icon.Mail style={{ color: "#000", marginTop: "-20px" }} /></a>
  52. </Link>
  53. </th>
  54. <th>{data.email} <br /> Email </th>
  55. <th></th>
  56. <th/><th/>
  57. </tr>
  58. <tr>
  59. <th style={{textAlign:"right"}}>
  60. <Link href="https://www.google.co.id/maps/place/Mercedes-Benz+-+PT.+THAMRIN+CITRA+ABADI/@-2.946646,104.7294956,17z/data=!3m1!4b1!4m5!3m4!1s0x2e3b7439cb4d6c0b:0xf12bc3dc2ab868f4!8m2!3d-2.9466514!4d104.7316843?hl=id">
  61. <a target="_blank"><Icon.MapPin style={{ color: "#000", marginTop: "-20px" }} /></a>
  62. </Link>
  63. </th>
  64. <th>{data.company} <br /> {data.job_title} </th>
  65. <th></th>
  66. <th/><th/>
  67. </tr>
  68. <tr>
  69. <th style={{textAlign:"right"}}>
  70. <Link href="https://www.thamrin.mercedes-benz.co.id/en/desktop/passenger-cars.html">
  71. <a target="_blank"><Icon.Globe style={{ color: "#000", marginTop: "-20px" }} /><br /></a>
  72. </Link>
  73. </th>
  74. <th>thamrin.mercedes-benz.co.id<br /> Website </th>
  75. <th></th>
  76. <th/><th/>
  77. </tr>
  78. </thead>
  79. </table>
  80. </div>
  81. </div>
  82. )
  83. })
  84. return (
  85. <div>
  86. {DataSales}
  87. </div>
  88. )
  89. }
  90. export default Sales;